For consistent naming rule with other DPMS function,
change the names.
init_dpms -> dpms_init
exit_dpms -> dpms_exit
add_timer_for_init_dpms -> add_timer_for_dpms_init
delayed_init_done_dpms -> delayed_dpms_init_done
Change-Id: I1de2c9741526238d33c03e815f2ff73fa2a13f9f
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
-static gboolean delayed_init_done_dpms(gpointer data)
+static gboolean delayed_dpms_init_done(gpointer data)
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_REMOVE;
}
return G_SOURCE_REMOVE;
}
-static void add_timer_for_init_dpms(void)
+static void add_timer_for_dpms_init(void)
- guint id = g_timeout_add(500/* milliseconds */, delayed_init_done_dpms, NULL);
+ guint id = g_timeout_add(500/* milliseconds */, delayed_dpms_init_done, NULL);
- _E("Failed to add init_dpms timeout.");
+ _E("Failed to add dpms_init timeout.");
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
- add_timer_for_init_dpms();
+ add_timer_for_dpms_init();
}
if (display_conf.lcd_always_on) {
}
if (display_conf.lcd_always_on) {
ops = find_device("touchscreen");
if (!check_default(ops))
ops = find_device("touchscreen");
if (!check_default(ops))
-static gboolean delayed_init_done_dpms(gpointer data)
+static gboolean delayed_dpms_init_done(gpointer data)
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_REMOVE;
}
return G_SOURCE_REMOVE;
}
-static void add_timer_for_init_dpms(void)
+static void add_timer_for_dpms_init(void)
- guint id = g_timeout_add(500/* milliseconds */, delayed_init_done_dpms, NULL);
+ guint id = g_timeout_add(500/* milliseconds */, delayed_dpms_init_done, NULL);
- _E("Failed to add init_dpms timeout.");
+ _E("Failed to add dpms_init timeout.");
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
- add_timer_for_init_dpms();
+ add_timer_for_dpms_init();
}
if (display_conf.lcd_always_on) {
}
if (display_conf.lcd_always_on) {
ops = find_device("touchscreen");
if (!check_default(ops))
ops = find_device("touchscreen");
if (!check_default(ops))
-static gboolean delayed_init_done_dpms(gpointer data)
+static gboolean delayed_dpms_init_done(gpointer data)
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_REMOVE;
}
return G_SOURCE_REMOVE;
}
-static void add_timer_for_init_dpms(void)
+static void add_timer_for_dpms_init(void)
- guint id = g_timeout_add(500/* milliseconds */, delayed_init_done_dpms, NULL);
+ guint id = g_timeout_add(500/* milliseconds */, delayed_dpms_init_done, NULL);
- _E("Failed to add init_dpms timeout.");
+ _E("Failed to add dpms_init timeout.");
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
- add_timer_for_init_dpms();
+ add_timer_for_dpms_init();
}
if (display_conf.lcd_always_on) {
}
if (display_conf.lcd_always_on) {
ops = find_device("touchscreen");
if (!check_default(ops))
ops = find_device("touchscreen");
if (!check_default(ops))
-static gboolean delayed_init_done_dpms(gpointer data)
+static gboolean delayed_dpms_init_done(gpointer data)
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_CONTINUE;
switch (get_pm_cur_state()) {
return G_SOURCE_REMOVE;
}
return G_SOURCE_REMOVE;
}
-static void add_timer_for_init_dpms(void)
+static void add_timer_for_dpms_init(void)
- guint id = g_timeout_add(500/* milliseconds */, delayed_init_done_dpms, NULL);
+ guint id = g_timeout_add(500/* milliseconds */, delayed_dpms_init_done, NULL);
- _E("Failed to add init_dpms timeout.");
+ _E("Failed to add dpms_init timeout.");
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
* since display manager can be launched later than deviced.
* In the case, display cannot be turned on at the first booting */
// wm_ready = check_wm_ready();
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
if (is_lcdon_blocked() != LCDON_BLOCK_NONE)
lcd_off_procedure(LCD_OFF_BY_EVENT);
else
lcd_on_procedure(LCD_NORMAL, LCD_ON_BY_EVENT);
} else {
- add_timer_for_init_dpms();
+ add_timer_for_dpms_init();
}
if (display_conf.lcd_always_on) {
}
if (display_conf.lcd_always_on) {
ops = find_device("touchscreen");
if (!check_default(ops))
ops = find_device("touchscreen");
if (!check_default(ops))
info->wl_output= wl_registry_bind(registry, name, &wl_output_interface, 2);
if (!info->wl_output) {
_E("Failed to bind registry.");
info->wl_output= wl_registry_bind(registry, name, &wl_output_interface, 2);
if (!info->wl_output) {
_E("Failed to bind registry.");
return;
}
_D("Get wl_output.");
return;
}
_D("Get wl_output.");
info->tz_dpms_mng = wl_registry_bind(registry, name, &tizen_dpms_manager_interface, 1);
if (!info->tz_dpms_mng) {
_E("Failed to bind registry.");
info->tz_dpms_mng = wl_registry_bind(registry, name, &tizen_dpms_manager_interface, 1);
if (!info->tz_dpms_mng) {
_E("Failed to bind registry.");
{
if (dpms_client)
return true;
{
if (dpms_client)
return true;
if (!dpms_client) {
_E("Failed to init dpms client.");
if (!dpms_client) {
_E("Failed to init dpms client.");
return false;
}
_I("Successfully initialized dpms client.");
return false;
}
_I("Successfully initialized dpms client.");
{
_I("Exit dpms.");
if (dpms_loop) {
{
_I("Exit dpms.");
if (dpms_loop) {
void dpms_set_state(int on);
int dpms_get_state(void);
int dpms_get_cached_state(void);
void dpms_set_state(int on);
int dpms_get_state(void);
int dpms_get_cached_state(void);
-bool init_dpms(void);
-void exit_dpms(void);
+bool dpms_init(void);
+void dpms_exit(void);
void __register_dpms_checklist(int mode, void (*checker)(void), const char *caller);
#define register_dpms_checklist(mode, checker) __register_dpms_checklist(mode, checker, __func__)
#endif /* __DISPLAY_DPMS_H__ */
void __register_dpms_checklist(int mode, void (*checker)(void), const char *caller);
#define register_dpms_checklist(mode, checker) __register_dpms_checklist(mode, checker, __func__)
#endif /* __DISPLAY_DPMS_H__ */