/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_test.cpp | 161 Uri sound = Uri("sound");
in HWTEST_F() local 165 rrc->SetSound(sound);
in HWTEST_F() 167 EXPECT_EQ(rrc->GetSound(), sound);
in HWTEST_F() 323 "receiverUserId = -1, updateDeadLine = 0, finishDeadLine = 0, sound = , unifiedGroupInfo_ = null }, postTime = 0, "
in HWTEST_F() 324 "sound = nullptr, vibrationStyle = [], updateTimer = 0, finishTimer = 0, archiveTimer = 0 }";
in HWTEST_F() 406 Uri sound = Uri("sound");
in HWTEST_F() local 410 rrc->SetSound(sound);
in HWTEST_F() 423 Uri sound in HWTEST_F() local 502 Uri sound = Uri("sound"); HWTEST_F() local 519 Uri sound = Uri("sound"); HWTEST_F() local 542 auto sound = std::make_shared<Uri>("sound"); HWTEST_F() local 563 auto sound = std::make_shared<Uri>("sound"); HWTEST_F() local [all...] |
H A D | notification_flags_test.cpp | 43 NotificationConstant::FlagStatus sound =NotificationConstant::FlagStatus(1);
in HWTEST_F() local 45 rrc->SetSoundEnabled(sound);
in HWTEST_F() 46 EXPECT_EQ(rrc->IsSoundEnabled(), sound);
in HWTEST_F()
|
/base/notification/distributed_notification_service/test/fuzztest/notificationannex_fuzzer/ |
H A D | notificationannex_fuzzer.cpp | 34 Uri sound(stringData);
in DoSomethingInterestingWithMyAPI() 35 notification.SetSound(sound);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_slot_filter.cpp | 47 auto sound = record->slot->GetSound(); in OnPublish() local 48 if (!sound.ToString().empty()) { in OnPublish()
|
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/ |
H A D | publishcontinuoustasknotification_fuzzer.cpp | 58 Notification::NotificationConstant::FlagStatus sound =
in DoSomethingInterestingWithMyAPI() local 60 notificationFlages->SetSoundEnabled(sound);
in DoSomethingInterestingWithMyAPI() 61 notificationFlages->SetVibrationEnabled(sound);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/publishnotification_fuzzer/ |
H A D | publishnotification_fuzzer.cpp | 58 Notification::NotificationConstant::FlagStatus sound = in DoSomethingInterestingWithMyAPI() local 60 notificationFlages->SetSoundEnabled(sound); in DoSomethingInterestingWithMyAPI() 61 notificationFlages->SetVibrationEnabled(sound); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification.h | 60 * @brief Obtains the sound enabled or not, set by ANS. 62 * @return Returns true if sound is set. 152 * @brief Obtains the sound uri. 154 * @return Returns the sound set by ANS. 332 void SetSound(const Uri &sound);
|
H A D | notification_slot.h | 229 * @param sound Specifies the path for the prompt tone. 231 void SetSound(const Uri &sound);
|
H A D | notification_request.h | 78 * all notifications in a group have sound or vibration if sound or vibration is enabled 83 * child notifications have sound or vibration but the overview notification is muted (no sound or vibration) 84 * in a group if sound or vibration is enabled for the associated NotificationSlot objects. 88 * the overview notification has sound or vibration but child notifications are muted (no sound or vibration) 89 * in a group if sound or vibration is enabled for the associated NotificationSlot objects. 427 * which means that sound or vibration will no longer be played 436 * If a notification alerts only once, sound o [all...] |
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification.cpp | 286 ANS_LOGE("Can't write sound"); in MarshallingString() 516 void Notification::SetSound(const Uri &sound) in SetSound() argument 518 sound_ = std::make_shared<Uri>(sound.ToString()); in SetSound() 558 ", sound = " + (sound_ == nullptr ? "nullptr" : sound_->ToString()) + in Dump()
|
H A D | notification_slot.cpp | 215 void NotificationSlot::SetSound(const Uri &sound) in SetSound() argument 217 sound_ = sound; in SetSound() 304 ", sound = " + sound_.ToString() + in Dump() 384 ANS_LOGE("Failed to write sound"); in Marshalling()
|
H A D | notification_request.cpp | 799 ", sound = " + sound_ + ", unifiedGroupInfo_ = " + in Dump() 1075 ANS_LOGE("Failed to write sound"); in Marshalling() 1545 ANS_LOGE("Failed to read sound"); in ReadFromParcel() 2737 void NotificationRequest::SetSound(const std::string &sound) in SetSound() argument 2739 sound_ = sound; in SetSound()
|
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi.cpp | 512 // sound?: string in GetNotificationSlotByString() 513 NAPI_CALL(env, napi_has_named_property(env, value, "sound", &hasProperty)); in GetNotificationSlotByString() 515 std::string sound; in GetNotificationSlotByString() local 517 napi_get_named_property(env, value, "sound", &nobj); in GetNotificationSlotByString() 524 sound = str; in GetNotificationSlotByString() 525 LBSLOGI(NAPI_UTILS, "sound is: %{public}s", sound.c_str()); in GetNotificationSlotByString() 526 slot.SetSound(Uri(sound)); in GetNotificationSlotByString()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 221 char* sound; member
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common.cpp | 176 // sound?: string in SetNotificationSlot() 178 napi_set_named_property(env, result, "sound", value); in SetNotificationSlot() 782 // sound?: string in GetNotificationSlotByString() 783 NAPI_CALL(env, napi_has_named_property(env, value, "sound", &hasProperty)); in GetNotificationSlotByString() 785 std::string sound; in GetNotificationSlotByString() local 787 napi_get_named_property(env, value, "sound", &nobj); in GetNotificationSlotByString() 794 sound = str; in GetNotificationSlotByString() 795 ANS_LOGI("sound is: %{public}s", sound.c_str()); in GetNotificationSlotByString() 796 slot.SetSound(Uri(sound)); in GetNotificationSlotByString() [all...] |
H A D | subscribe.cpp | 115 // sound?: string in SetSubscribeCallbackData() 117 std::string sound; in SetSubscribeCallbackData() local 119 sound = request->GetSound().ToString(); in SetSubscribeCallbackData() 121 napi_create_string_utf8(env, sound.c_str(), NAPI_AUTO_LENGTH, &soundResult); in SetSubscribeCallbackData() 122 napi_set_named_property(env, result, "sound", soundResult); in SetSubscribeCallbackData()
|
H A D | common_convert_request.cpp | 65 // readonly sound?: string in SetNotificationRequestByString() 67 napi_set_named_property(env, result, "sound", value); in SetNotificationRequestByString() 615 // sound?: string in GetNotificationRequestByString() 1324 NAPI_CALL(env, napi_has_named_property(env, value, "sound", &hasProperty)); in GetNotificationSound() 1329 auto soundValue = AppExecFwk::GetPropertyValueByPropertyName(env, value, "sound", napi_string); in GetNotificationSound() 1331 ANS_LOGE("Wrong argument type. String sound expected."); in GetNotificationSound() 1335 std::string sound = AppExecFwk::UnwrapStringFromJS(env, soundValue); in GetNotificationSound() local 1336 request.SetSound(sound); in GetNotificationSound()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_manager_impl.cpp | 103 .sound = NULL, in GetSlot()
|
H A D | notification_utils.cpp | 900 notificationSlot.sound = MallocCString(slot.GetSound().ToString()); // sound?: string in SetNotificationSlot() 912 free(notificationSlot.sound); in SetNotificationSlot() 914 notificationSlot.sound = nullptr; in SetNotificationSlot()
|