Home
last modified time | relevance | path

Searched refs:locatorCallback (Results 1 – 11 of 11) sorted by relevance

/ohos5.0/base/location/frameworks/js/napi/source/
H A Dlocation_napi_system.cpp39 auto locatorCallback = sptr<ILocatorCallback>(g_systemSingleLocatorCallbackHost); in GetLocationOnce() local
46 g_locatorImpl->StopLocating(locatorCallback); in GetLocationOnce()
56 g_locatorImpl->StartLocating(requestConfig, locatorCallback); in GetLocationOnce()
193 auto locatorCallback = sptr<ILocatorCallback>(locatorCallbackHost); in SubscribeSystemLocationChange() local
197 g_locatorImpl->StopLocating(locatorCallback); in SubscribeSystemLocationChange()
209 g_locatorImpl->StartLocating(requestConfig, locatorCallback); in SubscribeSystemLocationChange()
251 auto locatorCallback = sptr<ILocatorCallback>(g_systemSubcribeCallbackHost); in Unsubscribe() local
252 g_locatorImpl->StopLocating(locatorCallback); in Unsubscribe()
H A Dlocation_napi_event.cpp225 auto locatorCallback = sptr<ILocatorCallback>(locatorCallbackHost); in SubscribeLocationChange() local
231 g_locatorProxy->StartLocating(requestConfig, locatorCallback); in SubscribeLocationChange()
242 auto locatorCallback = sptr<ILocatorCallback>(locatorCallbackHost); in SubscribeLocationChangeV9() local
251 return g_locatorProxy->StartLocatingV9(requestConfig, locatorCallback); in SubscribeLocationChangeV9()
1036 auto locatorCallback = sptr<ILocatorCallback>(callbackHost); in OffAllLocationChangeCallback() local
1038 LocationErrCode errorCode = UnSubscribeLocationChangeV9(locatorCallback); in OffAllLocationChangeCallback()
1044 UnSubscribeLocationChange(locatorCallback); in OffAllLocationChangeCallback()
1225 auto locatorCallback = sptr<ILocatorCallback>(locatorCallbackHost); in OffLocationChangeCallback() local
1227 LocationErrCode errorCode = UnSubscribeLocationChangeV9(locatorCallback); in OffLocationChangeCallback()
1233 UnSubscribeLocationChange(locatorCallback); in OffLocationChangeCallback()
[all …]
/ohos5.0/base/location/test/location_locator/source/
H A Dlocator_agent_test.cpp208 auto locatorCallback = sptr<ILocatorCallback>(locationCallbackHost); variable
209 locatorAgent->StartGnssLocating(locatorCallback);
222 sptr<ILocatorCallback> locatorCallback; variable
223 auto errCode = locatorAgent->StartGnssLocating(locatorCallback);
239 auto locatorCallback = sptr<ILocatorCallback>(locationCallbackHost); variable
240 locatorAgent->StopGnssLocating(locatorCallback);
253 sptr<ILocatorCallback> locatorCallback; variable
254 auto errCode = locatorAgent->StopGnssLocating(locatorCallback);
H A Dreport_manager_test.cpp101 sptr<ILocatorCallback> locatorCallback = variable
104 ReportRemoteCallback(locatorCallback, ILocatorCallback::RECEIVE_LOCATION_STATUS_EVENT, 1));
106 ReportRemoteCallback(locatorCallback, ILocatorCallback::RECEIVE_ERROR_INFO_EVENT, 1));
108 ReportRemoteCallback(locatorCallback, ILocatorCallback::RECEIVE_LOCATION_INFO_EVENT, 1));
/ohos5.0/base/location/test/fuzztest/locator/reportmanager_fuzzer/
H A Dreportmanager_fuzzer.cpp41 sptr<ILocatorCallback> locatorCallback = in ReportManagerFuzzerTest() local
46 reportManager->ReportRemoteCallback(locatorCallback, type, result); in ReportManagerFuzzerTest()
/ohos5.0/base/location/frameworks/native/location_ndk/source/
H A Dlocator_c_impl.cpp67 auto locatorCallback = OHOS::sptr<OHOS::Location::ILocatorCallback>(locatorCallbackHost); in OH_Location_StartLocating() local
76 auto errCode = g_locatorProxy->StartLocatingV9(requestConfigV9, locatorCallback); in OH_Location_StartLocating()
95 auto locatorCallback = OHOS::sptr<OHOS::Location::ILocatorCallback>(locatorCallbackHost); in OH_Location_StopLocating() local
96 auto errCode = g_locatorProxy->StopLocatingV9(locatorCallback); in OH_Location_StopLocating()
/ohos5.0/base/location/frameworks/native/locator_agent/source/
H A Dlocator_agent.cpp57 auto locatorCallback = sptr<ILocatorCallback>(locationCallbackHost_); in StartGnssLocating() local
58 LocationErrCode ret = proxy->StartGnssLocating(locatorCallback); in StartGnssLocating()
69 auto locatorCallback = sptr<ILocatorCallback>(locationCallbackHost_); in StopGnssLocating() local
70 LocationErrCode ret = proxy->StopGnssLocating(locatorCallback); in StopGnssLocating()
/ohos5.0/base/location/services/location_locator/locator/source/
H A Dreport_manager.cpp160 auto locatorCallback = request->GetLocatorCallBack(); in ProcessRequestForReport() local
161 if (locatorCallback != nullptr) { in ProcessRequestForReport()
172 locatorCallback->OnLocationReport(finalLocation); in ProcessRequestForReport()
268 bool ReportManager::ReportRemoteCallback(sptr<ILocatorCallback>& locatorCallback, int type, int res… in ReportRemoteCallback() argument
272 locatorCallback->OnLocatingStatusChange(result); in ReportRemoteCallback()
276 locatorCallback->OnErrorReport(result); in ReportRemoteCallback()
/ohos5.0/base/location/test/fuzztest/locator/requestmanager_fuzzer/
H A Drequestmanager_fuzzer.cpp38 sptr<ILocatorCallback> locatorCallback = in RequestManagerFuzzerTest() local
40 requestManager->HandleStopLocating(locatorCallback); in RequestManagerFuzzerTest()
/ohos5.0/base/location/frameworks/native/locator_sdk/source/
H A Dlocator_impl.cpp1399 auto locatorCallback = iter->first; in IsLocationCallbackRegistered() local
1400 if (locatorCallback == nullptr) { in IsLocationCallbackRegistered()
1403 if (locatorCallback == callback) { in IsLocationCallbackRegistered()
1493 auto locatorCallback = iter->first; in HasGnssNetworkRequest() local
1494 if (locatorCallback == nullptr || iter->first == nullptr) { in HasGnssNetworkRequest()
1576 auto locatorCallback = iter->first; in ResumeLocating() local
1577 if (locatorCallback == nullptr || iter->first == nullptr) { in ResumeLocating()
1583 proxy->StartLocatingV9(requestConfig, locatorCallback); in ResumeLocating()
/ohos5.0/base/location/services/location_locator/locator/include/
H A Dreport_manager.h35 bool ReportRemoteCallback(sptr<ILocatorCallback>& locatorCallback, int type, int result);