Home
last modified time | relevance | path

Searched refs:notificationRequest (Results 1 - 17 of 17) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_request_test.cpp51 NotificationRequest notificationRequest(myNotificationId); in HWTEST_F()
52 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = notificationRequest.GetWantAgent(); in HWTEST_F()
65 NotificationRequest notificationRequest(myNotificationId); in HWTEST_F()
66 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = notificationRequest.GetWantAgent(); in HWTEST_F()
67 notificationRequest.SetMaxScreenWantAgent(wantAgent); in HWTEST_F()
68 auto result = notificationRequest.GetMaxScreenWantAgent(); in HWTEST_F()
82 NotificationRequest notificationRequest(myNotificationId); in HWTEST_F()
83 notificationRequest.SetAdditionalData(additionalPtr); in HWTEST_F()
84 auto result = notificationRequest.GetAdditionalData(); in HWTEST_F()
98 NotificationRequest notificationRequest(myNotificationI in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_publish_test.cpp149 NotificationRequest notificationRequest = request->GetNotificationRequest(); variable
150 GTEST_LOG_(INFO) << "OnConsumed notificationId : " << notificationRequest.GetNotificationId();
151 if (CASE_ONE == notificationRequest.GetNotificationId()) {
152 CheckCaseOneResult(notificationRequest); variable
153 } else if (CASE_TWO == notificationRequest.GetNotificationId()) {
154 CheckCaseTwoResult(notificationRequest); variable
155 } else if (CASE_THREE == notificationRequest.GetNotificationId()) {
156 CheckCaseThreeResult(notificationRequest); variable
157 } else if (CASE_FOUR == notificationRequest.GetNotificationId()) {
158 CheckCaseFourResult(notificationRequest); variable
160 CheckCaseFiveResult(notificationRequest); global() variable
162 CheckCaseSixResult(notificationRequest); global() variable
164 CheckCaseSevenResult(notificationRequest); global() variable
166 CheckCaseEightResult(notificationRequest); global() variable
168 CheckCaseNineResult(notificationRequest); global() variable
179 CheckCaseFourteenResult(notificationRequest); global() variable
181 CheckCaseFifteenResult(notificationRequest); global() variable
183 CheckCaseSixteenResult(notificationRequest); global() variable
185 CheckCaseSeventeenResult(notificationRequest); global() variable
187 CheckCaseTwentyOneResult(notificationRequest); global() variable
209 CheckCaseOneResult(NotificationRequest notificationRequest) CheckCaseOneResult() argument
259 CheckCaseTwoResult(NotificationRequest notificationRequest) CheckCaseTwoResult() argument
284 CheckCaseThreeResult(NotificationRequest notificationRequest) CheckCaseThreeResult() argument
302 CheckCaseFourResult(NotificationRequest notificationRequest) CheckCaseFourResult() argument
328 CheckCaseFiveResult(NotificationRequest notificationRequest) CheckCaseFiveResult() argument
346 CheckCaseSixResult(NotificationRequest notificationRequest) CheckCaseSixResult() argument
362 CheckCaseSevenResult(NotificationRequest notificationRequest) CheckCaseSevenResult() argument
378 CheckCaseEightResult(NotificationRequest notificationRequest) CheckCaseEightResult() argument
393 CheckCaseNineResult(NotificationRequest notificationRequest) CheckCaseNineResult() argument
428 CheckCaseFifteenResult(NotificationRequest notificationRequest) CheckCaseFifteenResult() argument
437 CheckCaseSixteenResult(NotificationRequest notificationRequest) CheckCaseSixteenResult() argument
446 CheckCaseSeventeenResult(NotificationRequest notificationRequest) CheckCaseSeventeenResult() argument
453 CheckCaseTwentyOneResult(NotificationRequest notificationRequest) CheckCaseTwentyOneResult() argument
[all...]
/base/location/frameworks/js/napi/source/
H A Dgeofence_napi.cpp83 napi_value notificationRequest = GetArrayProperty(env, object, "notifications"); in JsObjToNotificationRequestList() local
84 GetNotificationRequestArray(env, notificationRequest, notificationRequestList); in JsObjToNotificationRequestList()
111 OHOS::Notification::NotificationRequest notificationRequest; in GetNotificationRequestArray() local
112 GenNotificationRequest(env, elementValue, notificationRequest); in GetNotificationRequestArray()
113 notificationRequestList.push_back(notificationRequest); in GetNotificationRequestArray()
118 OHOS::Notification::NotificationRequest& notificationRequest) in GenNotificationRequest()
127 NotificationNapi::GetNotificationRequest(env, elementValue, notificationRequest); in GenNotificationRequest()
117 GenNotificationRequest(const napi_env& env, const napi_value& elementValue, OHOS::Notification::NotificationRequest& notificationRequest) GenNotificationRequest() argument
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp931 CNotificationRequest &notificationRequest) in SetNotificationRequestByString()
934 notificationRequest.label = MallocCString(request->GetLabel()); in SetNotificationRequestByString()
937 notificationRequest.groupName = MallocCString(request->GetGroupName()); in SetNotificationRequestByString()
940 notificationRequest.creatorBundleName = MallocCString(request->GetCreatorBundleName()); in SetNotificationRequestByString()
945 CNotificationRequest &notificationRequest) in SetNotificationRequestByNumber()
948 notificationRequest.id = request->GetNotificationId(); in SetNotificationRequestByNumber()
955 notificationRequest.notificationSlotType = static_cast<int32_t>(outType); in SetNotificationRequestByNumber()
958 notificationRequest.deliveryTime = request->GetDeliveryTime(); in SetNotificationRequestByNumber()
961 notificationRequest.autoDeletedTime = request->GetAutoDeletedTime(); in SetNotificationRequestByNumber()
964 notificationRequest in SetNotificationRequestByNumber()
929 SetNotificationRequestByString( const NotificationRequest *request, CNotificationRequest &notificationRequest) SetNotificationRequestByString() argument
943 SetNotificationRequestByNumber( const NotificationRequest *request, CNotificationRequest &notificationRequest) SetNotificationRequestByNumber() argument
981 SetNotificationRequestByBool( const NotificationRequest *request, CNotificationRequest &notificationRequest) SetNotificationRequestByBool() argument
1013 SetNotificationRequestByPixelMap( const NotificationRequest *request, CNotificationRequest &notificationRequest) SetNotificationRequestByPixelMap() argument
1546 SetNotificationRequestByCustom( const NotificationRequest *request, CNotificationRequest &notificationRequest) SetNotificationRequestByCustom() argument
1572 InitNotificationRequest(CNotificationRequest &notificationRequest) InitNotificationRequest() argument
1589 SetNotificationRequest( const NotificationRequest *request, CNotificationRequest &notificationRequest) SetNotificationRequest() argument
[all...]
/base/location/frameworks/js/napi/notification/include/
H A Dgeofence_napi.h40 void GetNotificationRequestArray(const napi_env& env, const napi_value& notificationRequest,
49 OHOS::Notification::NotificationRequest& notificationRequest);
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h300 CNotificationRequest &notificationRequest);
302 CNotificationRequest &notificationRequest);
304 CNotificationRequest &notificationRequest);
306 CNotificationRequest &notificationRequest);
330 CNotificationRequest &notificationRequest);
332 CNotificationRequest &notificationRequest);
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
H A Dnapi_get_active.h30 sptr<OHOS::Notification::NotificationRequest> notificationRequest = nullptr; member
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_reminder_service.cpp72 sptr<NotificationRequest> notificationRequest = reminder->GetNotificationRequest(); in PublishReminder() local
89 SetAgentNotification(notificationRequest, wantAgentName); in PublishReminder()
93 SetAgentNotification(notificationRequest, msWantAgentName); in PublishReminder()
96 ErrCode result = PrepareNotificationInfo(notificationRequest, bundleOption); in PublishReminder()
H A Dadvanced_notification_utils.cpp324 void AdvancedNotificationService::SetAgentNotification(sptr<NotificationRequest>& notificationRequest, in SetAgentNotification() argument
334 notificationRequest->SetIsAgentNotification(true); in SetAgentNotification()
335 notificationRequest->SetOwnerUserId(activeUserId); in SetAgentNotification()
336 notificationRequest->SetOwnerBundleName(bundleName); in SetAgentNotification()
419 const auto &notificationRequest = recentNotification->notification->GetNotificationRequest(); in RecentNotificationDump() local
420 if (userId != SUBSCRIBE_USER_INIT && userId != notificationRequest.GetOwnerUserId()) { in RecentNotificationDump()
431 stream << "\tUserId: " << notificationRequest.GetCreatorUserId() << "\n"; in RecentNotificationDump()
432 stream << "\tCreatePid: " << notificationRequest.GetCreatorPid() << "\n"; in RecentNotificationDump()
434 if (notificationRequest.GetOwnerUid() > 0) { in RecentNotificationDump()
435 stream << "\tOwnerUid: " << notificationRequest in RecentNotificationDump()
[all...]
H A Dadvanced_notification_publish_service.cpp1485 sptr<NotificationRequest> notificationRequest = nullptr; in RemoveNotification()
1507 notificationRequest = record->request; in RemoveNotification()
1528 TriggerRemoveWantAgent(notificationRequest); in RemoveNotification()
1619 auto notificationRequest = record->request; in RemoveAllNotificationsInner()
1621 notificationRequest->IsSystemLiveView()) { in RemoveAllNotificationsInner()
1623 notificationRequest->GetContent()->GetNotificationContent()); in RemoveAllNotificationsInner()
1738 sptr<NotificationRequest> notificationRequest = nullptr; in RemoveNotificationBySlot() local
1751 notificationRequest = (*it)->request; in RemoveNotificationBySlot()
1763 TriggerRemoveWantAgent(notificationRequest); in RemoveNotificationBySlot()
H A Dreminder_data_manager.cpp833 sptr<NotificationRequest> notificationRequest = reminder->GetNotificationRequest(); in TerminateAlerting() local
845 advancedNotificationService_->SetRequestBySlotType(notificationRequest, bundleOption); in TerminateAlerting()
846 advancedNotificationService_->PublishPreparedNotification(notificationRequest, bundleOption); in TerminateAlerting()
1069 sptr<NotificationRequest> notificationRequest = reminder->GetNotificationRequest(); in ShowReminder() local
1096 advancedNotificationService_->SetRequestBySlotType(notificationRequest, bundleOption); in ShowReminder()
1097 ErrCode errCode = advancedNotificationService_->PublishPreparedNotification(notificationRequest, bundleOption); in ShowReminder()
1168 sptr<NotificationRequest> notificationRequest = reminder->GetNotificationRequest(); in SnoozeReminderImpl() local
1180 advancedNotificationService_->SetRequestBySlotType(notificationRequest, bundleOption); in SnoozeReminderImpl()
1181 advancedNotificationService_->PublishPreparedNotification(notificationRequest, bundleOption); in SnoozeReminderImpl()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_hisysevent_test.cpp118 NotificationRequest notificationRequest(notificationId); in HWTEST_F()
119 pid_t myPid = notificationRequest.GetCreatorPid(); in HWTEST_F()
120 notificationRequest.SetCreatorPid(myPid); in HWTEST_F()
H A Dadvanced_notification_service_branch_test.cpp1126 NotificationRequest notificationRequest; in InitNotificationRecord() local
1127 notificationRequest.SetSlotType(NotificationConstant::SlotType::LIVE_VIEW); in InitNotificationRecord()
1131 notificationRequest.SetContent(content); in InitNotificationRecord()
1133 record->request = sptr<NotificationRequest>::MakeSptr(notificationRequest); in InitNotificationRecord()
H A Dadvanced_notification_service_test.cpp2243 NotificationRequest notificationRequest(myNotificationId); in HWTEST_F()
2244 notificationRequest.SetIsAgentNotification(isAgentTrue); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_get_active.cpp384 asyncLiveViewCallBackInfo->filter, asyncLiveViewCallBackInfo->notificationRequest); in AsyncGetLiveViewExecute()
403 if (asyncCallbackinfo->notificationRequest == nullptr) { in AsyncGetLiveViewComplete()
407 if (!Common::SetNotificationRequest(env, asyncCallbackinfo->notificationRequest, result)) { in AsyncGetLiveViewComplete()
/base/location/services/location_gnss/gnss/source/
H A Dgnss_ability.cpp845 auto notificationRequest = notificationRequestList[i]; in ReportGeofenceEvent() local
846 notificationRequest.SetCreatorUid(request->GetUid()); in ReportGeofenceEvent()
847 Notification::NotificationHelper::PublishNotification(notificationRequest); in ReportGeofenceEvent()
/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_notification_service.h1324 void SetAgentNotification(sptr<NotificationRequest>& notificationRequest, std::string& bundleName);

Completed in 28 milliseconds