Home
last modified time | relevance | path

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

/ohos5.0/base/location/frameworks/native/locator_sdk/source/
H A Dcountry_code_manager.cpp43 lastCountryByLocation_ = std::make_shared<CountryCode>(); in CountryCodeManager()
126 if (lastCountryByLocation_ == nullptr) { in GetCountryCodeByLastLocation()
130 if (lastCountryByLocation_->GetCountryCodeStr().empty()) { in GetCountryCodeByLastLocation()
139 lastCountryByLocation_->SetCountryCodeStr(code); in GetCountryCodeByLastLocation()
142 return lastCountryByLocation_->GetCountryCodeStr(); in GetCountryCodeByLastLocation()
161 if (lastCountryByLocation_ == nullptr) { in UpdateCountryCodeByLocation()
165 if (lastCountryByLocation_->GetCountryCodeStr() == countryCode) { in UpdateCountryCodeByLocation()
170 lastCountryByLocation_->SetCountryCodeStr(countryCode); in UpdateCountryCodeByLocation()
171 lastCountryByLocation_->SetCountryCodeType(type); in UpdateCountryCodeByLocation()
/ohos5.0/base/location/test/location_locator/source/
H A Dcountry_code_manager_test.cpp33 countryCodeManager->lastCountryByLocation_ = std::make_shared<CountryCode>(); in TearDown()
225 countryCodeManager->lastCountryByLocation_ = nullptr;
251 countryCodeManager->lastCountryByLocation_->SetCountryCodeStr("zh");
254 countryCodeManager->lastCountryByLocation_->SetCountryCodeStr("us");
257 countryCodeManager->lastCountryByLocation_ = nullptr;
/ohos5.0/base/location/interfaces/inner_api/include/
H A Dcountry_code_manager.h82 std::shared_ptr<CountryCode> lastCountryByLocation_; variable