Home
last modified time | relevance | path

Searched refs:SetApplicationEnabled (Results 1 - 25 of 31) sorted by relevance

12

/foundation/bundlemanager/bundle_tool/test/mock/
H A Dmock_bundle_mgr_host.h33 ErrCode SetApplicationEnabled(const std::string &bundleName, bool isEnable,
H A Dmock_bundle_mgr_host.cpp55 ErrCode MockBundleMgrHost::SetApplicationEnabled(const std::string &bundleName, bool isEnable, int32_t userId) in SetApplicationEnabled() function in OHOS::AppExecFwk::MockBundleMgrHost
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_resource_helper.h45 static void SetApplicationEnabled(const std::string &bundleName, bool enabled, const int32_t userId,
H A Dbundle_mgr_host_impl.h596 virtual ErrCode SetApplicationEnabled(const std::string &bundleName, bool isEnable,
H A Dbundle_data_mgr.h456 ErrCode SetApplicationEnabled(const std::string &bundleName, int32_t appIndex, bool isEnable,
H A Dinner_bundle_info.h506 * @return Returns ERR_OK if the SetApplicationEnabled is successfully; returns error code otherwise.
508 ErrCode SetApplicationEnabled(bool enabled, int32_t userId = Constants::UNSPECIFIED_USERID);
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundlemgr/
H A Dnative_module.cpp101 DECLARE_NAPI_FUNCTION("setApplicationEnabled", SetApplicationEnabled), in Init()
H A Dbundle_mgr.h335 napi_value SetApplicationEnabled(napi_env env, napi_callback_info info);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_user_mgr_host_impl.cpp434 dataMgr->SetApplicationEnabled(Constants::SCENE_BOARD_BUNDLE_NAME, 0, sceneBoardEnable, userId); in HandleSceneBoard()
435 dataMgr->SetApplicationEnabled(ServiceConstants::LAUNCHER_BUNDLE_NAME, 0, !sceneBoardEnable, userId); in HandleSceneBoard()
H A Dbundle_mgr_host_impl.cpp2057 ErrCode BundleMgrHostImpl::SetApplicationEnabled(const std::string &bundleName, bool isEnable, int32_t userId) in SetApplicationEnabled() function in OHOS::AppExecFwk::BundleMgrHostImpl
2060 APP_LOGW_NOFUNC("SetApplicationEnabled %{public}s %{public}d %{public}d callingUid:%{public}d", in SetApplicationEnabled()
2085 auto ret = dataMgr->SetApplicationEnabled(bundleName, 0, isEnable, userId); in SetApplicationEnabled()
2138 auto ret = dataMgr->SetApplicationEnabled(bundleName, appIndex, isEnable, userId); in SetCloneApplicationEnabled()
H A Dbundle_mgr_service_event_handler.cpp3453 dataMgr->SetApplicationEnabled(ServiceConstants::SYSTEM_UI_BUNDLE_NAME, 0, !sceneBoardEnable, in HandleSceneBoard()
3460 dataMgr->SetApplicationEnabled(Constants::SCENE_BOARD_BUNDLE_NAME, 0, sceneBoardEnable, userId); in HandleSceneBoard()
3461 dataMgr->SetApplicationEnabled(ServiceConstants::LAUNCHER_BUNDLE_NAME, 0, !sceneBoardEnable, userId); in HandleSceneBoard()
H A Dbundle_data_mgr.cpp218 newInfo.SetApplicationEnabled(tempUserInfo.enabled, bundleUserState.first); in LoadAllBundleStateDataFromJsonDb()
4227 ErrCode BundleDataMgr::SetApplicationEnabled(const std::string &bundleName, in SetApplicationEnabled() function in OHOS::AppExecFwk::BundleDataMgr
4230 APP_LOGD("SetApplicationEnabled %{public}s", bundleName.c_str()); in SetApplicationEnabled()
4256 auto ret = newInfo.SetApplicationEnabled(isEnable, requestUserId); in SetApplicationEnabled()
4258 APP_LOGW("SetApplicationEnabled failed, err %{public}d", ret); in SetApplicationEnabled()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/
H A Dnative_module.cpp106 DECLARE_NAPI_FUNCTION("setApplicationEnabled", SetApplicationEnabled), in BundleManagerExport()
H A Dbundle_manager.h295 napi_value SetApplicationEnabled(napi_env env, napi_callback_info info);
H A Dbundle_manager_sync.cpp171 ErrCode ret = CommonFunc::ConvertErrCode(iBundleMgr->SetApplicationEnabled(bundleName, isEnable)); in SetApplicationEnabledSync()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_application/bundlemgrproxy_fuzzer/
H A Dbundlemgrproxy_fuzzer.cpp52 bundleMgrProxy.SetApplicationEnabled(bundleName, isEnable, reinterpret_cast<uintptr_t>(data)); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/
H A Dbundle_mgr_interface.h862 virtual ErrCode SetApplicationEnabled(const std::string &bundleName, bool isEnable, in SetApplicationEnabled() function in OHOS::AppExecFwk::IBundleMgr
H A Dbundle_mgr_proxy.h617 virtual ErrCode SetApplicationEnabled(const std::string &bundleName, bool isEnable,
/foundation/bundlemanager/bundle_framework/test/benchmarktest/bundlemgr_proxy_test/
H A Dbundlemgr_proxy_test.cpp852 * @tc.desc: Testcase for testing SetApplicationEnabled.
864 /* @tc.steps: step1.call SetApplicationEnabled in loop */ in BenchmarkTestSetApplicationEnabled()
865 bundleMgrProxy->SetApplicationEnabled(BUNDLE_NAME, false); in BenchmarkTestSetApplicationEnabled()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/
H A Dbms_bundle_manager_test.cpp2136 ErrCode ret = info.SetApplicationEnabled(enabled, USERID); in HWTEST_F()
2633 retCode = hostImpl->SetApplicationEnabled("", isRemovable, USERID); in HWTEST_F()
2805 retCode = hostImpl->SetApplicationEnabled("", isEnabled, USERID); in HWTEST_F()
2830 auto retCode = hostImpl->SetApplicationEnabled("", isEnabled, USERID); in HWTEST_F()
3388 ErrCode testRet = GetBundleDataMgr()->SetApplicationEnabled( in HWTEST_F()
3629 * @tc.name: test SetApplicationEnabled
3636 ErrCode testRet = GetBundleDataMgr()->SetApplicationEnabled( in HWTEST_F()
5586 auto ret = dataMgr->SetApplicationEnabled(BUNDLE_BACKUP_NAME, 0, false, USERID); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_permission_grant_test/
H A Dbms_bundle_permission_false_test.cpp618 * @tc.name: test SetApplicationEnabled of BundleMgrHostImpl
620 * 2. SetApplicationEnabled false by no permission
625 ErrCode ret = bundleMgrHostImpl_->SetApplicationEnabled(BUNDLE_NAME, isEnable, USERID); in HWTEST_F()
H A Dbms_bundle_permission_system_app_test.cpp493 * @tc.name: test SetApplicationEnabled of BundleMgrHostImpl
495 * 2. SetApplicationEnabled false by no permission
500 ErrCode ret = bundleMgrHostImpl_->SetApplicationEnabled(BUNDLE_NAME, isEnable, USERID); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/
H A Dbms_bundle_kit_service_test.cpp4003 int32_t testRet = GetBundleDataMgr()->SetApplicationEnabled(BUNDLE_NAME_TEST, 0, true, Constants::DEFAULT_USERID); in HWTEST_F()
4023 int32_t testRet = GetBundleDataMgr()->SetApplicationEnabled(BUNDLE_NAME_TEST, 0, false, Constants::DEFAULT_USERID); in HWTEST_F()
4030 int32_t testRet2 = GetBundleDataMgr()->SetApplicationEnabled(BUNDLE_NAME_TEST, 0, true, Constants::DEFAULT_USERID); in HWTEST_F()
4062 int32_t testRet = GetBundleDataMgr()->SetApplicationEnabled("", 0, true, Constants::DEFAULT_USERID); in HWTEST_F()
4082 int32_t testRet = GetBundleDataMgr()->SetApplicationEnabled(BUNDLE_NAME_TEST, 0, true, Constants::DEFAULT_USERID); in HWTEST_F()
4106 int32_t testRet = bundleMgrProxy->SetApplicationEnabled("", true, Constants::DEFAULT_USERID); in HWTEST_F()
4126 ErrCode testRet = hostImpl->SetApplicationEnabled("", true, Constants::UNSPECIFIED_USERID); in HWTEST_F()
4144 ErrCode testRet = GetBundleDataMgr()->SetApplicationEnabled("", 0, true, Constants::INVALID_USERID); in HWTEST_F()
4150 * @tc.name: test hostImpl->SetApplicationEnabled
4160 ErrCode testRet = hostImpl->SetApplicationEnabled(BUNDLE_NAME_TES in HWTEST_F()
[all...]
/foundation/bundlemanager/bundle_tool/frameworks/src/
H A Dbundle_command.cpp2227 ret = bundleMgrProxy_->SetApplicationEnabled(abilityInfo.bundleName, isEnable, userId); in SetApplicationEnabledOperation()
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/acts_bms_kit_system_test/
H A Dacts_bms_kit_system_test.cpp1256 auto setResult = bundleMgrProxy->SetApplicationEnabled(appName, false, USERID); in HWTEST_F()
1262 auto resetResult = bundleMgrProxy->SetApplicationEnabled(appName, true, USERID); in HWTEST_F()
7071 * @tc.name: test SetApplicationEnabled proxy
7081 ErrCode ret = bundleMgrProxy->SetApplicationEnabled(bundleName, true, userId); in HWTEST_F()
8857 auto setAppResult = bundleMgrProxy->SetApplicationEnabled(appName, false, USERID); in HWTEST_F()

Completed in 102 milliseconds

12