| /test/testfwk/developer_test/libs/fuzzlib/ |
| H A D | fuzzer_helper.py | 45 CURRENT_DIR = os.path.dirname(os.path.realpath(__file__)) 46 SOURCE_ROOT_DIR = os.path.dirname( 47 os.path.dirname( 48 os.path.dirname(os.path.dirname(CURRENT_DIR)) 51 SOURCE_OUT_DIR = os.path.join(SOURCE_ROOT_DIR, "out") 53 TDD_BUILD_GN_PATH = os.path.join( 94 project_yaml_path = os.path.join( 99 if not os.path [all...] |
| /third_party/python/Lib/distutils/tests/ |
| H A D | test_install.py | 46 destination = os.path.join(builddir, "installation") 50 dist.script_name = os.path.join(builddir, "setup.py") 53 build_lib=os.path.join(builddir, "lib"), 64 got = os.path.normpath(got) 65 expected = os.path.normpath(expected) 68 libdir = os.path.join(destination, "lib", "python") 70 platlibdir = os.path.join(destination, sys.platlibdir, "python") 74 os.path.join(destination, "include", "python", "foopkg")) 75 check_path(cmd.install_scripts, os.path.join(destination, "bin")) 85 self.user_base = os.path [all...] |
| /third_party/skia/third_party/externals/angle2/scripts/ |
| H A D | gen_vk_gl_cts_build.py | 18 dataDirectories.append(os.path.join("data", "gles2")) 19 dataDirectories.append(os.path.join("data", "gles3")) 20 dataDirectories.append(os.path.join("data", "gles31")) 21 dataDirectories.append(os.path.join("external", "graphicsfuzz", "data", "gles3")) 22 dataDirectories.append(os.path.join("external", "openglcts", "data", "gles3")) 27 pathToReplace = os.path.join("external", "graphicsfuzz", "") # Include trailing slash 30 pathToReplace = os.path.join("external", "openglcts", "") # Include trailing slash 31 pathReplacements[pathToReplace] = os.path.join("data", "gl_cts", "") 36 if os.path.exists(buildGnPath): 44 if os.path [all...] |
| /third_party/typescript/src/testRunner/unittests/tsserver/events/ |
| H A D | projectLoading.ts | 4 path: `${tscWatch.projects}/a/a.ts`,
8 path: `${tscWatch.projects}/a/tsconfig.json`,
26 if (file === configA.path || file === configBPath) {
47 verifyEvent(project, `Creating possible configured project for ${file.path} to open`);
53 path: bTsPath,
57 path: configBPath,
61 verifyEventWithOpenTs(aTs, configA.path, 1);
62 verifyEventWithOpenTs(bTs, configB.path, 2);
67 verifyEventWithOpenTs(aTs, configA.path, 1);
69 host.writeFile(configA.path, config [all...] |
| /test/xts/acts/multimedia/media/media_js_standard/audioPlayer/entry/src/ohosTest/ets/test/ |
| H A D | PlayerLocalTestAudioFormat.test.ets | 61 let path = 'fd://' + fdNumber; 62 playAudioSource(path, 219600, PLAY_TIME, true, done); 80 let path = 'fd://' + fdNumber; 81 playAudioSource(path, 219600, PLAY_TIME, true, done); 99 let path = 'fd://' + fdNumber; 100 playAudioSource(path, 219600, PLAY_TIME, true, done); 118 let path = 'fd://' + fdNumber; 119 playAudioSource(path, 219600, PLAY_TIME, true, done); 137 let path = 'fd://' + fdNumber; 138 playAudioSource(path, 21957 [all...] |
| /third_party/mesa3d/src/gallium/drivers/radeonsi/ci/ |
| H A D | radeonsi-run-tests.py | 67 parser.add_argument("--piglit-path", type=str, help="Path to piglit source folder.") 68 parser.add_argument("--glcts-path", type=str, help="Path to GLCTS source folder.") 69 parser.add_argument("--deqp-path", type=str, help="Path to dEQP source folder.") 71 "--parent-path", 73 help="Path to folder containing piglit/GLCTS and dEQP source folders.", 89 default=os.path.dirname(__file__), 140 default=os.path [all...] |
| /third_party/typescript/src/services/ |
| H A D | documentRegistry.ts | 46 path: Path,
81 path: Path,
117 releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind?: ScriptKind): void;
118 releaseDocumentWithKey(path: Path, key: DocumentRegistryBucketKey, scriptKind: ScriptKind, impliedNodeFormat: SourceFile["impliedNodeFormat"]): void; // eslint-disable-line @typescript-eslint/unified-signatures
121 getLanguageServiceRefCounts(path: Path, scriptKin [all...] |
| /third_party/skia/infra/bots/recipe_modules/flavor/examples/full.expected/ |
| H A D | Test-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Release-All-Android_ASAN.json | 26 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 42 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 51 "\nimport subprocess\nimport sys\n\n# Remove the path.\nadb = sys.argv[1]\npath = sys.argv[2]\nprint('Removing %s' % path)\ncmd = [adb, 'shell', 'rm', '-rf', path]\nprint(' '.join(cmd))\nsubprocess.check_call(cmd)\n\n# Verify that the path was deleted.\nprint('Checking for existence of %s' % path)\ncmd = [adb, 'shell', 'ls', path]\nprin [all...] |
| H A D | Test-ChromeOS-Clang-SamsungChromebookPlus-GPU-MaliT860-arm-Release-All.json | 8 "/path/to/tmp/json", 11 "/path/to/tmp/" 30 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 48 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 67 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 78 "/path/to/tmp/json", 91 "/path/t [all...] |
| H A D | Perf-ChromeOS-Clang-SamsungChromebookPlus-GPU-MaliT860-arm-Release-All.json | 8 "/path/to/tmp/json", 11 "/path/to/tmp/" 30 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 48 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 67 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 78 "/path/to/tmp/json", 91 "/path/t [all...] |
| H A D | cpu_scale_failed_once.json | 26 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 42 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 51 "\nimport subprocess\nimport sys\n\n# Remove the path.\nadb = sys.argv[1]\npath = sys.argv[2]\nprint('Removing %s' % path)\ncmd = [adb, 'shell', 'rm', '-rf', path]\nprint(' '.join(cmd))\nsubprocess.check_call(cmd)\n\n# Verify that the path was deleted.\nprint('Checking for existence of %s' % path)\ncmd = [adb, 'shell', 'ls', path]\nprin [all...] |
| H A D | failed_infra_step.json | 26 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 42 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 51 "\nimport subprocess\nimport sys\n\n# Remove the path.\nadb = sys.argv[1]\npath = sys.argv[2]\nprint('Removing %s' % path)\ncmd = [adb, 'shell', 'rm', '-rf', path]\nprint(' '.join(cmd))\nsubprocess.check_call(cmd)\n\n# Verify that the path was deleted.\nprint('Checking for existence of %s' % path)\ncmd = [adb, 'shell', 'ls', path]\nprin [all...] |
| H A D | Perf-Android-Clang-Nexus5x-GPU-Adreno418-arm64-Debug-All-Android.json | 26 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 42 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 51 "\nimport subprocess\nimport sys\n\n# Remove the path.\nadb = sys.argv[1]\npath = sys.argv[2]\nprint('Removing %s' % path)\ncmd = [adb, 'shell', 'rm', '-rf', path]\nprint(' '.join(cmd))\nsubprocess.check_call(cmd)\n\n# Verify that the path was deleted.\nprint('Checking for existence of %s' % path)\ncmd = [adb, 'shell', 'ls', path]\nprin [all...] |
| /foundation/filemanagement/user_file_service/interfaces/kits/native/trash/src/ |
| H A D | file_trash_n_exporter.cpp | 76 static bool GetRealPath(string &path)
in GetRealPath() argument 79 if (realpath(path.c_str(), absPath.get()) == nullptr) {
in GetRealPath() 82 path = absPath.get();
in GetRealPath() 86 static string GetTimeSlotFromPath(const string &path)
in GetTimeSlotFromPath() argument 90 size_t trashPathPrefixPos = path.find(FileTrashNExporter::trashPath_);
in GetTimeSlotFromPath() 92 if (expectTimeSlotStartPos >= path.length()) {
in GetTimeSlotFromPath() 95 string realFilePathWithTime = path.substr(trashPathPrefixPos + FileTrashNExporter::trashPath_.length() + slashSize);
in GetTimeSlotFromPath() 99 HILOG_ERROR("GetTimeSlotFromPath: Invalid path = %{public}s", path.c_str());
in GetTimeSlotFromPath() 107 static int RecursiveFunc(const string &path, vecto argument 186 FindSourceFilePath(const string &path) FindSourceFilePath() argument 220 Mkdirs(const string &path, bool isDir, string &newRecoveredPath) Mkdirs() argument 319 RecurCheckIfOnlyContentInDir(const string &path, size_t trashWithTimePos, const string &trashWithTimePath) RecurCheckIfOnlyContentInDir() argument 607 string path = fileUri.GetPath(); Recover() local 664 string path = fileUri.GetPath(); CompletelyDelete() local [all...] |
| /foundation/multimedia/ringtone_library/services/utils/src/ |
| H A D | ringtone_file_utils.cpp | 77 static bool IsTargetExtension(const string &path) in IsTargetExtension() argument 79 const string ext = RingtoneFileUtils::GetExtensionFromPath(path); in IsTargetExtension() 94 static bool IsVibrateFile(const string &path) in IsVibrateFile() argument 96 const string ext = RingtoneFileUtils::GetExtensionFromPath(path); in IsVibrateFile() 110 string RingtoneFileUtils::GetExtensionFromPath(const string &path) in GetExtensionFromPath() argument 112 string extention = SplitByChar(path, '.'); in GetExtensionFromPath() 119 string RingtoneFileUtils::GetFileNameFromPath(const string &path) in GetFileNameFromPath() argument 122 size_t found = path.rfind("/"); in GetFileNameFromPath() 123 if (found != string::npos && (found + 1) < path.size()) { in GetFileNameFromPath() 124 fileName = path in GetFileNameFromPath() 132 ParseFromUri(const string& path, const string& key) ParseFromUri() argument 152 GetFileNameFromPathOrUri(const string &path, bool &isTitle) GetFileNameFromPathOrUri() argument 167 GetBaseNameFromPath(const string &path) GetBaseNameFromPath() argument 218 RemoveDirectory(const string &path) RemoveDirectory() argument 525 MkdirRecursive(const string &path, size_t start) MkdirRecursive() argument 561 CreatePreloadFolder(const string &path) CreatePreloadFolder() argument 663 GetFileExtension(const string &path) GetFileExtension() argument [all...] |
| /third_party/ltp/testcases/kernel/syscalls/nftw/ |
| H A D | test64.c | 30 extern int callback(const char *path); 39 * A call to int nftw64(const char *path, int (*fn)(const char *, const 41 * recursively descend the directory hierarchy rooted in path until it 100 * A call to int nftw64(const char *path, int (*fn)(const char *, const 144 * A call to int nftw64(const char *path, int (*fn)(const char *, const 182 * A call to int nftw64(const char *path, int (*fn)(const char *, const 190 char path[] = "./tmp/data/d777"; in test4A() local 199 if ((ret_val = nftw64(path, test_func4, MAX_FD, FTW_DEPTH)) == -1) { in test4A() 205 fprintf(temp, "ERROR: %s never visited\n", path); in test4A() 219 * A call to int nftw64(const char *path, in 227 char path[] = "./tmp/data/d777"; test5A() local 264 char path[PATH_MAX + NAME_MAX]; test6A() local 592 char path[PATH_MAX + NAME_MAX]; test16A() local 857 char path[] = "./tmp/data/dirh"; test21A() local 915 char path[] = "./tmp/data/dirh"; test22A() local [all...] |
| H A D | test.c | 30 extern int callback(const char *path); 40 * A call to int nftw(const char *path, int (*fn)(const char *, const 42 * recursively descend the directory hierarchy rooted in path until it 102 * A call to int nftw(const char *path, int (*fn)(const char *, const 146 * A call to int nftw(const char *path, int (*fn)(const char *, const 183 * A call to int nftw(const char *path, int (*fn)(const char *, const 191 char path[] = "./tmp/data/d777"; in test4A() local 199 if ((ret_val = nftw(path, test_func4, MAX_FD, FTW_DEPTH)) == -1) { in test4A() 205 fprintf(temp, "ERROR: %s never visited\n", path); in test4A() 219 * A call to int nftw(const char *path, in 227 char path[] = "./tmp/data/d777"; test5A() local 263 char path[PATH_MAX + NAME_MAX]; test6A() local 580 char path[PATH_MAX + NAME_MAX]; test16A() local 841 char path[] = "./tmp/data/dirh"; test21A() local 898 char path[] = "./tmp/data/dirh"; test22A() local [all...] |
| /third_party/python/Lib/ |
| H A D | site.py | 1 """Append module search paths for third-party packages to sys.path. 7 This will append site-specific paths to the module search path. On 13 resulting directories, if they exist, are appended to sys.path, and 14 also inspected for path configuration files. 26 appended to sys.path, and also inspected for path configuration 29 A path configuration file is a file whose name has the form 31 to be added to sys.path. Non-existing directories (or 32 non-directories) are never added to sys.path; no directory is added to 33 sys.path mor [all...] |
| /foundation/systemabilitymgr/samgr/test/autotest/tools/ |
| H A D | disk_drop_log.py | 21 def pulling_disk_dropping_logs(path, sn):
24 @param: path: Path of log disk storage
27 host.shell(f"hdc -t {sn} file recv data/log/hilog/ {path}")
30 def parse_disk_dropping_logs(path):
33 @param path: log path
35 host.shell(f"hilog parse -i {path} -d {path}")
38 def count_keys_disk_dropping_logs(path, key [all...] |
| /third_party/skia/third_party/externals/libjpeg-turbo/gtest/ |
| H A D | gtest-utils.cpp | 26 base::FilePath path; in GetTargetDirectory() local 27 base::PathService::Get(base::DIR_CURRENT, &path); in GetTargetDirectory() 28 return base::UTF8ToWide(path.MaybeAsASCII()); in GetTargetDirectory() 35 base::FilePath path; in GetTargetDirectory() 36 base::PathService::Get(base::DIR_CURRENT, &path); in GetTargetDirectory() 37 return path.MaybeAsASCII(); in GetTargetDirectory() 42 void GetTestFilePath(base::FilePath* path, const std::string filename) { in GetTestFilePath() argument 43 ASSERT_TRUE(base::PathService::Get(base::DIR_SOURCE_ROOT, path)); in GetTestFilePath() 44 *path = path in GetTestFilePath() 51 CompareFileAndMD5(const base::FilePath& path, const std::string expected_md5) CompareFileAndMD5() argument [all...] |
| /third_party/skia/tools/skqp/ |
| H A D | download_model.py | 15 def checksum(path): 16 if not os.path.exists(path): 19 with open(path, 'rb') as f: 26 def download(md5, path): 27 if not md5 == checksum(path): 28 dirname = os.path.dirname(path) 29 if dirname and not os.path.exists(dirname): 35 with open(path, 'w [all...] |
| /foundation/filemanagement/storage_service/services/storage_daemon/user/src/ |
| H A D | mount_manager.cpp | 206 LOGI("path has mounted, %{public}s", dst.c_str()); in HmdfsTwiceMount() 216 LOGI("path has mounted, %{public}s", dst.c_str()); in HmdfsTwiceMount() 226 LOGI("path has mounted, %{public}s", dst.c_str()); in HmdfsTwiceMount() 241 LOGI("path has mounted, %{public}s", dst.c_str()); in SharefsMount() 266 LOGI("path has mounted, %{public}s", dst.c_str()); in HmdfsMount() 382 LOGE("GetProcessInfo path is %{public}s", filename.c_str()); in GetProcessInfo() 407 bool MountManager::CheckMaps(const std::string &path, const std::string &prefix, std::list<std::string> &mountFailList) in CheckMaps() argument 409 if (path.empty()) { in CheckMaps() 412 std::ifstream inputStream(path.c_str(), std::ios::in); in CheckMaps() 414 LOGE("unable to open %{public}s, err %{public}d", path in CheckMaps() 442 CheckSymlink(const std::string &path, const std::string &prefix, std::list<std::string> &mountFailList) CheckSymlink() argument 468 CloudMount(int32_t userId, const string& path) CloudMount() argument 582 ParseSandboxPath(string &path, const string &userId, const string &bundleName) ParseSandboxPath() argument 824 std::string path = SANDBOX_ROOT_PATH + to_string(userId) + "/" + SCENE_BOARD_BUNDLE_NAME + PUBLIC_DIR_SANDBOX_PATH; DeleteSceneDir() local 894 const string path = cloudMntArgs.GetFullCloud(); CloudUMount() local 1025 std::string path = StringPrintf(dir.path.c_str(), userId); PrepareFileManagerDir() local 1124 std::string path = StringPrintf(dir.path.c_str(), userId); CreateVirtualDirs() local 1196 std::string path = StringPrintf(dir.path.c_str(), userId); RestoreconSystemServiceDirs() local 1208 std::string path = StringPrintf(dir.path.c_str(), userId); CreateSystemServiceDirs() local 1221 std::string path = StringPrintf(dir.path.c_str(), userId); DestroySystemServiceDirs() local 1267 std::string path = StringPrintf(dir.path.c_str(), userId); CheckMountFileByUser() local 1280 CloudDirFlag(const std::string &path) CloudDirFlag() argument [all...] |
| /third_party/gn/src/gn/ |
| H A D | command_path.cc | 54 // Stores targets that have a path to the destination, and whether that 55 // path is public, private, or data. 60 // classification of the elided last part of path. 61 DepType ClassifyPath(const PathVector& path, DepType implicit_last_dep) { in ClassifyPath() argument 69 for (size_t i = 1; i < path.size(); i++) { in ClassifyPath() 71 // to find the worst link in the path). in ClassifyPath() 72 if (path[i].second == DepType::PRIVATE) { in ClassifyPath() 75 } else if (path[i].second == DepType::DATA) { in ClassifyPath() 97 // Prints the given path. If the implicit_last_dep is not "none", the last 99 void PrintPath(const PathVector& path, DepTyp argument 130 InsertTargetsIntoFoundPaths(const PathVector& path, DepType implicit_last_dep, Stats* stats) InsertTargetsIntoFoundPaths() argument [all...] |
| /third_party/ltp/testcases/kernel/security/prot_hsymlinks/ |
| H A D | prot_hsymlinks.c | 73 char path[MAX_PATH]; member 89 char path[MAX_PATH]; member 102 char path[MAX_PATH]; member 132 /* full length of the test tmpdir path in /tmp */ 159 static void create_link_path(char *buffer, int size, const char *path); 177 static void ufiles_add(int usr, char *path, int type); 334 static void create_sub_dir(const char *path, in create_sub_dir() argument 337 snprintf(bdir->path, MAX_PATH, "%s/tmp_%s", in create_sub_dir() 338 path, users[bdir->owner].name); in create_sub_dir() 339 SAFE_MKDIR(cleanup, bdir->path, mod in create_sub_dir() 380 char path[MAX_PATH]; init_files_dirs() local 406 ufiles_add(int usr, char *path, int type) ufiles_add() argument 426 create_link_path(char *buffer, int size, const char *path) create_link_path() argument [all...] |
| /third_party/node/deps/npm/node_modules/mkdirp/lib/ |
| H A D | mkdirp-native.js | 1 const {dirname} = require('path') 5 const mkdirpNative = (path, opts) => { 7 const parent = dirname(path) 8 if (parent === path) 9 return opts.mkdirAsync(path, opts) 11 return findMade(opts, path).then(made => 12 opts.mkdirAsync(path, opts).then(() => made) 15 return mkdirpManual(path, opts) 21 const mkdirpNativeSync = (path, opts) => { 23 const parent = dirname(path) [all...] |