Home
last modified time | relevance | path

Searched refs:requests (Results 1 - 11 of 11) sorted by relevance

/base/location/services/location_locator/locator/source/
H A Drequest_manager.cpp214 auto requests = locatorAbility->GetRequests(); in UpdateRequestRecord() local
215 if (requests == nullptr) { in UpdateRequestRecord()
216 LBSLOGE(REQUEST_MANAGER, "requests map is empty"); in UpdateRequestRecord()
219 auto mapIter = requests->find(abilityName); in UpdateRequestRecord()
220 if (mapIter == requests->end()) { in UpdateRequestRecord()
248 void RequestManager::HandleChrEvent(std::list<std::shared_ptr<Request>> requests) in HandleChrEvent() argument
250 if (requests.size() > LBS_REQUEST_MAX_SIZE) { in HandleChrEvent()
254 for (auto it = requests.begin(); it != requests.end(); ++it, ++index) { in HandleChrEvent()
292 auto requests in HandleStopLocating() local
316 DeleteRequestRecord(std::shared_ptr<std::list<std::shared_ptr<Request>>> requests) DeleteRequestRecord() argument
335 auto requests = locatorAbility->GetRequests(); HandleRequest() local
564 auto requests = locatorAbility->GetRequests(); HandlePermissionChanged() local
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dget_active.h30 std::vector<sptr<OHOS::Notification::NotificationRequest>> requests; member
/base/location/test/location_manager/source/
H A Drequest_manager_test.cpp332 auto requests = std::make_shared<std::list<std::shared_ptr<Request>>>(); in HWTEST_F() local
334 requests->push_back(request); in HWTEST_F()
335 requestManager_->DeleteRequestRecord(requests); in HWTEST_F()
544 std::list<std::shared_ptr<Request>> requests; in HWTEST_F() local
546 requests.push_back(request); in HWTEST_F()
547 requestManager_->HandleChrEvent(requests); in HWTEST_F()
557 std::list<std::shared_ptr<Request>> requests; in HWTEST_F() local
560 requests.push_back(request); in HWTEST_F()
562 requestManager_->HandleChrEvent(requests); in HWTEST_F()
/base/location/services/location_locator/locator/include/
H A Drequest_manager.h78 void HandleChrEvent(std::list<std::shared_ptr<Request>> requests);
80 void DeleteRequestRecord(std::shared_ptr<std::list<std::shared_ptr<Request>>> requests);
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_manager_impl.cpp180 std::vector<sptr<NotificationRequest>> requests; in GetActiveNotifications() local
181 int code = NotificationHelper::GetActiveNotifications(requests); in GetActiveNotifications()
187 reinterpret_cast<CNotificationRequest **>(malloc(sizeof(CNotificationRequest*) * requests.size())); in GetActiveNotifications()
191 notificationRequests.size = static_cast<int64_t>(requests.size()); in GetActiveNotifications()
193 for (auto vec : requests) { in GetActiveNotifications()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dget_active.cpp137 for (auto vec : asynccallbackinfo->requests) { in AsyncCompleteCallbackGetActiveNotifications()
153 if ((count == 0) && (asynccallbackinfo->requests.size() > 0)) { in AsyncCompleteCallbackGetActiveNotifications()
199 NotificationHelper::GetActiveNotifications(asynccallbackinfo->requests); in GetActiveNotifications()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_get_active.cpp142 for (auto vec : asynccallbackinfo->requests) { in AsyncCompleteCallbackNapiGetActiveNotifications()
158 if ((count == 0) && (asynccallbackinfo->requests.size() > 0)) { in AsyncCompleteCallbackNapiGetActiveNotifications()
205 NotificationHelper::GetActiveNotifications(asynccallbackinfo->requests); in NapiGetActiveNotifications()
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_live_view_service.cpp331 std::vector<NotificationRequestDb> &requests, int32_t userId) in GetBatchNotificationRequestsFromDb()
388 requests.emplace_back(requestDb); in GetBatchNotificationRequestsFromDb()
330 GetBatchNotificationRequestsFromDb( std::vector<NotificationRequestDb> &requests, int32_t userId) GetBatchNotificationRequestsFromDb() argument
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_publish_test.cpp1255 std::vector<sptr<NotificationRequest>> requests; in HWTEST_F() local
1256 EXPECT_EQ((int)ERR_OK, NotificationHelper::GetActiveNotifications(requests)); in HWTEST_F()
1257 EXPECT_EQ("Label1", requests[0]->GetLabel()); in HWTEST_F()
1258 EXPECT_EQ("Label2", requests[1]->GetLabel()); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_notification_service.h704 * @param request Notification requests that need to be posted.
1342 static int32_t GetBatchNotificationRequestsFromDb(std::vector<NotificationRequestDb> &requests,
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_test.cpp3284 std::vector<sptr<NotificationRequest>> requests; in HWTEST_F() local
3285 ret = advancedNotificationService_->GetActiveNotifications(requests, 0); in HWTEST_F()

Completed in 17 milliseconds