/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | native_lib_util.cpp | 33 void GetHapSoPath(const HapModuleInfo &hapInfo, AppLibPathMap &appLibPaths, bool isPreInstallApp) in GetHapSoPath() argument 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() 44 TAG_LOGD(AAFwkTag::APPKIT, "Lib of %{public}s will not be extracted from hap", hapInfo.moduleName.c_str()); in GetHapSoPath() 45 libPath = GetLibPath(hapInfo.hapPath, isPreInstallApp); in GetHapSoPath() 48 libPath += (libPath.back() == '/') ? hapInfo.nativeLibraryPath : "/" + hapInfo in GetHapSoPath() 80 GetPatchNativeLibPath(const HapModuleInfo &hapInfo, std::string &patchNativeLibraryPath, AppLibPathMap &appLibPaths) GetPatchNativeLibPath() argument [all...] |
H A D | child_main_thread.cpp | 433 for (auto &hapInfo : bundleInfo.hapModuleInfos) { in GetNativeLibPath() 436 hapInfo.moduleName.c_str(), hapInfo.isLibIsolated, hapInfo.compressNativeLibs); in GetNativeLibPath() 437 GetHapSoPath(hapInfo, appLibPaths, hapInfo.hapPath.find(ABS_CODE_PATH)); in GetNativeLibPath()
|
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/ |
H A D | native_lib_util_test.cpp | 68 AppExecFwk::HapModuleInfo hapInfo; in HWTEST_F() local 71 hapInfo.hapPath = "/data/test/NativeLibUtilTest.hap"; in HWTEST_F() 72 hapInfo.nativeLibraryPath = ""; in HWTEST_F() 73 AppExecFwk::GetHapSoPath(hapInfo, appLibPaths, isPreInstallApp); in HWTEST_F() 76 hapInfo.nativeLibraryPath = "/data/test/nativeLibraryPath"; in HWTEST_F() 77 hapInfo.compressNativeLibs = false; in HWTEST_F() 78 AppExecFwk::GetHapSoPath(hapInfo, appLibPaths, isPreInstallApp); in HWTEST_F() 122 AppExecFwk::HapModuleInfo hapInfo; in HWTEST_F() local 126 hapInfo.hapPath = "/data/test/NativeLibUtilTest.hap"; in HWTEST_F() 127 hapInfo in HWTEST_F() [all...] |
/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() 75 buffer->mainElementName = CreateCStringFromString(hapInfo in FFICJCurrentHapModuleInfo() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/test/src/ |
H A D | test_runner.cpp | 92 OHOS::Render3D::HapInfo hapInfo; in GetHapInfo() local 93 hapInfo.bundleName_ = resourceManager->bundleInfo.first; in GetHapInfo() 94 hapInfo.moduleName_ = resourceManager->bundleInfo.second; in GetHapInfo() 98 hapInfo.hapPath_ = hapPath + "/" + hapInfo.moduleName_ + ".hap"; in GetHapInfo() 100 hapInfo.bundleName_.c_str(), in GetHapInfo() 101 hapInfo.moduleName_.c_str(), in GetHapInfo() 102 hapInfo.hapPath_.c_str()); in GetHapInfo() 104 return hapInfo; in GetHapInfo() 125 OHOS::Render3D::HapInfo hapInfo; variable [all...] |
/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() 902 hapInfo.package = it->second.modulePackage; in FindHapModuleInfo() 903 hapInfo.moduleName = it->second.moduleName; in FindHapModuleInfo() 904 hapInfo.description = it->second.description; in FindHapModuleInfo() 905 hapInfo.descriptionId = it->second.descriptionId; 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 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()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/cloud/ |
H A D | cloud_service_impl.cpp | 563 HapInfo hapInfo; in SetGlobalCloudStrategy() local 564 hapInfo.user = Account::GetInstance()->GetUserByToken(tokenId); in SetGlobalCloudStrategy() 565 if (hapInfo.user == INVALID_USER_ID || hapInfo.user == 0) { in SetGlobalCloudStrategy() 566 ZLOGE("invalid user:%{public}d, strategy:%{public}d, size:%{public}zu", hapInfo.user, strategy, in SetGlobalCloudStrategy() 570 hapInfo.bundleName = SyncStrategy::GLOBAL_BUNDLE; in SetGlobalCloudStrategy() 571 return STRATEGY_SAVERS[strategy](values, hapInfo); in SetGlobalCloudStrategy() 1145 auto hapInfo = GetHapInfo(tokenId); in AllocResourceAndShare() local 1146 if (hapInfo.bundleName.empty() || hapInfo in AllocResourceAndShare() 1232 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); Share() local 1253 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); Unshare() local 1274 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); Exit() local 1297 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); ChangePrivilege() local 1319 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); Query() local 1338 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); QueryByInvitation() local 1358 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); ConfirmInvitation() local 1382 auto hapInfo = GetHapInfo(IPCSkeleton::GetCallingTokenID()); ChangeConfirmation() local 1401 GetSharingHandle(const HapInfo &hapInfo) GetSharingHandle() argument [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/ |
H A D | bundle_manager_convert.cpp | 488 RetHapModuleInfo hapInfo; in ConvertHapModuleInfo() local 489 hapInfo.name = MallocCString(hapModuleInfo.name); in ConvertHapModuleInfo() 490 hapInfo.icon = MallocCString(hapModuleInfo.iconPath); in ConvertHapModuleInfo() 491 hapInfo.iconId = hapModuleInfo.iconId; in ConvertHapModuleInfo() 492 hapInfo.label = MallocCString(hapModuleInfo.label); in ConvertHapModuleInfo() 493 hapInfo.labelId = hapModuleInfo.labelId; in ConvertHapModuleInfo() 494 hapInfo.description = MallocCString(hapModuleInfo.description); in ConvertHapModuleInfo() 495 hapInfo.descriptionId = hapModuleInfo.descriptionId; in ConvertHapModuleInfo() 496 hapInfo.mainElementName = MallocCString(hapModuleInfo.mainElementName); in ConvertHapModuleInfo() 498 hapInfo in ConvertHapModuleInfo() [all...] |
/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,
|
/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()
|
/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()
|
/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()
|
/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()
|
/foundation/ability/ability_runtime/services/uripermmgr/src/ |
H A D | uri_permission_utils.cpp | 202 Security::AccessToken::HapTokenInfo hapInfo; in GetAlterableBundleNameByTokenId() local 203 auto ret = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo); in GetAlterableBundleNameByTokenId() 208 return GetDirByBundleNameAndAppIndex(hapInfo.bundleName, hapInfo.instIndex, bundleName); in GetAlterableBundleNameByTokenId() 217 Security::AccessToken::HapTokenInfo hapInfo; in GetBundleNameByTokenId() local 218 auto ret = Security::AccessToken::AccessTokenKit::GetHapTokenInfo(tokenId, hapInfo); in GetBundleNameByTokenId() 223 bundleName = hapInfo.bundleName; in GetBundleNameByTokenId()
|
/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() local
|
/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()
|
/foundation/multimedia/media_library/frameworks/js/src/ |
H A D | photoaccesshelperinf.js | 119 for (let hapInfo of bundleInfo.hapModulesInfo) { 120 if (hapInfo.type === bundleManager.ModuleType.ENTRY) { 121 labelId = getLabelId(hapInfo); 127 function getLabelId(hapInfo) { 129 for (let abilityInfo of hapInfo.abilitiesInfo) { 137 if (abilitiesInfoName === hapInfo.mainElementName) { 349 for (let hapInfo of bundleInfo.hapModulesInfo) { 350 if (labelId === hapInfo.labelId) { 351 modeleName = hapInfo.name; 409 for (let hapInfo o [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/utd/ |
H A D | utd_handler.cpp | 72 for (const auto &hapInfo : bundleInfo.hapModuleInfos) { in GetEntryHapPath() 73 if (hapInfo.moduleType == ModuleType::ENTRY) { in GetEntryHapPath() 74 return hapInfo.hapPath; in GetEntryHapPath()
|
/foundation/graphic/graphic_3d/3d_widget_adapter/include/ |
H A D | graphics_manager_common.h | 50 std::unique_ptr<IEngine> GetEngine(EngineFactory::EngineType type, int32_t key, const HapInfo& hapInfo); 54 virtual PlatformData GetPlatformData(const HapInfo& hapInfo) const = 0;
|
/foundation/graphic/graphic_3d/3d_widget_adapter/src/ |
H A D | graphics_manager_common.cpp | 98 const HapInfo& hapInfo) in GetEngine() 122 if (!InitEngine(context, GetPlatformData(hapInfo))) { in GetEngine() 128 hapInfo_ = hapInfo; in GetEngine() 97 GetEngine(EngineFactory::EngineType type, int32_t key, const HapInfo& hapInfo) GetEngine() argument
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_permission_mgr.cpp | 658 AccessToken::HapInfoParams hapInfo; 659 hapInfo.userID = userId; 660 hapInfo.bundleName = innerBundleInfo.GetBundleName(); 661 hapInfo.instIndex = innerBundleInfo.GetAppIndex(); 662 hapInfo.appIDDesc = innerBundleInfo.GetAppId(); 663 hapInfo.dlpType = dlpType; 664 hapInfo.apiVersion = innerBundleInfo.GetBaseApplicationInfo().apiTargetVersion; 665 hapInfo.isSystemApp = innerBundleInfo.IsSystemApp(); 666 hapInfo.appDistributionType = innerBundleInfo.GetAppDistributionType(); 667 return hapInfo; [all...] |
H A D | inner_bundle_info.cpp | 1449 HapModuleInfo hapInfo; in FindHapModuleInfo() local 1450 hapInfo.name = it->second.name; in FindHapModuleInfo() 1451 hapInfo.package = it->second.modulePackage; in FindHapModuleInfo() 1452 hapInfo.moduleName = it->second.moduleName; in FindHapModuleInfo() 1453 hapInfo.description = it->second.description; in FindHapModuleInfo() 1454 hapInfo.descriptionId = it->second.descriptionId; in FindHapModuleInfo() 1455 hapInfo.label = it->second.label; in FindHapModuleInfo() 1456 hapInfo.labelId = it->second.labelId; in FindHapModuleInfo() 1457 hapInfo.iconPath = it->second.icon; in FindHapModuleInfo() 1458 hapInfo in FindHapModuleInfo() [all...] |
/foundation/ability/ability_runtime/test/unittest/uri_permission_impl_test/mock/include/ |
H A D | mock_accesstoken_kit.h | 33 static int GetHapTokenInfo(AccessTokenID tokenID, HapTokenInfo& hapInfo);
|
/foundation/graphic/graphic_3d/3d_widget_adapter/include/ohos/ |
H A D | graphics_manager.h | 27 PlatformData GetPlatformData(const HapInfo& hapInfo) const override;
|