/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/ |
H A D | wifi_hal_adapter.c | 191 char dstPath[BUFF_SIZE] = P2P_CONFIG_DIR; in CopyConfigFile() local 192 if (strcat_s(dstPath, sizeof(dstPath), configName) != EOK) { in CopyConfigFile() 196 LOGD("%{public}s: destination is %{public}s", __func__, dstPath); in CopyConfigFile() 197 if ((strcmp(dstPath, P2P_WPA_CONFIG_FILE) == 0) && (FileIsExisted(dstPath) == HAL_SUCCESS)) { in CopyConfigFile() 198 LOGW("%{public}s: dstPath is existed", __func__); in CopyConfigFile() 199 if (memset_s(dstPath, sizeof(dstPath), 0x0, sizeof(dstPath)) ! in CopyConfigFile() [all...] |
/third_party/astc-encoder/Test/ |
H A D | astc_test_image_dl.py | 35 def download(testSet, index, srcUrl, dstPath): 43 dstPath (str): The destination path. 45 dirName = os.path.dirname(dstPath) 50 if not os.path.exists(dstPath): 52 urllib.request.urlretrieve(srcUrl, dstPath) 70 def make_mixed_image(imgPathA, imgPathB, dstPath): 77 dstPath: The path of the destination. 84 dirs = os.path.dirname(dstPath) 88 imgA.save(dstPath) 91 def make_montage(imageDir, dstPath) [all...] |
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | build_spirv_binaries.py | 56 def cleanDstDir (dstPath): 57 binFiles = [f for f in os.listdir(dstPath) if os.path.isfile(os.path.join(dstPath, f)) and fnmatch.fnmatch(f, "*.spv")] 60 print("Removing %s" % os.path.join(dstPath, binFile)) 61 os.remove(os.path.join(dstPath, binFile)) 63 def execBuildPrograms (buildCfg, generator, module, dstPath, vulkanVersion): 64 fullDstPath = os.path.realpath(dstPath) 95 dest="dstPath", 115 if not os.path.exists(args.dstPath): 116 os.makedirs(args.dstPath) [all...] |
/base/startup/appspawn/service/hnp/installer/src/ |
H A D | hnp_installer.c | 50 static int HnpGenerateSoftLinkAllByJson(const char *installPath, const char *dstPath, HnpCfgInfo *hnpCfg)
in HnpGenerateSoftLinkAllByJson() argument 57 if (access(dstPath, F_OK) != 0) {
in HnpGenerateSoftLinkAllByJson() 58 int ret = mkdir(dstPath, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
in HnpGenerateSoftLinkAllByJson() 60 HNP_LOGE("mkdir [%{public}s] unsuccess, ret=%{public}d, errno:%{public}d", dstPath, ret, errno);
in HnpGenerateSoftLinkAllByJson() 89 ret = sprintf_s(dstFile, MAX_FILE_PATH_LEN, "%s/%s", dstPath, fileName);
in HnpGenerateSoftLinkAllByJson() 106 static int HnpGenerateSoftLinkAll(const char *installPath, const char *dstPath)
in HnpGenerateSoftLinkAll() argument 126 if (access(dstPath, F_OK) != 0) {
in HnpGenerateSoftLinkAll() 127 ret = mkdir(dstPath, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH);
in HnpGenerateSoftLinkAll() 130 HNP_LOGE("mkdir [%{public}s] unsuccess, ret=%{public}d, errno:%{public}d", dstPath, ret, errno);
in HnpGenerateSoftLinkAll() 147 ret = sprintf_s(dstFile, MAX_FILE_PATH_LEN, "%s/%s", dstPath, entr in HnpGenerateSoftLinkAll() 290 char dstPath[MAX_FILE_PATH_LEN]; HnpUnInstall() local 535 HapReadAndInstall(const char *dstPath, HapInstallInfo *installInfo, HnpSignMapInfo *hnpSignMapInfos, int *count) HapReadAndInstall() argument 692 CheckInstallPath(char *dstPath, HapInstallInfo *installInfo) CheckInstallPath() argument 712 char dstPath[MAX_FILE_PATH_LEN]; HnpInsatllPre() local [all...] |
/third_party/astc-encoder/Test/testlib/ |
H A D | encoder.py | 272 dstPath = image.outFilePath + self.OUTPUTS[image.colorProfile] 273 dstDir = os.path.dirname(dstPath) 274 dstFile = os.path.basename(dstPath) 275 dstPath = os.path.join(dstDir, self.name, preset[1:], blockSize, dstFile) 277 dstDir = os.path.dirname(dstPath) 280 dstPath = "nul" 282 dstPath = "/dev/null" 285 self.binary, opmode, srcPath, dstPath, 377 dstPath = image.outFilePath + self.OUTPUTS[image.colorProfile] 378 dstDir = os.path.dirname(dstPath) [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/test/unittest/network/softbus/ |
H A D | softbus_session_pool_test.cpp | 57 .dstPath = "/data/test/1", in HWTEST_F() 61 .dstPath = "/data/test/2", in HWTEST_F() 71 EXPECT_EQ(sessionInfo.dstPath, sessionInfo1.dstPath); in HWTEST_F() 77 EXPECT_EQ(sessionInfo.dstPath, sessionInfo2.dstPath); in HWTEST_F() 103 .dstPath = "/data/test/1", in HWTEST_F()
|
/third_party/vk-gl-cts/scripts/android/ |
H A D | build_apk.py | 613 self.dstPath = [BuildRoot(), self.package.getAppDirName(), "tmp", "base.apk"] 626 return [self.dstPath] 630 dstPath = resolvePath(config, self.dstPath) 632 if not os.path.exists(os.path.dirname(dstPath)): 633 os.makedirs(os.path.dirname(dstPath)) 643 "-F", dstPath, 687 self.dstPath = [BuildRoot(), self.package.getAppDirName(), "tmp", "with-java.apk"] 696 return [self.dstPath] 700 dstPath [all...] |
/third_party/vk-gl-cts/external/ |
H A D | fetch_sources.py | 137 dstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.archiveDir, self.filename) 142 if not os.path.exists(os.path.dirname(dstPath)): 143 os.makedirs(os.path.dirname(dstPath)) 145 writeBinaryFile(dstPath, data) 152 dstPath = os.path.join(EXTERNAL_DIR, self.baseDir, self.extractDir) 173 if not os.path.exists(dstPath): 174 os.mkdir(dstPath) 177 if os.path.exists(os.path.join(dstPath, entry)): 180 shutil.move(os.path.join(topLevelPath, entry), dstPath) 185 self.postExtract(dstPath) [all...] |
/base/hiviewdfx/hiview/core/param_update/src/ |
H A D | param_manager.cpp | 64 std::string dstPath(FileUtil::ExtractFilePath(dstFile)); in CopyFile() 66 if (dstPath != CLOUD_CFG_PATH && !FileUtil::ForceCreateDirectory(dstPath)) { in CopyFile() 67 HIVIEW_LOGW("create dst path failed: %{public}s", dstPath.c_str()); in CopyFile()
|
/base/update/sys_installer/frameworks/installer_manager/src/ |
H A D | installer_manager.cpp | 98 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() 104 return helper_->AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkg() 107 int32_t InstallerManager::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument 113 return helper_->AccDeleteDir(dstPath); in AccDeleteDir() 97 AccDecompressAndVerifyPkg(const std::string &srcPath, const std::string &dstPath, const uint32_t type) AccDecompressAndVerifyPkg() argument
|
/base/update/sys_installer/frameworks/installer_manager/include/ |
H A D | installer_manager_helper.h | 35 const std::string &dstPath, const uint32_t type) = 0; 36 virtual int32_t AccDeleteDir(const std::string &dstPath) = 0; 52 const std::string &dstPath, const uint32_t type); 53 virtual int32_t AccDeleteDir(const std::string &dstPath);
|
/base/update/sys_installer/frameworks/ipc_server/src/ |
H A D | sys_installer_server.cpp | 85 const std::string &dstPath, const uint32_t type) in AccDecompressAndVerifyPkg() 88 return InstallerManager::GetInstance().AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkg() 91 int32_t SysInstallerServer::AccDeleteDir(const std::string &dstPath) in AccDeleteDir() argument 94 return InstallerManager::GetInstance().AccDeleteDir(dstPath); in AccDeleteDir() 84 AccDecompressAndVerifyPkg(const std::string &srcPath, const std::string &dstPath, const uint32_t type) AccDecompressAndVerifyPkg() argument
|
H A D | sys_installer_stub.cpp | 154 string dstPath = Str16ToStr8(data.ReadString16()); in AccDecompressAndVerifyPkgStub() local 156 LOG(INFO) << "StartUpdateParaZipStub srcPath:" << srcPath << " dstPath:" << dstPath; in AccDecompressAndVerifyPkgStub() local 158 int32_t ret = service->AccDecompressAndVerifyPkg(srcPath, dstPath, type); in AccDecompressAndVerifyPkgStub() 170 string dstPath = Str16ToStr8(data.ReadString16()); in AccDeleteDirStub() local 171 LOG(INFO) << "AccDeleteDirStub dstPath:" << dstPath; in AccDeleteDirStub() 173 int32_t ret = service->AccDeleteDir(dstPath); in AccDeleteDirStub()
|
/third_party/node/test/parallel/ |
H A D | test-fs-link.js | 12 const dstPath = path.join(tmpdir.path, 'link1.js'); 17 const dstContent = fs.readFileSync(dstPath, 'utf8'); 21 fs.link(srcPath, dstPath, common.mustCall(callback));
|
/third_party/vk-gl-cts/external/vulkancts/framework/vulkan/ |
H A D | vkBinaryRegistry.cpp | 109 void writeBinary (const ProgramBinary& binary, const std::string& dstPath) in writeBinary() argument 111 const de::FilePath filePath(dstPath); in writeBinary() 117 std::ofstream out (dstPath.c_str(), std::ios_base::binary); in writeBinary() 120 throw tcu::Exception("Failed to open " + dstPath); in writeBinary() 417 BinaryRegistryWriter::BinaryRegistryWriter (const std::string& dstPath) in BinaryRegistryWriter() argument 418 : m_dstPath(dstPath) in BinaryRegistryWriter() 420 if (de::FilePath(dstPath).exists()) in BinaryRegistryWriter() 421 initFromPath(dstPath); in BinaryRegistryWriter() 515 void BinaryRegistryWriter::writeToPath (const std::string& dstPath) const in writeToPath() 517 if (!de::FilePath(dstPath) in writeToPath() [all...] |
/foundation/filemanagement/storage_service/services/storage_daemon/utils/test/common/ |
H A D | help_utils.cpp | 55 bool StorageTestUtils::CheckMount(const std::string& dstPath) in CheckMount() argument 67 if (dstPath.compare(mntent->mnt_dir) == 0) { in CheckMount() 241 std::string dstPath(hmdfsTarget); in ClearTestResource() 242 dstPath.replace(dstPath.find("%d"), strlen("%d"), std::to_string(id)); in ClearTestResource() 243 UMount(dstPath); in ClearTestResource()
|
/third_party/icu/icu4j/tools/build/src/com/ibm/icu/dev/tool/docs/ |
H A D | Deprecator.java | 32 String dstPath = null; in main() 44 dstPath = args[++i]; in main() 73 if (dstPath == null) { in main() 76 dstDir = new File(dstPath); in main() 79 err.append("\nunable to create dst: '" + dstPath + "'"); in main() 82 err.append("\ndst exists but is not directory: '" + dstPath + "'"); in main()
|
/foundation/filemanagement/storage_service/services/storage_daemon/user/src/ |
H A D | mount_manager.cpp | 658 std::string dstPath = SANDBOX_ROOT_PATH; in MountSandboxPath() local 659 dstPath = dstPath.append(userId).append("/").append(bundleName).append(dstPaths[i]); in MountSandboxPath() 662 if (!IsDir(dstPath)) { in MountSandboxPath() 663 LOGE("dstPath is not a dir: %{public}s", dstPath.c_str()); in MountSandboxPath() 670 LOGD("mount crypto path, srcPath is %{public}s, dstPath is %{public}s", srcPath.c_str(), dstPath.c_str()); in MountSandboxPath() 671 int32_t ret = mount(srcPath.c_str(), dstPath.c_str(), nullptr, MS_BIND | MS_REC, nullptr); in MountSandboxPath() 673 ret = mount(srcPath.c_str(), dstPath in MountSandboxPath() 1139 std::string dstPath = StringPrintf("/mnt/data/%d/hmdfs/%s/", userId, deviceId.c_str()); MountDfsDocs() local 1172 std::string dstPath = StringPrintf("/mnt/data/%d/hmdfs/%s", userId, deviceId.c_str()); UMountDfsDocs() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkpath_fuzzer/ |
H A D | path_fuzzer.cpp | 249 OH_Drawing_Path* dstPath = OH_Drawing_PathCreate(); in NativeDrawingPathTest005() local 261 OH_Drawing_PathAddPathWithMode(dstPath, nullptr, in NativeDrawingPathTest005() 263 OH_Drawing_PathAddPathWithMode(dstPath, path, in NativeDrawingPathTest005() 268 OH_Drawing_PathAddPathWithOffsetAndMode(dstPath, nullptr, dx, dy, in NativeDrawingPathTest005() 270 OH_Drawing_PathAddPathWithOffsetAndMode(dstPath, path, dx, dy, in NativeDrawingPathTest005() 274 OH_Drawing_PathDestroy(dstPath); in NativeDrawingPathTest005() 362 OH_Drawing_Path* dstPath = OH_Drawing_PathCreate(); in NativeDrawingPathTest007() local 363 OH_Drawing_PathTransformWithPerspectiveClip(nullptr, matrix, dstPath, isValue); in NativeDrawingPathTest007() 364 OH_Drawing_PathTransformWithPerspectiveClip(path, nullptr, dstPath, isValue); in NativeDrawingPathTest007() 365 OH_Drawing_PathTransformWithPerspectiveClip(path, matrix, dstPath, isValu in NativeDrawingPathTest007() [all...] |
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_session_listener.cpp | 54 const std::string &dstPath) in GetFileName() 63 if (dstPath.find("??") == 0) { in GetFileName() 64 auto pos = dstPath.rfind("/"); in GetFileName() 65 tmp.push_back(dstPath.substr(pos + 1)); in GetFileName() 101 auto fileNameList = GetFileName(fileList, physicalPath, sessionInfo.dstPath); in OnSessionOpened() 52 GetFileName(const std::vector<std::string> &fileList, const std::string &path, const std::string &dstPath) GetFileName() argument
|
/third_party/skia/src/utils/ |
H A D | SkDashPath.cpp | 156 // If cull_path() returns true, dstPath is the new smaller path, 157 // otherwise dstPath may have been changed but you should ignore it. 159 const SkRect* cullRect, SkScalar intervalLength, SkPath* dstPath) { 164 dstPath->moveTo(pts[0]); 165 dstPath->lineTo(pts[1]); 179 dstPath->moveTo(pts[0]); 180 dstPath->lineTo(pts[1]); 204 if (!dstPath->getLastPt(&last) || last != pts[0]) { 205 dstPath->moveTo(pts[0]); 207 dstPath [all...] |
/foundation/filemanagement/file_api/interfaces/kits/cj/src/ |
H A D | move_file.cpp | 75 LOGE("Failed to utime dstPath"); in ChangeTime() 93 filesystem::path dstPath(dest); in CopyAndDeleteFile() 95 if (filesystem::exists(dstPath)) { in CopyAndDeleteFile() 96 if (!filesystem::remove(dstPath, errCode)) { in CopyAndDeleteFile() 102 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) { in CopyAndDeleteFile()
|
/third_party/vk-gl-cts/scripts/khr_util/ |
H A D | registry_cache.py | 112 def fetchFile (dstPath, repository, revision, filename, checksum, cacheDir): 118 if not os.path.exists(os.path.dirname(dstPath)): 119 os.makedirs(os.path.dirname(dstPath)) 128 writeFile(dstPath, data)
|
/third_party/vk-gl-cts/executor/tools/ |
H A D | xeBatchResultToXml.cpp | 232 ResultToXmlFilesLogHandler (vector<xe::TestCaseResultHeader>& resultHeaders, const char* dstPath) in ResultToXmlFilesLogHandler() argument 234 , m_dstPath (dstPath) in ResultToXmlFilesLogHandler() 334 static void batchResultToSeparateXmlFiles (const char* batchResultFilename, const char* dstPath) in batchResultToSeparateXmlFiles() argument 341 if (!de::FilePath(dstPath).exists()) in batchResultToSeparateXmlFiles() 342 de::createDirectoryAndParents(dstPath); in batchResultToSeparateXmlFiles() 344 XE_CHECK_MSG(de::FilePath(dstPath).getType() == de::FilePath::TYPE_DIRECTORY, "Destination is not directory"); in batchResultToSeparateXmlFiles() 348 ResultToXmlFilesLogHandler handler (shortResults, dstPath); in batchResultToSeparateXmlFiles() 367 de::FilePath indexPath = de::FilePath::join(dstPath, "caselist.xml"); in batchResultToSeparateXmlFiles()
|
/base/update/sys_installer/interfaces/inner_api/include/ |
H A D | isys_installer.h | 38 const std::string &dstPath, const uint32_t type) = 0; 39 virtual int32_t AccDeleteDir(const std::string &dstPath) = 0;
|