Home
last modified time | relevance | path

Searched refs:SetDoNotDisturbDate (Results 1 - 25 of 42) sorted by relevance

12

/base/notification/distributed_notification_service/test/fuzztest/cancelgroup_fuzzer/
H A Dcancelgroup_fuzzer.cpp32 // test SetDoNotDisturbDate function in DoSomethingInterestingWithMyAPI()
38 Notification::NotificationHelper::SetDoNotDisturbDate(disturb); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/
H A Dsetdonotdisturbdate_fuzzer.cpp32 // test SetDoNotDisturbDate function in DoSomethingInterestingWithMyAPI()
33 Notification::NotificationHelper::SetDoNotDisturbDate(userId, disturb); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Ddisturb_mode.h80 napi_value SetDoNotDisturbDate(napi_env env, napi_callback_info info);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dinit.cpp71 DECLARE_NAPI_FUNCTION("setDoNotDisturbDate", SetDoNotDisturbDate), in NotificationInit()
H A Ddisturb_mode.cpp297 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 Dnotification_helper.cpp357 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 Dnapi_disturb_mode.cpp50 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 Dnotification_helper.h702 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 Dnotification_preferences_info.h285 void SetDoNotDisturbDate(const int32_t &userId,
H A Dnotification_preferences.h251 ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> date);
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_branch_test.cpp752 * @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 Dadvanced_notification_service_test.cpp818 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 Dnotification_preferences_test.cpp898 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 Dans_manager_interface.h545 virtual ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) = 0;
776 virtual ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) = 0;
H A Dans_manager_proxy.h533 ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) override;
764 ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date) override;
H A Dans_notification.h669 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 Dans_manager_stub_invalid.cpp385 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 Dans_manager_proxy_disturb.cpp30 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 Dans_fw_module_test.cpp1340 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 Dadvancednotificationservice_fuzzer.cpp118 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 Dnotification_subscriber_manager_branch_test.cpp906 * @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 Dansmanagerstubannexthree_fuzzer.cpp381 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 Dans_notification_branch_test.cpp323 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 Dansmanagerstubannex_fuzzer.cpp389 ansManagerStub.SetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
420 ansManagerStub.SetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
H A Dansmanagerstub_fuzzer.cpp390 ansManagerStub.SetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
421 ansManagerStub.SetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()

Completed in 32 milliseconds

12