Searched refs:cachedCallback (Results 1 – 6 of 6) sorted by relevance
/base/location/test/location_locator/source/ |
D | location_without_permission_test.cpp | 182 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable 183 EXPECT_NE(nullptr, cachedCallback); 188 locatorImpl->RegisterCachedLocationCallback(request, cachedCallback); 189 locatorImpl->UnregisterCachedLocationCallback(cachedCallback); 308 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable 309 EXPECT_NE(nullptr, cachedCallback); 314 …ERRCODE_PERMISSION_DENIED, locatorImpl->RegisterCachedLocationCallbackV9(request, cachedCallback)); 315 …ECT_EQ(ERRCODE_PERMISSION_DENIED, locatorImpl->UnregisterCachedLocationCallbackV9(cachedCallback));
|
D | locator_service_test.cpp | 862 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); variable 870 proxy_->RegisterCachedLocationCallback(requestConfig, cachedCallback, bundleName)); 878 …proxy_->UnregisterCachedLocationCallback(cachedCallback)); // the callback has been restored in th… 880 proxy_->UnregisterCachedLocationCallback(cachedCallback)); // the map is empty 900 sptr<ICachedLocationsCallback> cachedCallback = nullptr; variable 908 proxy_->RegisterCachedLocationCallback(requestConfig, cachedCallback, bundleName)); 1514 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable 1515 EXPECT_NE(nullptr, cachedCallback); 1520 locatorImpl->RegisterCachedLocationCallback(request, cachedCallback); 1521 locatorImpl->UnregisterCachedLocationCallback(cachedCallback); [all …]
|
D | locator_impl_test.cpp | 452 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); variable 453 EXPECT_NE(nullptr, cachedCallback); 458 …EQ(ERRCODE_NOT_SUPPORTED, locatorImpl_->RegisterCachedLocationCallbackV9(request, cachedCallback)); 459 …EXPECT_EQ(ERRCODE_NOT_SUPPORTED, locatorImpl_->UnregisterCachedLocationCallbackV9(cachedCallback));
|
/base/location/test/fuzztest/locator/locator_fuzzer/ |
D | locator_fuzzer.cpp | 255 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); in TestCallbackRegister() local 257 g_locatorImpl->RegisterCachedLocationCallback(request, cachedCallback); in TestCallbackRegister() 258 g_locatorImpl->UnregisterCachedLocationCallback(cachedCallback); in TestCallbackRegister() 286 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); in TestCallbackRegisterV9() local 288 g_locatorImpl->RegisterCachedLocationCallbackV9(request, cachedCallback); in TestCallbackRegisterV9() 289 g_locatorImpl->UnregisterCachedLocationCallbackV9(cachedCallback); in TestCallbackRegisterV9() 507 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedLocationsCallbackHost); in LocatorAbility002FuzzerTest() local 509 locatorAbility->RegisterCachedLocationCallback(cachedRequest, cachedCallback, "fuzz.test"); in LocatorAbility002FuzzerTest() 510 locatorAbility->UnregisterCachedLocationCallback(cachedCallback); in LocatorAbility002FuzzerTest()
|
/base/location/frameworks/js/napi/source/ |
D | location_napi_event.cpp | 299 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); in SubscribeCacheLocationChange() local 303 g_locatorProxy->RegisterCachedLocationCallback(g_cachedRequest, cachedCallback); in SubscribeCacheLocationChange() 314 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); in SubscribeCacheLocationChangeV9() local 318 g_locatorProxy->RegisterCachedLocationCallbackV9(g_cachedRequest, cachedCallback); in SubscribeCacheLocationChangeV9() 1096 auto cachedCallback = sptr<ICachedLocationsCallback>(callbackHost); in OffAllCachedGnssLocationsReportingCallback() local 1098 errorCode = UnSubscribeCacheLocationChangeV9(cachedCallback); in OffAllCachedGnssLocationsReportingCallback() 1104 UnSubscribeCacheLocationChange(cachedCallback); in OffAllCachedGnssLocationsReportingCallback() 1286 auto cachedCallback = sptr<ICachedLocationsCallback>(cachedCallbackHost); in OffCachedGnssLocationsReportingCallback() local 1288 errorCode = UnSubscribeCacheLocationChangeV9(cachedCallback); in OffCachedGnssLocationsReportingCallback() 1294 UnSubscribeCacheLocationChange(cachedCallback); in OffCachedGnssLocationsReportingCallback() [all …]
|
/base/location/services/location_gnss/gnss/source/ |
D | gnss_ability.cpp | 271 sptr<ICachedLocationsCallback> cachedCallback = iface_cast<ICachedLocationsCallback>(callback); in RegisterCachedCallback() local 272 if (cachedCallback == nullptr) { in RegisterCachedCallback() 288 sptr<ICachedLocationsCallback> cachedCallback = iface_cast<ICachedLocationsCallback>(callback); in UnregisterCachedCallback() local 289 if (cachedCallback == nullptr) { in UnregisterCachedCallback()
|