/base/notification/distributed_notification_service/test/fuzztest/cancelgroup_fuzzer/ |
H A D | cancelgroup_fuzzer.cpp | 32 // test SetDoNotDisturbDate function
in DoSomethingInterestingWithMyAPI() 38 Notification::NotificationHelper::SetDoNotDisturbDate(disturb);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/ |
H A D | setdonotdisturbdate_fuzzer.cpp | 32 // test SetDoNotDisturbDate function
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationHelper::SetDoNotDisturbDate(userId, disturb);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | disturb_mode.h | 80 napi_value SetDoNotDisturbDate(napi_env env, napi_callback_info info);
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | init.cpp | 71 DECLARE_NAPI_FUNCTION("setDoNotDisturbDate", SetDoNotDisturbDate), in NotificationInit()
|
H A D | disturb_mode.cpp | 297 napi_value SetDoNotDisturbDate(napi_env env, napi_callback_info info) in SetDoNotDisturbDate() function 320 ANS_LOGD("SetDoNotDisturbDate work excute."); in SetDoNotDisturbDate() 324 asynccallbackinfo->info.errorCode = NotificationHelper::SetDoNotDisturbDate( in SetDoNotDisturbDate() 327 asynccallbackinfo->info.errorCode = NotificationHelper::SetDoNotDisturbDate( in SetDoNotDisturbDate() 331 ANS_LOGI("SetDoNotDisturbDate date=%{public}s errorCode=%{public}d, hasUserId=%{public}d", in SetDoNotDisturbDate() 337 ANS_LOGD("SetDoNotDisturbDate work complete."); in SetDoNotDisturbDate() 342 ANS_LOGD("Delete SetDoNotDisturbDate callback reference."); in SetDoNotDisturbDate() 355 ANS_LOGD("SetDoNotDisturbDate callback is nullptr."); in SetDoNotDisturbDate() 375 if (!Common::SetDoNotDisturbDate(env, asynccallbackinfo->date, result)) { in AsyncCompleteCallbackGetDoNotDisturbDate()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 357 ErrCode NotificationHelper::SetDoNotDisturbDate(const NotificationDoNotDisturbDate &doNotDisturbDate) in SetDoNotDisturbDate() function in OHOS::Notification::NotificationHelper 359 return DelayedSingleton<AnsNotification>::GetInstance()->SetDoNotDisturbDate(doNotDisturbDate); in SetDoNotDisturbDate() 449 ErrCode NotificationHelper::SetDoNotDisturbDate(const int32_t &userId, in SetDoNotDisturbDate() function in OHOS::Notification::NotificationHelper 452 return DelayedSingleton<AnsNotification>::GetInstance()->SetDoNotDisturbDate(userId, doNotDisturbDate); in SetDoNotDisturbDate()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_disturb_mode.cpp | 50 asynccallbackinfo->info.errorCode = NotificationHelper::SetDoNotDisturbDate( in NapiSetDoNotDisturbDate() 53 asynccallbackinfo->info.errorCode = NotificationHelper::SetDoNotDisturbDate( in NapiSetDoNotDisturbDate() 193 if (!Common::SetDoNotDisturbDate(env, asynccallbackinfo->date, result)) { in AsyncCompleteCallbackNapiGetDoNotDisturbDate()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_helper.h | 702 static ErrCode SetDoNotDisturbDate(const NotificationDoNotDisturbDate &doNotDisturbDate); 851 static ErrCode SetDoNotDisturbDate(const int32_t &userId, const NotificationDoNotDisturbDate &doNotDisturbDate);
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | notification_preferences_info.h | 285 void SetDoNotDisturbDate(const int32_t &userId,
|
H A D | notification_preferences.h | 251 ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> date);
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_branch_test.cpp | 752 * @tc.desc : Test SetDoNotDisturbDate function return ERR_ANS_NON_SYSTEM_APP. 763 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 770 * @tc.desc : Test SetDoNotDisturbDate function return ERR_ANS_PERMISSION_DENIED. 781 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 928 * @tc.desc : Test SetDoNotDisturbDate function return ERR_ANS_NON_SYSTEM_APP. 938 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(userId, date), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 945 * @tc.desc : Test SetDoNotDisturbDate function return ERR_ANS_PERMISSION_DENIED. 955 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(userId, date), ERR_ANS_PERMISSION_DENIED); in HWTEST_F()
|
H A D | advanced_notification_service_test.cpp | 818 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 827 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 836 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 845 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 858 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 886 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 915 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 942 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK); in HWTEST_F() 1525 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_INVALID_PARAM); in HWTEST_F() 1546 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(userI in HWTEST_F() [all...] |
H A D | notification_preferences_test.cpp | 898 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), (int)ERR_OK); in HWTEST_F() 917 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(TEST_SUBSCRIBE_USER_INIT, date), in HWTEST_F() 936 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), (int)ERR_OK); in HWTEST_F() 960 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), (int)ERR_OK); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_manager_interface.h | 545 virtual ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) = 0; 776 virtual ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) = 0;
|
H A D | ans_manager_proxy.h | 533 ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) override; 764 ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) override;
|
H A D | ans_notification.h | 669 ErrCode SetDoNotDisturbDate(const NotificationDoNotDisturbDate &doNotDisturbDate); 904 ErrCode SetDoNotDisturbDate(const int32_t &userId, const NotificationDoNotDisturbDate &doNotDisturbDate);
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 385 ErrCode AnsManagerStub::SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerStub 387 ANS_LOGE("AnsManagerStub::SetDoNotDisturbDate called!"); in SetDoNotDisturbDate() 535 ErrCode AnsManagerStub::SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerStub 537 ANS_LOGE("AnsManagerStub::SetDoNotDisturbDate called!"); in SetDoNotDisturbDate()
|
H A D | ans_manager_proxy_disturb.cpp | 30 ErrCode AnsManagerProxy::SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerProxy 33 ANS_LOGE("[SetDoNotDisturbDate] fail: date is empty."); in SetDoNotDisturbDate() 39 ANS_LOGE("[SetDoNotDisturbDate] fail: write interface token error."); in SetDoNotDisturbDate() 44 ANS_LOGE("[SetDoNotDisturbDate] fail: write date failed"); in SetDoNotDisturbDate() 52 ANS_LOGE("[SetDoNotDisturbDate] fail: transact ErrCode=%{public}d", result); in SetDoNotDisturbDate() 57 ANS_LOGE("[SetDoNotDisturbDate] fail: read result error."); in SetDoNotDisturbDate() 192 ErrCode AnsManagerProxy::SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerProxy 195 ANS_LOGE("[SetDoNotDisturbDate] fail: date is empty."); in SetDoNotDisturbDate() 201 ANS_LOGE("[SetDoNotDisturbDate] fail: write interface token failed."); in SetDoNotDisturbDate() 206 ANS_LOGE("[SetDoNotDisturbDate] fai in SetDoNotDisturbDate() [all...] |
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_fw_module_test.cpp | 1340 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK); in HWTEST_F() 1376 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK); in HWTEST_F() 1412 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK); in HWTEST_F() 1448 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK); in HWTEST_F() 1489 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(setDate), ERR_OK); in HWTEST_F() 1520 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK); in HWTEST_F() 1542 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK); in HWTEST_F() 1566 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK); in HWTEST_F() 1588 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK); in HWTEST_F() 1610 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDat in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
H A D | advancednotificationservice_fuzzer.cpp | 118 service->SetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI() 150 service->SetDoNotDisturbDate(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 | 906 * @tc.desc : Test SetDoNotDisturbDate function and CheckPermission is false
915 ASSERT_EQ(advancedNotificationService.SetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP);
in HWTEST_F() 921 * @tc.desc : Test SetDoNotDisturbDate function and GetActiveUserId is false
930 ASSERT_EQ(advancedNotificationService.SetDoNotDisturbDate(date), ERR_ANS_GET_ACTIVE_USER_FAILED);
in HWTEST_F() 1109 * @tc.desc : Test SetDoNotDisturbDate function and CheckPermission is false
1119 ASSERT_EQ(advancedNotificationService.SetDoNotDisturbDate(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 | 381 ansManagerStub.SetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI() 412 ansManagerStub.SetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/ |
H A D | ans_notification_branch_test.cpp | 323 ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) override
459 ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) override
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannex_fuzzer/ |
H A D | ansmanagerstubannex_fuzzer.cpp | 389 ansManagerStub.SetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI() 420 ansManagerStub.SetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
H A D | ansmanagerstub_fuzzer.cpp | 390 ansManagerStub.SetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI() 421 ansManagerStub.SetDoNotDisturbDate(date);
in DoSomethingInterestingWithMyAPI()
|