Home
last modified time | relevance | path

Searched refs:sound (Results 1 - 19 of 19) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_test.cpp161 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 Dnotification_flags_test.cpp43 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 Dnotificationannex_fuzzer.cpp34 Uri sound(stringData); in DoSomethingInterestingWithMyAPI()
35 notification.SetSound(sound); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_slot_filter.cpp47 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 Dpublishcontinuoustasknotification_fuzzer.cpp58 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 Dpublishnotification_fuzzer.cpp58 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 Dnotification.h60 * @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 Dnotification_slot.h229 * @param sound Specifies the path for the prompt tone.
231 void SetSound(const Uri &sound);
H A Dnotification_request.h78 * 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 Dnotification.cpp286 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 Dnotification_slot.cpp215 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 Dnotification_request.cpp799 ", 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 Dnotification_napi.cpp512 // 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 Dnotification_utils.h221 char* sound; member
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon.cpp176 // 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 Dsubscribe.cpp115 // 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 Dcommon_convert_request.cpp65 // 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 Dnotification_manager_impl.cpp103 .sound = NULL, in GetSlot()
H A Dnotification_utils.cpp900 notificationSlot.sound = MallocCString(slot.GetSound().ToString()); // sound?: string in SetNotificationSlot()
912 free(notificationSlot.sound); in SetNotificationSlot()
914 notificationSlot.sound = nullptr; in SetNotificationSlot()

Completed in 21 milliseconds