Home
last modified time | relevance | path

Searched refs:lastCountry_ (Results 1 - 3 of 3) sorted by relevance

/base/location/frameworks/native/locator_sdk/source/
H A Dcountry_code_manager.cpp44 lastCountry_ = std::make_shared<CountryCode>(); in CountryCodeManager()
57 if (lastCountry_ == nullptr) { in NotifyAllListener()
61 auto country = std::make_shared<CountryCode>(*lastCountry_); in NotifyAllListener()
147 if (lastCountry_ == nullptr) { in UpdateCountryCode()
148 LBSLOGE(COUNTRY_CODE, "lastCountry_ is nullptr"); in UpdateCountryCode()
151 if (lastCountry_->IsMoreReliable(type)) { in UpdateCountryCode()
152 LBSLOGI(COUNTRY_CODE, "lastCountry_ is more reliable,there is no need to update the data"); in UpdateCountryCode()
155 lastCountry_->SetCountryCodeStr(countryCode); in UpdateCountryCode()
156 lastCountry_->SetCountryCodeType(type); in UpdateCountryCode()
249 if (lastCountry_ in GetIsoCountryCode()
[all...]
/base/location/test/location_locator/source/
H A Dcountry_code_manager_test.cpp34 countryCodeManager->lastCountry_ = std::make_shared<CountryCode>(); in TearDown()
237 countryCodeManager->lastCountry_->SetCountryCodeType(1); in HWTEST_F()
240 countryCodeManager->lastCountry_ = nullptr; in HWTEST_F()
241 countryCodeManager->UpdateCountryCode("zh", 0); // lastCountry_ is nullptr in HWTEST_F()
/base/location/interfaces/inner_api/include/
H A Dcountry_code_manager.h83 std::shared_ptr<CountryCode> lastCountry_; member in OHOS::Location::CountryCodeManager

Completed in 2 milliseconds