}
if (appcore_multiwindow_base_instance_is_resumed(cxt)) {
- LOGD("Periodic update!");
+ LOGI("Periodic update!");
class_id = appcore_multiwindow_base_instance_get_class_id(cxt);
__call_update_cb(class_id, data->id, 0, NULL);
} else {
data->pending_update = true;
if (data->periodic_timer) {
- LOGD("Remove timer!");
+ LOGI("Remove timer!");
g_source_remove(data->periodic_timer);
data->periodic_timer = 0;
}
bundle_add_byte(b, AUL_K_WIDGET_STATUS, &status, sizeof(int));
bundle_add_str(b, AUL_K_PKGID, __package_id);
- LOGD("send lifecycle %s(%d)", instance_id, status);
+ LOGI("send lifecycle %s(%d)", instance_id, status);
ret = aul_app_com_send("widget.status", b);
if (ret < 0)
LOGE("send lifecycle error:%d", ret); /* LCOV_EXCL_LINE */
aul_widget_instance_add(class_id, instance_id);
}
- LOGD("send update %s(%d) to %s", instance_id, status, __viewer_endpoint);
+ LOGI("send update %s(%d) to %s", instance_id, status, __viewer_endpoint);
aul_app_com_send(__viewer_endpoint, b);
switch (status) {
if (cls->ops.resize)
cls->ops.resize(instance_h, w, h, class_data);
- LOGD("%s is resized to %dx%d", id, w, h);
+ LOGI("%s is resized to %dx%d", id, w, h);
__send_update_status(class_id, id,
WIDGET_INSTANCE_EVENT_SIZE_CHANGED, 0, NULL);
}
__send_update_status(class_id, id,
WIDGET_INSTANCE_EVENT_UPDATE, 0, NULL);
- LOGD("updated:%s", id);
+ LOGI("updated:%s", id);
if (content)
bundle_free(content);
}
if (data->periodic_timer) {
- LOGD("Remove timer!");
+ LOGI("Remove timer!");
g_source_remove(data->periodic_timer);
data->periodic_timer = 0;
}
data->period = *period;
if (data->period > 0) {
- LOGD("Restart timer!");
+ LOGI("Restart timer!");
data->periodic_timer = g_timeout_add_seconds(data->period,
__timeout_cb, data);
}
if (__context.ops.create)
ret = __context.ops.create(data);
- LOGD("widget base is created");
+ LOGI("widget base is created");
return ret;
}
appcore_multiwindow_base_on_terminate();
- LOGD("widget base is terminated");
+ LOGI("widget base is terminated");
return 0;
}
if (we->content) {
bundle_add_str(b, AUL_K_WIDGET_CONTENT_INFO, we->content);
- LOGD("content info of %s found", instance_id);
+ LOGI("content info of %s found", instance_id);
} else {
bundle_add_str(b, AUL_K_WIDGET_CONTENT_INFO, "");
- LOGD("empty content info added");
+ LOGI("empty content info added");
}
}
if (kb) {
bundle_get_str(kb, AUL_K_WIDGET_VIEWER, &viewer_endpoint);
if (viewer_endpoint) {
- LOGD("viewer endpoint :%s", viewer_endpoint);
+ LOGI("viewer endpoint :%s", viewer_endpoint);
__viewer_endpoint = strdup(viewer_endpoint);
} else {
LOGE("endpoint is missing");
LOGE("Fail to send abort status (%d) ", ret);
__instance_drop(instance_h);
} else {
- LOGD("%s is created", id);
+ LOGI("%s is created", id);
ret = __send_update_status(class_id, id,
WIDGET_INSTANCE_EVENT_CREATE, 0, NULL);
if (ret < 0)
appcore_multiwindow_base_instance_get_extra(instance_h);
if (data->pending_update) {
- LOGD("pending update!");
+ LOGI("pending update!");
data->pending_update = false;
__call_update_cb(class_id, data->id, 0, data->pending_content);
if (data->period > 0) {
- LOGD("Restart timer!");
+ LOGI("Restart timer!");
data->periodic_timer = g_timeout_add_seconds(
data->period,
__timeout_cb, data);
if (cls->ops.resume)
cls->ops.resume(instance_h, class_data);
- LOGD("%s is resumed", id);
+ LOGI("%s is resumed", id);
__send_update_status(class_id, id,
WIDGET_INSTANCE_EVENT_RESUME, 0, NULL);
if (!__fg_signal) {
- LOGD("Send fg signal to resourceD");
+ LOGI("Send fg signal to resourceD");
aul_widget_instance_change_status(class_id, STATUS_FOREGROUND);
__fg_signal = true;
}
if (cls->ops.pause)
cls->ops.pause(instance_h, class_data);
- LOGD("%s is paused", id);
+ LOGI("%s is paused", id);
__send_update_status(class_id, id,
WIDGET_INSTANCE_EVENT_PAUSE, 0, NULL);
if (__fg_signal) {
- LOGD("Send bg signal to resourceD");
+ LOGI("Send bg signal to resourceD");
aul_widget_instance_change_status(class_id, STATUS_BACKGROUND);
__fg_signal = false;
}