/base/notification/distributed_notification_service/test/fuzztest/notificationsorting_fuzzer/ |
H A D | notificationsorting_fuzzer.cpp | 36 int32_t importance = static_cast<int32_t>(GetU32Data(data));
in DoSomethingInterestingWithMyAPI() local 37 notificationSorting.SetImportance(importance);
in DoSomethingInterestingWithMyAPI() 40 notificationSorting.SetVisiblenessOverride(importance);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_sorting_test.cpp | 113 int32_t importance = 10;
in HWTEST_F() local 121 rrc->SetImportance(importance);
in HWTEST_F() 126 std::string ret = "NotificationSorting{ key = Key, ranking = 20, importance = 10, "
in HWTEST_F()
|
H A D | notification_sorting_map_test.cpp | 96 int32_t importance = 10;
in HWTEST_F() local 103 sorting.SetImportance(importance);
in HWTEST_F()
|
/base/startup/init/services/init/standard/ |
H A D | init_service.c | 107 service->importance = value;
in SetImportantValue() 122 if (service->importance != 0) {
in ServiceExec() 123 INIT_ERROR_CHECK(setpriority(PRIO_PROCESS, 0, service->importance) == 0,
in ServiceExec() 126 "Service error %d %s, failed to set priority %d.", errno, service->name, service->importance);
in ServiceExec()
|
H A D | init_control_fd_service.c | 137 printf("\tservice importance: [%d] \n", service->importance); in DumpOneService()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_sorting.cpp | 59 ", importance = " + std::to_string(importance_) + in Dump() 81 ANS_LOGE("Can't write importance"); in Marshalling() 86 ANS_LOGE("Can't write importance"); in Marshalling() 157 void NotificationSorting::SetImportance(const int32_t &importance) in SetImportance() argument 159 importance_ = importance; in SetImportance()
|
H A D | notification_helper.cpp | 196 ErrCode NotificationHelper::GetBundleImportance(NotificationSlot::NotificationLevel &importance) in GetBundleImportance() argument 198 return DelayedSingleton<AnsNotification>::GetInstance()->GetBundleImportance(importance); in GetBundleImportance()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_sorting.h | 62 * @brief Obtains the importance level of the current notification set in the corresponding NotificationSlot. 64 * @return Returns the importance level of the notification. 150 void SetImportance(const int32_t &importance);
|
H A D | notification_helper.h | 406 * @brief Obtains the importance level of this application. 408 * @param importance Indicates the importance level of this application, which can be LEVEL_NONE, 410 * @return Returns get bundle importance result 412 static ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | notification_preferences_test.cpp | 597 * @tc.desc : Set bundle importance into disturbe DB, return is ERR_OK. 601 int importance = 1; in HWTEST_F() local 602 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetImportance(bundleOption_, importance), (int)ERR_OK); in HWTEST_F() 608 * @tc.desc : Set bundle importance into disturbe DB when bundle name is null, return is ERR_ANS_INVALID_PARAM. 612 int importance = 1; in HWTEST_F() local 613 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetImportance(bundleEmptyOption_, importance), in HWTEST_F() 620 * @tc.desc : Set bundle importance into disturbe DB when bundleOption is null, return is ERR_ANS_INVALID_PARAM. 624 int importance = 1; in HWTEST_F() local 625 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetImportance(nullptr, importance), in HWTEST_F() 632 * @tc.desc : Get bundle importance fro 636 int importance = 1; HWTEST_F() local [all...] |
H A D | advanced_notification_service_test.cpp | 211 int importance; in HWTEST_F() local 212 ASSERT_EQ((int)advancedNotificationService_->GetBundleImportance(importance), (int)ERR_OK); in HWTEST_F() 546 int importance = 0; in HWTEST_F() local 547 ASSERT_EQ((int)advancedNotificationService_->GetBundleImportance(importance), (int)ERR_OK); in HWTEST_F() 1416 int32_t importance = 2; in HWTEST_F() local 1417 ASSERT_EQ(advancedNotificationService_->GetBundleImportance(importance), ERR_ANS_INVALID_BUNDLE); in HWTEST_F() 3292 int importance = 0; in HWTEST_F() local 3293 ret = advancedNotificationService_->GetBundleImportance(importance); in HWTEST_F()
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
H A D | notification_service_test.cpp | 276 int importance = 0;
in BENCHMARK_F() local 278 ErrCode errCode = advancedNotificationService_->GetBundleImportance(importance);
in BENCHMARK_F()
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_preferences.h | 142 * @brief Get importance in the of bunlde from DB. 145 * @param importance Indicates to importance label which can be LEVEL_NONE, 149 ErrCode GetImportance(const sptr<NotificationBundleOption> &bundleOption, int32_t &importance); 152 * @brief Set importance in the of bunlde from DB. 155 * @param importance Indicates to set a importance label which can be LEVEL_NONE, 159 ErrCode SetImportance(const sptr<NotificationBundleOption> &bundleOption, const int32_t &importance);
|
/base/startup/init/services/init/include/ |
H A D | init_service.h | 153 int importance;
member
|
/base/startup/init/services/init/ |
H A D | init_common_service.c | 470 if (service->importance != 0) {
in EnterServiceSandbox() 471 if (setpriority(PRIO_PROCESS, 0, service->importance) != 0) {
in EnterServiceSandbox() 472 INIT_LOGE("setpriority failed for %s, importance = %d, err=%d",
in EnterServiceSandbox() 473 service->name, service->importance, errno);
in EnterServiceSandbox()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | notification_preferences.cpp | 352 ErrCode NotificationPreferences::GetImportance(const sptr<NotificationBundleOption> &bundleOption, int32_t &importance) in GetImportance() argument 358 return GetBundleProperty(bundleOption, BundleType::BUNDLE_IMPORTANCE_TYPE, importance); in GetImportance() 363 const sptr<NotificationBundleOption> &bundleOption, const int32_t &importance) in SetImportance() 370 ErrCode result = SetBundleProperty(preferencesInfo, bundleOption, BundleType::BUNDLE_IMPORTANCE_TYPE, importance); in SetImportance() 362 SetImportance( const sptr<NotificationBundleOption> &bundleOption, const int32_t &importance) SetImportance() argument
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/ |
H A D | notification_preferences_database_branch_test.cpp | 156 int32_t importance = 1;
in HWTEST_F() local 157 ASSERT_EQ(preferncesDB_->PutImportance(bundleInfo, importance), false);
in HWTEST_F()
|
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
H A D | advancednotificationservice_fuzzer.cpp | 87 int importance = fuzzData.GenerateRandomInt32(); in DoSomethingInterestingWithMyAPI() local 88 service->GetBundleImportance(importance); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/ |
H A D | ansmanagerstubannexthree_fuzzer.cpp | 354 int importance = fuzzData.GetData<int>();
in DoSomethingInterestingWithMyAPI() local 355 ansManagerStub.GetBundleImportance(importance);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannex_fuzzer/ |
H A D | ansmanagerstubannex_fuzzer.cpp | 362 int importance = fuzzData.GetData<int>();
in DoSomethingInterestingWithMyAPI() local 363 ansManagerStub.GetBundleImportance(importance);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
H A D | ansmanagerstub_fuzzer.cpp | 363 int importance = fuzzData.GetData<int>();
in DoSomethingInterestingWithMyAPI() local 364 ansManagerStub.GetBundleImportance(importance);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_manager_interface.h | 289 * @brief Obtains the importance level of this application. 291 * @param importance Indicates the importance level of this application, which can be LEVEL_NONE, 295 virtual ErrCode GetBundleImportance(int &importance) = 0;
|
H A D | ans_manager_proxy.h | 276 * @brief Obtains the importance level of this application. 278 * @param importance Indicates the importance level of this application, which can be LEVEL_NONE, 282 ErrCode GetBundleImportance(int32_t &importance) override;
|
H A D | ans_notification.h | 340 * @brief Obtains the importance level of this application. 342 * @param importance the importance level of this application, which can be LEVEL_NONE, 344 * @return Returns get bundle importance result 346 ErrCode GetBundleImportance(NotificationSlot::NotificationLevel &importance);
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 179 ErrCode AnsManagerStub::GetBundleImportance(int &importance) in GetBundleImportance() argument
|