/base/location/test/location_locator/source/ |
D | location_config_manager_test.cpp | 89 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);
|
D | locator_impl_test.cpp | 208 bool isConfirmed = false; variable 210 …CODE_INVALID_PARAM, locatorImpl_->IsLocationPrivacyConfirmedV9(INVALID_PRIVACY_TYPE, isConfirmed)); 211 EXPECT_EQ(false, isConfirmed);
|
D | locator_service_test.cpp | 1757 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/ |
D | location_config_manager.cpp | 204 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()
|
D | locator_ability.cpp | 397 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()
|
D | locator_skeleton.cpp | 389 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/ |
D | location_config_manager.h | 58 LocationErrCode GetPrivacyTypeState(const int type, bool& isConfirmed); 59 LocationErrCode SetPrivacyTypeState(const int type, bool isConfirmed);
|
D | locator_ability.h | 86 LocationErrCode IsLocationPrivacyConfirmed(const int type, bool& isConfirmed); 87 LocationErrCode SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed);
|
/base/location/test/fuzztest/locator/locationconfigmanager_fuzzer/ |
D | locationconfigmanager_fuzzer.cpp | 36 bool isConfirmed = false; in LocationConfigManagerFuzzerTest() local 37 LocationConfigManager::GetInstance().GetPrivacyTypeState(data[index++], isConfirmed); in LocationConfigManagerFuzzerTest()
|
/base/location/frameworks/native/source/ |
D | locator_impl.cpp | 214 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()
|
D | locator_proxy.cpp | 249 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/ |
D | locator.h | 53 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;
|
D | locator_impl.h | 61 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;
|
D | locator_proxy.h | 60 int SetLocationPrivacyConfirmStatus(const int type, bool isConfirmed); 104 LocationErrCode IsLocationPrivacyConfirmedV9(const int type, bool &isConfirmed); 105 LocationErrCode SetLocationPrivacyConfirmStatusV9(const int type, bool isConfirmed);
|
D | location_async_context.h | 153 bool isConfirmed; variable 156 : AsyncContext(env, work, deferred), type(PRIVACY_TYPE_OTHERS), isConfirmed(false) {} in AsyncContext()
|
/base/location/test/fuzztest/locator/locator_fuzzer/ |
D | locator_fuzzer.cpp | 196 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/ |
D | location_napi_adapter.cpp | 545 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()
|