} else {
offset_sec = __get_ambient_tick_offset(timeinfo, info.interval,
info.minute_base, info.hour_base);
- _D("next time tick: %d", offset_sec);
+ _I("next time tick: %d", offset_sec);
/* Set a next alarm */
r = alarmmgr_add_alarm_withcb(ALARM_TYPE_VOLATILE, offset_sec,
.timezone = NULL
};
- _D("_signal_alpm_handler: ambient: %d", ambient);
+ _I("_signal_alpm_handler: ambient: %d", ambient);
if (__context.ambient_mode == ambient) {
_E("invalid state");
return 0;
__context.ambient_mode = false;
__on_ambient_changed(0, data);
- _D("Resume check: %d", __context.ambient_mode_skip_resume);
+ _I("Resume check: %d", __context.ambient_mode_skip_resume);
if (!__context.ambient_mode_skip_resume) {
- _D("Call the resume after ambient mode changed");
+ _I("Call the resume after ambient mode changed");
appcore_ui_base_resume();
if (__context.callback.resume)
__context.callback.resume(__context.data);
};
double sec;
- _D("state: %d", __state);
+ _I("state: %d", __state);
if (__context.callback.time_tick && __state != WS_PAUSED) {
_watch_base_time_get_timeinfo(&timeinfo);
/* If both minute tick & second tick are declared, only minute tick has to be applied */
ret = pkgmgrinfo_appinfo_get_metadata_value(handle, METADATA_MINUTE_TICK, &minute_tick);
if (ret == PMINFO_R_OK) {
- _D("set default tick 1, type %d", WATCH_BASE_TIME_TICKS_PER_MINUTE);
+ _I("set default tick 1, type %d", WATCH_BASE_TIME_TICKS_PER_MINUTE);
app_tick_type = WATCH_BASE_TIME_TICKS_PER_MINUTE;
app_tick_resolution = 1;
pkgmgrinfo_appinfo_destroy_appinfo(handle);
if (second_tick) {
sscanf(second_tick, "%d", &tick);
if (tick > 0) {
- _D("set default tick %d, type %d", tick, WATCH_BASE_TIME_TICKS_PER_SECOND);
+ _I("set default tick %d, type %d", tick, WATCH_BASE_TIME_TICKS_PER_SECOND);
app_tick_type = WATCH_BASE_TIME_TICKS_PER_SECOND;
app_tick_resolution = tick;
pkgmgrinfo_appinfo_destroy_appinfo(handle);
.timezone = NULL
};
- _D("ambient_mode check: %d", __context.ambient_mode);
+ _I("ambient_mode check: %d", __context.ambient_mode);
_watch_base_time_get_timeinfo(&timeinfo);
if (__context.ambient_mode) {
if (alarm_id) {
{
_W("_watch_base_signal_resume");
if (__context.viewer_visibility != AUL_SCREEN_STATUS_RESUME) {
- _D("Viewer is paused, do not resume watch");
+ _I("Viewer is paused, do not resume watch");
return APP_ERROR_NONE;
}
if (__context.viewer_visibility == AUL_SCREEN_STATUS_RESUME)
appcore_ui_base_resume();
else
- _D("viewer is not resumed, do not resume watch");
+ _I("viewer is not resumed, do not resume watch");
}
static gboolean __delayed_pause(gpointer data)
static void __add_pause_timer(void)
{
if (__context.pause_timer == 0) {
- _D("Add pause timer");
+ _I("Add pause timer");
__context.pause_timer = g_timeout_add(200,
__delayed_pause, NULL);
}
static void __remove_pause_timer(void)
{
if (__context.pause_timer) {
- _D("Remove pause timer");
+ _I("Remove pause timer");
g_source_remove(__context.pause_timer);
__context.pause_timer = 0;
}
{
Ecore_Wl2_Event_Window_Visibility_Change *ev = event;
- _D("win(%u), fully_obscured(%d)",
+ _I("win(%u), fully_obscured(%d)",
(unsigned int)ev->win, ev->fully_obscured);
if (ev->fully_obscured) {
__remove_pause_timer();
__on_ui_base_resume(NULL);
} else {
- _D("Viewer is paused, do not resume watch");
+ _I("Viewer is paused, do not resume watch");
}
}
}
static int __set_ambient_tick_type(watch_base_ambient_tick_type_e type)
{
- _D("set ambient tick type : %d", type);
+ _I("set ambient tick type : %d", type);
ambient_tick_type = type;
if (alarm_id) {
sec = __get_next_tick_sec();
/* Set a next timer */
watch_tick = ecore_timer_add(sec, __time_tick_cb, NULL);
- _D("next time tick: %lf, type: %d, tick: %d", sec, type, ticks);
+ _I("next time tick: %lf, type: %d, tick: %d", sec, type, ticks);
if (appcore_ui_base_is_resumed()) {
_watch_base_time_get_timeinfo(&timeinfo);
return -1;
}
- _D("receive viewer state %d", *state);
+ _I("receive viewer state %d", *state);
if (*state != AUL_SCREEN_STATUS_PRE_RESUME) {
__context.viewer_visibility = *state;
- _D("set viewer state to %d", *state);
+ _I("set viewer state to %d", *state);
}
if (*state == AUL_SCREEN_STATUS_RESUME &&
__add_pause_timer();
} else if (*state == AUL_SCREEN_STATUS_PRE_RESUME) {
__remove_pause_timer();
- _D("call pre resume tick");
+ _I("call pre resume tick");
__on_pre_resume(NULL);
}
static void __lcd_on_handler(void *user_data)
{
- _D("Call pre resume tick");
+ _I("Call pre resume tick");
__remove_pause_timer();
__on_pre_resume(NULL);
}