Home
last modified time | relevance | path

Searched refs:locatorImpl (Results 1 – 4 of 4) sorted by relevance

/base/location/test/location_locator/source/
Dlocation_without_permission_test.cpp83 auto locatorImpl = Locator::GetInstance(); variable
84 EXPECT_NE(nullptr, locatorImpl);
88 EXPECT_EQ(true, locatorImpl->RegisterSwitchCallback(switchCallbackHost->AsObject(), 1000));
89 EXPECT_EQ(true, locatorImpl->UnregisterSwitchCallback(switchCallbackHost->AsObject()));
90 locatorImpl->EnableAbility(true);
99 auto locatorImpl = Locator::GetInstance(); variable
100 EXPECT_NE(nullptr, locatorImpl);
105 locatorImpl->StartLocating(requestConfig, callbackStub);
106 locatorImpl->StopLocating(callbackStub);
108 EXPECT_EQ(nullptr, locatorImpl->GetCachedLocation());
[all …]
Dlocator_service_test.cpp166 auto locatorImpl = Locator::GetInstance(); in StartAndStopForLocating() local
168 locatorImpl->StartLocating(requestConfig, callbackStub_); in StartAndStopForLocating()
169 locatorImpl->StopLocating(callbackStub_); in StartAndStopForLocating()
292 auto locatorImpl = Locator::GetInstance(); variable
293 ASSERT_TRUE(locatorImpl != nullptr);
294 locatorImpl->StopLocating(callbackStub_);
1335 auto locatorImpl = Locator::GetInstance(); variable
1336 EXPECT_NE(nullptr, locatorImpl);
1337 locatorImpl->ShowNotification();
1338 locatorImpl->RequestPermission();
[all …]
Dreport_manager_test.cpp306 auto locatorImpl = Locator::GetInstance(); variable
308 locatorImpl->EnableAbility(true);
309 locatorImpl->StartLocating(requestConfig, callbackStub); // start locating
314 locatorImpl->StopLocating(callbackStub);
345 auto locatorImpl = Locator::GetInstance(); variable
347 locatorImpl->EnableAbility(true);
348 locatorImpl->StartLocating(requestConfig, callbackStub); // start locating
351 locatorImpl->StopLocating(callbackStub);
/base/location/frameworks/native/source/
Dcountry_code_manager.cpp146 auto locatorImpl = LocatorImpl::GetInstance(); in GetCountryCodeByLastLocation() local
147 if (locatorImpl) { in GetCountryCodeByLastLocation()
149 LocationErrCode errorCode = locatorImpl->GetCachedLocationV9(lastLocation); in GetCountryCodeByLastLocation()