| /base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
| D | enabled_notification_callback_data_test.cpp | 43 std::string bundle = "Bundle"; variable 46 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); 47 rrc->SetBundle(bundle); 48 EXPECT_EQ(rrc->GetBundle(), bundle); 59 std::string bundle = "Bundle"; variable 62 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); 75 std::string bundle = "Bundle"; variable 78 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); 91 std::string bundle = "Bundle"; variable 95 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); [all …]
|
| /base/notification/distributed_notification_service/services/ans/test/unittest/ |
| D | advanced_notification_slot_service_test.cpp | 126 sptr<NotificationBundleOption> bundle = nullptr; variable 127 …EXPECT_EQ(advancedNotificationService_->GetSlotsByBundle(bundle, slots), (int)ERR_ANS_INVALID_BUND… 139 sptr<NotificationBundleOption> bundle = new NotificationBundleOption("test", 1); variable 141 …EXPECT_EQ(advancedNotificationService_->GetSlotsByBundle(bundle, slots), (int)ERR_ANS_INVALID_PARA… 153 sptr<NotificationBundleOption> bundle = nullptr; variable 154 … EXPECT_EQ(advancedNotificationService_->UpdateSlots(bundle, slots), (int)ERR_ANS_INVALID_BUNDLE); 156 bundle = new NotificationBundleOption("test", 1); 158 EXPECT_EQ(advancedNotificationService_->UpdateSlots(bundle, slots), (int)ERR_ANS_INVALID_PARAM); 174 sptr<NotificationBundleOption> bundle = new NotificationBundleOption("test", 1); variable 175 auto ret = advancedNotificationService_->UpdateSlots(bundle, slots); [all …]
|
| D | advanced_notification_utils_test.cpp | 60 void TestAddNotification(int notificationId, const sptr<NotificationBundleOption> &bundle); 124 …AnsUtilsTest::TestAddNotification(int notificationId, const sptr<NotificationBundleOption> &bundle) in TestAddNotification() argument 134 auto record = advancedNotificationService_->MakeNotificationRecord(request, bundle); in TestAddNotification() 234 sptr<NotificationBundleOption> bundle; variable 237 bundle, notificationId, label, keys, newRequest), 266 sptr<NotificationBundleOption> bundle = new NotificationBundleOption("test", 1); variable 267 auto record = advancedNotificationService_->MakeNotificationRecord(oldRequest, bundle); 277 EXPECT_EQ(advancedNotificationService_->GetActiveNotificationByFilter(bundle, 281 EXPECT_EQ(advancedNotificationService_->GetActiveNotificationByFilter(bundle, 285 EXPECT_EQ(advancedNotificationService_->GetActiveNotificationByFilter(bundle, [all …]
|
| D | advanced_notification_publish_service_test.cpp | 50 void TestAddNotification(int notificationId, const sptr<NotificationBundleOption> &bundle); 81 …hServiceTest::TestAddNotification(int notificationId, const sptr<NotificationBundleOption> &bundle) in TestAddNotification() argument 91 auto record = advancedNotificationService_->MakeNotificationRecord(request, bundle); in TestAddNotification() 162 …sptr<NotificationBundleOption> bundle = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, NON_SYST… variable 164 auto ret = advancedNotificationService_->DeleteByBundle(bundle); 176 auto bundle = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, NON_SYSTEM_APP_UID); variable 177 TestAddNotification(1, bundle); 178 auto ret = advancedNotificationService_->DeleteByBundle(bundle); 221 …sptr<NotificationBundleOption> bundle = new NotificationBundleOption(TEST_DEFUALT_BUNDLE, NON_SYST… variable 223 auto ret = advancedNotificationService_->SetShowBadgeEnabledForBundle(bundle, true); [all …]
|
| D | bundle_manager_helper_test.cpp | 104 std::string bundle = "Bundle"; in HWTEST_F() local 108 bool result = bundleManagerHelper.GetBundleInfoByBundleName(bundle, userId, bundleInfo); in HWTEST_F() 120 std::string bundle = "Bundle"; in HWTEST_F() local 123 int32_t result = bundleManagerHelper.GetDefaultUidByBundleName(bundle, userId); in HWTEST_F() 135 std::string bundle = "Bundle"; in HWTEST_F() local 138 bool result = bundleManagerHelper.GetDistributedNotificationEnabled(bundle, userId); in HWTEST_F() 150 std::string bundle = "Bundle"; in HWTEST_F() local 156 bool result = bundleManagerHelper->GetDistributedNotificationEnabled(bundle, userId); in HWTEST_F()
|
| D | advanced_notification_live_view_service_test.cpp | 86 sptr<NotificationBundleOption> bundle = new NotificationBundleOption("test", 1); variable 88 auto record = advancedNotificationService_->MakeNotificationRecord(request, bundle); 90 { .request = record->request, .bundleOption = bundle}; 121 sptr<NotificationBundleOption> bundle = new NotificationBundleOption("test", 1); variable 124 { .request = request, .bundleOption = bundle}; 162 auto bundle = new NotificationBundleOption("test", 1); variable 164 { .request = request, .bundleOption = bundle};
|
| /base/request/request/services/service/request/src/service/command/ |
| D | search.rs | 29 let mut bundle: String = data.read()?; in execute() localVariable 32 bundle = get_calling_bundle(); in execute() 33 debug!("Service search: bundle change: {}", bundle); in execute() 35 debug!("Service search: bundle is {}", bundle); in execute() 54 bundle, in execute()
|
| /base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/ |
| D | provision_verify_test.cpp | 48 "bundle-info": { 52 "bundle-name": "com.test1_1", 68 "bundle-info": { 72 "bundle-name": "com.test2", 88 "bundle-info": { 92 "bundle-name": "com.test2", 108 "bundle-info": { 112 "bundle-name": "com.test3", 133 "bundle-info": { 137 "bundle-name": "com.test6", [all …]
|
| /base/notification/distributed_notification_service/services/ans/test/unittest/bundle_manager_helper_branch_test/ |
| D | bundle_manager_helper_branch_test.cpp | 101 std::string bundle = "aa"; variable 104 EXPECT_EQ(false, bundleManagerHelper.GetBundleInfoByBundleName(bundle, userId, bundleInfo)); 117 std::string bundle = "aa"; variable 120 EXPECT_EQ(false, bundleManagerHelper.GetBundleInfoByBundleName(bundle, userId, bundleInfo)); 212 std::string bundle = "aa"; variable 214 EXPECT_EQ(-1, bundleManagerHelper.GetDefaultUidByBundleName(bundle, userId)); 226 std::string bundle = "aa"; variable 228 EXPECT_EQ(-1, bundleManagerHelper.GetDefaultUidByBundleName(bundle, userId));
|
| /base/notification/distributed_notification_service/services/ans/src/ |
| D | advanced_notification_publish_service.cpp | 44 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in SetDefaultNotificationEnabled() local 45 if (bundle == nullptr) { in SetDefaultNotificationEnabled() 49 …new (std::nothrow) EnabledNotificationCallbackData(bundle->GetBundleName(), bundle->GetUid(), enab… in SetDefaultNotificationEnabled() 56 … result = NotificationPreferences::GetInstance().SetNotificationsEnabledForBundle(bundle, enabled); in SetDefaultNotificationEnabled() 60 result = RemoveAllNotifications(bundle); in SetDefaultNotificationEnabled() 64 PublishSlotChangeCommonEvent(bundle); in SetDefaultNotificationEnabled() 332 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in DeleteByBundle() local 333 if (bundle == nullptr) { in DeleteByBundle() 345 std::vector<std::string> keys = GetNotificationKeys(bundle); in DeleteByBundle() 456 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in SetShowBadgeEnabledForBundle() local [all …]
|
| D | bundle_manager_helper.cpp | 51 std::string bundle; in GetBundleNameByUid() local 59 bundleMgr_->GetNameForUid(uid, bundle); in GetBundleNameByUid() 63 return bundle; in GetBundleNameByUid() 100 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument 110 …ret = bundleMgr_->GetBundleInfo(bundle, AppExecFwk::BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleI… in GetBundleInfoByBundleName() 146 int32_t BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t use… in GetDefaultUidByBundleName() argument 156 uid = bundleMgr_->GetUidByBundleName(bundle, userId); in GetDefaultUidByBundleName() 158 … ANS_LOGW("get invalid uid of bundle %{public}s in userId %{public}d", bundle.c_str(), userId); in GetDefaultUidByBundleName()
|
| D | notification_dialog_manager.cpp | 86 const sptr<NotificationBundleOption>& bundle, in RequestEnableNotificationDailog() argument 90 if (bundle == nullptr || callback == nullptr) { in RequestEnableNotificationDailog() 93 if (!AddDialogInfoIfNotExist(bundle, callback)) { in RequestEnableNotificationDailog() 100 bundle->GetUid(), in RequestEnableNotificationDailog() 105 RemoveDialogInfoByBundleOption(bundle, dialogInfoRemoved); in RequestEnableNotificationDailog() 139 const sptr<NotificationBundleOption>& bundle, in AddDialogInfoIfNotExist() argument 143 std::string name = bundle->GetBundleName(); in AddDialogInfoIfNotExist() 152 dialogInfo->bundleOption = bundle; in AddDialogInfoIfNotExist() 173 …ficationDialogManager::RemoveDialogInfoByBundleOption(const sptr<NotificationBundleOption>& bundle, in RemoveDialogInfoByBundleOption() argument 177 std::string name = bundle->GetBundleName(); in RemoveDialogInfoByBundleOption()
|
| D | advanced_notification_slot_service.cpp | 128 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in GetSlotsByBundle() local 129 if (bundle == nullptr) { in GetSlotsByBundle() 141 result = NotificationPreferences::GetInstance().GetNotificationAllSlots(bundle, slots); in GetSlotsByBundle() 167 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in UpdateSlots() local 168 if (bundle == nullptr) { in UpdateSlots() 179 result = NotificationPreferences::GetInstance().UpdateNotificationSlots(bundle, slots); in UpdateSlots() 187 PublishSlotChangeCommonEvent(bundle); in UpdateSlots() 326 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in GetSlotFlagsAsBundle() local 327 if (bundle == nullptr) { in GetSlotFlagsAsBundle() 339 …result = NotificationPreferences::GetInstance().GetNotificationSlotFlagsForBundle(bundle, slotFlag… in GetSlotFlagsAsBundle() [all …]
|
| D | advanced_notification_reminder_service.cpp | 65 std::string bundle = GetClientBundleName(); in PublishReminder() local 66 reminder->InitCreatorBundleName(bundle); in PublishReminder() 78 if (wantAgentName != bundle && wantAgentName != "") { in PublishReminder() 79 ANSR_LOGI("Set agent reminder, bundle:%{public}s, wantAgentName:%{public}s", bundle.c_str(), in PublishReminder() 82 } else if (msWantAgentName != bundle && msWantAgentName != "") { in PublishReminder() 83 … ANSR_LOGI("Set agent reminder, bundle:%{public}s, msWantAgentName:%{public}s", bundle.c_str(), in PublishReminder()
|
| D | advanced_notification_utils.cpp | 106 std::string bundle = GetClientBundleName(); in GenerateBundleOption() local 107 if (bundle.empty()) { in GenerateBundleOption() 111 bundleOption = new (std::nothrow) NotificationBundleOption(bundle, uid); in GenerateBundleOption() 260 std::string bundle = GetClientBundleName(); in IsAllowedGetNotificationByFilter() local 261 if (bundle.empty()) { in IsAllowedGetNotificationByFilter() 266 if (uid == record->bundleOption->GetUid() && bundle == record->bundleOption->GetBundleName()) { in IsAllowedGetNotificationByFilter() 285 sptr<NotificationBundleOption> bundle = GenerateValidBundleOption(bundleOption); in GetActiveNotificationByFilter() local 286 if (bundle == nullptr) { in GetActiveNotificationByFilter() 294 …auto record = GetRecordFromNotificationList(notificationId, bundle->GetUid(), label, bundle->GetBu… in GetActiveNotificationByFilter() 333 ErrCode AdvancedNotificationService::ActiveNotificationDump(const std::string& bundle, int32_t user… in ActiveNotificationDump() argument [all …]
|
| /base/request/request/services/service/request/c_wrapper/source/ |
| D | common_event_notify.cpp | 32 std::string bundle(bundleName, len); in PublishStateChangeEvents() local 35 want.SetBundle(bundle); in PublishStateChangeEvents() 40 publishInfo.SetBundleName(bundle); in PublishStateChangeEvents()
|
| /base/notification/distributed_notification_service/frameworks/ans/src/ |
| D | badge_number_callback_data.cpp | 26 BadgeNumberCallbackData::BadgeNumberCallbackData(const std::string &bundle, int32_t uid, int32_t ba… in BadgeNumberCallbackData() argument 27 : bundle_(bundle), uid_(uid), badgeNumber_(badgeNumber) in BadgeNumberCallbackData() 30 void BadgeNumberCallbackData::SetBundle(const std::string &bundle) in SetBundle() argument 32 bundle_ = bundle; in SetBundle()
|
| D | enabled_notification_callback_data.cpp | 26 EnabledNotificationCallbackData::EnabledNotificationCallbackData(std::string bundle, uid_t uid, boo… in EnabledNotificationCallbackData() argument 27 : bundle_(bundle), uid_(uid), enable_(enable) in EnabledNotificationCallbackData() 30 void EnabledNotificationCallbackData::SetBundle(const std::string bundle) in SetBundle() argument 32 bundle_ = bundle; in SetBundle()
|
| /base/notification/distributed_notification_service/tools/dump/src/ |
| D | notification_shell_command.cpp | 149 std::string bundle; in RunAsDumpCommand() local 151 SetDumpCmdInfo(cmd, bundle, userId, ret); in RunAsDumpCommand() 162 ret = RunDumpCmd(cmd, bundle, userId, infos); in RunAsDumpCommand() 171 ErrCode NotificationShellCommand::RunDumpCmd(const std::string& cmd, const std::string& bundle, in RunDumpCmd() argument 175 ErrCode ret = ans_->ShellDump(cmd, bundle, userId, infos); in RunDumpCmd() 190 void NotificationShellCommand::SetDumpCmdInfo(std::string &cmd, std::string &bundle, int32_t &userI… in SetDumpCmdInfo() argument 218 bundle = optarg; in SetDumpCmdInfo()
|
| /base/notification/distributed_notification_service/tools/test/mock/ |
| D | mock_ans_manager_stub.cpp | 37 ErrCode MockAnsManagerStub::ShellDump(const std::string &cmd, const std::string &bundle, int32_t us… in ShellDump() argument 43 bundle_ = bundle; in ShellDump()
|
| /base/notification/distributed_notification_service/frameworks/test/moduletest/mock/ |
| D | mock_bundle_manager_helper.cpp | 47 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId) in GetDefaultUidByBundleName() argument 53 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
|
| /base/notification/distributed_notification_service/services/test/moduletest/mock/ |
| D | mock_bundle_manager_helper.cpp | 52 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId) in GetDefaultUidByBundleName() argument 58 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
|
| /base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/mock/ |
| D | mock_bundle_manager_helper.cpp | 38 int BundleManagerHelper::GetDefaultUidByBundleName(const std::string &bundle, const int32_t userId) in GetDefaultUidByBundleName() argument 54 const std::string bundle, const int32_t userId, AppExecFwk::BundleInfo &bundleInfo) in GetBundleInfoByBundleName() argument
|
| /base/notification/distributed_notification_service/interfaces/inner_api/ |
| D | enabled_notification_callback_data.h | 37 EnabledNotificationCallbackData(std::string bundle, uid_t uid, bool enable); 44 void SetBundle(const std::string bundle);
|
| /base/hiviewdfx/hiview/core/include/ |
| D | plugin_bundle.h | 32 PluginBundle(PluginBundle&& bundle) = delete; 33 PluginBundle& operator=(PluginBundle&& bundle) = delete;
|