/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_request_test.cpp | 51 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 D | ans_innerkits_module_publish_test.cpp | 149 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 D | geofence_napi.cpp | 83 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 D | notification_utils.cpp | 931 CNotificationRequest ¬ificationRequest) 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 ¬ificationRequest) 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 ¬ificationRequest) SetNotificationRequestByString() argument 943 SetNotificationRequestByNumber( const NotificationRequest *request, CNotificationRequest ¬ificationRequest) SetNotificationRequestByNumber() argument 981 SetNotificationRequestByBool( const NotificationRequest *request, CNotificationRequest ¬ificationRequest) SetNotificationRequestByBool() argument 1013 SetNotificationRequestByPixelMap( const NotificationRequest *request, CNotificationRequest ¬ificationRequest) SetNotificationRequestByPixelMap() argument 1546 SetNotificationRequestByCustom( const NotificationRequest *request, CNotificationRequest ¬ificationRequest) SetNotificationRequestByCustom() argument 1572 InitNotificationRequest(CNotificationRequest ¬ificationRequest) InitNotificationRequest() argument 1589 SetNotificationRequest( const NotificationRequest *request, CNotificationRequest ¬ificationRequest) SetNotificationRequest() argument [all...] |
/base/location/frameworks/js/napi/notification/include/ |
H A D | geofence_napi.h | 40 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 D | notification_utils.h | 300 CNotificationRequest ¬ificationRequest); 302 CNotificationRequest ¬ificationRequest); 304 CNotificationRequest ¬ificationRequest); 306 CNotificationRequest ¬ificationRequest); 330 CNotificationRequest ¬ificationRequest); 332 CNotificationRequest ¬ificationRequest);
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/ |
H A D | napi_get_active.h | 30 sptr<OHOS::Notification::NotificationRequest> notificationRequest = nullptr; member
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_reminder_service.cpp | 72 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 D | advanced_notification_utils.cpp | 324 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 ¬ificationRequest = 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 D | advanced_notification_publish_service.cpp | 1485 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 D | reminder_data_manager.cpp | 833 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 D | notification_hisysevent_test.cpp | 118 NotificationRequest notificationRequest(notificationId); in HWTEST_F() 119 pid_t myPid = notificationRequest.GetCreatorPid(); in HWTEST_F() 120 notificationRequest.SetCreatorPid(myPid); in HWTEST_F()
|
H A D | advanced_notification_service_branch_test.cpp | 1126 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 D | advanced_notification_service_test.cpp | 2243 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 D | napi_get_active.cpp | 384 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 D | gnss_ability.cpp | 845 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 D | advanced_notification_service.h | 1324 void SetAgentNotification(sptr<NotificationRequest>& notificationRequest, std::string& bundleName);
|