Home
last modified time | relevance | path

Searched refs:notificationFlags (Results 1 - 7 of 7) sorted by relevance

/base/notification/distributed_notification_service/test/fuzztest/notificationflags_fuzzer/
H A Dnotificationflags_fuzzer.cpp26 Notification::NotificationFlags notificationFlags; in DoSomethingInterestingWithMyAPI() local
28 notificationFlags.IsSoundEnabled(); in DoSomethingInterestingWithMyAPI()
30 notificationFlags.IsVibrationEnabled(); in DoSomethingInterestingWithMyAPI()
32 notificationFlags.Dump(); in DoSomethingInterestingWithMyAPI()
38 notificationFlags.ToJson(jsonObject); in DoSomethingInterestingWithMyAPI()
39 notificationFlags.FromJson(jsonObject); in DoSomethingInterestingWithMyAPI()
42 notificationFlags.Unmarshalling(parcel); in DoSomethingInterestingWithMyAPI()
43 notificationFlags.ReadFromParcel(parcel); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h203 CNotificationFlags notificationFlags; member
328 CNotificationFlags &notificationFlags);
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_live_view_service.cpp88 auto notificationFlags = record->request->GetFlags(); in RecoverLiveViewFromDb()
89 notificationFlags->SetSoundEnabled(NotificationConstant::FlagStatus::CLOSE); in RecoverLiveViewFromDb()
90 notificationFlags->SetVibrationEnabled(NotificationConstant::FlagStatus::CLOSE); in RecoverLiveViewFromDb()
91 record->request->SetFlags(notificationFlags); in RecoverLiveViewFromDb()
93 record->request->GetKey().c_str(), notificationFlags->GetReminderFlags()); in RecoverLiveViewFromDb()
H A Dadvanced_notification_utils.cpp340 std::shared_ptr<NotificationFlags> notificationFlags, std::stringstream &stream) in ExtendDumpForFlags()
342 if (notificationFlags == nullptr) { in ExtendDumpForFlags()
343 ANS_LOGD("The notificationFlags is nullptr."); in ExtendDumpForFlags()
346 stream << "\t\tReminderFlags : " << notificationFlags->GetReminderFlags() << "\n"; in ExtendDumpForFlags()
348 if (notificationFlags->IsSoundEnabled() == NotificationConstant::FlagStatus::OPEN) { in ExtendDumpForFlags()
353 if (notificationFlags->IsVibrationEnabled() == NotificationConstant::FlagStatus::OPEN) { in ExtendDumpForFlags()
357 stream << "\t\tLockScreenVisbleness : " << notificationFlags->IsLockScreenVisblenessEnabled() << "\n"; in ExtendDumpForFlags()
358 stream << "\t\tBanner : " << notificationFlags->IsBannerEnabled() << "\n"; in ExtendDumpForFlags()
359 stream << "\t\tLightScreen : " << notificationFlags->IsLightScreenEnabled() << "\n"; in ExtendDumpForFlags()
360 stream << "\t\tStatusIcon : " << notificationFlags in ExtendDumpForFlags()
339 ExtendDumpForFlags( std::shared_ptr<NotificationFlags> notificationFlags, std::stringstream &stream) ExtendDumpForFlags() argument
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp1535 CNotificationFlags &notificationFlags) in SetNotificationFlags()
1541 notificationFlags.soundEnabled = static_cast<int32_t>(flags->IsSoundEnabled()); in SetNotificationFlags()
1542 notificationFlags.vibrationEnabled = static_cast<int32_t>(flags->IsVibrationEnabled()); in SetNotificationFlags()
1561 // readonly notificationFlags?: NotificationFlags in SetNotificationRequestByCustom()
1564 if (!SetNotificationFlags(flags, notificationRequest.notificationFlags)) { in SetNotificationRequestByCustom()
1533 SetNotificationFlags( const std::shared_ptr<NotificationFlags> &flags, CNotificationFlags &notificationFlags) SetNotificationFlags() argument
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dsubscribe.cpp406 auto notificationFlags = request->GetNotificationRequest().GetFlags(); in OnConsumed() local
409 notificationFlags == nullptr ? "null" : notificationFlags->Dump().c_str()); in OnConsumed()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_request.cpp792 ", notificationFlags = " + (notificationFlags_ ? "not null" : "null") + in Dump()
1751 ANS_LOGE("Failed to read notificationFlags"); in ReadFromParcel()
1763 std::shared_ptr<NotificationFlags> notificationFlags = in ReadFromParcel() local
1765 (*notificationFlagsOfDevices_)[deviceType] = notificationFlags; in ReadFromParcel()
2031 ANS_LOGE("Cannot convert notificationFlags to JSON"); in ConvertObjectsToJson()
2034 jsonObject["notificationFlags"] = flagsObj; in ConvertObjectsToJson()
2373 if (jsonObject.find("notificationFlags") != jsonEnd) { in ConvertJsonToNotificationFlags()
2374 auto flagsObj = jsonObject.at("notificationFlags"); in ConvertJsonToNotificationFlags()
2378 ANS_LOGE("Failed to parse notificationFlags!"); in ConvertJsonToNotificationFlags()

Completed in 15 milliseconds