Home
last modified time | relevance | path

Searched refs:enabled (Results 1 – 25 of 153) sorted by relevance

1234567

/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_innerkits_module_setting_test.cpp82 bool enabled = false; variable
83 EXPECT_EQ(0, NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled));
84 EXPECT_EQ(true, enabled);
100 bool enabled = false; variable
101 EXPECT_EQ(0, NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled));
102 EXPECT_EQ(false, enabled);
120 bool enabled = false; variable
121 EXPECT_EQ(0, NotificationHelper::IsAllowedNotify(bundleOption, enabled));
122 EXPECT_EQ(true, enabled);
140 bool enabled = false; variable
[all …]
/base/notification/distributed_notification_service/test/fuzztest/setnotificationsenabledforallbundles_fuzzer/
Dsetnotificationsenabledforallbundles_fuzzer.cpp28 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
29 Notification::NotificationHelper::SetNotificationsEnabledForAllBundles(stringData, enabled); in DoSomethingInterestingWithMyAPI()
31 … Notification::NotificationHelper::SetNotificationsEnabledForDefaultBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
37 …::NotificationHelper::SetNotificationsEnabledForSpecifiedBundle(bundleOption, stringData, enabled); in DoSomethingInterestingWithMyAPI()
39 Notification::NotificationHelper::SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
41 … return Notification::NotificationHelper::GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_helper.h466 static ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled);
479 … static ErrCode SetNotificationsEnabledForDefaultBundle(const std::string &deviceId, bool enabled);
494 const NotificationBundleOption &bundleOption, std::string &deviceId, bool enabled);
503 …c ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled);
512 … ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled);
520 static ErrCode GetShowBadgeEnabled(bool &enabled);
571 static ErrCode IsDistributedEnabled(bool &enabled);
581 static ErrCode EnableDistributed(const bool enabled);
593 …rrCode EnableDistributedByBundle(const NotificationBundleOption &bundleOption, const bool enabled);
604 static ErrCode EnableDistributedSelf(const bool enabled);
[all …]
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_helper.cpp244 …NotificationHelper::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() argument
246 …Singleton<AnsNotification>::GetInstance()->SetNotificationsEnabledForAllBundles(deviceId, enabled); in SetNotificationsEnabledForAllBundles()
249 …ificationHelper::SetNotificationsEnabledForDefaultBundle(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForDefaultBundle() argument
251 …gleton<AnsNotification>::GetInstance()->SetNotificationsEnabledForDefaultBundle(deviceId, enabled); in SetNotificationsEnabledForDefaultBundle()
255 const NotificationBundleOption &bundleOption, std::string &deviceId, bool enabled) in SetNotificationsEnabledForSpecifiedBundle() argument
258 bundleOption, deviceId, enabled); in SetNotificationsEnabledForSpecifiedBundle()
261 …ionHelper::SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled) in SetShowBadgeEnabledForBundle() argument
263 …ayedSingleton<AnsNotification>::GetInstance()->SetShowBadgeEnabledForBundle(bundleOption, enabled); in SetShowBadgeEnabledForBundle()
266 …onHelper::GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled) in GetShowBadgeEnabledForBundle() argument
268 …ayedSingleton<AnsNotification>::GetInstance()->GetShowBadgeEnabledForBundle(bundleOption, enabled); in GetShowBadgeEnabledForBundle()
[all …]
/base/notification/distributed_notification_service/services/distributed/src/
Ddistributed_preferences_info.cpp59 void DistributedPreferencesInfo::SetSyncEnabledWithoutApp(const int32_t userId, const bool enabled) in SetSyncEnabledWithoutApp() argument
61 enabledWithoutApp_[userId] = enabled; in SetSyncEnabledWithoutApp()
64 ErrCode DistributedPreferencesInfo::GetSyncEnabledWithoutApp(const int32_t userId, bool &enabled) in GetSyncEnabledWithoutApp() argument
68 enabled = false; in GetSyncEnabledWithoutApp()
71 enabled = iter->second; in GetSyncEnabledWithoutApp()
72 ANS_LOGI("userId(%{public}d) enabled = %{public}d", userId, enabled); in GetSyncEnabledWithoutApp()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
Dadvancednotificationservice_fuzzer.cpp81 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
82 advancedNotificationService.SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
83 advancedNotificationService.SetNotificationsEnabledForAllBundles(stringData, enabled); in DoSomethingInterestingWithMyAPI()
84 …ncedNotificationService.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
85 advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
86 advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
87 advancedNotificationService.GetShowBadgeEnabled(enabled); in DoSomethingInterestingWithMyAPI()
103 advancedNotificationService.IsDistributedEnabled(enabled); in DoSomethingInterestingWithMyAPI()
104 advancedNotificationService.EnableDistributedByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
105 advancedNotificationService.EnableDistributedSelf(enabled); in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/enabledistributed_fuzzer/
Denabledistributed_fuzzer.cpp27 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
28 Notification::NotificationHelper::EnableDistributed(enabled); in DoSomethingInterestingWithMyAPI()
35 Notification::NotificationHelper::EnableDistributedByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
37 Notification::NotificationHelper::EnableDistributedSelf(enabled); in DoSomethingInterestingWithMyAPI()
39 Notification::NotificationHelper::IsDistributedEnableByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationrequest_fuzzer/
Dnotificationrequest_fuzzer.cpp35 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
36 request.SetInProgress(enabled); in DoSomethingInterestingWithMyAPI()
38 request.SetUnremovable(enabled); in DoSomethingInterestingWithMyAPI()
53 request.SetShowDeliveryTime(enabled); in DoSomethingInterestingWithMyAPI()
62 actionButton->SetAutoCreatedReplies(enabled); in DoSomethingInterestingWithMyAPI()
63 actionButton->SetContextDependent(enabled); in DoSomethingInterestingWithMyAPI()
67 request.SetPermitSystemGeneratedContextualActionButtons(enabled); in DoSomethingInterestingWithMyAPI()
/base/telephony/cellular_call/services/common/src/
Demergency_utils.cpp26 int32_t EmergencyUtils::IsEmergencyCall(int32_t slotId, const std::string &phoneNum, bool &enabled) in IsEmergencyCall() argument
43 return IsEmergencyCallProcessing(slotId, phoneNum, enabled); in IsEmergencyCall()
46 …ncyUtils::IsEmergencyCallProcessing(int32_t slotId, const std::string &formatString, bool &enabled) in IsEmergencyCallProcessing() argument
48 enabled = true; in IsEmergencyCallProcessing()
72 enabled = shortNumberInfo.IsEmergencyNumber(formatString, countryIsoCode); in IsEmergencyCallProcessing()
76 enabled = false; in IsEmergencyCallProcessing()
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_notification.h465 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled);
478 ErrCode SetNotificationsEnabledForDefaultBundle(const std::string &deviceId, bool enabled);
493 const NotificationBundleOption &bundleOption, const std::string &deviceId, bool enabled);
502 … ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled);
511 … ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled);
519 ErrCode GetShowBadgeEnabled(bool &enabled);
570 ErrCode IsDistributedEnabled(bool &enabled);
580 ErrCode EnableDistributed(const bool enabled);
592 …rrCode EnableDistributedByBundle(const NotificationBundleOption &bundleOption, const bool enabled);
603 ErrCode EnableDistributedSelf(const bool enabled);
[all …]
Dans_manager_interface.h330 virtual ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) = 0;
339 …virtual ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) = …
349 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0;
358 …SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0;
367 …etShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &enabled) = 0;
375 virtual ErrCode GetShowBadgeEnabled(bool &enabled) = 0;
470 virtual ErrCode IsDistributedEnabled(bool &enabled) = 0;
478 virtual ErrCode EnableDistributed(bool enabled) = 0;
487 …de EnableDistributedByBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0;
495 virtual ErrCode EnableDistributedSelf(bool enabled) = 0;
[all …]
Dans_manager_proxy.h319 ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) override;
328 … ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
338 … std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) override;
347 …owBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) override;
356 …wBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &enabled) override;
364 ErrCode GetShowBadgeEnabled(bool &enabled) override;
459 ErrCode IsDistributedEnabled(bool &enabled) override;
467 ErrCode EnableDistributed(bool enabled) override;
476 …ableDistributedByBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) override;
484 ErrCode EnableDistributedSelf(bool enabled) override;
[all …]
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/
Dsetdonotdisturbdate_fuzzer.cpp43 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
44 Notification::NotificationHelper::SetEnabledForBundleSlot(bundleOption, slotType, enabled); in DoSomethingInterestingWithMyAPI()
46 Notification::NotificationHelper::GetEnabledForBundleSlot(bundleOption, slotType, enabled); in DoSomethingInterestingWithMyAPI()
48 Notification::NotificationHelper::SetSyncNotificationEnabledWithoutApp(userId, enabled); in DoSomethingInterestingWithMyAPI()
50 Notification::NotificationHelper::GetSyncNotificationEnabledWithoutApp(userId, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/cancelgroup_fuzzer/
Dcancelgroup_fuzzer.cpp27 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
28 Notification::NotificationHelper::GetShowBadgeEnabled(enabled); in DoSomethingInterestingWithMyAPI()
42 Notification::NotificationHelper::DoesSupportDoNotDisturbMode(enabled); in DoSomethingInterestingWithMyAPI()
44 return Notification::NotificationHelper::IsDistributedEnabled(enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationslot_fuzzer/
Dnotificationslot_fuzzer.cpp30 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
43 notificationSlot.EnableBypassDnd(enabled); in DoSomethingInterestingWithMyAPI()
45 notificationSlot.EnableBadge(enabled); in DoSomethingInterestingWithMyAPI()
46 notificationSlot.SetEnable(enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestalarm_fuzzer/
Dreminderrequestalarm_fuzzer.cpp39 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
40 rrc->SetDaysOfWeek(enabled, daysOfWeek); in DoSomethingInterestingWithMyAPI()
48 rrc->PreGetNextTriggerTimeIgnoreSnooze(enabled, enabled); in DoSomethingInterestingWithMyAPI()
50 rrc->GetNextTriggerTime(enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_helper_test.cpp601 bool enabled = true; variable
603 ErrCode ret = notificationHelper.SetNotificationsEnabledForAllBundles(deviceId, enabled);
616 bool enabled = true; variable
618 ErrCode ret = notificationHelper.SetNotificationsEnabledForDefaultBundle(deviceId, enabled);
631 bool enabled = true; variable
633 ErrCode ret = notificationHelper.SetShowBadgeEnabledForBundle(bundleOption, enabled);
646 bool enabled = true; variable
648 ErrCode ret = notificationHelper.GetShowBadgeEnabledForBundle(bundleOption, enabled);
660 bool enabled = true; variable
662 ErrCode ret = notificationHelper.GetShowBadgeEnabled(enabled);
[all …]
/base/notification/distributed_notification_service/test/fuzztest/enablednotificationcallbackdata_fuzzer/
Denablednotificationcallbackdata_fuzzer.cpp31 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
32 …ication::EnabledNotificationCallbackData enabledNotificationCallbackData(stringData, uid, enabled); in DoSomethingInterestingWithMyAPI()
38 enabledNotificationCallbackData.SetEnable(enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
Dansmanagerstub_fuzzer.cpp153 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
154 ansManagerStub.SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
155 ansManagerStub.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
156 ansManagerStub.SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
157 ansManagerStub.GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
158 ansManagerStub.GetShowBadgeEnabled(enabled); in DoSomethingInterestingWithMyAPI()
169 ansManagerStub.IsDistributedEnabled(enabled); in DoSomethingInterestingWithMyAPI()
170 ansManagerStub.EnableDistributedByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
171 ansManagerStub.EnableDistributedSelf(enabled); in DoSomethingInterestingWithMyAPI()
172 ansManagerStub.IsDistributedEnableByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/settemplate_fuzzer/
Dsettemplate_fuzzer.cpp33 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
34 request.SetTapDismissed(enabled); in DoSomethingInterestingWithMyAPI()
43 request.SetFloatingIcon(enabled); in DoSomethingInterestingWithMyAPI()
45 request.SetProgressBar(notificationId, notificationId, enabled); in DoSomethingInterestingWithMyAPI()
62 request.SetDistributed(enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/reminderrequest_fuzzer/
Dreminderrequest_fuzzer.cpp44 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
45 reminderRequest.SetExpired(enabled); in DoSomethingInterestingWithMyAPI()
51 reminderRequest.OnClose(enabled); in DoSomethingInterestingWithMyAPI()
61 reminderRequest.OnShow(enabled, enabled, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
Dnotification_subscriber_manager_branch_test.cpp578 bool enabled = true; variable
583 EXPECT_EQ(advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled),
597 bool enabled = true; variable
602 EXPECT_EQ(advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled),
668 bool enabled = true; variable
675 EXPECT_EQ(advancedNotificationService.SetNotificationsEnabledForAllBundles(deviceId, enabled),
687 bool enabled = true; variable
693 EXPECT_EQ(advancedNotificationService.SetNotificationsEnabledForAllBundles(deviceId, enabled),
706 bool enabled = true; variable
713 …vancedNotificationService.SetNotificationsEnabledForSpecialBundle(deviceId, bundleOption, enabled),
[all …]
/base/notification/distributed_notification_service/test/fuzztest/reminderrequesttimer_fuzzer/
Dreminderrequesttimer_fuzzer.cpp33 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
34 reminderRequestTimer.PreGetNextTriggerTimeIgnoreSnooze(enabled, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/common_event_service/test/fuzztest/eventreceiveproxy_fuzzer/
Deventreceiveproxy_fuzzer.cpp31 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
34 result->NotifyEvent(commonEventData, enabled, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/readfromparcel_fuzzer/
Dreadfromparcel_fuzzer.cpp50 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
51 notification.SetEnableSound(enabled); in DoSomethingInterestingWithMyAPI()
52 notification.SetEnableLight(enabled); in DoSomethingInterestingWithMyAPI()
53 notification.SetEnableVibration(enabled); in DoSomethingInterestingWithMyAPI()
70 notification.SetRemoveAllowed(enabled); in DoSomethingInterestingWithMyAPI()

1234567