/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_location_proxy_adapter_wrapper.cpp | 46 bool ArkLocationProxyAdapterWrapper::EnableAbility(bool isEnabled) in EnableAbility() argument 48 return ctocpp_->EnableAbility(isEnabled); in EnableAbility()
|
H A D | ark_location_proxy_adapter_wrapper.h | 33 bool EnableAbility(bool isEnabled) override;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_location_proxy_adapter_impl.cpp | 46 bool ArkLocationProxyAdapterImpl::EnableAbility(bool isEnabled) in EnableAbility() argument 48 return real_->EnableAbility(isEnabled); in EnableAbility()
|
H A D | ark_location_proxy_adapter_impl.h | 33 bool EnableAbility(bool isEnabled) override;
|
/base/web/webview/ohos_wrapper/src/ |
H A D | nweb_location_wrapper.cpp | 27 extern "C" OHOS_NWEB_EXPORT bool IsLocationEnable(bool& isEnabled) in IsLocationEnable() argument 33 LocationErrCode ret = NWeb::g_locatorProxy->IsLocationEnabledV9(isEnabled); in IsLocationEnable()
|
/base/web/webview/ohos_adapter/location_adapter/src/ |
H A D | location_proxy_adapter_impl.cpp | 304 bool LocationProxyAdapterImpl::EnableAbility(bool isEnabled) in EnableAbility() argument 310 return enableAbilityFunc_(isEnabled); in EnableAbility() 319 bool isEnabled = false; in IsLocationEnabled() local 320 return isEnableLocationFunc_(isEnabled) ? isEnabled : false; in IsLocationEnabled()
|
H A D | location_proxy_adapter_mock.cpp | 125 bool LocationProxyAdapterImpl::EnableAbility(bool isEnabled) in EnableAbility() argument
|
/base/location/interfaces/inner_api/include/ |
H A D | locator_proxy.h | 47 void EnableAbility(bool isEnabled); 82 LocationErrCode GetSwitchStateV9(bool &isEnabled); 83 LocationErrCode EnableAbilityV9(bool isEnabled); 84 LocationErrCode EnableAbilityForUser(bool isEnabled, int32_t userId);
|
H A D | location_data_manager.h | 33 LocationErrCode ReportSwitchState(bool isEnabled);
|
H A D | locator_impl.h | 305 * @param isEnabled Indicates if the location switch on. 308 LocationErrCode IsLocationEnabledV9(bool &isEnabled); 313 * @param isEnabled Indicates if the location switch on. 316 LocationErrCode IsLocationEnabledForUser(bool &isEnabled, int32_t userId);
|
/base/web/webview/ohos_adapter/location_adapter/include/ |
H A D | location_proxy_adapter_impl.h | 75 using IsEnableLocationFuncType = bool(*)(bool& isEnabled); 93 bool EnableAbility(bool isEnabled) override;
|
/base/location/test/location_locator/source/ |
H A D | locator_impl_test.cpp | 174 bool isEnabled = false; in HWTEST_F() local 175 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->IsLocationEnabledV9(isEnabled)); in HWTEST_F() 176 EXPECT_EQ(false, isEnabled); in HWTEST_F() 194 bool isEnabled = false; in HWTEST_F() local 195 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->IsLocationEnabledV9(isEnabled)); in HWTEST_F() 687 bool isEnabled = false; in HWTEST_F() local 688 EXPECT_EQ(ERRCODE_SUCCESS, locatorImpl_->IsLocationEnabledForUser(isEnabled, DEFAULT_USER)); in HWTEST_F() 689 EXPECT_EQ(false, isEnabled); in HWTEST_F()
|
/base/location/frameworks/cj/source/ |
H A D | geolocationmanager_impl.cpp | 91 bool isEnabled = false; in CheckLocationSwitchEnable() local 92 Location::LocationErrCode errorCode = g_locatorProxy->IsLocationEnabledV9(isEnabled); in CheckLocationSwitchEnable() 96 if (!isEnabled) { in CheckLocationSwitchEnable() 117 bool isEnabled = false; in CheckLocationSwitchState() local 118 Location::LocationErrCode errorCode = g_locatorProxy->IsLocationEnabledV9(isEnabled); in CheckLocationSwitchState() 122 if (!isEnabled) { in CheckLocationSwitchState() 150 bool isEnabled = false; in IsLocationEnabled() local 151 errCode = g_locatorProxy->IsLocationEnabledV9(isEnabled); in IsLocationEnabled() 152 return isEnabled; in IsLocationEnabled()
|
/base/location/frameworks/native/locator_sdk/source/ |
H A D | location_data_manager.cpp | 48 LocationErrCode LocationDataManager::ReportSwitchState(bool isEnabled) in ReportSwitchState() argument 50 int state = isEnabled ? ENABLED : DISABLED; in ReportSwitchState()
|
H A D | locator_proxy.cpp | 60 void LocatorProxy::EnableAbility(bool isEnabled) in EnableAbility() argument 67 data.WriteBool(isEnabled); in EnableAbility() 431 LocationErrCode LocatorProxy::GetSwitchStateV9(bool &isEnabled) in GetSwitchStateV9() argument 441 isEnabled = (state == ENABLED); in GetSwitchStateV9() 442 LBSLOGD(LOCATOR_STANDARD, "Proxy::GetSwitchState return %{public}d", isEnabled); in GetSwitchStateV9() 446 LocationErrCode LocatorProxy::EnableAbilityV9(bool isEnabled) in EnableAbilityV9() argument 453 data.WriteBool(isEnabled); in EnableAbilityV9() 460 LocationErrCode LocatorProxy::EnableAbilityForUser(bool isEnabled, int32_t userId) in EnableAbilityForUser() argument 467 data.WriteBool(isEnabled); in EnableAbilityForUser()
|
/base/location/frameworks/native/location_ndk/source/ |
H A D | locator_c_impl.cpp | 45 bool isEnabled = false; in OH_Location_IsLocatingEnabled() local 46 auto errCode = g_locatorProxy->IsLocationEnabledV9(isEnabled); in OH_Location_IsLocatingEnabled() 50 *enabled = isEnabled; in OH_Location_IsLocatingEnabled()
|
/base/web/webview/ohos_interface/include/ohos_adapter/ |
H A D | location_adapter.h | 109 virtual bool EnableAbility(bool isEnabled) = 0;
|
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/ |
H A D | ark_location_adapter.h | 102 virtual bool EnableAbility(bool isEnabled) = 0;
|
/base/account/os_account/interfaces/innerkits/osaccount/native/include/ |
H A D | os_account_manager.h | 152 * @param isEnabled - Indicates whether the specified constraint is enabled. 156 const int id, const std::string &constraint, bool &isEnabled); 519 * @param isEnabled - Indicates whether the constraints are enabled. 525 const bool isEnabled, const int32_t enforcerId = 0, const bool isDeviceOwner = false);
|
/base/account/os_account/test/fuzztest/osaccount/createosaccount_fuzzer/ |
H A D | createosaccount_fuzzer.cpp | 181 bool isEnabled = false; in CheckOsAccountConstraintEnabledFuzzTest() local 182 result = OsAccountManager::CheckOsAccountConstraintEnabled(userId, constraintStr, isEnabled); in CheckOsAccountConstraintEnabledFuzzTest()
|
/base/location/services/location_locator/locator/source/ |
H A D | locator_ability.cpp | 361 bool isEnabled = (state == ENABLED); in UpdateSaAbilityHandler() local 363 locatorBackgroundProxy->OnSaStateChange(isEnabled); in UpdateSaAbilityHandler() 382 data.WriteBool(isEnabled); in UpdateSaAbilityHandler() 391 SendSwitchState(isEnabled ? 1 : 0); in UpdateSaAbilityHandler() 452 LocationErrCode LocatorAbility::EnableAbility(bool isEnabled) in EnableAbility() argument 454 LBSLOGI(LOCATOR, "EnableAbility %{public}d", isEnabled); in EnableAbility() 455 int modeValue = isEnabled ? ENABLED : DISABLED; in EnableAbility() 462 LocationDataRdbManager::SetSwitchStateToSysparaForCurrentUser(isEnabled ? ENABLED : DISABLED); in EnableAbility() 471 LocationErrCode LocatorAbility::EnableAbilityForUser(bool isEnabled, int32_t userId) in EnableAbilityForUser() argument 473 LBSLOGI(LOCATOR, "EnableAbilityForUser %{public}d, UserId %{public}d", isEnabled, userI in EnableAbilityForUser() 2197 bool isEnabled = (modeValue == ENABLED); SetSwitchStateToDbEvent() local 2222 bool isEnabled = (modeValue == ENABLED); SetSwitchStateToDbForUserEvent() local [all...] |
H A D | locator_skeleton.cpp | 361 bool isEnabled = data.ReadBool(); in PreEnableAbility() local 365 if (code == ERRCODE_SUCCESS && isEnabled && !privacyState && identity.GetBundleName() == "com.ohos.sceneboard") { in PreEnableAbility() 370 LocationErrCode errCode = locatorAbility->EnableAbility(isEnabled); in PreEnableAbility() 374 if (code == ERRCODE_SUCCESS && errCode == ERRCODE_SUCCESS && isEnabled && !privacyState && in PreEnableAbility() 393 bool isEnabled = data.ReadBool(); in PreEnableAbilityForUser() local 399 if (code == ERRCODE_SUCCESS && isEnabled && !privacyState && identity.GetBundleName() == "com.ohos.sceneboard" && in PreEnableAbilityForUser() 405 LocationErrCode errCode = LocatorAbility::GetInstance()->EnableAbilityForUser(isEnabled, userId); in PreEnableAbilityForUser() 409 if (code == ERRCODE_SUCCESS && errCode == ERRCODE_SUCCESS && isEnabled && !privacyState && in PreEnableAbilityForUser()
|
/base/account/os_account/frameworks/appaccount/cj/include/ |
H A D | appaccount_ffi.h | 69 FFI_EXPORT int32_t FfiAppAccountAppAccountManagerSetDataSyncEnabled(int id, char *name, bool isEnabled);
|
/base/account/os_account/frameworks/appaccount/cj/src/ |
H A D | appaccount_ffi.cpp | 231 int32_t FfiAppAccountAppAccountManagerSetDataSyncEnabled(int id, char *name, bool isEnabled) in FfiAppAccountAppAccountManagerSetDataSyncEnabled() argument 237 return instance->setDataSyncEnabled(name, isEnabled); in FfiAppAccountAppAccountManagerSetDataSyncEnabled()
|
/base/location/frameworks/js/napi/source/ |
H A D | location_napi_adapter.cpp | 105 bool isEnabled = false; in IsLocationEnabled() local 106 LocationErrCode errorCode = g_locatorClient->IsLocationEnabledV9(isEnabled); in IsLocationEnabled() 111 NAPI_CALL(env, napi_get_boolean(env, isEnabled, &res)); in IsLocationEnabled() 502 bool isEnabled = false; in CreateReverseGeocodeAsyncContext() local 503 LocationErrCode errorCode = g_locatorClient->IsLocationPrivacyConfirmedV9(type, isEnabled); in CreateReverseGeocodeAsyncContext() 508 NAPI_CALL(env, napi_get_boolean(env, isEnabled, &res)); in CreateReverseGeocodeAsyncContext() 934 bool isEnabled = false; in CreateReverseGeocodeAsyncContext() local 935 LocationErrCode errorCode = g_locatorClient->IsLocationEnabledV9(isEnabled); in CreateReverseGeocodeAsyncContext() 939 if (!isEnabled) { in CreateReverseGeocodeAsyncContext()
|