Home
last modified time | relevance | path

Searched refs:appIndex (Results 1 – 25 of 500) sorted by relevance

12345678910>>...20

/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_clone_app_test/
H A Dbms_bundle_clone_app_bundle_logic_test.cpp68 "appIndex":0,
284 .appIndex = appIndex,
326 .appIndex = appIndex,
372 cloneInfo1.appIndex = appIndex;
375 appIndex = 0;
382 cloneInfo2.appIndex = appIndex;
392 cloneInfo3.appIndex = appIndex;
427 cloneInfo2.appIndex = appIndex;
438 cloneInfo1.appIndex = appIndex;
506 cloneInfo2.appIndex = appIndex;
[all …]
H A Dbms_bundle_clone_app_ipc_test.cpp122 int32_t appIndex = 0; variable
134 int32_t appIndex = 0; variable
150 int32_t appIndex = 1; variable
178 int32_t appIndex = 1; variable
207 int32_t appIndex = 1; variable
234 int32_t appIndex = 1; variable
255 int32_t appIndex = 1; variable
276 int32_t appIndex = 10; variable
297 int32_t appIndex = 1; variable
313 int32_t appIndex = 0; variable
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/clone/
H A Dbundle_clone_installer.cpp47 const int32_t userId, int32_t &appIndex) in InstallCloneApp() argument
61 .appIndex = appIndex, in InstallCloneApp()
90 .appIndex = appIndex, in UninstallCloneApp()
145 const int32_t userId, int32_t &appIndex) in ProcessCloneBundleInstall() argument
195 info.SetAppIndex(appIndex); in ProcessCloneBundleInstall()
207 .appIndex = appIndex, in ProcessCloneBundleInstall()
228 bundleName.c_str(), userId, appIndex); in ProcessCloneBundleInstall()
236 if (appIndexes.find(appIndex) == appIndexes.end()) { in ProcessCloneBundleInstall()
250 int32_t userId, int32_t appIndex) in ProcessCloneBundleUninstall() argument
256 …if (appIndex < ServiceConstants::CLONE_APP_INDEX_MIN || appIndex > ServiceConstants::CLONE_APP_IND… in ProcessCloneBundleUninstall()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_sandbox_app_test/
H A Dbms_bundle_sandbox_app_test.cpp397 int32_t appIndex = 0; variable
416 int32_t appIndex = 0; variable
438 int32_t appIndex = 0; variable
460 int32_t appIndex = 0; variable
476 int32_t appIndex = 0; variable
489 int32_t appIndex = 0; variable
510 int32_t appIndex = 0; variable
526 int32_t appIndex = 0; variable
539 int32_t appIndex = 0; variable
558 int32_t appIndex = 0; variable
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/src/appaccount/
H A Dapp_account_manager_service.cpp53 uint32_t appIndex; in AddAccount() local
85 uint32_t appIndex; in CreateAccount() local
115 uint32_t appIndex; in DeleteAccount() local
127 uint32_t appIndex; in GetAccountExtraInfo() local
139 uint32_t appIndex; in SetAccountExtraInfo() local
211 uint32_t appIndex; in CheckAppAccountSyncEnable() local
229 uint32_t appIndex; in SetAppAccountSyncEnable() local
518 uint32_t appIndex; in GetAllAccounts() local
545 uint32_t appIndex; in GetAllAccessibleAccounts() local
563 uint32_t appIndex; in QueryAllAccessibleAccounts() local
[all …]
H A Dinner_app_account_manager.cpp43 appAccountInfo.SetAppIndex(appIndex); in AddAccount()
56 appAccountInfo.SetAppIndex(appIndex); in CreateAccount()
69 appAccountInfo.SetAppIndex(appIndex); in DeleteAccount()
87 appAccountInfo.SetAppIndex(appIndex); in SetAccountExtraInfo()
99 appAccountInfo.SetAppIndex(appAccountCallingInfo.appIndex); in EnableAppAccess()
113 appAccountInfo.SetAppIndex(appAccountCallingInfo.appIndex); in DisableAppAccess()
139 appAccountInfo.SetAppIndex(appIndex); in SetAppAccountSyncEnable()
157 appAccountInfo.SetAppIndex(appAccountCallingInfo.appIndex); in SetAssociatedData()
193 appAccountCallingInfo.appIndex = appIndex; in DeleteAccountCredential()
199 appAccountInfo.SetAppIndex(appIndex); in DeleteAccountCredential()
[all …]
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/test/unittest/src/
H A Dapp_state_observer_test.cpp94 appInfo.appIndex = 1001;
187 int32_t appIndex = -1; variable
188 observer.GetOpeningReadOnlySandbox(DLP_BUNDLENAME, DEFAULT_USERID, appIndex);
189 ASSERT_EQ(appIndex, -1);
195 appInfo.appIndex = DEFAULT_NUM;
200 observer.GetOpeningReadOnlySandbox(DLP_BUNDLENAME, DEFAULT_USERID, appIndex);
201 ASSERT_EQ(appIndex, appInfo.appIndex);
205 ASSERT_EQ(appIndex, -1);
210 ASSERT_EQ(appIndex, -1);
215 ASSERT_EQ(appIndex, -1);
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/sandbox_app/
H A Dbundle_sandbox_app_helper.cpp24 …id BundleSandboxAppHelper::SaveSandboxAppInfo(const InnerBundleInfo &info, const int32_t &appIndex) in SaveSandboxAppInfo() argument
32 sandboxDataMgr_->SaveSandboxAppInfo(info, appIndex); in SaveSandboxAppInfo()
46 sandboxDataMgr_->DeleteSandboxAppInfo(bundleName, appIndex); in DeleteSandboxAppInfo()
61 return sandboxDataMgr_->GetSandboxAppBundleInfo(bundleName, appIndex, userId, info); in GetSandboxAppBundleInfo()
83 bool BundleSandboxAppHelper::DeleteSandboxAppIndex(const std::string &bundleName, int32_t appIndex) in DeleteSandboxAppIndex() argument
91 return sandboxDataMgr_->DeleteSandboxAppIndex(bundleName, appIndex); in DeleteSandboxAppIndex()
124 return sandboxDataMgr_->GetSandboxAppInfo(bundleName, appIndex, userId, info); in GetSandboxAppInfo()
163 const int32_t &userId, int32_t &appIndex) in InstallSandboxApp() argument
168 return installer->InstallSandboxApp(bundleName, dlpType, userId, appIndex); in InstallSandboxApp()
176 const std::string &bundleName, const int32_t &appIndex, const int32_t &userId) in UninstallSandboxApp() argument
[all …]
H A Dbundle_sandbox_data_mgr.cpp61 auto key = std::to_string(appIndex) + Constants::FILE_UNDERLINE + bundleName; in DeleteSandboxAppInfo()
79 if (appIndex <= Constants::INITIAL_SANDBOX_APP_INDEX) { in GetSandboxAppInfo()
192 auto ret = it->second.erase(appIndex); in DeleteSandboxAppIndex()
194 APP_LOGE("no sandbox app index can be found %{public}d", appIndex); in DeleteSandboxAppIndex()
216 …if (appIndex <= Constants::INITIAL_SANDBOX_APP_INDEX || appIndex > Constants::MAX_SANDBOX_APP_INDE… in GetSandboxHapModuleInfo()
217 APP_LOGE("the appIndex %{public}d is invalid", appIndex); in GetSandboxHapModuleInfo()
310 int32_t appIndex = 0; in RestoreSandboxPersistentInnerBundleInfo() local
311 if (!OHOS::StrToInt(appIndexStr, appIndex)) { in RestoreSandboxPersistentInnerBundleInfo()
315 if (!RestoreSandboxAppIndex(bundleName, appIndex)) { in RestoreSandboxPersistentInnerBundleInfo()
332 std::set<int32_t> innerSet { appIndex }; in RestoreSandboxAppIndex()
[all …]
H A Dbundle_sandbox_installer.cpp46 const int32_t &userId, int32_t &appIndex) in InstallSandboxApp() argument
143 appIndex = newAppIndex; in InstallSandboxApp()
151 const std::string &bundleName, const int32_t &appIndex, const int32_t &userId) in UninstallSandboxApp() argument
204 if (!sandboxDataMgr_->DeleteSandboxAppIndex(bundleName, appIndex)) { in UninstallSandboxApp()
221 sandboxDataMgr_->DeleteSandboxAppInfo(bundleName, appIndex); in UninstallSandboxApp()
244 InnerBundleInfo &info, const int32_t &uid, const int32_t &appIndex) const in CreateSandboxDataDir()
256 createDirParam.isDlpSandbox = (appIndex > DLP_SANDBOX_APP_INDEX); in CreateSandboxDataDir()
276 auto appIndex = info.GetAppIndex(); in SandboxAppRollBack() local
281 sandboxDataMgr_->DeleteSandboxAppIndex(bundleName, appIndex); in SandboxAppRollBack()
319 int32_t appIndex = Constants::INITIAL_SANDBOX_APP_INDEX; in UninstallAllSandboxApps() local
[all …]
/ohos5.0/foundation/ability/ability_runtime/services/abilitymgr/src/
H A Dstart_ability_utils.cpp50 appIndex = abilityRecord->GetAppIndex(); in GetAppIndex()
125 int32_t appIndex = 0; in CheckAppProvisionMode() local
171 validUserId, appIndex); in StartAbilityInfoWrap()
174 validUserId, appIndex); in StartAbilityInfoWrap()
226 int32_t appIndex) in CreateStartAbilityInfo() argument
234 if (appIndex > 0 && appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) { in CreateStartAbilityInfo()
242 if (appIndex == 0) { in CreateStartAbilityInfo()
251 if (appIndex == 0) { in CreateStartAbilityInfo()
278 int32_t appIndex) in CreateStartExtensionInfo() argument
286 if (appIndex > 0 && appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) { in CreateStartExtensionInfo()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_sandbox_app_system_test/
H A Dbundle_mgr_sandbox_app_system_test.cpp359 int32_t appIndex = 0; variable
391 int32_t appIndex = 0; variable
428 int32_t appIndex = 0; variable
459 int32_t appIndex = 0; variable
496 int32_t appIndex = 0; variable
531 int32_t appIndex = 0; variable
574 int32_t appIndex = 0; variable
618 int32_t appIndex = 0; variable
663 int32_t appIndex = 0; variable
698 int32_t appIndex = 0; variable
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_manager.cpp567 const int32_t appIndex) in AddCloneBundleResourceInfo() argument
570 bundleName.c_str(), appIndex); in AddCloneBundleResourceInfo()
575 bundleName.c_str(), appIndex); in AddCloneBundleResourceInfo()
594 const int32_t appIndex) in DeleteCloneBundleResourceInfo() argument
597 bundleName.c_str(), appIndex); in DeleteCloneBundleResourceInfo()
600 info.appIndex_ = appIndex; in DeleteCloneBundleResourceInfo()
615 bundleResourceInfo.appIndex = appIndex; in GetBundleResourceInfoForCloneBundle()
623 bundleName.c_str(), appIndex); in GetBundleResourceInfoForCloneBundle()
626 launcherAbility.appIndex = appIndex; in GetBundleResourceInfoForCloneBundle()
638 const int32_t appIndex, in UpdateCloneBundleResourceInfo() argument
[all …]
H A Dbundle_resource_host_impl.cpp30 BundleResourceInfo &bundleResourceInfo, const int32_t appIndex) in GetBundleResourceInfo() argument
43 if ((appIndex < 0) || (appIndex > ServiceConstants::CLONE_APP_INDEX_MAX)) { in GetBundleResourceInfo()
45 bundleName.c_str(), appIndex); in GetBundleResourceInfo()
53 if (!manager->GetBundleResourceInfo(bundleName, flags, bundleResourceInfo, appIndex)) { in GetBundleResourceInfo()
55 return CheckBundleNameValid(bundleName, appIndex); in GetBundleResourceInfo()
61 std::vector<LauncherAbilityResourceInfo> &launcherAbilityResourceInfo, const int32_t appIndex) in GetLauncherAbilityResourceInfo() argument
72 if ((appIndex < 0) || (appIndex > ServiceConstants::CLONE_APP_INDEX_MAX)) { in GetLauncherAbilityResourceInfo()
74 bundleName.c_str(), appIndex); in GetLauncherAbilityResourceInfo()
84 return CheckBundleNameValid(bundleName, appIndex); in GetLauncherAbilityResourceInfo()
294 if (appIndex == 0) { in CheckBundleNameValid()
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/app/src/installer/
H A Dinstaller_impl.cpp60 int32_t appIndex = want.GetIntParam(SANDBOX_APP_INDEX, 0); in OnReceiveEvent() local
62 (this->*(it->second))(bundleName, userId, appIndex); in OnReceiveEvent()
68 kvStoreDataService_->OnUninstall(bundleName, userId, appIndex); in OnUninstall()
74 userId, appIndex); in OnUninstall()
78 if (meta.instanceId == appIndex && !meta.appId.empty() && !meta.storeId.empty()) { in OnUninstall()
80 bundleName.c_str(), Anonymous::Change(meta.storeId).c_str(), userId, appIndex); in OnUninstall()
97 kvStoreDataService_->OnUpdate(bundleName, userId, appIndex); in OnUpdate()
103 userId, appIndex); in OnUpdate()
107 if (meta.instanceId == appIndex && !meta.appId.empty() && !meta.storeId.empty()) { in OnUpdate()
109 bundleName.c_str(), Anonymous::Change(meta.storeId).c_str(), userId, appIndex); in OnUpdate()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/
H A Dbundle_mgr_client.cpp147 int32_t &appIndex) in InstallSandboxApp() argument
153 return impl_->InstallSandboxApp(bundleName, dlpType, userId, appIndex); in InstallSandboxApp()
156 ErrCode BundleMgrClient::UninstallSandboxApp(const std::string &bundleName, int32_t appIndex, int32… in UninstallSandboxApp() argument
162 return impl_->UninstallSandboxApp(bundleName, appIndex, userId); in UninstallSandboxApp()
166 const std::string &bundleName, int32_t appIndex, int32_t userId, BundleInfo &info) in GetSandboxBundleInfo() argument
172 return impl_->GetSandboxBundleInfo(bundleName, appIndex, userId, info); in GetSandboxBundleInfo()
182 return impl_->GetSandboxAbilityInfo(want, appIndex, flags, userId, abilityInfo); in GetSandboxAbilityInfo()
192 return impl_->GetSandboxExtAbilityInfos(want, appIndex, flags, userId, extensionInfos); in GetSandboxExtAbilityInfos()
202 return impl_->GetSandboxHapModuleInfo(abilityInfo, appIndex, userId, hapModuleInfo); in GetSandboxHapModuleInfo()
205 …ndleMgrClient::GetDirByBundleNameAndAppIndex(const std::string &bundleName, const int32_t appIndex, in GetDirByBundleNameAndAppIndex() argument
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/sandbox_app/
H A Dbundle_sandbox_app_helper.h37 void SaveSandboxAppInfo(const InnerBundleInfo &info, const int32_t &appIndex);
38 void DeleteSandboxAppInfo(const std::string &bundleName, const int32_t &appIndex);
40 …const std::string &bundleName, const int32_t &appIndex, const int32_t &userId, BundleInfo &info) c…
42 bool DeleteSandboxAppIndex(const std::string &bundleName, int32_t appIndex);
45 …const std::string &bundleName, const int32_t &appIndex, int32_t &userId, InnerBundleInfo &info) co…
46 … ErrCode GetSandboxHapModuleInfo(const AbilityInfo &abilityInfo, int32_t appIndex, int32_t userId,
52 int32_t &appIndex);
54 …ErrCode UninstallSandboxApp(const std::string &bundleName, const int32_t &appIndex, const int32_t …
/ohos5.0/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dapp_state_observer.cpp47 if (appInfo.appIndex <= 0) { // never uninstall original hap in UninstallDlpSandbox()
51 appInfo.appIndex, appInfo.uid); in UninstallDlpSandbox()
72 appInfo.bundleName.c_str(), appInfo.appIndex, appInfo.pid); in UninstallAllDlpSandboxForUser()
152 …if (iter.second.bundleName == bundleName && iter.second.appIndex == appIndex && iter.second.userId… in CheckSandboxInfo()
175 appInfo.bundleName.c_str(), appInfo.appIndex); in AddSandboxInfo()
199 .appIndex = appInfo.appIndex, in AddDlpSandboxInfo()
251 sandboxInfo.appIndex = appInfo.appIndex; in GetOpeningSandboxInfo()
267 appIndex = appInfo.appIndex; in GetOpeningReadOnlySandbox()
271 appIndex = -1; in GetOpeningReadOnlySandbox()
324 appInfo.bundleName.c_str(), appInfo.appIndex, appInfo.pid); in OnProcessDied()
[all …]
/ohos5.0/base/account/os_account/services/accountmgr/include/appaccount/
H A Dinner_app_account_manager.h34 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
37 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
43 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
45 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
55 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
57 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
69 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
88 const std::string &bundleName, const uint32_t &appIndex);
90 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
94 const uid_t &uid, const std::string &bundleName, const uint32_t &appIndex);
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/unittest/bundle_mgr_helper_test/
H A Dbundle_mgr_helper_test.cpp521 int32_t appIndex = 1; variable
536 int32_t appIndex = 1; variable
551 int32_t appIndex = 1; variable
564 int32_t appIndex = 1; variable
579 int32_t appIndex = -1; variable
605 int32_t appIndex = -1; variable
620 int32_t appIndex = 10; variable
635 int32_t appIndex = 0; variable
651 int32_t appIndex = FIRST_APP_INDEX; variable
699 int32_t appIndex = 0; variable
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/clone/
H A Dbundle_clone_installer.h39 ErrCode InstallCloneApp(const std::string &bundleName, const int32_t userId, int32_t &appIndex);
47 …ode UninstallCloneApp(const std::string &bundleName, const int32_t userId, const int32_t appIndex);
57 … InnerBundleInfo &info, const int32_t userId, const int32_t &uid, const int32_t &appIndex) const;
58 ErrCode RemoveCloneDataDir(const std::string bundleName, int32_t userId, int32_t appIndex);
61 … ProcessCloneBundleInstall(const std::string &bundleName, const int32_t userId, int32_t &appIndex);
62 …rCode ProcessCloneBundleUninstall(const std::string &bundleName, int32_t userId, int32_t appIndex);
65 int32_t userId, int32_t appIndex, bool isPreInstallApp, bool isFreeInstallMode,
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/
H A Dbundle_data_mgr.h158 int32_t appIndex = 0) const;
247 ApplicationInfo &appInfo, const int32_t appIndex = 0) const;
775 const int32_t appIndex = 0, const uint32_t statFlag = 0) const;
932 int32_t &appIndex) const;
965 int32_t appIndex, AbilityInfo &abilityInfo) const;
1070 int32_t appIndex = 0) const;
1072 int32_t appIndex = 0) const;
1117 int32_t appIndex = 0) const;
1119 std::vector<AbilityInfo> &abilityInfos, int32_t appIndex) const;
1149 int32_t appIndex, AbilityInfo &abilityInfo) const;
[all …]
/ohos5.0/foundation/ability/ability_runtime/test/unittest/startup_util_test/
H A Dstartup_util_test.cpp54 int32_t appIndex = 0; variable
55 auto queryRet = StartupUtil::GetAppIndex(want, appIndex);
68 int32_t appIndex = 0; variable
69 auto queryRet = StartupUtil::GetAppIndex(want, appIndex);
81 int32_t appIndex = 1001; variable
82 want.SetParam(AAFwk::Want::PARAM_APP_CLONE_INDEX_KEY, appIndex);
83 auto queryRet = StartupUtil::GetAppIndex(want, appIndex);
/ohos5.0/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/test/unittest/src/
H A Ddlp_permission_kit_test.cpp152 if (appIndex > 0) { in TestGetAppUid()
179 ASSERT_TRUE(sandboxInfo.appIndex != 0); in TestInstallDlpSandbox()
201 ASSERT_TRUE(TestGetAppUid(bundleName, appIndex, userId, uid)); in TestMockApp()
328 ASSERT_TRUE(sandboxInfo.appIndex != 0);
404 ASSERT_TRUE(sandboxInfo.appIndex != 0);
534 ASSERT_TRUE(sandboxInfo.appIndex != 0);
567 ASSERT_TRUE(sandboxInfo.appIndex != 0);
579 int32_t appIndex = 1; variable
632 ASSERT_TRUE(sandboxInfo.appIndex != 0);
653 ASSERT_TRUE(sandboxInfo.appIndex != 0);
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
H A Dbundle_resource_helper.cpp155 const int32_t appIndex, const int32_t userId) in AddCloneBundleResourceInfo() argument
159 bundleName.c_str(), appIndex, userId); in AddCloneBundleResourceInfo()
165 if (!manager->AddCloneBundleResourceInfo(bundleName, appIndex)) { in AddCloneBundleResourceInfo()
167 bundleName.c_str(), appIndex); in AddCloneBundleResourceInfo()
171 bundleName.c_str(), appIndex, userId); in AddCloneBundleResourceInfo()
180 const int32_t appIndex, const int32_t userId) in DeleteCloneBundleResourceInfo() argument
184 bundleName.c_str(), appIndex, userId); in DeleteCloneBundleResourceInfo()
191 if (!manager->DeleteCloneBundleResourceInfo(bundleName, appIndex)) { in DeleteCloneBundleResourceInfo()
192 APP_LOGE("failed, key:%{public}s appIndex:%{public}d", bundleName.c_str(), appIndex); in DeleteCloneBundleResourceInfo()

12345678910>>...20