Home
last modified time | relevance | path

Searched refs:SetDoNotDisturbDate (Results 1 – 25 of 39) sorted by relevance

12

/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/cancelgroup_fuzzer/
H A Dcancelgroup_fuzzer.cpp38 Notification::NotificationHelper::SetDoNotDisturbDate(disturb); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Ddisturb_mode.cpp297 napi_value SetDoNotDisturbDate(napi_env env, napi_callback_info info) in SetDoNotDisturbDate() function
324 asynccallbackinfo->info.errorCode = NotificationHelper::SetDoNotDisturbDate( in SetDoNotDisturbDate()
327 asynccallbackinfo->info.errorCode = NotificationHelper::SetDoNotDisturbDate( in SetDoNotDisturbDate()
375 if (!Common::SetDoNotDisturbDate(env, asynccallbackinfo->date, result)) { in AsyncCompleteCallbackGetDoNotDisturbDate()
H A Dinit.cpp71 DECLARE_NAPI_FUNCTION("setDoNotDisturbDate", SetDoNotDisturbDate), in NotificationInit()
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/setdonotdisturbdate_fuzzer/
H A Dsetdonotdisturbdate_fuzzer.cpp33 Notification::NotificationHelper::SetDoNotDisturbDate(userId, disturb); in DoSomethingInterestingWithMyAPI()
/ohos5.0/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()
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp385 ErrCode NotificationHelper::SetDoNotDisturbDate(const NotificationDoNotDisturbDate &doNotDisturbDat… in SetDoNotDisturbDate() function in OHOS::Notification::NotificationHelper
387 return DelayedSingleton<AnsNotification>::GetInstance()->SetDoNotDisturbDate(doNotDisturbDate); in SetDoNotDisturbDate()
477 ErrCode NotificationHelper::SetDoNotDisturbDate(const int32_t &userId, in SetDoNotDisturbDate() function in OHOS::Notification::NotificationHelper
480 …return DelayedSingleton<AnsNotification>::GetInstance()->SetDoNotDisturbDate(userId, doNotDisturbD… in SetDoNotDisturbDate()
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Ddisturb_mode.h80 napi_value SetDoNotDisturbDate(napi_env env, napi_callback_info info);
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_helper.h757 static ErrCode SetDoNotDisturbDate(const NotificationDoNotDisturbDate &doNotDisturbDate);
906 …static ErrCode SetDoNotDisturbDate(const int32_t &userId, const NotificationDoNotDisturbDate &doNo…
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_notification.h759 ErrCode SetDoNotDisturbDate(const NotificationDoNotDisturbDate &doNotDisturbDate);
994 …ErrCode SetDoNotDisturbDate(const int32_t &userId, const NotificationDoNotDisturbDate &doNotDistur…
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…
H A Dans_manager_proxy.h533 ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) override;
764 …ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date)…
H A Dans_manager_stub.h533 virtual ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) override;
766 …virtual ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate…
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_proxy_disturb.cpp30 ErrCode AnsManagerProxy::SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerProxy
192 ErrCode AnsManagerProxy::SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDis… in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerProxy
H A Dans_manager_stub_invalid.cpp385 ErrCode AnsManagerStub::SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerStub
535 ErrCode AnsManagerStub::SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDist… in SetDoNotDisturbDate() function in OHOS::Notification::AnsManagerStub
H A Dans_notification.cpp1127 ErrCode AnsNotification::SetDoNotDisturbDate(const NotificationDoNotDisturbDate &doNotDisturbDate) in SetDoNotDisturbDate() function in OHOS::Notification::AnsNotification
1142 return proxy->SetDoNotDisturbDate(dndDate); in SetDoNotDisturbDate()
1657 ErrCode AnsNotification::SetDoNotDisturbDate(const int32_t &userId, in SetDoNotDisturbDate() function in OHOS::Notification::AnsNotification
1678 return proxy->SetDoNotDisturbDate(dndDate); in SetDoNotDisturbDate()
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_branch_test.cpp760 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP);
778 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_PERMISSION_DENIED);
935 …ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(userId, date), ERR_ANS_NON_SYSTEM_APP);
952 …ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(userId, date), ERR_ANS_PERMISSION_DENI…
H A Dadvanced_notification_service_test.cpp816 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
825 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
834 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
843 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
856 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
884 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
913 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
940 ASSERT_EQ((int)advancedNotificationService_->SetDoNotDisturbDate(date), (int)ERR_OK);
1523 ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(date), ERR_ANS_INVALID_PARAM);
1544 … ASSERT_EQ(advancedNotificationService_->SetDoNotDisturbDate(userId, date), ERR_ANS_INVALID_PARAM);
[all …]
H A Dnotification_preferences_test.cpp898 …ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), …
917 …ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(TEST_SUBSCRIBE_USER_INI…
936 …ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), …
960 …ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetDoNotDisturbDate(SYSTEM_APP_UID, date), …
/ohos5.0/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_fw_module_test.cpp1340 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK);
1376 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK);
1412 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK);
1448 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(date), ERR_OK);
1489 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(setDate), ERR_OK);
1520 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK);
1542 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK);
1566 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK);
1588 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK);
1610 EXPECT_EQ(NotificationHelper::SetDoNotDisturbDate(srcDate), ERR_OK);
[all …]
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences_info.h286 void SetDoNotDisturbDate(const int32_t &userId,
H A Dnotification_preferences.h251 … ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> date);
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp915 ASSERT_EQ(advancedNotificationService.SetDoNotDisturbDate(date), ERR_ANS_NON_SYSTEM_APP);
930 … ASSERT_EQ(advancedNotificationService.SetDoNotDisturbDate(date), ERR_ANS_GET_ACTIVE_USER_FAILED);
1119 … ASSERT_EQ(advancedNotificationService.SetDoNotDisturbDate(userId, date), ERR_ANS_NON_SYSTEM_APP);
/ohos5.0/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp325 ErrCode SetDoNotDisturbDate(const sptr<NotificationDoNotDisturbDate> &date) override in SetDoNotDisturbDate() function in OHOS::Notification::MockAnsManagerInterface
461 …ErrCode SetDoNotDisturbDate(const int32_t &userId, const sptr<NotificationDoNotDisturbDate> &date)… in SetDoNotDisturbDate() function in OHOS::Notification::MockAnsManagerInterface
/ohos5.0/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
H A Dansmanagerstub_fuzzer.cpp384 ansManagerStub.SetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
415 ansManagerStub.SetDoNotDisturbDate(date); in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_preferences_info.cpp270 void NotificationPreferencesInfo::SetDoNotDisturbDate(const int32_t &userId, in SetDoNotDisturbDate() function in OHOS::Notification::NotificationPreferencesInfo

12