PlatformResult ApplicationManager::BatteryUsageFilter(const picojson::value& args,
const context_history_filter_h filter,
context_history_data_e* data_type_out) {
- LoggerD("Entered");
+ ScopeLogger();
int ret = CONTEXT_HISTORY_ERROR_NONE;
int limit = kMaximumBatteryRetrievedObjects;
if (args.contains("limit")) {
PlatformResult ApplicationManager::BatteryUsageAttributes(const context_history_record_h record,
picojson::object* object) {
- LoggerD("Entered");
+ ScopeLogger();
int ret = CONTEXT_HISTORY_ERROR_NONE;
double amount = 0.0;
PlatformResult ApplicationManager::AppsUsageFilter(const picojson::value& args,
const context_history_filter_h filter,
context_history_data_e* data_type_out) {
- LoggerD("Entered");
+ ScopeLogger();
int ret = CONTEXT_HISTORY_ERROR_NONE;
int limit = kMaximumAppsRetrievedObjects;
if (args.contains("limit")) {
PlatformResult ApplicationManager::AppsUsageAttributes(const context_history_record_h record,
picojson::object* object) {
- LoggerD("Entered");
+ ScopeLogger();
int ret = CONTEXT_HISTORY_ERROR_NONE;
int total_count = 0;
#endif
void ApplicationManager::GetBatteryUsageInfo(const picojson::value& args, picojson::object* out) {
- LoggerD("Entered");
+ ScopeLogger();
#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
int callback_id = -1;
}
auto get_battery_usage = [args](const std::shared_ptr<picojson::value>& response) -> void {
- LoggerD("Entered");
+ ScopeLogger();
PlatformResult result = ApplicationManager::GetContextHistory(
args, &response.get()->get<picojson::object>(), &ApplicationManager::BatteryUsageFilter,
&ApplicationManager::BatteryUsageAttributes);
auto get_battery_usage_response =
[this, callback_id](const std::shared_ptr<picojson::value>& response) -> void {
- LoggerD("Entered");
+ ScopeLogger();
picojson::object& obj = response->get<picojson::object>();
obj.insert(std::make_pair(kCallbackId, picojson::value(static_cast<double>(callback_id))));
Instance::PostMessage(&this->instance_, response->serialize().c_str());
}
void ApplicationManager::GetAppsUsageInfo(const picojson::value& args, picojson::object* out) {
- LoggerD("Entered");
+ ScopeLogger();
#if defined(TIZEN_MOBILE) || defined(TIZEN_WEARABLE)
int callback_id = static_cast<int>(args.get(kCallbackId).get<double>());
auto get_apps_usage = [args](const std::shared_ptr<picojson::value>& response) -> void {
- LoggerD("Entered");
+ ScopeLogger();
PlatformResult result = ApplicationManager::GetContextHistory(
args, &response.get()->get<picojson::object>(), &ApplicationManager::AppsUsageFilter,
&ApplicationManager::AppsUsageAttributes);
auto get_apps_usage_response =
[this, callback_id](const std::shared_ptr<picojson::value>& response) -> void {
- LoggerD("Entered");
+ ScopeLogger();
picojson::object& obj = response->get<picojson::object>();
obj.insert(std::make_pair(kCallbackId, picojson::value(static_cast<double>(callback_id))));
Instance::PostMessage(&this->instance_, response->serialize().c_str());
app_manager_event_type_e event_type,
app_manager_event_state_e event_state,
app_manager_event_h handle, void* user_data) {
- LoggerD("Entered");
+ ScopeLogger();
if (APP_MANAGER_EVENT_STATE_COMPLETED != event_state) {
LoggerD("State different from completed");
context_history_data_e* data_type),
common::PlatformResult (*add_attributes_to_object)(const context_history_record_h,
picojson::object*)) {
- LoggerD("Entered");
+ ScopeLogger();
context_history_list_h list = nullptr;
context_history_h handle = nullptr;
context_history_filter_h filter = nullptr;
#endif
PlatformResult ApplicationManager::StartStatusListener(const JsonCallback& callback) {
- LoggerD("Entered");
+ ScopeLogger();
int ret = APP_MANAGER_ERROR_NONE;
}
PlatformResult ApplicationManager::StopStatusChangeListener() {
- LoggerD("Entered");
+ ScopeLogger();
if (app_status_handle_) {
int ret = app_manager_unset_event_cb(app_status_handle_);
}
bool CommonNotification::IsColorFormatNumeric(const std::string& color) {
- LoggerD("Enter");
+ ScopeLogger();
std::string hexCode = "0123456789abcdef";
if (7 != color.length() || '#' != color[0]) {
return false;
PlatformResult CommonNotification::SetLayout(notification_h noti_handle,
const std::string& noti_type) {
- LoggerD("Enter");
+ ScopeLogger();
notification_ly_type_e noti_layout = NOTIFICATION_LY_NONE;
if ("SIMPLE" == noti_type) {
}
static bool ServiceExtraDataCb(app_control_h service, const char* key, void* user_data) {
- LoggerD("Enter");
+ ScopeLogger();
if (nullptr == user_data || nullptr == key) {
LoggerE("User data or key not exist");
return true;
PlatformResult CommonNotification::Create(notification_type_e noti_type,
notification_h* noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
*noti_handle = notification_create(noti_type);
if (!*noti_handle) {
return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Cannot make new notification object");
PlatformResult CommonNotification::StatusTypeFromPlatform(notification_type_e noti_type,
notification_ly_type_e noti_layout,
std::string* type) {
- LoggerD("Enter");
+ ScopeLogger();
if (NOTIFICATION_TYPE_NOTI == noti_type) {
if (NOTIFICATION_LY_NOTI_EVENT_SINGLE == noti_layout ||
NOTIFICATION_LY_NOTI_EVENT_MULTIPLE == noti_layout) {
PlatformResult CommonNotification::StatusTypeToPlatform(const std::string& type,
notification_type_e* noti_type) {
- LoggerD("Enter");
+ ScopeLogger();
if ("SIMPLE" == type || "THUMBNAIL" == type) {
*noti_type = NOTIFICATION_TYPE_NOTI;
} else if ("ONGOING" == type || "PROGRESS" == type) {
PlatformResult CommonNotification::GetImage(notification_h noti_handle,
notification_image_type_e image_type,
std::string* image_path) {
- LoggerD("Enter");
+ ScopeLogger();
char* path = nullptr;
*image_path = "";
PlatformResult CommonNotification::SetImage(notification_h noti_handle,
notification_image_type_e image_type,
const std::string& image_path) {
- LoggerD("Enter");
+ ScopeLogger();
int ret = notification_set_image(noti_handle, image_type, image_path.c_str());
if (NOTIFICATION_ERROR_NONE != ret) {
return LogAndCreateResult(
PlatformResult CommonNotification::GetText(notification_h noti_handle,
notification_text_type_e text_type,
std::string* noti_text) {
- LoggerD("Enter");
+ ScopeLogger();
char* text = nullptr;
*noti_text = "";
PlatformResult CommonNotification::SetText(notification_h noti_handle,
notification_text_type_e text_type,
const std::string& noti_text) {
- LoggerD("Enter");
+ ScopeLogger();
int ret = notification_set_text(noti_handle, text_type, noti_text.c_str(), nullptr,
NOTIFICATION_VARIABLE_TYPE_NONE);
if (NOTIFICATION_ERROR_NONE != ret) {
PlatformResult CommonNotification::GetNumber(notification_h noti_handle,
notification_text_type_e text_type, long* number) {
- LoggerD("Enter");
+ ScopeLogger();
std::string text;
PlatformResult status = GetText(noti_handle, text_type, &text);
CHECK_ERROR(status);
}
PlatformResult CommonNotification::GetLedColor(notification_h noti_handle, std::string* led_color) {
- LoggerD("Enter");
+ ScopeLogger();
unsigned int color = 0;
notification_led_op_e type = NOTIFICATION_LED_OP_ON;
PlatformResult CommonNotification::GetLedPeriod(notification_h noti_handle,
unsigned long* on_period,
unsigned long* off_period) {
- LoggerD("Enter");
+ ScopeLogger();
int on_time = 0;
int off_time = 0;
PlatformResult CommonNotification::GetSoundPath(notification_h noti_handle,
std::string* sound_path) {
- LoggerD("Enter");
+ ScopeLogger();
*sound_path = "";
const char* path = nullptr;
PlatformResult CommonNotification::SetSoundPath(notification_h noti_handle,
const std::string& sound_path) {
- LoggerD("Enter");
+ ScopeLogger();
int ret =
notification_set_sound(noti_handle, NOTIFICATION_SOUND_TYPE_USER_DATA, sound_path.c_str());
if (NOTIFICATION_ERROR_NONE != ret) {
}
PlatformResult CommonNotification::GetVibration(notification_h noti_handle, bool* vibration) {
- LoggerD("Enter");
+ ScopeLogger();
notification_vibration_type_e vib_type = NOTIFICATION_VIBRATION_TYPE_NONE;
if (NOTIFICATION_ERROR_NONE != notification_get_vibration(noti_handle, &vib_type, nullptr)) {
PlatformResult CommonNotification::GetApplicationControl(app_control_h app_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
char* operation = nullptr;
PlatformResult CommonNotification::SetApplicationControl(app_control_h app_handle,
const picojson::object& app_ctrl) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::value val(app_ctrl);
const std::string& operation = FromJson<std::string>(app_ctrl, "operation");
}
PlatformResult CommonNotification::GetApplicationId(app_control_h app_handle, std::string* app_id) {
- LoggerD("Enter");
+ ScopeLogger();
char* app_id_str = nullptr;
SCOPE_EXIT {
free(app_id_str);
PlatformResult CommonNotification::SetApplicationId(app_control_h app_handle,
const std::string& app_id) {
- LoggerD("Enter");
+ ScopeLogger();
int ret = app_control_set_app_id(app_handle, app_id.c_str());
if (APP_CONTROL_ERROR_NONE != ret) {
return LogAndCreateResult(ErrorCode::UNKNOWN_ERR, "Set applicaiton ID error",
PlatformResult CommonNotification::GetProgressValue(notification_h noti_handle,
const std::string& progress_type,
double* progress_value) {
- LoggerD("Enter");
+ ScopeLogger();
double tmp_progress_value = 0.0;
if (kProgressTypeByte == progress_type) {
PlatformResult CommonNotification::SetProgressValue(notification_h noti_handle,
const std::string& progress_type,
double progress_value, bool is_update) {
- LoggerD("Enter");
+ ScopeLogger();
int ret;
if (kProgressTypeByte == progress_type) {
}
PlatformResult CommonNotification::GetPostedTime(notification_h noti_handle, time_t* posted_time) {
- LoggerD("Enter");
+ ScopeLogger();
*posted_time = 0;
if (NOTIFICATION_ERROR_NONE != notification_get_insert_time(noti_handle, posted_time)) {
}
PlatformResult CommonNotification::GetNotiHandle(int id, notification_h* noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
*noti_handle = notification_load(nullptr, id);
if (nullptr == *noti_handle) {
return LogAndCreateResult(ErrorCode::NOT_FOUND_ERR, "Not found or removed notification id");
PlatformResult CommonNotification::GetAppControl(notification_h noti_handle,
app_control_h* app_control) {
- LoggerD("Enter");
+ ScopeLogger();
int ret = notification_get_launch_option(noti_handle, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL,
static_cast<void*>(app_control));
if (NOTIFICATION_ERROR_NONE != ret) {
}
PlatformResult CommonNotification::CreateAppControl(app_control_h* app_control) {
- LoggerD("Enter");
+ ScopeLogger();
int ret = app_control_create(app_control);
if (APP_CONTROL_ERROR_NONE != ret) {
return LogAndCreateResult(ErrorCode::INVALID_VALUES_ERR, "Application create error",
PlatformResult CommonNotification::SetAppControl(notification_h noti_handle,
app_control_h app_control) {
- LoggerD("Enter");
+ ScopeLogger();
int ret = notification_set_launch_option(noti_handle, NOTIFICATION_LAUNCH_OPTION_APP_CONTROL,
static_cast<void*>(app_control));
if (APP_CONTROL_ERROR_NONE != ret) {
PlatformResult CommonNotification::PostNotification(const picojson::object& args, bool is_update,
picojson::object* out_ptr,
GetHandleFromJsonFun getHandle) {
- LoggerD("Enter");
+ ScopeLogger();
notification_h noti_handle = nullptr;
int ret = NOTIFICATION_ERROR_NONE;
int id = NOTIFICATION_PRIV_ID_NONE;
PlatformResult CommonNotification::AddCommonMembersToJson(int id, notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
out["id"] = picojson::value(std::to_string(id));
PlatformResult CommonNotification::AddTypeToJson(notification_h noti_handle, const std::string& key,
picojson::object* out_ptr,
std::string* noti_type_str) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
// Notification type
notification_type_e noti_type = NOTIFICATION_TYPE_NONE;
PlatformResult CommonNotification::AddProgressTypeAndValueToJson(notification_h noti_handle,
const std::string& noti_type_str,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
std::string progress_type;
PlatformResult CommonNotification::AddEventsNumberToJson(notification_h noti_handle,
const std::string& key,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
long number = 0;
PlatformResult CommonNotification::AddDetailInfosToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
picojson::value result_json = picojson::value(picojson::array());
PlatformResult CommonNotification::AddLedOnOffPeriodToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
unsigned long on_period = 0;
PlatformResult CommonNotification::AddPathsArrayToJson(notification_h noti_handle, ImageEnumMap map,
const std::string& key,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
picojson::value result_json = picojson::value(picojson::array());
InformationEnumMap map,
const std::string& key,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
picojson::value result_json = picojson::value(picojson::array());
PlatformResult CommonNotification::AddLedColorToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
std::string color;
PlatformResult CommonNotification::AddSoundPathToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
std::string sound_path;
PlatformResult CommonNotification::AddVibrationToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
bool vibration;
PlatformResult CommonNotification::AddAppControlInfoToJson(notification_h noti_handle,
app_control_h app_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object& out = *out_ptr;
if (app_handle) {
PlatformResult CommonNotification::InitNotiFromJson(const picojson::object& noti_obj,
const std::string& type_key, bool is_update,
notification_h* noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
notification_h tmp_noti = nullptr;
const std::string& status_type = FromJson<std::string>(noti_obj, type_key.c_str());
PlatformResult CommonNotification::SetCommonMembersFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
PlatformResult status =
SetText(noti_handle, NOTIFICATION_TEXT_TYPE_TITLE, FromJson<std::string>(noti_obj, "title"));
notification_image_type_e type,
const std::string& key,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains(key) && !IsNull(noti_obj, key.c_str())) {
const std::string& value_str = FromJson<std::string>(noti_obj, key.c_str());
PlatformResult CommonNotification::SetLedColorFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains("ledColor") && !IsNull(noti_obj, "ledColor")) {
std::string color_str = FromJson<std::string>(noti_obj, "ledColor");
PlatformResult CommonNotification::SetLedOnPeriodFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
unsigned long on_period = static_cast<unsigned long>(FromJson<double>(noti_obj, "ledOnPeriod"));
PlatformResult CommonNotification::SetLedOffPeriodFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
unsigned long off_period = static_cast<unsigned long>(FromJson<double>(noti_obj, "ledOffPeriod"));
unsigned long on_period = 0;
PlatformResult CommonNotification::SetProgressTypeAndValueFromJson(
const picojson::value& noti_value, bool is_update, notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
// progressType
PlatformResult CommonNotification::SetAppControlInfoFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
app_control_h app_control = nullptr;
PlatformResult CommonNotification::SetEventsNumberFromJson(const picojson::value& noti_value,
const std::string& key,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains(key) && !IsNull(noti_obj, key.c_str())) {
PlatformResult CommonNotification::SetDetailInfosFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains("detailInfo") && !IsNull(noti_obj, "detailInfo")) {
const picojson::array& array = FromJson<picojson::array>(noti_obj, "detailInfo");
PlatformResult CommonNotification::SetVibrationFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
bool vibration = FromJson<bool>(noti_obj, "vibration");
PlatformResult CommonNotification::SetSoundPathFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains("soundPath") && !IsNull(noti_obj, "soundPath")) {
PlatformResult CommonNotification::SetPathsArrayFromJson(const picojson::value& noti_value,
ImageEnumMap map, const std::string& key,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains(key) && !IsNull(noti_obj, key.c_str())) {
InformationEnumMap map,
const std::string& key,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains(key) && !IsNull(noti_obj, key.c_str())) {
notification_text_type_e type,
const std::string& key,
notification_h noti_handle) {
- LoggerD("Entered");
+ ScopeLogger();
const picojson::object& noti_obj = noti_value.get<picojson::object>();
if (noti_value.contains(key) && !IsNull(noti_obj, key.c_str())) {
PlatformResult UserNotification::ToJson(int id, notification_h noti_handle,
app_control_h app_handle, picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
PlatformResult ret = AddCommonMembersToJson(id, noti_handle, out_ptr);
CHECK_ERROR(ret);
PlatformResult UserNotification::GetNotiHandleFromJson(const picojson::value& noti_val,
bool is_update,
notification_h* noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::object noti_obj = noti_val.get<picojson::object>();
notification_h tmp_noti = nullptr;
PlatformResult UserNotification::PostUserNotification(const picojson::object& args, bool is_update,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
return PostNotification(args, is_update, out_ptr, GetNotiHandleFromJson);
}
PlatformResult UserNotification::AddTextContentsToJson(notification_h noti_handle,
std::string noti_type_str,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::value text_contents = picojson::value(picojson::object());
picojson::object& text_contents_obj = text_contents.get<picojson::object>();
PlatformResult UserNotification::AddImagesToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::value images_contents = picojson::value(picojson::object());
picojson::object& images_contents_obj = images_contents.get<picojson::object>();
PlatformResult UserNotification::AddThumbnailsToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::value thumbnails_contents = picojson::value(picojson::object());
picojson::object& thumbnails_contents_obj = thumbnails_contents.get<picojson::object>();
PlatformResult UserNotification::AddActionsToJson(notification_h noti_handle,
app_control_h app_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::value actions_contents = picojson::value(picojson::object());
picojson::object& actions_contents_obj = actions_contents.get<picojson::object>();
PlatformResult UserNotification::AddGroupContentsToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::value group_contents = picojson::value(picojson::object());
picojson::object& group_contents_obj = group_contents.get<picojson::object>();
PlatformResult UserNotification::AddLedsToJson(notification_h noti_handle,
picojson::object* out_ptr) {
- LoggerD("Enter");
+ ScopeLogger();
picojson::value leds_contents = picojson::value(picojson::object());
picojson::object& leds_contents_obj = leds_contents.get<picojson::object>();
PlatformResult UserNotification::SetTextContentsFromJson(const picojson::value& noti_value,
bool is_update,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
if (noti_value.contains("textContents") &&
noti_value.get("textContents").is<picojson::object>()) {
LoggerD("nullable member textContents is present - parsing it");
PlatformResult UserNotification::SetImagesFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
if (noti_value.contains("images") && noti_value.get("images").is<picojson::object>()) {
LoggerD("nullable member images is present - parsing it");
const picojson::value& images_value = noti_value.get("images");
PlatformResult UserNotification::SetThumbnailsFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
if (noti_value.contains("thumbnails") && noti_value.get("thumbnails").is<picojson::object>()) {
LoggerD("nullable member thumbnails is present - parsing it");
PlatformResult UserNotification::SetActionsFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
if (noti_value.contains("actions") && noti_value.get("actions").is<picojson::object>()) {
LoggerD("nullable member actions is present - parsing it");
PlatformResult UserNotification::SetGroupContentsFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
if (noti_value.contains("groupContents") &&
noti_value.get("groupContents").is<picojson::object>()) {
PlatformResult UserNotification::SetLedsFromJson(const picojson::value& noti_value,
notification_h noti_handle) {
- LoggerD("Enter");
+ ScopeLogger();
if (noti_value.contains("leds") && noti_value.get("leds").is<picojson::object>()) {
LoggerD("nullable member leds is present - parsing it");