Home
last modified time | relevance | path

Searched refs:oldRequest (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_utils_test.cpp149 sptr<NotificationRequest> oldRequest = new (std::nothrow) NotificationRequest(); variable
150 oldRequest->SetSlotType(slotType);
157 oldRequest->SetContent(content);
161 ErrCode ret = advancedNotificationService_->FillRequestByKeys(oldRequest, keys, newRequest);
233 sptr<NotificationRequest> oldRequest = new (std::nothrow) NotificationRequest(); variable
234 oldRequest->SetSlotType(slotType);
242 oldRequest->SetContent(content);
243 oldRequest->SetNotificationId(notificationId);
245 oldRequest->SetLabel(label);
247 auto record = advancedNotificationService_->MakeNotificationRecord(oldRequest, bundle);
H A Dadvanced_notification_live_view_service_test.cpp212 sptr<NotificationRequest> oldRequest = new (std::nothrow) NotificationRequest(); variable
213 oldRequest->SetSlotType(slotType);
214 oldRequest->SetNotificationId(1);
220 oldRequest->SetContent(oldContent);
222 advancedNotificationService_->FillLockScreenPicture(newRequest, oldRequest);
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_request.cpp2401 auto oldContent = oldRequest->GetContent()->GetNotificationContent(); in CheckVersion()
2425 if ((oldRequest != nullptr) && oldRequest->IsCommonLiveView()) { in CheckNotificationRequest()
2437 if (oldRequest == nullptr) { in CheckNotificationRequest()
2446 if (!oldRequest->IsCommonLiveView()) { in CheckNotificationRequest()
2448 oldRequest->GetSlotType(), oldRequest->GetNotificationType()); in CheckNotificationRequest()
2467 return CheckVersion(oldRequest); in CheckNotificationRequest()
2472 if (!IsCommonLiveView() || (oldRequest == nullptr)) { in FillMissingParameters()
2476 updateDeadLine_ = oldRequest->updateDeadLine_; in FillMissingParameters()
2477 finishDeadLine_ = oldRequest->finishDeadLine_; in FillMissingParameters()
2479 autoDeletedTime_ = oldRequest->autoDeletedTime_; in FillMissingParameters()
[all …]
/ohos5.0/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_request.h1250 ErrCode CheckNotificationRequest(const sptr<NotificationRequest> &oldRequest) const;
1257 void FillMissingParameters(const sptr<NotificationRequest> &oldRequest);
1447 ErrCode CheckVersion(const sptr<NotificationRequest> &oldRequest) const;
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_live_view_service.cpp448 const sptr<NotificationRequest> &oldRequest) in FillLockScreenPicture() argument
450 if (oldRequest->GetContent() == nullptr || in FillLockScreenPicture()
454 if (oldRequest->GetContent()->GetNotificationContent() == nullptr || in FillLockScreenPicture()
462 auto oldContent = oldRequest->GetContent()->GetNotificationContent(); in FillLockScreenPicture()
H A Dadvanced_notification_service.cpp1359 auto oldRequest = item->notification->GetNotificationRequest(); in GetFromNotificationList() local
1360 if (oldRequest.GetOwnerUid() == ownerUid && in GetFromNotificationList()
1361 oldRequest.GetNotificationId() == notificationId && in GetFromNotificationList()
1362 oldRequest.IsSystemLiveView() && oldRequest.IsUpdateByOwnerAllowed()) { in GetFromNotificationList()
H A Dadvanced_notification_utils.cpp226 ErrCode AdvancedNotificationService::FillRequestByKeys(const sptr<NotificationRequest> &oldRequest, in FillRequestByKeys() argument
230 oldRequest->GetContent()->GetNotificationContent()); in FillRequestByKeys()
233 newRequest = sptr<NotificationRequest>::MakeSptr(*(oldRequest)); in FillRequestByKeys()
/ohos5.0/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_notification_service.h1389 ErrCode FillRequestByKeys(const sptr<NotificationRequest> &oldRequest,
1406 const sptr<NotificationRequest> &oldRequest);