/base/notification/distributed_notification_service/test/fuzztest/cancelgroup_fuzzer/ |
H A D | cancelgroup_fuzzer.cpp | 39 // test GetDoNotDisturbDate function
in DoSomethingInterestingWithMyAPI() 40 Notification::NotificationHelper::GetDoNotDisturbDate(disturb);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/ |
H A D | setdonotdisturbdate_fuzzer.cpp | 34 // test GetDoNotDisturbDate function
in DoSomethingInterestingWithMyAPI() 35 Notification::NotificationHelper::GetDoNotDisturbDate(userId, disturb);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | disturb_mode.h | 81 napi_value GetDoNotDisturbDate(napi_env env, napi_callback_info info);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | init.cpp | 72 DECLARE_NAPI_FUNCTION("getDoNotDisturbDate", GetDoNotDisturbDate), in NotificationInit()
|
H A D | disturb_mode.cpp | 28 napi_value GetDoNotDisturbDate(const napi_env &env, const napi_value &argv, SetDoNotDisturbDateParams ¶ms) in GetDoNotDisturbDate() function 210 if (GetDoNotDisturbDate(env, argv[PARAM0], params) == nullptr) { in ParseParameters() 381 ANS_LOGD("Delete GetDoNotDisturbDate callback reference."); in AsyncCompleteCallbackGetDoNotDisturbDate() 428 napi_value GetDoNotDisturbDate(napi_env env, napi_callback_info info) in GetDoNotDisturbDate() function 454 ANS_LOGD("GetDoNotDisturbDate work excute."); in GetDoNotDisturbDate() 459 asynccallbackinfo->info.errorCode = NotificationHelper::GetDoNotDisturbDate( in GetDoNotDisturbDate() 462 asynccallbackinfo->info.errorCode = NotificationHelper::GetDoNotDisturbDate( in GetDoNotDisturbDate() 466 ANS_LOGI("GetDoNotDisturbDate errorCode=%{public}d date=%{public}s, hasUserId=%{public}d", in GetDoNotDisturbDate()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 362 ErrCode NotificationHelper::GetDoNotDisturbDate(NotificationDoNotDisturbDate &doNotDisturbDate) in GetDoNotDisturbDate() function in OHOS::Notification::NotificationHelper 364 return DelayedSingleton<AnsNotification>::GetInstance()->GetDoNotDisturbDate(doNotDisturbDate); in GetDoNotDisturbDate() 455 ErrCode NotificationHelper::GetDoNotDisturbDate(const int32_t &userId, NotificationDoNotDisturbDate &doNotDisturbDate) in GetDoNotDisturbDate() function in OHOS::Notification::NotificationHelper 457 return DelayedSingleton<AnsNotification>::GetInstance()->GetDoNotDisturbDate(userId, doNotDisturbDate); in GetDoNotDisturbDate()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_helper.h | 711 static ErrCode GetDoNotDisturbDate(NotificationDoNotDisturbDate &doNotDisturbDate); 861 static ErrCode GetDoNotDisturbDate(const int32_t &userId, NotificationDoNotDisturbDate &doNotDisturbDate);
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_preferences_info.h | 294 bool GetDoNotDisturbDate(const int32_t &userId,
|
H A D | notification_preferences.h | 242 ErrCode GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date);
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_branch_test.cpp | 764 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 782 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(date), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 939 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(userId, date), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 956 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(userId, date), ERR_ANS_PERMISSION_DENIED); in HWTEST_F()
|
H A D | notification_preferences_test.cpp | 939 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetDoNotDisturbDate(SYSTEM_APP_UID, getDate), (int)ERR_OK); in HWTEST_F() 963 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetDoNotDisturbDate(SYSTEM_APP_UID, getDate), (int)ERR_OK); in HWTEST_F() 969 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetDoNotDisturbDate( in HWTEST_F() 981 ASSERT_EQ((int)NotificationPreferences::GetInstance()->GetDoNotDisturbDate(TEST_SUBSCRIBE_USER_INIT, getDate), in HWTEST_F()
|
H A D | advanced_notification_service_test.cpp | 861 ASSERT_EQ((int)advancedNotificationService_->GetDoNotDisturbDate(result), (int)ERR_OK); in HWTEST_F() 889 ASSERT_EQ((int)advancedNotificationService_->GetDoNotDisturbDate(result), (int)ERR_OK); in HWTEST_F() 917 ASSERT_EQ((int)advancedNotificationService_->GetDoNotDisturbDate(result), (int)ERR_OK); in HWTEST_F() 945 ASSERT_EQ((int)advancedNotificationService_->GetDoNotDisturbDate(result), (int)ERR_OK); in HWTEST_F() 1152 * @tc.desc : Test GetDoNotDisturbDate function when the result is ERR_OK 1159 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(userId, date), (int)ERR_OK); in HWTEST_F() 1526 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(date), ERR_OK); in HWTEST_F() 1547 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(userId, date), ERR_OK); in HWTEST_F() 2118 ASSERT_EQ(advancedNotificationService_->GetDoNotDisturbDate(userId, date), ERR_ANS_INVALID_PARAM); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_manager_interface.h | 553 virtual ErrCode GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) = 0; 785 virtual ErrCode GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) = 0;
|
H A D | ans_manager_proxy.h | 541 ErrCode GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) override; 773 ErrCode GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) override;
|
H A D | ans_notification.h | 678 ErrCode GetDoNotDisturbDate(NotificationDoNotDisturbDate &doNotDisturbDate); 914 ErrCode GetDoNotDisturbDate(const int32_t &userId, NotificationDoNotDisturbDate &doNotDisturbDate);
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 391 ErrCode AnsManagerStub::GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) in GetDoNotDisturbDate() function in OHOS::Notification::AnsManagerStub 393 ANS_LOGE("AnsManagerStub::GetDoNotDisturbDate called!"); in GetDoNotDisturbDate() 541 ErrCode AnsManagerStub::GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) in GetDoNotDisturbDate() function in OHOS::Notification::AnsManagerStub 543 ANS_LOGE("AnsManagerStub::GetDoNotDisturbDate called!"); in GetDoNotDisturbDate()
|
H A D | ans_manager_proxy_disturb.cpp | 64 ErrCode AnsManagerProxy::GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) in GetDoNotDisturbDate() function in OHOS::Notification::AnsManagerProxy 68 ANS_LOGE("[GetDoNotDisturbDate] fail: write interface token failed."); in GetDoNotDisturbDate() 76 ANS_LOGE("[GetDoNotDisturbDate] fail: transact ErrCode=%{public}d", result); in GetDoNotDisturbDate() 81 ANS_LOGE("[GetDoNotDisturbDate] fail: read result error."); in GetDoNotDisturbDate() 88 ANS_LOGE("[GetDoNotDisturbDate] fail: read date error."); in GetDoNotDisturbDate() 231 ErrCode AnsManagerProxy::GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) in GetDoNotDisturbDate() function in OHOS::Notification::AnsManagerProxy 235 ANS_LOGE("[GetDoNotDisturbDate] fail: write interface token failed."); in GetDoNotDisturbDate() 240 ANS_LOGE("[GetDoNotDisturbDate] fail: write userId failed"); in GetDoNotDisturbDate() 248 ANS_LOGE("[GetDoNotDisturbDate] fail: transact ErrCode=%{public}d", result); in GetDoNotDisturbDate() 253 ANS_LOGE("[GetDoNotDisturbDate] fai in GetDoNotDisturbDate() [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_disturb_mode.cpp | 238 asynccallbackinfo->info.errorCode = NotificationHelper::GetDoNotDisturbDate( in NapiGetDoNotDisturbDate() 242 NotificationHelper::GetDoNotDisturbDate(asynccallbackinfo->date); in NapiGetDoNotDisturbDate()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_fw_module_test.cpp | 156 const std::shared_ptr<NotificationDoNotDisturbDate> &GetDoNotDisturbDate() const in GetDoNotDisturbDate() function in OHOS::Notification::OnDoNotDisturbDateChangedEvent 1349 auto date = ev->GetDoNotDisturbDate(); in HWTEST_F() 1385 auto date = ev->GetDoNotDisturbDate(); in HWTEST_F() 1421 auto date = ev->GetDoNotDisturbDate(); in HWTEST_F() 1457 auto date = ev->GetDoNotDisturbDate(); in HWTEST_F() 1484 * @tc.desc : GetDoNotDisturbDate. 1492 EXPECT_EQ(NotificationHelper::GetDoNotDisturbDate(getDate), ERR_OK); in HWTEST_F() 1523 EXPECT_EQ(NotificationHelper::GetDoNotDisturbDate(disDate), ERR_OK); in HWTEST_F() 1545 EXPECT_EQ(NotificationHelper::GetDoNotDisturbDate(disDate), ERR_OK); in HWTEST_F() 1569 EXPECT_EQ(NotificationHelper::GetDoNotDisturbDate(disDat in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
H A D | advancednotificationservice_fuzzer.cpp | 119 service->GetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI() 151 service->GetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
H A D | notification_subscriber_manager_branch_test.cpp | 936 * @tc.desc : Test GetDoNotDisturbDate function and CheckPermission is false
945 ASSERT_EQ(advancedNotificationService.GetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP);
in HWTEST_F() 951 * @tc.desc : Test GetDoNotDisturbDate function and GetActiveUserId is false
960 ASSERT_EQ(advancedNotificationService.GetDoNotDisturbDate(date), ERR_ANS_GET_ACTIVE_USER_FAILED);
in HWTEST_F() 1125 * @tc.desc : Test GetDoNotDisturbDate function and CheckPermission is false
1135 ASSERT_EQ(advancedNotificationService.GetDoNotDisturbDate(userId, date), ERR_ANS_NON_SYSTEM_APP);
in HWTEST_F()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/ |
H A D | ansmanagerstubannexthree_fuzzer.cpp | 382 ansManagerStub.GetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI() 413 ansManagerStub.GetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/ |
H A D | ans_notification_branch_test.cpp | 328 ErrCode GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) override
464 ErrCode GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) override
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannex_fuzzer/ |
H A D | ansmanagerstubannex_fuzzer.cpp | 390 ansManagerStub.GetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI() 421 ansManagerStub.GetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
H A D | ansmanagerstub_fuzzer.cpp | 391 ansManagerStub.GetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI() 422 ansManagerStub.GetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI()
|