Home
last modified time | relevance | path

Searched refs:badgeStyleValue (Results 1 – 1 of 1) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_request.cpp1539 int32_t badgeStyleValue = parcel.ReadInt32(); in ReadFromParcel() local
1540 if (badgeStyleValue < 0) { in ReadFromParcel()
1541 … ANS_LOGE("Invalid badge style value :%{public}d. It should be greater than 0.", badgeStyleValue); in ReadFromParcel()
1544 if (badgeStyleValue >= static_cast<int>(NotificationRequest::BadgeStyle::ILLEGAL_TYPE)) { in ReadFromParcel()
1545 badgeStyleValue = static_cast<int>(NotificationRequest::BadgeStyle::NONE); in ReadFromParcel()
1549 badgeStyle_ = static_cast<NotificationRequest::BadgeStyle>(badgeStyleValue); in ReadFromParcel()
2135 auto badgeStyleValue = jsonObject.at("badgeIconStyle").get<int32_t>(); in ConvertJsonToEnum() local
2136 target->badgeStyle_ = static_cast<NotificationRequest::BadgeStyle>(badgeStyleValue); in ConvertJsonToEnum()