/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...] |
H A D | amber_verify.py | 84 dest="dstPath", 98 if not os.path.exists(args.dstPath): 99 os.makedirs(args.dstPath)
|
/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...] |
/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...] |
/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));
|
/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...] |
/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/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
|
/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()
|
H A D | xeExtractShaderPrograms.cpp | 50 string dstPath; member 79 const string basePath = string(de::FilePath::join(cmdLine.dstPath, casePath).getPath()) + "." + de::toString(programNdx); in writeShaderProgram() 223 else if (cmdLine.dstPath.empty()) in parseCommandLine() 224 cmdLine.dstPath = arg; in parseCommandLine()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/include/ipc/ |
H A D | daemon_event.h | 42 const std::string &dstPath, in RequestSendFileData() 47 dstPath_(dstPath), in RequestSendFileData()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
H A D | movedir.cpp | 108 filesystem::path dstPath(dest);
in CopyAndDeleteFile() 110 if (filesystem::exists(dstPath, errCode)) {
in CopyAndDeleteFile() 118 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) {
in CopyAndDeleteFile() 127 filesystem::path dstPath(dest);
in RenameFile() 129 if (filesystem::exists(dstPath, errCode)) {
in RenameFile() 130 if (filesystem::is_directory(dstPath, errCode)) {
in RenameFile() 143 filesystem::rename(srcPath, dstPath, errCode);
in RenameFile()
|
H A D | move.cpp | 99 filesystem::path dstPath(dest); in CopyAndDeleteFile() 101 if (filesystem::exists(dstPath, errCode)) { in CopyAndDeleteFile() 102 if (!filesystem::remove(dstPath, errCode)) { in CopyAndDeleteFile() 108 if (!filesystem::copy_file(srcPath, dstPath, filesystem::copy_options::overwrite_existing, errCode)) { in CopyAndDeleteFile()
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/ipc/ |
H A D | daemon_execute.cpp | 139 std::string dstPath = requestSendFileData->dstPath_; in ExecuteRequestSendFile() local 148 requestSendFileBlock->SetValue(RequestSendFileInner(srcUri, dstPath, dstDeviceId, sessionName)); in ExecuteRequestSendFile() 152 const std::string &dstPath, in RequestSendFileInner() 174 ret = SoftBusHandler::GetInstance().CopySendFile(socketId, sessionName, srcUri, dstPath); in RequestSendFileInner() 151 RequestSendFileInner(const std::string &srcUri, const std::string &dstPath, const std::string &dstDeviceId, const std::string &sessionName) RequestSendFileInner() argument
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
H A D | skia_paint_test.cpp | 227 Path dstPath; in HWTEST_F() local 232 ret = skiaPaint.GetFillPath(pen, srcPath, dstPath, &rect, matrix); in HWTEST_F() 234 ret = skiaPaint.GetFillPath(pen, srcPath, dstPath, nullptr, matrix); in HWTEST_F()
|