Home
last modified time | relevance | path

Searched refs:LocationConfigManager (Results 1 – 8 of 8) sorted by relevance

/base/location/test/location_locator/source/
Dlocation_config_manager_test.cpp55 EXPECT_EQ(0, LocationConfigManager::GetInstance().Init());
65 LocationConfigManager::GetInstance().SetLocationSwitchState(STATE_CLOSE));
67 LocationConfigManager::GetInstance().GetLocationSwitchState());
70 LocationConfigManager::GetInstance().SetLocationSwitchState(STATE_OPEN));
72 LocationConfigManager::GetInstance().GetLocationSwitchState());
75 LocationConfigManager::GetInstance().SetLocationSwitchState(STATE_UNKNOWN));
77 LocationConfigManager::GetInstance().GetLocationSwitchState());
79 LocationConfigManager::GetInstance().IsExistFile(GetLocationSwitchConfigPath()));
91 LocationConfigManager::GetInstance().SetPrivacyTypeState(PRIVACY_TYPE_INVALID_LEFT, true));
93LocationConfigManager::GetInstance().GetPrivacyTypeState(PRIVACY_TYPE_INVALID_LEFT, isConfirmed));
[all …]
/base/location/test/fuzztest/locator/locationconfigmanager_fuzzer/
Dlocationconfigmanager_fuzzer.cpp28 LocationConfigManager::GetInstance().Init(); in LocationConfigManagerFuzzerTest()
29 LocationConfigManager::GetInstance().GetLocationSwitchState(); in LocationConfigManagerFuzzerTest()
30 LocationConfigManager::GetInstance().SetLocationSwitchState(data[index++]); in LocationConfigManagerFuzzerTest()
32 LocationConfigManager::GetInstance().IsExistFile(fileName); in LocationConfigManagerFuzzerTest()
34 LocationConfigManager::GetInstance().CreateFile(fileName, fileData); in LocationConfigManagerFuzzerTest()
35 LocationConfigManager::GetInstance().GetPrivacyTypeConfigPath(data[index++]); in LocationConfigManagerFuzzerTest()
37 LocationConfigManager::GetInstance().GetPrivacyTypeState(data[index++], isConfirmed); in LocationConfigManagerFuzzerTest()
38 LocationConfigManager::GetInstance().SetPrivacyTypeState(data[index++], true); in LocationConfigManagerFuzzerTest()
39 LocationConfigManager::GetInstance().SetPrivacyTypeState(data[index++], false); in LocationConfigManagerFuzzerTest()
/base/location/services/location_locator/locator/source/
Dlocation_config_manager.cpp27 LocationConfigManager &LocationConfigManager::GetInstance() in GetInstance()
29 static LocationConfigManager gLocationConfigManager; in GetInstance()
33 LocationConfigManager::LocationConfigManager() in LocationConfigManager() function in OHOS::Location::LocationConfigManager
41 LocationConfigManager::~LocationConfigManager() in ~LocationConfigManager()
45 int LocationConfigManager::Init() in Init()
54 bool LocationConfigManager::IsExistFile(const std::string& filename) in IsExistFile()
74 bool LocationConfigManager::CreateFile(const std::string& filename, const std::string& filedata) in CreateFile()
90 std::string LocationConfigManager::GetLocationSwitchConfigPath() in GetLocationSwitchConfigPath()
101 std::string LocationConfigManager::GetPrivacyTypeConfigPath(const int type) in GetPrivacyTypeConfigPath()
130 int LocationConfigManager::GetLocationSwitchState() in GetLocationSwitchState()
[all …]
Dlocator_background_proxy.cpp66 proxySwtich_ = (LocationConfigManager::GetInstance().GetLocationSwitchState() == ENABLED); in LocatorBackgroundProxy()
Dlocator_ability.cpp402 return LocationConfigManager::GetInstance().GetPrivacyTypeState(type, isConfirmed); in IsLocationPrivacyConfirmed()
407 return LocationConfigManager::GetInstance().SetPrivacyTypeState(type, isConfirmed); in SetLocationPrivacyConfirmStatus()
/base/location/services/location_locator/locator/include/
Dlocation_config_manager.h27 class LocationConfigManager {
29 ~LocationConfigManager();
30 static LocationConfigManager &GetInstance();
93 LocationConfigManager();
/base/location/services/location_geocode/geocode/source/
Dgeo_convert_service.cpp128 bool result = LocationConfigManager::GetInstance().GetGeocodeServiceName(serviceName); in ConnectService()
134 bool res = LocationConfigManager::GetInstance().GetGeocodeAbilityName(abilityName); in ConnectService()
178 bool result = LocationConfigManager::GetInstance().GetGeocodeServiceName(serviceName); in IsGeoConvertAvailable()
363 bool result = LocationConfigManager::GetInstance().GetGeocodeServiceName(serviceName); in GetService()
/base/location/services/location_network/network/source/
Dnetwork_ability.cpp116 bool result = LocationConfigManager::GetInstance().GetNlpServiceName(serviceName); in ConnectNlpService()
122 bool res = LocationConfigManager::GetInstance().GetNlpAbilityName(abilityName); in ConnectNlpService()
230 bool result = LocationConfigManager::GetInstance().GetNlpServiceName(serviceName); in RequestRecord()