Home
last modified time | relevance | path

Searched refs:hapPath (Results 1 - 25 of 250) sorted by relevance

12345678910

/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/bundle_resource/
H A Dbundle_resource_configuration.cpp33 const std::string &hapPath, in InitResourceGlobalConfig()
58 if (!hapPath.empty() && !resourceManager->AddResource(hapPath.c_str(), in InitResourceGlobalConfig()
60 APP_LOGE("AddResource failed, hapPath: %{private}s", hapPath.c_str()); in InitResourceGlobalConfig()
66 bool BundleResourceConfiguration::InitResourceGlobalConfig(const std::string &hapPath, in InitResourceGlobalConfig() argument
97 if (!resourceManager->AddResource(hapPath.c_str(), selectType)) { in InitResourceGlobalConfig()
98 APP_LOGW("AddResource failed, hapPath: %{public}s", hapPath.c_str()); in InitResourceGlobalConfig()
101 if (!resourceManager->AddResource(hapPath, overlayHap in InitResourceGlobalConfig()
32 InitResourceGlobalConfig( const std::string &hapPath, std::shared_ptr<Global::Resource::ResourceManager> resourceManager) InitResourceGlobalConfig() argument
[all...]
/foundation/graphic/graphic_3d/lume/LumeEngine/src/os/ohos/
H A Dplatform_ohos.cpp31 plat_.hapPath = createInfo.hapPath; in PlatformOHOS()
39 BASE_NS::string hapPath = plat_.hapPath; in RegisterDefaultPaths() local
43 IFilesystem::Ptr{new Core::OhosFilesystem(hapPath, bundleName, moduleName)}); in RegisterDefaultPaths()
44 CORE_LOG_I("Registered hapFilesystem by Platform: 'hapPath:%s bundleName:%s moduleName:%s'", in RegisterDefaultPaths()
45 hapPath.c_str(), bundleName.c_str(), moduleName.c_str()); in RegisterDefaultPaths()
/foundation/ability/ability_base/interfaces/kits/native/extractortool/src/
H A Dextractor.cpp250 std::string ExtractorUtil::GetLoadFilePath(const std::string &hapPath) in GetLoadFilePath() argument
253 if (StringStartWith(hapPath, Constants::ABS_CODE_PATH, std::string(Constants::ABS_CODE_PATH).length())) { in GetLoadFilePath()
254 loadPath = GetLoadPath(hapPath); in GetLoadFilePath()
256 loadPath = hapPath; in GetLoadFilePath()
261 std::shared_ptr<Extractor> ExtractorUtil::GetExtractor(const std::string &hapPath, bool &newCreate, bool cache) in GetExtractor() argument
264 if (hapPath.empty()) { in GetExtractor()
265 ABILITYBASE_LOGE("empty hapPath"); in GetExtractor()
271 auto mapIter = extractorMap_.find(hapPath); in GetExtractor()
273 ABILITYBASE_LOGD("hapPath: %{private}s", hapPath in GetExtractor()
293 DeleteExtractor(const std::string &hapPath) DeleteExtractor() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/core/common/rosen/
H A Drosen_test.cpp297 std::string hapPath = "/system/app/com.ohos.photos/Photos.hap"; in HWTEST_F() local
300 assetProvider->Initialize(hapPath, assetBasePaths); in HWTEST_F()
328 std::string hapPath = "test"; in HWTEST_F() local
331 EXPECT_CALL(*assetProvider, GetAssetPath(hapPath, true)).Times(1).WillOnce(Return("test")); in HWTEST_F()
333 std::string result = object.GetAssetPath(hapPath, true); in HWTEST_F()
373 std::string hapPath = "test"; in HWTEST_F() local
374 MediaFileInfo fileInfo = { .fileName = hapPath, .offset = 1, .length = 1, .lastModTime = 1, .lastModDate = 1 }; in HWTEST_F()
378 assetProvider->Initialize(hapPath, assetBasePaths); in HWTEST_F()
379 assetProvider->GetFileInfo(hapPath, fileInfo); in HWTEST_F()
381 bool result = object.GetFileInfo(hapPath, fileInf in HWTEST_F()
423 std::string hapPath = "core/common/test/unittest/rosen/BUILD.gn"; HWTEST_F() local
[all...]
/foundation/ability/ability_runtime/test/unittest/runtime_test/
H A Djs_module_reader_test.cpp88 std::string hapPath = jsModuleReader.GetPresetAppHapPath("", ""); in HWTEST_F() local
89 EXPECT_TRUE(hapPath.empty()); in HWTEST_F()
100 std::string hapPath = jsModuleReader.GetPresetAppHapPath("", ""); in HWTEST_F() local
101 EXPECT_TRUE(hapPath.empty()); in HWTEST_F()
H A Dmock_js_runtime.h48 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in RunScript() argument
60 napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in LoadJsBundle() argument
65 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument
75 const std::string& moduleName, const std::string& modulePath, const std::string& hapPath, bool esmodule = false) in LoadModule()
74 LoadModule( const std::string& moduleName, const std::string& modulePath, const std::string& hapPath, bool esmodule = false) LoadModule() argument
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dutils.cpp64 std::string GetStringFromHap(const std::string& hapPath, const std::string& fileName) in GetStringFromHap() argument
67 std::string loadPath = AbilityBase::ExtractorUtil::GetLoadFilePath(hapPath); in GetStringFromHap()
70 LOGE("read file %{public}s error\n", hapPath.c_str()); in GetStringFromHap()
77 LOGE("read file %{public}s /config.json error\n", hapPath.c_str()); in GetStringFromHap()
84 bool CheckUrlValid(const std::string& url, const std::string& hapPath) in CheckUrlValid() argument
91 auto moduleContent = GetStringFromHap(hapPath, "module.json"); in CheckUrlValid()
97 auto jsonContent = GetStringFromHap(hapPath, jsonPath); in CheckUrlValid()
H A Dform_module_preloader.cpp95 const std::string& hapPath = hapPathPair.second; in ReadFormModuleList() local
97 RefPtr<AssetManager> assetManager = CreateAssetManager(hapPath); in ReadFormModuleList()
99 TAG_LOGW(AceLogTag::ACE_FORM, "CreateAssetManager failed, hapPath: %{private}s.", hapPath.c_str()); in ReadFormModuleList()
106 AceLogTag::ACE_FORM, "Read component_collection.json failed, hapPath: %{private}s.", hapPath.c_str()); in ReadFormModuleList()
112 AceLogTag::ACE_FORM, "Parse component_collection.json failed, hapPath: %{private}s.", hapPath.c_str()); in ReadFormModuleList()
182 RefPtr<AssetManager> FormModulePreloader::CreateAssetManager(const std::string& hapPath) in CreateAssetManager() argument
194 auto assetProvider = CreateAssetProviderImpl(hapPath, basePath in CreateAssetManager()
[all...]
H A Dhap_asset_provider_impl.cpp23 const std::string& hapPath, const std::vector<std::string>& assetBasePaths, bool useCache) in Initialize()
26 if (hapPath.empty() || assetBasePaths.empty()) { in Initialize()
32 loadPath_ = AbilityBase::ExtractorUtil::GetLoadFilePath(hapPath); in Initialize()
39 hapPath_ = hapPath; in Initialize()
22 Initialize( const std::string& hapPath, const std::vector<std::string>& assetBasePaths, bool useCache) Initialize() argument
/foundation/ability/ability_runtime/test/mock/frameworks_kits_runtime_test/
H A Dmock_runtime.h88 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in RunScript() argument
97 napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk = false) in LoadJsBundle() argument
101 napi_value LoadJsModule(const std::string& path, const std::string& hapPath) in LoadJsModule() argument
122 void UpdatePkgContextInfoJson(std::string moduleName, std::string hapPath, std::string packageName) override {}
/foundation/arkui/ace_engine/frameworks/core/components/plugin/
H A Dhap_asset_provider_impl.cpp22 bool HapAssetProviderImpl::Initialize(const std::string& hapPath, const std::vector<std::string>& assetBasePaths) in Initialize() argument
25 if (hapPath.empty() || assetBasePaths.empty()) { in Initialize()
31 runtimeExtractor_ = AbilityBase::ExtractorUtil::GetExtractor(hapPath, newCreate); in Initialize()
34 hapPath_ = hapPath; in Initialize()
H A Dhap_asset_provider.cpp23 bool HapAssetProvider::Initialize(const std::string& hapPath, const std::vector<std::string>& assetBasePaths) in Initialize() argument
26 if (hapPath.empty() || assetBasePaths.empty()) { in Initialize()
31 runtimeExtractor_ = AbilityBase::ExtractorUtil::GetExtractor(hapPath, newCreate); in Initialize()
34 hapPath_ = hapPath; in Initialize()
/foundation/ability/ability_runtime/frameworks/native/appkit/app/
H A Dnative_lib_util.cpp23 std::string GetLibPath(const std::string &hapPath, bool isPreInstallApp) in GetLibPath() argument
27 auto pos = hapPath.rfind("/"); in GetLibPath()
28 libPath = hapPath.substr(0, pos); in GetLibPath()
45 libPath = GetLibPath(hapInfo.hapPath, isPreInstallApp); in GetHapSoPath()
63 libPath = GetLibPath(hspInfo.hapPath, isPreInstallApp); in GetHspNativeLibPath()
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_module_reader.cpp35 JsModuleReader::JsModuleReader(const std::string& bundleName, const std::string& hapPath, bool isFormRender) in JsModuleReader() argument
38 if (!hapPath.empty() && hapPath.find(std::string(ABS_DATA_CODE_PATH)) != 0) { in JsModuleReader()
150 presetAppHapPath = info.hapPath; in GetOtherHspPath()
163 presetAppHapPath = info.hapPath; in GetOtherHspPath()
193 presetAppHapPath = hapModuleInfo.hapPath; in GetPresetAppHapPath()
224 hapList.emplace_back(hapModuleInfo.hapPath); in GetHapPathList()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/
H A Dbundle_mgr_client_impl.cpp129 bool isCompressed = !hapModuleInfo.hapPath.empty(); in GetResConfigFile()
130 std::string resourcePath = isCompressed ? hapModuleInfo.hapPath : hapModuleInfo.resourcePath; in GetResConfigFile()
146 bool isCompressed = !extensionInfo.hapPath.empty(); in GetResConfigFile()
147 std::string resourcePath = isCompressed ? extensionInfo.hapPath : extensionInfo.resourcePath; in GetResConfigFile()
163 bool isCompressed = !abilityInfo.hapPath.empty(); in GetResConfigFile()
164 std::string resourcePath = isCompressed ? abilityInfo.hapPath : abilityInfo.resourcePath; in GetResConfigFile()
180 bool isCompressed = !extensionInfo.hapPath.empty(); in GetProfileFromExtension()
181 std::string resPath = isCompressed ? extensionInfo.hapPath : extensionInfo.resourcePath; in GetProfileFromExtension()
188 innerExtension.hapPath = resPath; in GetProfileFromExtension()
199 bool isCompressed = !abilityInfo.hapPath in GetProfileFromAbility()
[all...]
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_appkit_native_test/
H A Dnative_lib_util_test.cpp55 std::string hapPath = "/data/test/NativeLibUtilTest.hap"; in HWTEST_F() local
57 std::string libpath = AppExecFwk::GetLibPath(hapPath, isPreInstallApp); in HWTEST_F()
71 hapInfo.hapPath = "/data/test/NativeLibUtilTest.hap"; in HWTEST_F()
126 hapInfo.hapPath = "/data/test/NativeLibUtilTest.hap"; in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/overlay/
H A Doverlay_module_info.cpp30 const char* MODULE_OVERLAY_HAP_PATH = "hapPath";
41 hapPath = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
52 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(hapPath)); in Marshalling()
75 {MODULE_OVERLAY_HAP_PATH, overlayModuleInfo.hapPath}, in to_json()
106 overlayModuleInfo.hapPath, in from_json()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/utd/
H A Dutd_handler.cpp74 return hapInfo.hapPath; in GetEntryHapPath()
81 std::string UtdHandler::GetUtdProfileFromHap(const std::string &hapPath) in GetUtdProfileFromHap() argument
83 if (hapPath.empty()) { in GetUtdProfileFromHap()
84 LOG_I(BMS_TAG_INSTALLER, "hapPath empty"); in GetUtdProfileFromHap()
87 BundleExtractor bundleExtractor(hapPath); in GetUtdProfileFromHap()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aot/
H A Daot_args.cpp37 hapPath = Str16ToStr8(hapPathVal); in ReadFromParcel()
48 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(hapPath)); in Marshalling()
70 + ", hapPath = " + hapPath in ToString()
88 hapPath = Str16ToStr8(hapPathVal); in ReadFromParcel()
133 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(hapPath)); in Marshalling()
170 + ", hapPath = " + hapPath in ToString()
H A Daot_executor.cpp86 if (aotArgs.compileMode.empty() || aotArgs.hapPath.empty() || aotArgs.outputPath.empty()) { in CheckArgs()
97 bool AOTExecutor::GetAbcFileInfo(const std::string &hapPath, uint32_t &offset, uint32_t &length) const in GetAbcFileInfo() argument
99 BundleExtractor extractor(hapPath); in GetAbcFileInfo()
120 if (!GetAbcFileInfo(completeArgs.hapPath, completeArgs.offset, completeArgs.length)) { in PrepareArgs()
126 (void)GetAbcFileInfo(hspInfo.hapPath, hspInfo.offset, hspInfo.length); in PrepareArgs()
141 subject[PKG_PATH] = aotArgs.hapPath; in GetSubjectInfo()
164 object[PKG_PATH] = hspInfo.hapPath; in MapArgs()
177 argsMap.emplace("ABC-Path", aotArgs.hapPath + ServiceConstants::PATH_SEPARATOR + ABC_RELATIVE_PATH); in MapArgs()
/foundation/ability/ability_runtime/interfaces/inner_api/runtime/include/
H A Djs_runtime.h67 static bool ReadSourceMapData(const std::string& hapPath, const std::string& sourceMapPath, std::string& content);
94 bool RunSandboxScript(const std::string& path, const std::string& hapPath);
95 bool RunScript(const std::string& path, const std::string& hapPath, bool useCommonChunk = false,
103 bool LoadRepairPatch(const std::string& hqfFile, const std::string& hapPath) override;
135 const std::string& hapPath, bool esmodule = false, bool useCommonChunk = false,
140 void UpdatePkgContextInfoJson(std::string moduleName, std::string hapPath, std::string packageName) override;
148 napi_value LoadJsBundle(const std::string& path, const std::string& hapPath, bool useCommonChunk = false);
149 napi_value LoadJsModule(const std::string& path, const std::string& hapPath, const std::string& srcEntrance = "");
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/bundle_resource/
H A Dbundle_resource_configuration.h27 static bool InitResourceGlobalConfig(const std::string &hapPath,
32 static bool InitResourceGlobalConfig(const std::string &hapPath,
/foundation/bundlemanager/bundle_framework_lite/frameworks/bundle_lite/src/slite/
H A Dbundle_manager.cpp20 bool Install(const char *hapPath, const InstallParam *installParam, InstallerCallback installerCallback) in Install() argument
22 return OHOS::BundleMsClient::GetInstance().Install(hapPath, installParam, installerCallback); in Install()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_dynamic_component.cpp68 auto hapPathValue = dynamicComponentArg->GetProperty("hapPath"); in Create()
92 auto hapPath = hapPathValue->ToString(); in Create() local
101 worker->RegisterCallbackForWorkerEnv([instanceId, weak = AceType::WeakClaim(frameNode), hapPath, in Create()
106 [weak, hapPath, abcPath, entryPoint, env]() { in Create()
110 frameNode, hapPath, abcPath, entryPoint, env); in Create()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/shared/
H A Dshared_module_info.cpp33 const char* SHARED_MODULE_INFO_HAP_PATH = "hapPath";
47 hapPath = Str16ToStr8(parcel.ReadString16()); in ReadFromParcel()
67 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(hapPath)); in Marshalling()
97 {SHARED_MODULE_INFO_HAP_PATH, sharedModuleInfo.hapPath}, in to_json()
130 sharedModuleInfo.hapPath, false, parseResult); in from_json()

Completed in 10 milliseconds

12345678910