Home
last modified time | relevance | path

Searched refs:cachedCallback (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/location/test/location_locator/source/
H A Dlocation_without_permission_test.cpp170 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable
171 EXPECT_NE(nullptr, cachedCallback);
176 locatorImpl->RegisterCachedLocationCallback(request, cachedCallback);
177 locatorImpl->UnregisterCachedLocationCallback(cachedCallback);
295 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable
296 EXPECT_NE(nullptr, cachedCallback);
302 …ERRCODE_PERMISSION_DENIED, locatorImpl->RegisterCachedLocationCallbackV9(request, cachedCallback));
304 …ECT_EQ(ERRCODE_SWITCH_OFF, locatorImpl->RegisterCachedLocationCallbackV9(request, cachedCallback));
306 …ECT_EQ(ERRCODE_PERMISSION_DENIED, locatorImpl->UnregisterCachedLocationCallbackV9(cachedCallback));
H A Dlocator_service_test.cpp895 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); variable
903 proxy_->RegisterCachedLocationCallback(requestConfig, cachedCallback, bundleName));
913 proxy_->UnregisterCachedLocationCallback(cachedCallback)); // the map is empty
933 sptr<ICachedLocationsCallback> cachedCallback = nullptr; variable
941 proxy_->RegisterCachedLocationCallback(requestConfig, cachedCallback, bundleName));
1467 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable
1468 EXPECT_NE(nullptr, cachedCallback);
1473 locatorImpl->RegisterCachedLocationCallback(request, cachedCallback);
1474 locatorImpl->UnregisterCachedLocationCallback(cachedCallback);
1606 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable
[all …]
H A Dlocator_impl_test.cpp433 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable
434 EXPECT_NE(nullptr, cachedCallback);
439 …EQ(ERRCODE_NOT_SUPPORTED, locatorImpl_->RegisterCachedLocationCallbackV9(request, cachedCallback));
440 …EXPECT_EQ(ERRCODE_NOT_SUPPORTED, locatorImpl_->UnregisterCachedLocationCallbackV9(cachedCallback));
/ohos5.0/base/location/frameworks/js/napi/source/
H A Dlocation_napi_event.cpp314 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); in SubscribeCacheLocationChange() local
318 g_locatorProxy->RegisterCachedLocationCallback(g_cachedRequest, cachedCallback); in SubscribeCacheLocationChange()
329 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); in SubscribeCacheLocationChangeV9() local
333 g_locatorProxy->RegisterCachedLocationCallbackV9(g_cachedRequest, cachedCallback); in SubscribeCacheLocationChangeV9()
1127 auto cachedCallback = sptr<ICachedLocationsCallback>(callbackHost); in OffAllCachedGnssLocationsReportingCallback() local
1129 LocationErrCode errorCode = UnSubscribeCacheLocationChangeV9(cachedCallback); in OffAllCachedGnssLocationsReportingCallback()
1135 UnSubscribeCacheLocationChange(cachedCallback); in OffAllCachedGnssLocationsReportingCallback()
1289 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); in OffCachedGnssLocationsReportingCallback() local
1291 LocationErrCode errorCode = UnSubscribeCacheLocationChangeV9(cachedCallback); in OffCachedGnssLocationsReportingCallback()
1297 UnSubscribeCacheLocationChange(cachedCallback); in OffCachedGnssLocationsReportingCallback()
/ohos5.0/base/location/services/location_gnss/gnss/source/
H A Dgnss_ability.cpp318 sptr<ICachedLocationsCallback> cachedCallback = iface_cast<ICachedLocationsCallback>(callback); in RegisterCachedCallback() local
319 if (cachedCallback == nullptr) { in RegisterCachedCallback()
335 sptr<ICachedLocationsCallback> cachedCallback = iface_cast<ICachedLocationsCallback>(callback); in UnregisterCachedCallback() local
336 if (cachedCallback == nullptr) { in UnregisterCachedCallback()