/ohos5.0/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_sandbox_app_system_test/ |
H A D | bundle_mgr_sandbox_app_system_test.cpp | 254 auto dataPath = BUNDLE_DATA_DIR1 + innerBundleName; in CheckPathAreExisted() 258 dataPath = BUNDLE_DATA_DIR2 + innerBundleName; in CheckPathAreExisted() 270 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/haps"; in CheckPathAreExisted() 278 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/temp"; in CheckPathAreExisted() 282 dataPath = BUNDLE_DATA_DIR4 + innerBundleName; in CheckPathAreExisted() 290 auto dataPath = BUNDLE_DATA_DIR1 + innerBundleName; in CheckPathAreNonExisted() 294 dataPath = BUNDLE_DATA_DIR2 + innerBundleName; in CheckPathAreNonExisted() 302 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/el3"; in CheckPathAreNonExisted() 306 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/el4"; in CheckPathAreNonExisted() 310 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/haps"; in CheckPathAreNonExisted() [all …]
|
/ohos5.0/foundation/ability/ability_lite/services/abilitymgr_lite/src/client/ |
H A D | app_spawn_client.cpp | 94 char *innerBundleName = appRecord.GetBundleInfo().bundleName; in SpawnProcess() local 95 if (innerBundleName == nullptr) { in SpawnProcess() 103 cJSON_AddStringToObject(root, "bundleName", innerBundleName); in SpawnProcess() 117 AbilityMsStatus status = appRecord.QueryAppCapability(innerBundleName, &capabilities, &capNums); in SpawnProcess()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/ |
H A D | bundle_callback.cpp | 179 std::string innerBundleName = bundleName; in RegisterBundleStateCallback() local 180 auto it = callbackMap_.find(innerBundleName); in RegisterBundleStateCallback() 221 std::string innerBundleName = bundleName; in GetCallbackInfoByName() local 222 auto it = callbackMap_.find(innerBundleName); in GetCallbackInfoByName()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/sandbox_app/ |
H A D | bundle_sandbox_installer.cpp | 210 std::string innerBundleName = std::to_string(appIndex) + Constants::FILE_UNDERLINE + bundleName; in UninstallSandboxApp() local 211 result = InstalldClient::GetInstance()->RemoveBundleDataDir(innerBundleName, userId_); in UninstallSandboxApp() 213 …APP_LOGE("fail to remove data dir: %{public}s, error is %{public}d", innerBundleName.c_str(), resu… in UninstallSandboxApp() 216 userInfo.bundleName = innerBundleName; in UninstallSandboxApp() 224 bool saveBundleInfoRes = sandboxDataMgr_->RemoveSandboxPersistentInfo(innerBundleName); in UninstallSandboxApp()
|
H A D | bundle_sandbox_exception_handler.cpp | 129 std::string innerBundleName = std::to_string(appIndex) + Constants::FILE_UNDERLINE + bundleName; in KeepSandboxDirs() local 132 std::to_string(userId) + ServiceConstants::BASE + innerBundleName; in KeepSandboxDirs() 134 std::to_string(userId) + ServiceConstants::DATABASE + innerBundleName; in KeepSandboxDirs()
|
/ohos5.0/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | gt_bundle_manager_service.cpp | 182 char *innerBundleName = reinterpret_cast<char *>(AdapterMalloc(strlen(bundleName) + 1)); in Uninstall() local 183 if (innerBundleName == nullptr) { in Uninstall() 186 if (strncpy_s(innerBundleName, strlen(bundleName) + 1, bundleName, strlen(bundleName)) != EOK) { in Uninstall() 187 AdapterFree(innerBundleName); in Uninstall() 190 SetCurrentBundle(innerBundleName); in Uninstall() 192 uint8_t actionService = GtBundleExtractor::ParseBundleInfoGetActionService(innerBundleName); in Uninstall() 194 …OPERATION_DOING, BUNDLE_UNINSTALL_DOING, innerBundleName, BMS_UNINSTALLATION_START, installerCallb… in Uninstall() 199 uint8_t ret = installer_->Uninstall(innerBundleName); in Uninstall() 207 … ret, BUNDLE_UNINSTALL_OK, innerBundleName, BMS_INSTALLATION_COMPLETED, installerCallback); in Uninstall() 214 … ret, BUNDLE_UNINSTALL_FAIL, innerBundleName, BMS_INSTALLATION_COMPLETED, installerCallback); in Uninstall() [all …]
|
H A D | bundle_util.cpp | 723 cJSON *innerBundleName = cJSON_GetObjectItemCaseSensitive(item, JSON_SUB_KEY_PACKAGE); in ConvertUidAndGidToJson() local 724 if ((cJSON_IsString(innerBundleName)) && (innerBundleName->valuestring != nullptr)) { in ConvertUidAndGidToJson() 725 if (strcmp(innerBundleName->valuestring, installRecord.bundleName) == 0) { in ConvertUidAndGidToJson() 749 cJSON *innerBundleName = cJSON_GetObjectItemCaseSensitive(uid, JSON_SUB_KEY_PACKAGE); in DeleteInnerUidInfoFromUidArray() local 750 if ((cJSON_IsString(innerBundleName)) && (innerBundleName->valuestring != nullptr)) { in DeleteInnerUidInfoFromUidArray() 751 if (strcmp(innerBundleName->valuestring, bundleName) == 0) { in DeleteInnerUidInfoFromUidArray()
|
H A D | bundle_manager_service.cpp | 779 cJSON *innerBundleName = cJSON_GetObjectItemCaseSensitive(uid, JSON_SUB_KEY_PACKAGE); in RestoreUidAndGidMap() local 780 if ((!cJSON_IsNumber(innerUid)) || (!cJSON_IsString(innerBundleName))) { in RestoreUidAndGidMap() 785 sysUidMap_[uidValue - BASE_SYS_UID] = innerBundleName->valuestring; in RestoreUidAndGidMap() 787 sysVendorUidMap_[uidValue - BASE_SYS_VEN_UID] = innerBundleName->valuestring; in RestoreUidAndGidMap() 789 appUidMap_[uidValue - BASE_APP_UID] = innerBundleName->valuestring; in RestoreUidAndGidMap()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_sandbox_app_test/ |
H A D | bms_bundle_sandbox_app_test.cpp | 316 auto dataPath = BUNDLE_DATA_DIR1 + innerBundleName; in CheckPathAreExisted() 320 dataPath = BUNDLE_DATA_DIR2 + innerBundleName; in CheckPathAreExisted() 332 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/haps"; in CheckPathAreExisted() 340 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/temp"; in CheckPathAreExisted() 344 dataPath = BUNDLE_DATA_DIR4 + innerBundleName; in CheckPathAreExisted() 352 auto dataPath = BUNDLE_DATA_DIR1 + innerBundleName; in CheckPathAreNonExisted() 356 dataPath = BUNDLE_DATA_DIR2 + innerBundleName; in CheckPathAreNonExisted() 364 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/el3"; in CheckPathAreNonExisted() 368 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/el4"; in CheckPathAreNonExisted() 372 dataPath = BUNDLE_DATA_DIR3 + innerBundleName + "/haps"; in CheckPathAreNonExisted() [all …]
|
/ohos5.0/foundation/ability/ability_runtime/services/appmgr/src/ |
H A D | exit_resident_process_manager.cpp | 130 for (const auto &innerBundleName : bundleNames) { in IsKilledForUpgradeWeb() local 131 if (innerBundleName.bundleName == bundleName) { in IsKilledForUpgradeWeb()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_data_mgr.cpp | 1447 std::string innerBundleName = item.first.substr(pos + 1); in ImplicitQueryAllAbilityInfos() local 1448 … if (sandboxAppHelper_->GetSandboxAppInfo(innerBundleName, appIndex, userId, info) != ERR_OK) { in ImplicitQueryAllAbilityInfos() 1523 std::string innerBundleName = item.first.substr(pos + 1); in ImplicitQueryAllAbilityInfosV9() local 1524 … if (sandboxAppHelper_->GetSandboxAppInfo(innerBundleName, appIndex, userId, info) != ERR_OK) { in ImplicitQueryAllAbilityInfosV9() 5654 std::string innerBundleName = item.first.substr(pos + 1); in ImplicitQueryAllExtensionInfos() local 5655 … if (sandboxAppHelper_->GetSandboxAppInfo(innerBundleName, appIndex, userId, info) != ERR_OK) { in ImplicitQueryAllExtensionInfos() 5723 std::string innerBundleName = item.first.substr(pos + 1); in ImplicitQueryAllExtensionInfosV9() local 5724 … if (sandboxAppHelper_->GetSandboxAppInfo(innerBundleName, appIndex, userId, info) != ERR_OK) { in ImplicitQueryAllExtensionInfosV9() 5792 std::string innerBundleName = item.first.substr(pos + 1); in ImplicitQueryAllExtensionInfos() local 5793 … if (sandboxAppHelper_->GetSandboxAppInfo(innerBundleName, appIndex, userId, info) != ERR_OK) { in ImplicitQueryAllExtensionInfos()
|