Home
last modified time | relevance | path

Searched refs:isEnabled (Results 1 - 25 of 43) sorted by relevance

12

/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_location_proxy_adapter_wrapper.cpp46 bool ArkLocationProxyAdapterWrapper::EnableAbility(bool isEnabled) in EnableAbility() argument
48 return ctocpp_->EnableAbility(isEnabled); in EnableAbility()
H A Dark_location_proxy_adapter_wrapper.h33 bool EnableAbility(bool isEnabled) override;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_location_proxy_adapter_impl.cpp46 bool ArkLocationProxyAdapterImpl::EnableAbility(bool isEnabled) in EnableAbility() argument
48 return real_->EnableAbility(isEnabled); in EnableAbility()
H A Dark_location_proxy_adapter_impl.h33 bool EnableAbility(bool isEnabled) override;
/base/web/webview/ohos_wrapper/src/
H A Dnweb_location_wrapper.cpp27 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 Dlocation_proxy_adapter_impl.cpp304 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 Dlocation_proxy_adapter_mock.cpp125 bool LocationProxyAdapterImpl::EnableAbility(bool isEnabled) in EnableAbility() argument
/base/location/interfaces/inner_api/include/
H A Dlocator_proxy.h47 void EnableAbility(bool isEnabled);
82 LocationErrCode GetSwitchStateV9(bool &isEnabled);
83 LocationErrCode EnableAbilityV9(bool isEnabled);
84 LocationErrCode EnableAbilityForUser(bool isEnabled, int32_t userId);
H A Dlocation_data_manager.h33 LocationErrCode ReportSwitchState(bool isEnabled);
H A Dlocator_impl.h305 * @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 Dlocation_proxy_adapter_impl.h75 using IsEnableLocationFuncType = bool(*)(bool& isEnabled);
93 bool EnableAbility(bool isEnabled) override;
/base/location/test/location_locator/source/
H A Dlocator_impl_test.cpp174 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 Dgeolocationmanager_impl.cpp91 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 Dlocation_data_manager.cpp48 LocationErrCode LocationDataManager::ReportSwitchState(bool isEnabled) in ReportSwitchState() argument
50 int state = isEnabled ? ENABLED : DISABLED; in ReportSwitchState()
H A Dlocator_proxy.cpp60 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 Dlocator_c_impl.cpp45 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 Dlocation_adapter.h109 virtual bool EnableAbility(bool isEnabled) = 0;
/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/include/
H A Dark_location_adapter.h102 virtual bool EnableAbility(bool isEnabled) = 0;
/base/account/os_account/interfaces/innerkits/osaccount/native/include/
H A Dos_account_manager.h152 * @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 Dcreateosaccount_fuzzer.cpp181 bool isEnabled = false; in CheckOsAccountConstraintEnabledFuzzTest() local
182 result = OsAccountManager::CheckOsAccountConstraintEnabled(userId, constraintStr, isEnabled); in CheckOsAccountConstraintEnabledFuzzTest()
/base/location/services/location_locator/locator/source/
H A Dlocator_ability.cpp361 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 Dlocator_skeleton.cpp361 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 Dappaccount_ffi.h69 FFI_EXPORT int32_t FfiAppAccountAppAccountManagerSetDataSyncEnabled(int id, char *name, bool isEnabled);
/base/account/os_account/frameworks/appaccount/cj/src/
H A Dappaccount_ffi.cpp231 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 Dlocation_napi_adapter.cpp105 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()

Completed in 18 milliseconds

12