}
std::string delay_str = std::to_string(delay);
- int ret_app = app_control_add_extra_data(app_control, kAlarmRelativeDelayKey, delay_str.c_str());
+ int ret_app =
+ app_control_add_extra_data(app_control, kAlarmRelativeDelayKey, delay_str.c_str());
if (APP_CONTROL_ERROR_NONE != ret_app) {
LogAndReportError(
PlatformResult(ErrorCode::UNKNOWN_ERR, "Fail to add data from app_control."), &out,
int ret_app = app_control_get_extra_data(app_control, kAlarmRelativeDelayKey, &delay_string);
if (APP_CONTROL_ERROR_NONE != ret_app) {
- return LogAndCreateResult(ErrorCode::NOT_FOUND_ERR, "Failed to get data.",
- ("Failed to get data: %d (%s)", ret_app, get_error_message(ret_app)));
+ return LogAndCreateResult(
+ ErrorCode::NOT_FOUND_ERR, "Failed to get data.",
+ ("Failed to get data: %d (%s)", ret_app, get_error_message(ret_app)));
}
obj.insert(std::make_pair("type", picojson::value(kAlarmRelative)));
LogAndReturnTizenError(common::AbortError(ret), ("bundle_add() failed"));
}
- int ret_widget = widget_service_trigger_update(widget_id.c_str(), instance_id.c_str(), data, force);
+ int ret_widget =
+ widget_service_trigger_update(widget_id.c_str(), instance_id.c_str(), data, force);
if (WIDGET_ERROR_NONE != ret_widget) {
LogAndReturnTizenError(WidgetServiceUtils::ConvertErrorCode(ret_widget),
("widget_service_trigger_update() failed"));
bundle_free(bundle_data);
};
- int ret_widget = widget_service_get_content_of_widget_instance(widget_id.c_str(), instance_id.c_str(),
- &bundle_data);
+ int ret_widget = widget_service_get_content_of_widget_instance(
+ widget_id.c_str(), instance_id.c_str(), &bundle_data);
if (WIDGET_ERROR_NONE != ret_widget) {
LoggerE("widget_service_get_content_of_widget_instance() failed");
this->Post(token, WidgetServiceUtils::ConvertErrorCode(ret_widget));