return 0;
}
+//LCOV_EXCL_START System Error
_E("Failed to open file %s", file_name);
ret = -EIO;
goto error;
+//LCOV_EXCL_STOP
}
/* parsing line by line */
break;
case 'w':
case 'W':
- profile = TIZEN_PROFILE_WEARABLE;
- break;
+ profile = TIZEN_PROFILE_WEARABLE; //LCOV_EXCL_LINE
+ break; //LCOV_EXCL_LINE
case 't':
case 'T':
- profile = TIZEN_PROFILE_TV;
- break;
+ profile = TIZEN_PROFILE_TV; //LCOV_EXCL_LINE
+ break; //LCOV_EXCL_LINE
case 'i':
case 'I':
- profile = TIZEN_PROFILE_IVI;
- break;
+ profile = TIZEN_PROFILE_IVI; //LCOV_EXCL_LINE
+ break; //LCOV_EXCL_LINE
default: // common or unknown ==> ALL ARE COMMON.
- profile = TIZEN_PROFILE_COMMON;
+ profile = TIZEN_PROFILE_COMMON; //LCOV_EXCL_LINE
}
free(profileName);
return NULL;
}
+//LCOV_EXCL_START Not called Callback
static void on_name_vanished(GDBusConnection *connection,
const gchar *name,
gpointer user_data)
}
pthread_mutex_unlock(&dmutex);
}
+//LCOV_EXCL_STOP
static GDBusProxy *get_proxy_from_proxy_pool(const char *dest,
const char *path,
node = malloc(sizeof(struct proxy_node));
if (!node) {
+//LCOV_EXCL_START System Error
g_object_unref(proxy);
if (err)
g_set_error(err, G_IO_ERROR,
G_IO_ERROR_FAILED,
"Cannot allocate proxy_node memory");
return NULL;
+//LCOV_EXCL_STOP
}
node->proxy = proxy;
return 0;
}
+//LCOV_EXCL_START Not called Callback
static void haptic_signal_callback(GDBusConnection *conn,
const gchar *sender,
const gchar *path,
restart_callback();
}
+//LCOV_EXCL_STOP
int register_signal_handler(void)
{
g_object_unref(conn);
if (haptic_id == 0) {
- _E("Failed to subscrive bus signal");
+ _E("Failed to subscrive bus signal"); //LCOV_EXCL_LINE System Error
return -EPERM;
}
return DEVICE_ERROR_NONE;
}
+//LCOV_EXCL_START Not called Callback
void restart_callback(void)
{
dd_list *elem;
}
}
+//LCOV_EXCL_STOP
int device_haptic_open(int device_index, haptic_device_h *device_handle)
{
if (!found) {
handle = (struct haptic_handle *)malloc(sizeof(struct haptic_handle));
if (!handle) {
- _E("Failed to malloc");
+ _E("Failed to malloc"); //LCOV_EXCL_LINE System Error
return DEVICE_ERROR_OPERATION_FAILED;
}
if (DD_LIST_LENGTH(handle_list) == 1) {
ret = register_signal_handler();
if (ret < 0)
- _E("Faild to register signal handler");
+ _E("Faild to register signal handler"); //LCOV_EXCL_LINE
}
return DEVICE_ERROR_NONE;
if (DD_LIST_LENGTH(handle_list) == 0) {
ret = unregister_signal_handler();
if (ret < 0)
- _E("Failed to unregister signal handler");
+ _E("Failed to unregister signal handler"); //LCOV_EXCL_LINE
}
return DEVICE_ERROR_NONE;
}
}
+//LCOV_EXCL_START Callback function
static void notice_lock_expired_done(void *data, GVariant *result, GError *err)
{
int val, ret;
_E("Failed to release power(CPU) (%d)", ret);
}
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START Callback function
static char *get_new_request_id(pid_t pid)
{
char id[64];
snprintf(id, sizeof(id), "%d_%lu", pid, time(NULL));
return strdup(id);
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START Callback function
static int notice_power_lock_expired(void)
{
int ret;
return 0;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START Callback function
static gboolean padding_timeout_expired(gpointer data)
{
int ret, ref;
return G_SOURCE_REMOVE;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START Callback function
static void add_padding_timeout(void)
{
guint id;
else
_E("Failed to add timeout for padding time");
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START Callback function
static gboolean off_lock_timeout_expired(gpointer data)
{
int ret, ref;
out:
return G_SOURCE_CONTINUE;
}
+//LCOV_EXCL_STOP
static void add_off_lock_timeout(void)
{
return device_display_change_state(DISPLAY_STATE_NORMAL);
}
-//LCOV_EXCL_START Not available to test(Reboot during TCT)
+//LCOV_EXCL_START Not available to test (Reboot during TCT)
int device_power_reboot(const char *reason)
{
char *arr[2];
ret = config_parse(POWER_CONF, power_load_config, NULL);
if (ret < 0)
- _E("Failed to load config file (%d)", ret);
+ _E("Failed to load config file (%d)", ret); //LCOV_EXCL_LINE
}