Home
last modified time | relevance | path

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

/ohos5.0/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()
151 if (lastCountry_->IsMoreReliable(type)) { in UpdateCountryCode()
155 lastCountry_->SetCountryCodeStr(countryCode); in UpdateCountryCode()
156 lastCountry_->SetCountryCodeType(type); in UpdateCountryCode()
251 if (lastCountry_ && !country.IsSame(*lastCountry_) && !lastCountry_->IsMoreReliable(type)) { in GetIsoCountryCode()
255 return lastCountry_; in GetIsoCountryCode()
/ohos5.0/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);
240 countryCodeManager->lastCountry_ = nullptr;
/ohos5.0/base/location/interfaces/inner_api/include/
H A Dcountry_code_manager.h83 std::shared_ptr<CountryCode> lastCountry_; variable