/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | native_lib_util.cpp | 35 if (hapInfo.nativeLibraryPath.empty()) { in GetHapSoPath() 37 hapInfo.moduleName.c_str()); in GetHapSoPath() 41 std::string appLibPathKey = hapInfo.bundleName + "/" + hapInfo.moduleName; in GetHapSoPath() 43 if (!hapInfo.compressNativeLibs) { in GetHapSoPath() 45 libPath = GetLibPath(hapInfo.hapPath, isPreInstallApp); in GetHapSoPath() 48 … libPath += (libPath.back() == '/') ? hapInfo.nativeLibraryPath : "/" + hapInfo.nativeLibraryPath; in GetHapSoPath() 83 if (hapInfo.isLibIsolated) { in GetPatchNativeLibPath() 84 patchNativeLibraryPath = hapInfo.hqfInfo.nativeLibraryPath; in GetPatchNativeLibPath() 92 if (hapInfo.compressNativeLibs && !hapInfo.isLibIsolated) { in GetPatchNativeLibPath() 94 hapInfo.moduleName.c_str()); in GetPatchNativeLibPath() [all …]
|
H A D | child_main_thread.cpp | 426 for (auto &hapInfo : bundleInfo.hapModuleInfos) { in GetNativeLibPath() local 429 hapInfo.moduleName.c_str(), hapInfo.isLibIsolated, hapInfo.compressNativeLibs); in GetNativeLibPath() 430 GetHapSoPath(hapInfo, appLibPaths, hapInfo.hapPath.find(ABS_CODE_PATH)); in GetNativeLibPath()
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/bundle_parser/ |
H A D | inner_bundle_info.cpp | 900 HapModuleInfo hapInfo; in FindHapModuleInfo() local 901 hapInfo.name = it->second.name; in FindHapModuleInfo() 906 hapInfo.label = it->second.label; in FindHapModuleInfo() 907 hapInfo.labelId = it->second.labelId; in FindHapModuleInfo() 908 hapInfo.iconPath = it->second.icon; in FindHapModuleInfo() 909 hapInfo.iconId = it->second.iconId; in FindHapModuleInfo() 911 hapInfo.srcPath = it->second.srcPath; in FindHapModuleInfo() 912 hapInfo.hapPath = it->second.hapPath; in FindHapModuleInfo() 920 hapInfo.cpuAbi = it->second.cpuAbi; in FindHapModuleInfo() 924 hapInfo.pages = it->second.pages; in FindHapModuleInfo() [all …]
|
H A D | bundle_container.cpp | 63 auto hapInfo = std::make_shared<HapModuleInfo>(); in GetHapModuleInfo() local 64 *hapInfo = *hapMouduleInfo; in GetHapModuleInfo() 65 return hapInfo; in GetHapModuleInfo()
|
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/ |
H A D | cj_ability_stage.cpp | 55 auto hapInfo = abilityStageContext->GetHapModuleInfo(); in FFICJCurrentHapModuleInfo() local 56 if (hapInfo == nullptr) { in FFICJCurrentHapModuleInfo() 68 buffer->name = CreateCStringFromString(hapInfo->name); in FFICJCurrentHapModuleInfo() 69 buffer->icon = CreateCStringFromString(hapInfo->iconPath); in FFICJCurrentHapModuleInfo() 70 buffer->iconId = hapInfo->iconId; in FFICJCurrentHapModuleInfo() 71 buffer->label = CreateCStringFromString(hapInfo->label); in FFICJCurrentHapModuleInfo() 72 buffer->labelId = hapInfo->labelId; in FFICJCurrentHapModuleInfo() 73 buffer->description = CreateCStringFromString(hapInfo->description); in FFICJCurrentHapModuleInfo() 74 buffer->descriptionId = hapInfo->descriptionId; in FFICJCurrentHapModuleInfo() 76 buffer->installationFree = hapInfo->installationFree; in FFICJCurrentHapModuleInfo() [all …]
|
/ohos5.0/base/startup/appspawn/test/unittest/hnp_test/ |
H A D | hnp_installer_test.cpp | 797 struct HapInfo hapInfo; variable 800 EXPECT_EQ(sprintf_s(hapInfo.abi, sizeof(hapInfo.abi), "%s", "system64") > 0, true); 801 EXPECT_EQ(sprintf_s(hapInfo.hapPath, sizeof(hapInfo.hapPath), "%s", "./hnp_out") > 0, true); 813 EXPECT_EQ(sprintf_s(hapInfo.hapPath, sizeof(hapInfo.hapPath), "%s", "test") > 0, true); 852 struct HapInfo hapInfo; variable 855 EXPECT_EQ(sprintf_s(hapInfo.abi, sizeof(hapInfo.abi), "%s", "system64") > 0, true); 856 EXPECT_EQ(sprintf_s(hapInfo.hapPath, sizeof(hapInfo.hapPath), "%s", "test") > 0, true); 892 EXPECT_EQ(sprintf_s(hapInfo.hapPath, sizeof(hapInfo.hapPath), "%s", "test") > 0, true); 893 EXPECT_EQ(sprintf_s(hapInfo.abi, sizeof(hapInfo.abi), "%s", "system64") > 0, true); 937 EXPECT_EQ(sprintf_s(hapInfo.hapPath, sizeof(hapInfo.hapPath), "%s", "test") > 0, true); [all …]
|
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/ |
H A D | cloud_service_impl.cpp | 548 HapInfo hapInfo; in SetGlobalCloudStrategy() local 550 if (hapInfo.user == INVALID_USER_ID || hapInfo.user == 0) { in SetGlobalCloudStrategy() 1125 if (hapInfo.bundleName.empty() || hapInfo.user == INVALID_USER_ID) { in AllocResourceAndShare() 1139 storeInfo.user = hapInfo.user; in AllocResourceAndShare() 1262 result = instance->Exit(hapInfo.user, hapInfo.bundleName, sharingRes); in Exit() 1302 auto queryResults = instance->Query(hapInfo.user, hapInfo.bundleName, sharingRes); in Query() 1320 auto queryResults = instance->QueryByInvitation(hapInfo.user, hapInfo.bundleName, invitation); in QueryByInvitation() 1378 auto handle = instance->ConnectSharingCenter(hapInfo.user, hapInfo.bundleName); in GetSharingHandle() 1433 if (hapInfo.bundleName.empty() || hapInfo.user == INVALID_USER_ID || hapInfo.user == 0) { in SetCloudStrategy() 1435 hapInfo.user, hapInfo.bundleName.c_str(), strategy, values.size()); in SetCloudStrategy() [all …]
|
/ohos5.0/base/startup/appspawn/interfaces/innerkits/hnp/src/ |
H A D | hnp_api.c | 161 int NativeInstallHnp(const char *userId, const char *hnpRootPath, const HapInfo *hapInfo, int inst… in NativeInstallHnp() argument 172 if ((userId == NULL) || (hnpRootPath == NULL) || (hapInfo == NULL)) { in NativeInstallHnp() 181 …path=%{public}s, package name=%{public}s install options=%{public}d\r\n", userId, hapInfo->hapPath, in NativeInstallHnp() 182 hapInfo->abi, hnpRootPath, hapInfo->packageName, installOptions); in NativeInstallHnp() 191 argv[index++] = (char *)hapInfo->packageName; in NativeInstallHnp() 193 argv[index++] = (char *)hapInfo->hapPath; in NativeInstallHnp() 195 argv[index++] = (char *)hapInfo->abi; in NativeInstallHnp()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/ |
H A D | bundle_manager_convert.cpp | 353 RetHapModuleInfo hapInfo; in ConvertHapModuleInfo() local 354 hapInfo.name = MallocCString(hapModuleInfo.name); in ConvertHapModuleInfo() 355 hapInfo.icon = MallocCString(hapModuleInfo.iconPath); in ConvertHapModuleInfo() 356 hapInfo.iconId = hapModuleInfo.iconId; in ConvertHapModuleInfo() 357 hapInfo.label = MallocCString(hapModuleInfo.label); in ConvertHapModuleInfo() 358 hapInfo.labelId = hapModuleInfo.labelId; in ConvertHapModuleInfo() 360 hapInfo.descriptionId = hapModuleInfo.descriptionId; in ConvertHapModuleInfo() 371 hapInfo.installationFree = hapModuleInfo.installationFree; in ConvertHapModuleInfo() 372 hapInfo.hashValue = MallocCString(hapModuleInfo.hashValue); in ConvertHapModuleInfo() 382 hapInfo.fileContextMenuConfig = MallocCString(""); in ConvertHapModuleInfo() [all …]
|
/ohos5.0/base/theme/screenlock_mgr/utils/src/ |
H A D | screenlock_appinfo.cpp | 28 HapTokenInfo hapInfo; in GetAppInfoByToken() local 29 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != 0) { in GetAppInfoByToken() 33 appInfo.bundleName = hapInfo.bundleName; in GetAppInfoByToken() 34 appInfo.appId = hapInfo.appID; in GetAppInfoByToken()
|
/ohos5.0/base/security/asset/services/os_dependency/src/ |
H A D | bms_wrapper.cpp | 67 processInfo->hapInfo.appIndex = appIndex; in GetHapProcessInfo() 85 … if (memcpy_s(processInfo->hapInfo.appId, processInfo->hapInfo.appIdLen, bundleInfo.appId.c_str(), in GetHapProcessInfo() 88 bundleInfo.appId.size(), processInfo->hapInfo.appIdLen); in GetHapProcessInfo() 91 processInfo->hapInfo.appIdLen = bundleInfo.appId.size(); in GetHapProcessInfo()
|
/ohos5.0/base/security/selinux_adapter/interfaces/policycoreutils/src/ |
H A D | hap_restorecon.cpp | 163 static std::string GetHapContextKey(const struct SehapInfo *hapInfo) in GetHapContextKey() argument 167 if (hapInfo->extra & SELINUX_HAP_INPUT_ISOLATE) { in GetHapContextKey() 168 if (hapInfo->debuggable) { in GetHapContextKey() 171 keyPara = hapInfo->apl + "." + INPUT_ISOLATE; in GetHapContextKey() 173 } else if (hapInfo->extra & SELINUX_HAP_DLP) { in GetHapContextKey() 174 keyPara = hapInfo->apl + "." + DLPSANDBOX; in GetHapContextKey() 175 } else if (hapInfo->debuggable) { in GetHapContextKey() 176 keyPara = hapInfo->apl + "." + DEBUGGABLE; in GetHapContextKey() 177 } else if (!hapInfo->name.empty()) { in GetHapContextKey() 178 keyPara = hapInfo->apl + "." + hapInfo->name; in GetHapContextKey() [all …]
|
/ohos5.0/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | photoaccesshelperinf.js | 119 for (let hapInfo of bundleInfo.hapModulesInfo) { 121 labelId = getLabelId(hapInfo); 127 function getLabelId(hapInfo) { argument 129 for (let abilityInfo of hapInfo.abilitiesInfo) { 349 for (let hapInfo of bundleInfo.hapModulesInfo) { 350 if (labelId === hapInfo.labelId) { 351 modeleName = hapInfo.name; 397 if (labelId === hapInfo.labelId) { 398 modeleName = hapInfo.name; 465 if (labelId === hapInfo.labelId) { [all …]
|
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/common/src/ |
H A D | js_ability.cpp | 35 auto hapInfo = stageContext->GetHapModuleInfo(); in Context() local 36 if (hapInfo != nullptr) { in Context() 37 moduleName_ = hapInfo->moduleName; in Context() 40 if (hapInfo == nullptr || hapInfo->proxyDatas.size() != 0) { in Context()
|
/ohos5.0/foundation/graphic/graphic_3d/3d_scene_adapter/src/ |
H A D | scene_adapter.cpp | 82 HapInfo hapInfo; in GetHapInfo() local 83 hapInfo.bundleName_ = resourceManager->bundleInfo.first; in GetHapInfo() 84 hapInfo.moduleName_ = resourceManager->bundleInfo.second; in GetHapInfo() 88 hapInfo.hapPath_ = hapPath + "/" + hapInfo.moduleName_ + ".hap"; in GetHapInfo() 90 hapInfo.bundleName_.c_str(), in GetHapInfo() 91 hapInfo.moduleName_.c_str(), in GetHapInfo() 92 hapInfo.hapPath_.c_str()); in GetHapInfo() 94 return hapInfo; in GetHapInfo()
|
/ohos5.0/foundation/filemanagement/dfs_service/utils/system/src/ |
H A D | dfsu_access_token_helper.cpp | 74 HapTokenInfo hapInfo; in GetBundleNameByToken() local 75 if (AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo) != 0) { in GetBundleNameByToken() 79 if (hapInfo.instIndex != 0) { in GetBundleNameByToken() 83 bundleName = hapInfo.bundleName; in GetBundleNameByToken()
|
/ohos5.0/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | uri_permission_utils.cpp | 220 Security::AccessToken::HapTokenInfo hapInfo; in GetAlterableBundleNameByTokenId() local 221 auto ret = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo); in GetAlterableBundleNameByTokenId() 226 return GetDirByBundleNameAndAppIndex(hapInfo.bundleName, hapInfo.instIndex, bundleName); in GetAlterableBundleNameByTokenId() 235 Security::AccessToken::HapTokenInfo hapInfo; in GetBundleNameByTokenId() local 236 auto ret = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo); in GetBundleNameByTokenId() 241 bundleName = hapInfo.bundleName; in GetBundleNameByTokenId()
|
/ohos5.0/foundation/ability/ability_runtime/js_environment/interfaces/inner_api/ |
H A D | source_map_operator.h | 46 for (auto &hapInfo : hapList) { in InitSourceMap() 47 if (!hapInfo.empty()) { in InitSourceMap() 48 … sourceMapOperator->sourceMapObj_->Init(sourceMapOperator->isModular_, hapInfo); in InitSourceMap()
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_permission_mgr.cpp | 660 AccessToken::HapInfoParams hapInfo; in CreateHapInfoParams() local 661 hapInfo.userID = userId; in CreateHapInfoParams() 662 hapInfo.bundleName = innerBundleInfo.GetBundleName(); in CreateHapInfoParams() 663 hapInfo.instIndex = innerBundleInfo.GetAppIndex(); in CreateHapInfoParams() 664 hapInfo.appIDDesc = innerBundleInfo.GetAppId(); in CreateHapInfoParams() 665 hapInfo.dlpType = dlpType; in CreateHapInfoParams() 666 hapInfo.apiVersion = innerBundleInfo.GetBaseApplicationInfo().apiTargetVersion; in CreateHapInfoParams() 667 hapInfo.isSystemApp = innerBundleInfo.IsSystemApp(); in CreateHapInfoParams() 668 hapInfo.appDistributionType = innerBundleInfo.GetAppDistributionType(); in CreateHapInfoParams() 669 return hapInfo; in CreateHapInfoParams() [all …]
|
H A D | inner_bundle_info.cpp | 1567 HapModuleInfo hapInfo; in FindHapModuleInfo() local 1568 hapInfo.name = it->second.name; in FindHapModuleInfo() 1573 hapInfo.label = it->second.label; in FindHapModuleInfo() 1574 hapInfo.labelId = it->second.labelId; in FindHapModuleInfo() 1575 hapInfo.iconPath = it->second.icon; in FindHapModuleInfo() 1576 hapInfo.iconId = it->second.iconId; in FindHapModuleInfo() 1578 hapInfo.srcPath = it->second.srcPath; in FindHapModuleInfo() 1587 hapInfo.cpuAbi = it->second.cpuAbi; in FindHapModuleInfo() 1591 hapInfo.pages = it->second.pages; in FindHapModuleInfo() 1636 hapInfo.hqfInfo = hqf; in FindHapModuleInfo() [all …]
|
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/utd/ |
H A D | utd_handler.cpp | 72 for (const auto &hapInfo : bundleInfo.hapModuleInfos) { in GetEntryHapPath() local 73 if (hapInfo.moduleType == ModuleType::ENTRY) { in GetEntryHapPath() 74 return hapInfo.hapPath; in GetEntryHapPath()
|
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/appkit/app/ |
H A D | native_lib_util.h | 29 void GetHapSoPath(const HapModuleInfo &hapInfo, AppLibPathMap &appLibPaths, bool isPreInstallApp); 33 void GetPatchNativeLibPath(const HapModuleInfo &hapInfo, std::string &patchNativeLibraryPath,
|
/ohos5.0/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/src/ |
H A D | mock_accesstoken_kit.cpp | 41 int AccessTokenKit::GetHapTokenInfo(AccessTokenID tokenID, HapTokenInfo &hapInfo) in GetHapTokenInfo() argument 44 hapInfo.bundleName = MyFlag::tokenInfos[tokenID].bundleName; in GetHapTokenInfo()
|
/ohos5.0/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/ |
H A D | graphics_manager.cpp | 38 PlatformData GraphicsManager::GetPlatformData(const HapInfo& hapInfo) const in GetPlatformData() 46 hapInfo, in GetPlatformData()
|
/ohos5.0/base/startup/appspawn/service/hnp/installer/ |
H A D | api_hnp.md | 29 int NativeInstallHnp(const char *userId, const char *hnpRootPath, const HapInfo *hapInfo, int insta… 44 hapInfo:hap应用软件信息,结构如下。
|