static unsigned int v_handle;
static int current_theme_index = 0;
+//LCOV_EXCL_START
static inline char *trim_str(char *s)
{
char *t;
*t = 0;
return s;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
inline int is_vibration_mode(void)
{
return vibstatus;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int haptic_open(void)
{
int ret_dbus, reply;
return ret_dbus;
return reply;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int haptic_close(unsigned int handle)
{
int ret_dbus, reply;
return ret_dbus;
return reply;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int haptic_is_supported(const char *pattern)
{
int ret_dbus, reply;
return ret_dbus;
return reply;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int haptic_vibrate_effect(unsigned int handle,
const char *pattern,
int feedback,
return ret_dbus;
return reply;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int haptic_vibrate_stop(unsigned int handle)
{
int ret_dbus, reply;
return ret_dbus;
return reply;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int get_priority(feedback_pattern_e pattern)
{
if (profile->get_priority)
return profile->get_priority(pattern);
return PRIORITY_MIDDLE;
}
+//LCOV_EXCL_STOP
+
//LCOV_EXCL_START callback
static void feedback_vibstatus_cb(keynode_t *key, void* data)
{
}
//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static void feedback_vibration_theme_changed_cb(keynode_t *key, void* data)
{
current_theme_index = vconf_keynode_get_int(key) - 1;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static void vibrator_init(void)
{
int ret_val;
if (ret_val != 0)
_W("Add watch for VCONFKEY_SETAPPL_ACCESSIBILITY_VIBRATION_FEEDBACK_THEME failed");
}
+//LCOV_EXCL_STOP
-
+//LCOV_EXCL_START
static void vibrator_exit(void)
{
int ret;
if (ret != 0)
_W("Remove watch for VCONFKEY_SETAPPL_ACCESSIBILITY_VIBRATION_FEEDBACK_THEME failed");
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int vibrator_play(feedback_pattern_e pattern, bool always)
{
char *temp;
free(temp);
return 0;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int vibrator_stop(void)
{
int ret;
return 0;
}
+//LCOV_EXCL_STOP
+//LCOV_EXCL_START
static int vibrator_is_supported(int pattern, bool *supported)
{
char *temp;
*supported = ret;
return 0;
}
+//LCOV_EXCL_STOP
//LCOV_EXCL_START Not Supported Feature
static int vibrator_get_path(feedback_pattern_e pattern, char *buf, unsigned int buflen)