/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/bundlemgr/ |
H A D | bundle_mgr_client_impl.cpp | 181 std::string resPath = isCompressed ? extensionInfo.hapPath : extensionInfo.resourcePath; in GetProfileFromExtension() local 182 if (!ConvertResourcePath(extensionInfo.bundleName, resPath, isCompressed)) { in GetProfileFromExtension() 183 APP_LOGE("ConvertResourcePath failed %{public}s", resPath.c_str()); in GetProfileFromExtension() 188 innerExtension.hapPath = resPath; in GetProfileFromExtension() 190 innerExtension.resourcePath = resPath; in GetProfileFromExtension() 200 std::string resPath = isCompressed ? abilityInfo.hapPath : abilityInfo.resourcePath; in GetProfileFromAbility() local 201 if (!ConvertResourcePath(abilityInfo.bundleName, resPath, isCompressed)) { in GetProfileFromAbility() 202 APP_LOGE("ConvertResourcePath failed %{public}s", resPath.c_str()); in GetProfileFromAbility() 207 innerAbilityInfo.hapPath = resPath; in GetProfileFromAbility() 209 innerAbilityInfo.resourcePath = resPath; in GetProfileFromAbility() 219 std::string resPath = isCompressed ? hapModuleInfo.hapPath : hapModuleInfo.resourcePath; GetProfileFromHap() local 233 ConvertResourcePath( const std::string &bundleName, std::string &resPath, bool isCompressed) const ConvertResourcePath() argument 363 std::string resPath; GetResFromResMgr() local 392 TransformFileToJsonString(const std::string &resPath, std::string &profile) const TransformFileToJsonString() argument [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_res_transform.cpp | 39 std::string resPath = path + PATH_SEPARATOR + bundleInfo->moduleInfos[0].moduleName + ASSETS + in ConvertResInfoToBundleInfo() local 42 if (!BundleUtil::IsFile(resPath.c_str())) { in ConvertResInfoToBundleInfo() 46 if (GLOBAL_GetValueById(bundleRes.moduleDescriptionId, resPath.c_str(), &des) < 0) { in ConvertResInfoToBundleInfo() 60 !ConvertIconResToBundleInfo(resPath, bundleRes.abilityRes[i].iconId, bundleInfo, i)) { in ConvertResInfoToBundleInfo() 64 !ConvertLableResToBundleInfo(resPath, bundleRes.abilityRes[i].labelId, bundleInfo, i)) { in ConvertResInfoToBundleInfo() 68 !ConvertDesResIdToBundleInfo(resPath, bundleRes.abilityRes[i].descriptionId, bundleInfo, i)) { in ConvertResInfoToBundleInfo()
|
H A D | gt_bundle_parser.cpp | 653 char *resPath = BundleUtil::Strscat(resPathComp, sizeof(resPathComp) / sizeof(char *)); in ConvertResInfoToBundleInfo() local 654 if (resPath == nullptr) { in ConvertResInfoToBundleInfo() 657 if (!BundleUtil::IsFile(resPath)) { in ConvertResInfoToBundleInfo() 658 AdapterFree(resPath); in ConvertResInfoToBundleInfo() 663 if (GLOBAL_GetValueById(labelId, resPath, &label) != 0) { in ConvertResInfoToBundleInfo() 666 AdapterFree(resPath); in ConvertResInfoToBundleInfo() 674 AdapterFree(resPath); in ConvertResInfoToBundleInfo() 678 if (!ConvertIconResToBundleInfo(resPath, iconId, bundleInfo)) { in ConvertResInfoToBundleInfo() 679 AdapterFree(resPath); in ConvertResInfoToBundleInfo() 682 AdapterFree(resPath); in ConvertResInfoToBundleInfo() 686 ConvertIconResToBundleInfo(const char *resPath, uint32_t iconId, BundleInfo *bundleInfo) ConvertIconResToBundleInfo() argument [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/utils/ |
H A D | set_flag_utils.cpp | 58 for (const auto& resPath : pathList) { in ParseDirPath() 59 if (StorageDaemon::IsDir(resPath.path())) { in ParseDirPath() 60 ParseDirPath(resPath.path().c_str()); in ParseDirPath() 61 } else if (StorageDaemon::IsFile(resPath.path())) { in ParseDirPath() 62 SetFileDelFlags(resPath.path().c_str()); in ParseDirPath()
|
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/ |
H A D | data_share_profile_config.cpp | 115 const std::vector<AppExecFwk::Metadata> &metadata, const std::string &resPath, in GetDataProperties() 119 std::string resourcePath = !hapPath.empty() ? hapPath : resPath; in GetDataProperties() 203 std::string resPath; in GetResFromResMgr() local 204 RState ret = resMgr.GetProfileByName(profileName.c_str(), resPath); in GetResFromResMgr() 209 std::string profile = ReadProfile(resPath); in GetResFromResMgr() 211 ZLOGE("Read profile failed, resPath is %{public}s", resPath.c_str()); in GetResFromResMgr() 229 std::string DataShareProfileConfig::ReadProfile(const std::string &resPath) in ReadProfile() argument 231 if (!IsFileExisted(resPath)) { in ReadProfile() 235 in.open(resPath, st in ReadProfile() 114 GetDataProperties( const std::vector<AppExecFwk::Metadata> &metadata, const std::string &resPath, const std::string &hapPath, const std::string &name) GetDataProperties() argument [all...] |
H A D | data_share_profile_config.h | 79 const std::string &resPath, const std::string &hapPath, const std::string &name); 88 static std::string ReadProfile(const std::string &resPath);
|
/foundation/graphic/graphic_2d/frameworks/bootanimation/src/ |
H A D | boot_animation_operation.cpp | 149 params.resPath = path;
in PlayVideo() 173 params.resPath = path;
in PlayPicture() 182 params.resPath = path;
in PlaySound()
|
H A D | boot_sound_player.cpp | 24 resPath_ = params.resPath; in BootSoundPlayer()
|
H A D | boot_video_player.cpp | 32 resPath_ = params.resPath; in BootVideoPlayer()
|
H A D | boot_picture_player.cpp | 29 resPath_ = params.resPath; in BootPicturePlayer()
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/bundlemgr/ |
H A D | bundle_mgr_client_impl.h | 73 bool ConvertResourcePath(const std::string &bundleName, std::string &resPath, bool isCompressed) const; 82 bool TransformFileToJsonString(const std::string &resPath, std::string &profile) const;
|
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/app/ |
H A D | js_ability_stage.cpp | 654 bool JsAbilityStage::TransformFileToJsonString(const std::string &resPath, std::string &profile) in TransformFileToJsonString() argument 656 if (!IsFileExisted(resPath)) { in TransformFileToJsonString() 661 in.open(resPath, std::ios_base::in | std::ios_base::binary); in TransformFileToJsonString() 724 std::string resPath; in GetResFromResMgr() local 725 if (resMgr->GetProfileByName(profileName.c_str(), resPath) != Global::Resource::SUCCESS) { in GetResFromResMgr() 729 TAG_LOGD(AAFwkTag::APPKIT, "resPath is %{private}s.", resPath.c_str()); in GetResFromResMgr() 731 if (!TransformFileToJsonString(resPath, profile)) { in GetResFromResMgr()
|
/foundation/arkui/ace_engine/adapter/ohos/osal/ |
H A D | resource_adapter_impl_v2.cpp | 135 std::string resPath = resourceInfo.GetPackagePath(); in ResourceAdapterImplV2() local 137 std::string resIndexPath = hapPath.empty() ? (resPath + "resources.index") : hapPath; in ResourceAdapterImplV2() 138 packagePathStr_ = (hapPath.empty() || IsDirExist(resPath)) ? resPath : std::string(); in ResourceAdapterImplV2() 151 std::string resPath = resourceInfo.GetPackagePath(); in Init() local 155 std::string resIndexPath = hapPath.empty() ? (resPath + "resources.index") : hapPath; in Init() 161 packagePathStr_ = (hapPath.empty() || IsDirExist(resPath)) ? resPath : std::string(); in Init()
|
H A D | resource_adapter_impl.cpp | 136 std::string resPath = resourceInfo.GetPackagePath(); in Init() local 140 std::string resIndexPath = hapPath.empty() ? (resPath + "resources.index") : hapPath; in Init() 155 packagePathStr_ = (hapPath.empty() || IsDirExist(resPath)) ? resPath : std::string(); in Init()
|
/foundation/ability/ability_runtime/interfaces/kits/native/appkit/ability_runtime/app/ |
H A D | js_ability_stage.h | 90 bool TransformFileToJsonString(const std::string &resPath, std::string &profile);
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/include/ |
H A D | gt_bundle_parser.h | 41 static bool ConvertIconResToBundleInfo(const char *resPath, uint32_t iconId, BundleInfo *bundleInfo);
|
/foundation/graphic/graphic_2d/frameworks/bootanimation/include/ |
H A D | util.h | 127 std::string resPath;
|
/foundation/graphic/graphic_2d/frameworks/bootanimation/test/unittest/ |
H A D | boot_picture_player_test.cpp | 125 params.resPath = "/system/etc/graphic/bootpic.zip"; in HWTEST_F()
|
/foundation/arkui/ace_engine/interfaces/napi/kits/utils/ |
H A D | napi_utils.cpp | 242 std::string resPath; in ParseDollarResource() local 243 if (!GetNapiString(env, value, resPath, valueType)) { in ParseDollarResource() 247 StringUtils::StringSplitter(resPath, '.', tokens); in ParseDollarResource() 271 resName = resPath; in ParseDollarResource()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | ui_content_impl.cpp | 1094 std::string resPath; in CommonInitializeForm() local 1125 resPath = moduleSourceDir + "/"; in CommonInitializeForm() 1133 if (assetManagerImpl && !resPath.empty()) { in CommonInitializeForm() 1135 if (assetProvider->Initialize(resPath, assetBasePathStr)) { in CommonInitializeForm() 1172 resPath = moduleSourceDir + "/assets/" + module.moduleName + "/"; in CommonInitializeForm() 1285 resPath = hapPath_; in CommonInitializeForm() 1288 resPath = "/data/bundles/" + bundleName_ + "/" + moduleName_ + "/"; in CommonInitializeForm() 1292 "[%{public}s][%{public}s][%{public}d]: CommonInitializeForm resPath = %{public}s hapPath = %{public}s", in CommonInitializeForm() 1293 bundleName_.c_str(), moduleName_.c_str(), instanceId_, resPath.c_str(), hapPath.c_str()); in CommonInitializeForm() 1295 container->SetPackagePathStr(resPath); in CommonInitializeForm() 1652 std::string resPath; CommonInitialize() local [all...] |
H A D | ace_ability.cpp | 340 std::string resPath; in OnStart() local 345 resPath = moduleSourceDir + "/assets/" + module.moduleName + FILE_SEPARATOR; in OnStart() 393 container->SetPackagePathStr(resPath); in OnStart()
|
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_client_system_test/ |
H A D | bundle_mgr_client_system_test.cpp | 2099 std::string resPath = "/data/test"; in HWTEST_F() local 2100 bool res = impl.ConvertResourcePath(BUNDLE_NAME, resPath, isCompressed); in HWTEST_F() 2103 resPath = RESOURCE_PATH; in HWTEST_F() 2104 res = impl.ConvertResourcePath(BUNDLE_NAME, resPath, isCompressed); in HWTEST_F()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | js_fwk_common.cpp | 484 static bool PathIsRelative(const char * const resPath) in PathIsRelative() argument 486 return strncmp(PATH_PREFIX, resPath, strlen(PATH_PREFIX)) == 0; in PathIsRelative()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_view_abstract.cpp | 5017 std::string resPath = jsValue->ToString(); in ParseDollarResource() local 5020 if (!std::regex_match(resPath, results, tokenRegex)) { in ParseDollarResource() 5027 resName = resPath; in ParseDollarResource()
|