/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/quick_fix/ |
H A D | quick_fix_boot_scanner.cpp | 158 size_t firstPos = fileStr.rfind(ServiceConstants::PATH_SEPARATOR); in ProcessQuickFixDir() 164 size_t secondPos = fileStr.rfind(ServiceConstants::PATH_SEPARATOR, firstPos - 1); in ProcessQuickFixDir() 190 destinationDir += std::string(ServiceConstants::PATH_SEPARATOR) + ServiceConstants::SECURITY_QUICK_FIX_PATH + in ReprocessQuickFix() 191 ServiceConstants::PATH_SEPARATOR + bundleName + ServiceConstants::PATH_SEPARATOR; in ReprocessQuickFix() 281 std::string tempInstallDir = hapcopypathstring + ServiceConstants::PATH_SEPARATOR in RemoveInvalidDir() 283 std::string tempQuickFixDir = hapcopypathstring + ServiceConstants::PATH_SEPARATOR in RemoveInvalidDir() 285 std::string tempSecureInstallDir = hapcopypathstring + ServiceConstants::PATH_SEPARATOR + in RemoveInvalidDir() 287 std::string tempSecureQuickFixDir = hapcopypathstring + ServiceConstants::PATH_SEPARATOR + in RemoveInvalidDir() 289 std::string tempSignatureFileDir = hapcopypathstring + ServiceConstants::PATH_SEPARATOR in RemoveInvalidDir() [all...] |
H A D | quick_fix_deployer.cpp | 60 std::string tempPath = path.substr(0, path.rfind(ServiceConstants::PATH_SEPARATOR)); in DeployQuickFix() 86 std::string oldPath = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + in DeployQuickFix() 87 appQuick.bundleName + ServiceConstants::PATH_SEPARATOR; in DeployQuickFix() 319 std::string soPath = patchPath + ServiceConstants::PATH_SEPARATOR + libraryPath; in ProcessNativeLibraryPath() 328 nativeLibraryPath = PATCH_DIR + targetPath_ + ServiceConstants::PATH_SEPARATOR + libraryPath; in ProcessNativeLibraryPath() 332 ServiceConstants::PATH_SEPARATOR + libraryPath; in ProcessNativeLibraryPath() 344 patchPath = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + appQuickFix.bundleName in ProcessPatchDeployEnd() 345 + ServiceConstants::PATH_SEPARATOR + PATCH_DIR + targetPath_; in ProcessPatchDeployEnd() 347 patchPath = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + appQuickFix.bundleName in ProcessPatchDeployEnd() 348 + ServiceConstants::PATH_SEPARATOR in ProcessPatchDeployEnd() [all...] |
H A D | quick_fix_deleter.cpp | 119 std::string patchPath = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + in InnerDeletePatchDir() 120 bundleName + ServiceConstants::PATH_SEPARATOR; in InnerDeletePatchDir() 123 appqfInfo.nativeLibraryPath.find(ServiceConstants::PATH_SEPARATOR)) == PATCH_DIR) { in InnerDeletePatchDir()
|
H A D | quick_fix_manager_host_impl.cpp | 171 std::string prefixStr = std::string(ServiceConstants::HAP_COPY_PATH) + ServiceConstants::PATH_SEPARATOR in CopyHqfToSecurityDir() 183 ServiceConstants::PATH_SEPARATOR + in CopyHqfToSecurityDir() 188 auto pos = securityPath.rfind(ServiceConstants::PATH_SEPARATOR); in CopyHqfToSecurityDir()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/verify/ |
H A D | verify_manager_host_impl.cpp | 58 rootDir.append(Constants::BUNDLE_CODE_DIR).append(ServiceConstants::PATH_SEPARATOR) in GetRootDir() 59 .append(bundleName).append(ServiceConstants::PATH_SEPARATOR) in GetRootDir() 60 .append(ABCS_DIR).append(ServiceConstants::PATH_SEPARATOR); in GetRootDir() 67 tempRootDir.append(Constants::BUNDLE_CODE_DIR).append(ServiceConstants::PATH_SEPARATOR) in GetTempRootDir() 68 .append(bundleName).append(ServiceConstants::PATH_SEPARATOR).append(ABCS_DIR) in GetTempRootDir() 69 .append(ServiceConstants::PATH_SEPARATOR).append(ABCS_TEMP_DIR); in GetTempRootDir() 249 if (!BundleUtil::StartWith(path, ServiceConstants::PATH_SEPARATOR)) { in GetRealPath() 250 path = ServiceConstants::PATH_SEPARATOR + path; in GetRealPath() 256 filePath.append(Constants::BUNDLE_CODE_DIR).append(ServiceConstants::PATH_SEPARATOR) in GetRealPath() 257 .append(bundleName).append(ServiceConstants::PATH_SEPARATOR) in GetRealPath() [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/src/ |
H A D | bundle_file_utils.cpp | 70 if ((rootDir[i] == PATH_SEPARATOR || i == (len - 1)) && !IsExistDir(rootDir)) { in MkRecursiveDir() 97 if ((rootDir[i] == PATH_SEPARATOR || i == (len - 1)) && !IsExistDir(rootDir)) { in MkOwnerDir() 178 if (rootDir.find(PATH_SEPARATOR) != 0 || rootDir.rfind(PATH_SEPARATOR) != (rootDir.size() - 1) || in IsValidPath() 190 std::size_t pos = path.rfind(PATH_SEPARATOR); in GetPathDir()
|
H A D | bundle_daemon_handler.cpp | 63 if (codeDir.back() != PATH_SEPARATOR) { in ExtractHap() 64 codeDir += PATH_SEPARATOR; in ExtractHap() 79 if (fileName.back() == PATH_SEPARATOR) { in ExtractHap() 138 if (dataDir.back() != PATH_SEPARATOR) { in CreateDataDirectory() 139 dataDir += PATH_SEPARATOR; in CreateDataDirectory() 225 std::string oldFileName = std::string(realOldPath) + PATH_SEPARATOR + ent->d_name; in MoveFile() 229 std::string newFileName = std::string(newFile) + PATH_SEPARATOR + ent->d_name; in MoveFile()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/core/ |
H A D | nstackx_util.c | 45 if (strlen(path) > 0 && path[strlen(path) - 1] == PATH_SEPARATOR) { in CheckPathSeprator() 53 if (strlen(fileName) > 0 && fileName[0] == PATH_SEPARATOR) { in CheckFilenameSeprator() 61 * return value 0 means the input dir is null or it's last char is PATH_SEPARATOR 67 if (dir == NULL || strlen(dir) < 1 || dir[strlen(dir) - 1] == PATH_SEPARATOR) { in GetFileNameLen() 74 if (dir[i] == PATH_SEPARATOR) { in GetFileNameLen() 161 if (tmp[i] != PATH_SEPARATOR) { in TestAndCreateDirectory()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_info_creator.cpp | 48 size_t index = std::string(info->codePath).find_last_of(PATH_SEPARATOR); in SaveBundleInfo() 56 index = std::string(info->dataPath).find_last_of(PATH_SEPARATOR); in SaveBundleInfo() 124 std::string codePath = installDirPath + PATH_SEPARATOR + bundleProfile.bundleName; in SetBundleInfo() 125 std::string dataPath = dataDirPath + PATH_SEPARATOR + bundleProfile.bundleName; in SetBundleInfo() 133 std::string iconPath = codePath + PATH_SEPARATOR + bundleProfile.moduleInfo.moduleName + PATH_SEPARATOR + in SetBundleInfo() 254 std::string iconPath = codePath + PATH_SEPARATOR + bundleProfile.moduleInfo.moduleName + PATH_SEPARATOR + in SetAbilityInfo()
|
H A D | bundle_res_transform.cpp | 39 std::string resPath = path + PATH_SEPARATOR + bundleInfo->moduleInfos[0].moduleName + ASSETS + in ConvertResInfoToBundleInfo() 91 std::string iconPath = std::string(bundleInfo->codePath) + PATH_SEPARATOR + bundleInfo->moduleInfos[0].moduleName + in ConvertIconResToBundleInfo()
|
/foundation/ability/ability_lite/frameworks/ability_lite/src/ |
H A D | ability_env_impl.cpp | 19 constexpr static char PATH_SEPARATOR[] = "/"; member 28 srcPath_ += PATH_SEPARATOR + moduleName; in SetAppInfo()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/driver/ |
H A D | driver_installer.cpp | 76 realSoDir.append(Constants::BUNDLE_CODE_DIR).append(ServiceConstants::PATH_SEPARATOR) in CopyDriverSoFile() 77 .append(info.GetBundleName()).append(ServiceConstants::PATH_SEPARATOR) in CopyDriverSoFile() 105 SplitStr(originalDir, ServiceConstants::PATH_SEPARATOR, originalDirVec, false, false); in FilterDriverSoFile() 155 SplitStr(meta.resource, ServiceConstants::PATH_SEPARATOR, originalDirVec, false, false); in RemoveDriverSoFile() 182 if (resStr.back() != ServiceConstants::PATH_SEPARATOR[0]) { in CreateDriverSoDestinedDir() 183 resStr += ServiceConstants::PATH_SEPARATOR; in CreateDriverSoDestinedDir() 211 SplitStr(meta.resource, ServiceConstants::PATH_SEPARATOR, originalDirVec, false, false); in RenameDriverFile()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/shared/ |
H A D | inner_shared_bundle_installer.cpp | 328 std::string bundleDir = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + bundleName_; in ExtractSharedBundles() 334 std::string versionDir = bundleDir + ServiceConstants::PATH_SEPARATOR + HSP_VERSION_PREFIX in ExtractSharedBundles() 340 std::string moduleDir = versionDir + ServiceConstants::PATH_SEPARATOR + moduleName; in ExtractSharedBundles() 352 std::string realHspPath = moduleDir + ServiceConstants::PATH_SEPARATOR + moduleName + in ExtractSharedBundles() 373 std::string moduleDir = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + bundleName_ + in UpdateInnerModuleInfo() 374 ServiceConstants::PATH_SEPARATOR + HSP_VERSION_PREFIX + std::to_string(innerModuleInfo.versionCode) + in UpdateInnerModuleInfo() 375 ServiceConstants::PATH_SEPARATOR + innerModuleInfo.moduleName; in UpdateInnerModuleInfo() 594 std::string tempHspDir = moduleDir + ServiceConstants::PATH_SEPARATOR + moduleName; in SaveHspToRealInstallationDir() 599 std::string tempHspPath = tempHspDir + ServiceConstants::PATH_SEPARATOR + moduleName + in SaveHspToRealInstallationDir() 633 std::string realSoPath = versionDir + ServiceConstants::PATH_SEPARATOR in MoveSoToRealPath() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/app_service_fwk/ |
H A D | app_service_fwk_installer.cpp | 46 + AppExecFwk::ServiceConstants::PATH_SEPARATOR + tempSoPath; in ObtainTempSoPath() 51 return tempSoPath + AppExecFwk::ServiceConstants::PATH_SEPARATOR; in ObtainTempSoPath() 135 AppExecFwk::ServiceConstants::PATH_SEPARATOR + bundleName; in UnInstall() 246 AppExecFwk::ServiceConstants::PATH_SEPARATOR + bundleName + in RemoveModuleDataDir() 247 AppExecFwk::ServiceConstants::PATH_SEPARATOR + HSP_VERSION_PREFIX + std::to_string(oldInfo.GetVersionCode()) + in RemoveModuleDataDir() 248 AppExecFwk::ServiceConstants::PATH_SEPARATOR + moduleName; in RemoveModuleDataDir() 567 AppExecFwk::ServiceConstants::PATH_SEPARATOR + bundleName_; in ExtractModule() 574 + AppExecFwk::ServiceConstants::PATH_SEPARATOR + HSP_VERSION_PREFIX + std::to_string(versionCode); in ExtractModule() 579 std::string moduleDir = versionDir + AppExecFwk::ServiceConstants::PATH_SEPARATOR + moduleName; in ExtractModule() 592 std::string realHspPath = moduleDir + AppExecFwk::ServiceConstants::PATH_SEPARATOR in ExtractModule() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/installd/ |
H A D | installd_operator.cpp | 102 return dir + ServiceConstants::PATH_SEPARATOR + subName; in HandleScanResult() 277 if (entryName.back() == ServiceConstants::PATH_SEPARATOR[0]) { in ExtractFiles() 323 if (entryName.back() == ServiceConstants::PATH_SEPARATOR[0]) { in ExtractFiles() 341 + ServiceConstants::PATH_SEPARATOR + targetName; in ExtractFiles() 398 std::string prefix = ServiceConstants::LIBS + cpuAbi + ServiceConstants::PATH_SEPARATOR; in IsNativeSo() 415 std::string prefix = ServiceConstants::LIBS + cpuAbi + ServiceConstants::PATH_SEPARATOR; in IsDiffFiles() 517 if (targetName.find(ServiceConstants::PATH_SEPARATOR) != std::string::npos) { in ExtractTargetFile() 567 prefix = ServiceConstants::LIBS + cpuAbi + ServiceConstants::PATH_SEPARATOR; in DeterminePrefix() 571 prefix = ServiceConstants::AN + cpuAbi + ServiceConstants::PATH_SEPARATOR; in DeterminePrefix() 583 prefix = ServiceConstants::HNPS + cpuAbi + ServiceConstants::PATH_SEPARATOR; in DeterminePrefix() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/ |
H A D | bundle_util.cpp | 248 bundlePath.append(ServiceConstants::PATH_SEPARATOR); in GetHapFilesFromBundlePath() 348 std::string bundleDir = configPath + ServiceConstants::PATH_SEPARATOR + bundleName; in MakeFsConfig() 363 realBundleDir += (std::string(ServiceConstants::PATH_SEPARATOR) + BUNDLE_ID_FILE); in MakeFsConfig() 377 std::string bundleDir = configPath + ServiceConstants::PATH_SEPARATOR + bundleName; in RemoveFsConfig() 410 std::string pathseparator = ServiceConstants::PATH_SEPARATOR; in CreateInstallTempDir() 432 tempDir += ServiceConstants::PATH_SEPARATOR + std::to_string(curTime) + in CreateInstallTempDir() 433 std::to_string(installerId) + ServiceConstants::PATH_SEPARATOR; in CreateInstallTempDir() 441 tempDir += std::string(ServiceConstants::PATH_SEPARATOR) + ServiceConstants::STREAM_INSTALL_PATH; in CreateSharedBundleTempDir() 442 tempDir += ServiceConstants::PATH_SEPARATOR + std::to_string(curTime) + std::to_string(installerId) in CreateSharedBundleTempDir() 443 + Constants::FILE_UNDERLINE + std::to_string(index)+ ServiceConstants::PATH_SEPARATOR; in CreateSharedBundleTempDir() [all...] |
H A D | el5_filekey_callback.cpp | 64 ServiceConstants::PATH_SEPARATOR + std::to_string(info.userId) + ServiceConstants::BASE; in CheckEl5Dir() 88 ServiceConstants::PATH_SEPARATOR + std::to_string(info.userId) + ServiceConstants::DATABASE + info.bundleName; in CheckEl5Dir()
|
H A D | bundle_exception_handler.cpp | 37 ServiceConstants::PATH_SEPARATOR + info.GetBundleName(); in HandleInvalidBundle() 117 ServiceConstants::PATH_SEPARATOR + info.GetBundleName(); in InnerHandleInvalidBundle() 118 auto moduleDir = appCodePath + ServiceConstants::PATH_SEPARATOR + mark.packageName; in InnerHandleInvalidBundle()
|
H A D | base_bundle_installer.cpp | 129 return info.GetAppCodePath() + ServiceConstants::PATH_SEPARATOR + moduleName + fileSuffix; in GetHapPath() 139 auto position = nativeLibraryPath.find(ServiceConstants::PATH_SEPARATOR); in BuildTempNativeLibraryPath() 440 std::string uninstallDir = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + bundleName; in UninstallBundleByUninstallParam() 445 uninstallDir += std::string(ServiceConstants::PATH_SEPARATOR) + in UninstallBundleByUninstallParam() 1367 + ServiceConstants::PATH_SEPARATOR + std::to_string(userId_) + ServiceConstants::BASE + in RollBack() 1410 std::string createModulePath = info.GetAppCodePath() + ServiceConstants::PATH_SEPARATOR + in RollBack() 2002 ServiceConstants::PATH_SEPARATOR + std::to_string(userId_) + ServiceConstants::BASE + in RemoveBundle() 2091 std::string modulePath = info.GetAppCodePath() + ServiceConstants::PATH_SEPARATOR + modulePackage_; in ProcessBundleInstallStatus() 2238 std::string modulePath = newInfo.GetAppCodePath() + ServiceConstants::PATH_SEPARATOR + modulePackage_; in ProcessNewModuleInstall() 2371 moduleTmpDir_ = newInfo.GetAppCodePath() + ServiceConstants::PATH_SEPARATOR in ProcessModuleUpdate() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aot/ |
H A D | aot_sign_data_cache_mgr.cpp | 121 std::string anFileName = ServiceConstants::ARK_CACHE_PATH + bundleName + ServiceConstants::PATH_SEPARATOR in ExecutePendSign() 122 + ServiceConstants::ARM64 + ServiceConstants::PATH_SEPARATOR + moduleName + ServiceConstants::AN_SUFFIX; in ExecutePendSign()
|
/foundation/ability/ability_runtime/frameworks/simulator/common/include/ |
H A D | bundle_constants.h | 27 const std::string PATH_SEPARATOR = "/"; member
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/bundle_daemon/include/ |
H A D | bundle_file_utils.h | 27 const char PATH_SEPARATOR = '/'; member
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/mock/src/ |
H A D | bundle_mgr_service_event_handler.cpp | 195 auto appCodePath = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + bundleName; in ScanInstallDir() 317 auto appCodePath = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + bundleName; in SaveInstallInfoToCache() 324 auto moduleDir = info.GetAppCodePath() + ServiceConstants::PATH_SEPARATOR + info.GetCurrentModulePackage(); in SaveInstallInfoToCache() 693 std::string hspPath = std::string(Constants::BUNDLE_CODE_DIR) + ServiceConstants::PATH_SEPARATOR + in ProcessSharedBundleProvisionInfo() 694 sharedBundleInfo.name + ServiceConstants::PATH_SEPARATOR + HSP_VERSION_PREFIX + in ProcessSharedBundleProvisionInfo() 696 ServiceConstants::PATH_SEPARATOR + sharedBundleInfo.sharedModuleInfos[0].name + in ProcessSharedBundleProvisionInfo() 697 ServiceConstants::PATH_SEPARATOR + sharedBundleInfo.sharedModuleInfos[0].name + in ProcessSharedBundleProvisionInfo()
|
/foundation/communication/dsoftbus/sdk/transmission/trans_channel/proxy/include/ |
H A D | client_trans_proxy_file_common.h | 36 #define PATH_SEPARATOR '/' macro
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | extension_plugin_info.cpp | 35 const std::string PATH_SEPARATOR = "/"; member 137 files.emplace_back(dirPath + PATH_SEPARATOR + currentName); in ScanExtensions()
|