Home
last modified time | relevance | path

Searched refs:GetDoNotDisturbDate (Results 1 - 25 of 39) sorted by relevance

12

/base/notification/distributed_notification_service/test/fuzztest/cancelgroup_fuzzer/
H A Dcancelgroup_fuzzer.cpp39 // test GetDoNotDisturbDate function in DoSomethingInterestingWithMyAPI()
40 Notification::NotificationHelper::GetDoNotDisturbDate(disturb); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/
H A Dsetdonotdisturbdate_fuzzer.cpp34 // test GetDoNotDisturbDate function in DoSomethingInterestingWithMyAPI()
35 Notification::NotificationHelper::GetDoNotDisturbDate(userId, disturb); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Ddisturb_mode.h81 napi_value GetDoNotDisturbDate(napi_env env, napi_callback_info info);
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dinit.cpp72 DECLARE_NAPI_FUNCTION("getDoNotDisturbDate", GetDoNotDisturbDate), in NotificationInit()
H A Ddisturb_mode.cpp28 napi_value GetDoNotDisturbDate(const napi_env &env, const napi_value &argv, SetDoNotDisturbDateParams &params) 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 Dnotification_helper.cpp362 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 Dnotification_helper.h711 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 Dnotification_preferences_info.h294 bool GetDoNotDisturbDate(const int32_t &userId,
H A Dnotification_preferences.h242 ErrCode GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date);
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_branch_test.cpp764 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 Dnotification_preferences_test.cpp939 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 Dadvanced_notification_service_test.cpp861 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 Dans_manager_interface.h553 virtual ErrCode GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) = 0;
785 virtual ErrCode GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) = 0;
H A Dans_manager_proxy.h541 ErrCode GetDoNotDisturbDate(sptr<NotificationDoNotDisturbDate> &date) override;
773 ErrCode GetDoNotDisturbDate(const int32_t &userId, sptr<NotificationDoNotDisturbDate> &date) override;
H A Dans_notification.h678 ErrCode GetDoNotDisturbDate(NotificationDoNotDisturbDate &doNotDisturbDate);
914 ErrCode GetDoNotDisturbDate(const int32_t &userId, NotificationDoNotDisturbDate &doNotDisturbDate);
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp391 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 Dans_manager_proxy_disturb.cpp64 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 Dnapi_disturb_mode.cpp238 asynccallbackinfo->info.errorCode = NotificationHelper::GetDoNotDisturbDate( in NapiGetDoNotDisturbDate()
242 NotificationHelper::GetDoNotDisturbDate(asynccallbackinfo->date); in NapiGetDoNotDisturbDate()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_fw_module_test.cpp156 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 Dadvancednotificationservice_fuzzer.cpp119 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 Dnotification_subscriber_manager_branch_test.cpp936 * @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 Dansmanagerstubannexthree_fuzzer.cpp382 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 Dans_notification_branch_test.cpp328 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 Dansmanagerstubannex_fuzzer.cpp390 ansManagerStub.GetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
421 ansManagerStub.GetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
H A Dansmanagerstub_fuzzer.cpp391 ansManagerStub.GetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
422 ansManagerStub.GetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()

Completed in 32 milliseconds

12