Home
last modified time | relevance | path

Searched refs:isConfirmed (Results 1 – 17 of 17) sorted by relevance

/base/location/test/location_locator/source/
Dlocation_config_manager_test.cpp89 bool isConfirmed = false; variable
93 … LocationConfigManager::GetInstance().GetPrivacyTypeState(PRIVACY_TYPE_INVALID_LEFT, isConfirmed));
98 …LocationConfigManager::GetInstance().GetPrivacyTypeState(PRIVACY_TYPE_INVALID_RIGHT, isConfirmed));
103 … LocationConfigManager::GetInstance().GetPrivacyTypeState(PRIVACY_TYPE_STARTUP, isConfirmed));
104 EXPECT_EQ(true, isConfirmed);
109 …LocationConfigManager::GetInstance().GetPrivacyTypeState(PRIVACY_TYPE_CORE_LOCATION, isConfirmed));
110 EXPECT_EQ(false, isConfirmed);
Dlocator_impl_test.cpp208 bool isConfirmed = false; variable
210 …CODE_INVALID_PARAM, locatorImpl_->IsLocationPrivacyConfirmedV9(INVALID_PRIVACY_TYPE, isConfirmed));
211 EXPECT_EQ(false, isConfirmed);
Dlocator_service_test.cpp1757 bool isConfirmed = false; variable
1758 …EQ(ERRCODE_SUCCESS, locatorAbility->IsLocationPrivacyConfirmed(PRIVACY_TYPE_STARTUP, isConfirmed));
1759 EXPECT_EQ(true, isConfirmed);
/base/location/services/location_locator/locator/source/
Dlocation_config_manager.cpp204 LocationErrCode LocationConfigManager::GetPrivacyTypeState(const int type, bool& isConfirmed) in GetPrivacyTypeState() argument
208 isConfirmed = false; in GetPrivacyTypeState()
218 isConfirmed = false; in GetPrivacyTypeState()
235 isConfirmed = (mPrivacyTypeState[type] == STATE_OPEN) ? true : false; in GetPrivacyTypeState()
239 LocationErrCode LocationConfigManager::SetPrivacyTypeState(const int type, bool isConfirmed) in SetPrivacyTypeState() argument
255 if (isConfirmed) { in SetPrivacyTypeState()
261 mPrivacyTypeState[type] = isConfirmed ? 1 : 0; in SetPrivacyTypeState()
Dlocator_ability.cpp397 LocationErrCode LocatorAbility::IsLocationPrivacyConfirmed(const int type, bool& isConfirmed) in IsLocationPrivacyConfirmed() argument
399 return LocationConfigManager::GetInstance().GetPrivacyTypeState(type, isConfirmed); in IsLocationPrivacyConfirmed()
402 LocationErrCode LocatorAbility::SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed) in SetLocationPrivacyConfirmStatus() argument
404 return LocationConfigManager::GetInstance().SetPrivacyTypeState(type, isConfirmed); in SetLocationPrivacyConfirmStatus()
Dlocator_skeleton.cpp389 bool isConfirmed = false; in PreIsLocationPrivacyConfirmed() local
390 reply.WriteInt32(locatorAbility->IsLocationPrivacyConfirmed(data.ReadInt32(), isConfirmed)); in PreIsLocationPrivacyConfirmed()
391 reply.WriteBool(isConfirmed); in PreIsLocationPrivacyConfirmed()
/base/location/services/location_locator/locator/include/
Dlocation_config_manager.h58 LocationErrCode GetPrivacyTypeState(const int type, bool& isConfirmed);
59 LocationErrCode SetPrivacyTypeState(const int type, bool isConfirmed);
Dlocator_ability.h86 LocationErrCode IsLocationPrivacyConfirmed(const int type, bool& isConfirmed);
87 LocationErrCode SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed);
/base/location/test/fuzztest/locator/locationconfigmanager_fuzzer/
Dlocationconfigmanager_fuzzer.cpp36 bool isConfirmed = false; in LocationConfigManagerFuzzerTest() local
37 LocationConfigManager::GetInstance().GetPrivacyTypeState(data[index++], isConfirmed); in LocationConfigManagerFuzzerTest()
/base/location/frameworks/native/source/
Dlocator_impl.cpp214 int LocatorImpl::SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed) in SetLocationPrivacyConfirmStatus() argument
217 return client_->SetLocationPrivacyConfirmStatus(type, isConfirmed); in SetLocationPrivacyConfirmStatus()
421 LocationErrCode LocatorImpl::IsLocationPrivacyConfirmedV9(const int type, bool &isConfirmed) in IsLocationPrivacyConfirmedV9() argument
424 return client_->IsLocationPrivacyConfirmedV9(type, isConfirmed); in IsLocationPrivacyConfirmedV9()
427 LocationErrCode LocatorImpl::SetLocationPrivacyConfirmStatusV9(const int type, bool isConfirmed) in SetLocationPrivacyConfirmStatusV9() argument
430 return client_->SetLocationPrivacyConfirmStatusV9(type, isConfirmed); in SetLocationPrivacyConfirmStatusV9()
Dlocator_proxy.cpp249 int LocatorProxy::SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed) in SetLocationPrivacyConfirmStatus() argument
258 data.WriteBool(isConfirmed); in SetLocationPrivacyConfirmStatus()
775 LocationErrCode LocatorProxy::IsLocationPrivacyConfirmedV9(const int type, bool &isConfirmed) in IsLocationPrivacyConfirmedV9() argument
786 isConfirmed = reply.ReadBool(); in IsLocationPrivacyConfirmedV9()
788 isConfirmed = false; in IsLocationPrivacyConfirmedV9()
790 LBSLOGD(LOCATOR_STANDARD, "Proxy::IsLocationPrivacyConfirmed return %{public}d", isConfirmed); in IsLocationPrivacyConfirmedV9()
794 LocationErrCode LocatorProxy::SetLocationPrivacyConfirmStatusV9(const int type, bool isConfirmed) in SetLocationPrivacyConfirmStatusV9() argument
803 data.WriteBool(isConfirmed); in SetLocationPrivacyConfirmStatusV9()
/base/location/interfaces/inner_api/include/
Dlocator.h53 virtual int SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed) = 0;
92 virtual LocationErrCode IsLocationPrivacyConfirmedV9(const int type, bool &isConfirmed) = 0;
93 virtual LocationErrCode SetLocationPrivacyConfirmStatusV9(const int type, bool isConfirmed) = 0;
Dlocator_impl.h61 int SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed) override;
100 LocationErrCode IsLocationPrivacyConfirmedV9(const int type, bool &isConfirmed) override;
101 LocationErrCode SetLocationPrivacyConfirmStatusV9(const int type, bool isConfirmed) override;
Dlocator_proxy.h60 int SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed);
104 LocationErrCode IsLocationPrivacyConfirmedV9(const int type, bool &isConfirmed);
105 LocationErrCode SetLocationPrivacyConfirmStatusV9(const int type, bool isConfirmed);
Dlocation_async_context.h153 bool isConfirmed; variable
156 : AsyncContext(env, work, deferred), type(PRIVACY_TYPE_OTHERS), isConfirmed(false) {} in AsyncContext()
/base/location/test/fuzztest/locator/locator_fuzzer/
Dlocator_fuzzer.cpp196 bool isConfirmed = false; in LocatorImplV9FuzzerTest() local
197 g_locatorImpl->IsLocationPrivacyConfirmedV9(data[index++], isConfirmed); in LocatorImplV9FuzzerTest()
486 bool isConfirmed = false; in LocatorAbility002FuzzerTest() local
487 locatorAbility->IsLocationPrivacyConfirmed(data[index++], isConfirmed); in LocatorAbility002FuzzerTest()
/base/location/frameworks/js/napi/source/
Dlocation_napi_adapter.cpp545 bool isConfirmed; in CreateReverseGeocodeAsyncContext() local
546 NAPI_CALL(env, napi_get_value_bool(env, argv[1], &isConfirmed)); in CreateReverseGeocodeAsyncContext()
547 … LocationErrCode errorCode = g_locatorClient->SetLocationPrivacyConfirmStatusV9(type, isConfirmed); in CreateReverseGeocodeAsyncContext()