Home
last modified time | relevance | path

Searched refs:enabled (Results 1 – 25 of 170) 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/frameworks/ans/src/
Dnotification_helper.cpp282 …NotificationHelper::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() argument
284 …Singleton<AnsNotification>::GetInstance()->SetNotificationsEnabledForAllBundles(deviceId, enabled); in SetNotificationsEnabledForAllBundles()
287 …ificationHelper::SetNotificationsEnabledForDefaultBundle(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForDefaultBundle() argument
289 …gleton<AnsNotification>::GetInstance()->SetNotificationsEnabledForDefaultBundle(deviceId, enabled); in SetNotificationsEnabledForDefaultBundle()
293 const NotificationBundleOption &bundleOption, std::string &deviceId, bool enabled) in SetNotificationsEnabledForSpecifiedBundle() argument
296 bundleOption, deviceId, enabled); in SetNotificationsEnabledForSpecifiedBundle()
299 …ionHelper::SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled) in SetShowBadgeEnabledForBundle() argument
301 …ayedSingleton<AnsNotification>::GetInstance()->SetShowBadgeEnabledForBundle(bundleOption, enabled); in SetShowBadgeEnabledForBundle()
304 …onHelper::GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled) in GetShowBadgeEnabledForBundle() argument
306 …ayedSingleton<AnsNotification>::GetInstance()->GetShowBadgeEnabledForBundle(bundleOption, enabled); in GetShowBadgeEnabledForBundle()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
Dadvancednotificationservice_fuzzer.cpp79 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
80 advancedNotificationService.SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
81 advancedNotificationService.SetNotificationsEnabledForAllBundles(stringData, enabled); in DoSomethingInterestingWithMyAPI()
82 …ncedNotificationService.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
83 advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
84 advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
85 advancedNotificationService.GetShowBadgeEnabled(enabled); in DoSomethingInterestingWithMyAPI()
101 advancedNotificationService.IsDistributedEnabled(enabled); in DoSomethingInterestingWithMyAPI()
102 advancedNotificationService.EnableDistributedByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
103 advancedNotificationService.EnableDistributedSelf(enabled); in DoSomethingInterestingWithMyAPI()
[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.h537 static ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled);
550 … static ErrCode SetNotificationsEnabledForDefaultBundle(const std::string &deviceId, bool enabled);
565 const NotificationBundleOption &bundleOption, std::string &deviceId, bool enabled);
574 …c ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled);
583 … ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled);
591 static ErrCode GetShowBadgeEnabled(bool &enabled);
642 static ErrCode IsDistributedEnabled(bool &enabled);
652 static ErrCode EnableDistributed(const bool enabled);
664 …rrCode EnableDistributedByBundle(const NotificationBundleOption &bundleOption, const bool enabled);
675 static ErrCode EnableDistributedSelf(const bool enabled);
[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/frameworks/core/include/
Dans_notification.h535 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled);
548 ErrCode SetNotificationsEnabledForDefaultBundle(const std::string &deviceId, bool enabled);
563 const NotificationBundleOption &bundleOption, const std::string &deviceId, bool enabled);
572 … ErrCode SetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool enabled);
581 … ErrCode GetShowBadgeEnabledForBundle(const NotificationBundleOption &bundleOption, bool &enabled);
589 ErrCode GetShowBadgeEnabled(bool &enabled);
640 ErrCode IsDistributedEnabled(bool &enabled);
650 ErrCode EnableDistributed(const bool enabled);
662 …rrCode EnableDistributedByBundle(const NotificationBundleOption &bundleOption, const bool enabled);
673 ErrCode EnableDistributedSelf(const bool enabled);
[all …]
Dans_manager_interface.h360 virtual ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) = 0;
369 …virtual ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) = …
379 …const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0;
388 …SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0;
397 …etShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &enabled) = 0;
405 virtual ErrCode GetShowBadgeEnabled(bool &enabled) = 0;
518 virtual ErrCode IsDistributedEnabled(bool &enabled) = 0;
526 virtual ErrCode EnableDistributed(bool enabled) = 0;
535 …de EnableDistributedByBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) = 0;
543 virtual ErrCode EnableDistributedSelf(bool enabled) = 0;
[all …]
Dans_manager_proxy.h349 ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) override;
358 … ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
368 … std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) override;
377 …owBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) override;
386 …wBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &enabled) override;
394 ErrCode GetShowBadgeEnabled(bool &enabled) override;
508 ErrCode IsDistributedEnabled(bool &enabled) override;
516 ErrCode EnableDistributed(bool enabled) override;
525 …ableDistributedByBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) override;
533 ErrCode EnableDistributedSelf(bool enabled) override;
[all …]
/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/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/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()
75 enabled = shortNumberInfo.IsEmergencyNumber(formatString, countryIsoCode); in IsEmergencyCallProcessing()
79 enabled = false; in IsEmergencyCallProcessing()
/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, false); 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/reminderrequestalarm_fuzzer/
Dreminderrequestalarm_fuzzer.cpp39 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
40 rrc->SetRepeatDaysOfWeek(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.cpp604 bool enabled = true; variable
606 ErrCode ret = notificationHelper.SetNotificationsEnabledForAllBundles(deviceId, enabled);
619 bool enabled = true; variable
621 ErrCode ret = notificationHelper.SetNotificationsEnabledForDefaultBundle(deviceId, enabled);
634 bool enabled = true; variable
636 ErrCode ret = notificationHelper.SetShowBadgeEnabledForBundle(bundleOption, enabled);
649 bool enabled = true; variable
651 ErrCode ret = notificationHelper.GetShowBadgeEnabledForBundle(bundleOption, enabled);
663 bool enabled = true; variable
665 ErrCode ret = notificationHelper.GetShowBadgeEnabled(enabled);
[all …]
/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/frameworks/core/src/
Dans_manager_stub_invalid.cpp249 ErrCode AnsManagerStub::SetNotificationsEnabledForBundle(const std::string &bundle, bool enabled) in SetNotificationsEnabledForBundle() argument
255 …ode AnsManagerStub::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() argument
262 const std::string &deviceId, const sptr<NotificationBundleOption> &bundleOption, bool enabled) in SetNotificationsEnabledForSpecialBundle() argument
268 …tub::SetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) in SetShowBadgeEnabledForBundle() argument
274 …ub::GetShowBadgeEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &enabled) in GetShowBadgeEnabledForBundle() argument
280 ErrCode AnsManagerStub::GetShowBadgeEnabled(bool &enabled) in GetShowBadgeEnabled() argument
362 ErrCode AnsManagerStub::IsDistributedEnabled(bool &enabled) in IsDistributedEnabled() argument
368 ErrCode AnsManagerStub::EnableDistributed(bool enabled) in EnableDistributed() argument
374 …erStub::EnableDistributedByBundle(const sptr<NotificationBundleOption> &bundleOption, bool enabled) in EnableDistributedByBundle() argument
380 ErrCode AnsManagerStub::EnableDistributedSelf(bool enabled) in EnableDistributedSelf() argument
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
Dnotification_subscriber_manager_branch_test.cpp570 bool enabled = true; variable
575 EXPECT_EQ(advancedNotificationService.SetShowBadgeEnabledForBundle(bundleOption, enabled),
589 bool enabled = true; variable
594 EXPECT_EQ(advancedNotificationService.GetShowBadgeEnabledForBundle(bundleOption, enabled),
654 bool enabled = true; variable
659 EXPECT_EQ(advancedNotificationService.SetNotificationsEnabledForAllBundles(deviceId, enabled),
671 bool enabled = true; variable
675 EXPECT_EQ(advancedNotificationService.SetNotificationsEnabledForAllBundles(deviceId, enabled),
688 bool enabled = true; variable
693 …vancedNotificationService.SetNotificationsEnabledForSpecialBundle(deviceId, bundleOption, enabled),
[all …]
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
Dansmanagerstub_fuzzer.cpp154 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
155 ansManagerStub.SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
156 ansManagerStub.SetNotificationsEnabledForSpecialBundle(stringData, bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
157 ansManagerStub.SetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
158 ansManagerStub.GetShowBadgeEnabledForBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
159 ansManagerStub.GetShowBadgeEnabled(enabled); in DoSomethingInterestingWithMyAPI()
170 ansManagerStub.IsDistributedEnabled(enabled); in DoSomethingInterestingWithMyAPI()
171 ansManagerStub.EnableDistributedByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
172 ansManagerStub.EnableDistributedSelf(enabled); in DoSomethingInterestingWithMyAPI()
173 ansManagerStub.IsDistributedEnableByBundle(bundleOption, enabled); in DoSomethingInterestingWithMyAPI()
[all …]
/base/notification/distributed_notification_service/test/fuzztest/reminderrequestcalendar_fuzzer/
Dreminderrequestcalendar_fuzzer.cpp54 bool enabled = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
55 reminderRequestCalendar.SetDay(days, enabled); in DoSomethingInterestingWithMyAPI()
57 reminderRequestCalendar.SetMonth(months, enabled); in DoSomethingInterestingWithMyAPI()
59 reminderRequestCalendar.SetRepeatDaysOfWeek(enabled, daysOfWeek); in DoSomethingInterestingWithMyAPI()
97 reminderRequestCalendar.PreGetNextTriggerTimeIgnoreSnooze(enabled, enabled); in DoSomethingInterestingWithMyAPI()
/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/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/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/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()
69 notification.SetRemoveAllowed(enabled); in DoSomethingInterestingWithMyAPI()

1234567