| /third_party/python/Tools/scripts/ |
| H A D | patchcheck.py | 6 import os.path namespace 16 EXCLUDE_DIRS = [os.path.join('Modules', '_ctypes', 'libffi_osx'), 17 os.path.join('Modules', '_ctypes', 'libffi_msvc'), 18 os.path.join('Modules', '_decimal', 'libmpdec'), 19 os.path.join('Modules', 'expat'), 20 os.path.join('Modules', 'zlib')] 101 if not os.path.exists(os.path.join(SRCDIR, '.git')): 121 if os.path.exists(os.path [all...] |
| /third_party/skia/infra/bots/recipe_modules/flavor/examples/full.expected/ |
| H A D | Perf-Android-Clang-Pixel2XL-GPU-Adreno540-arm64-Release-All-Android_Skpbench_Mskp.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...] |
| /third_party/cJSON/tests/json-patch-tests/ |
| H A D | spec_tests.json | 5 "patch": [ {"op": "add", "path": "/a/b", "value": 1} ], 7 "path /a does not exist -- missing objects are not created recursively" 16 { "op": "add", "path": "/baz", "value": "qux" } 30 { "op": "add", "path": "/foo/1", "value": "qux" } 44 { "op": "remove", "path": "/baz" } 57 { "op": "remove", "path": "/foo/1" } 71 { "op": "replace", "path": "/baz", "value": "boo" } 91 { "op": "move", "from": "/foo/waldo", "path": "/qux/thud" } 110 { "op": "move", "from": "/foo/1", "path": "/foo/3" } 125 { "op": "test", "path" [all...] |
| /third_party/mesa3d/ohos/ |
| H A D | build_mesa3d.py | 26 import os.path namespace 33 # input /path/to/openharmony/out/rk3568 37 mesa3d_install_dir = os.path.join(out_dir, 'packages', 'phone', 'mesa3d') 38 product = os.path.basename(out_dir) 39 project_dir = os.path.dirname(os.path.dirname(out_dir)) 40 project_dir = os.path.abspath(project_dir) 41 mesa3d_dir = os.path.dirname(os.path.dirname(__file__)) 42 mesa3d_dir = os.path [all...] |
| /third_party/node/deps/v8/tools/clusterfuzz/js_fuzzer/mutators/ |
| H A D | variable_or_object_mutation.js | 26 _randomVariableOrObject(path) { 27 const randomVar = common.randomVariable(path); 35 _randomVariableOrObjectMutations(path, recurseDepth=0) { 43 const first = this._randomVariableOrObjectMutations(path, recurseDepth + 1); 45 path, recurseDepth + 1); 49 const randVarOrObject = this._randomVariableOrObject(path); 53 newRandVarOrObject = this._randomVariableOrObject(path); 78 RANDOM: common.randomValue(path), 83 common.callRandomFunction(path, randVarOrObject))); 87 var randomVar = common.randomVariable(path); [all...] |
| /third_party/musl/porting/liteos_a/user/src/misc/ |
| H A D | nftw.c | 22 static int do_nftw(char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags, struct history *h) in do_nftw() argument 24 size_t l = strlen(path), j = l && path[l-1]=='/' ? l-1 : l; in do_nftw() 31 if ((flags & FTW_PHYS) ? lstat(path, &st) : stat(path, &st) < 0) { in do_nftw() 32 if (!(flags & FTW_PHYS) && errno==ENOENT && !lstat(path, &st)) in do_nftw() 37 if (access(path, R_OK) < 0) type = FTW_DNR; in do_nftw() 61 for (k=j; k && path[k]=='/'; k--); in do_nftw() 62 for (; k && path[k-1]!='/'; k--); in do_nftw() 66 if (!(flags & FTW_DEPTH) && (r=fn(path, in do_nftw() 107 nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int fd_limit, int flags) nftw() argument [all...] |
| /third_party/rust/crates/syn/tests/ |
| H A D | test_path.rs | 21 Expr::Path { in parse_interpolated_leading_component() 22 path: Path { in parse_interpolated_leading_component() 37 Type::Path { in parse_interpolated_leading_component() 38 path: Path { in parse_interpolated_leading_component() 60 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 64 assert!(ty.path.segments.pop().is_some()); in print_incomplete_qpath() 68 assert!(ty.path.segments.pop().is_none()); in print_incomplete_qpath() 75 assert!(ty.path in print_incomplete_qpath() [all...] |
| /third_party/node/lib/internal/fs/ |
| H A D | dir.js | 13 const pathModule = require('path'); 48 constructor(handle, path, options) { 52 this[kDirPath] = path; 74 get path() { 150 processReadResult(path, result) { 155 path, 165 const ctx = { path: dirent.path }; 167 pathModule.toNamespacedPath(dirent.path), 181 this.processReadResult(dirent.path, resul [all...] |
| /third_party/node/deps/npm/node_modules/glob/dist/commonjs/ |
| H A D | index.d.ts | 2 import { Path } from 'path-scurry'; 10 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass<Path, Path>; 13 export declare function globStreamSync(pattern: string | string[], options: GlobOptions): Minipass<Path, Path> | Minipass<string, string>; 15 * Return a stream that emits all the strings or `Path` objects and 19 export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass<Path, Path>; 21 export declare function globStream(pattern: string | string[], options: GlobOptions): Minipass<Path, Pat [all...] |
| /third_party/node/deps/npm/node_modules/@sigstore/verify/dist/key/ |
| H A D | certificate.js | 46 // Construct certificate path from leaf to root 48 // Perform validation checks on each certificate in the path 50 // Return verified certificate path 58 paths = paths.filter((path) => path.some((cert) => this.trustedCerts.includes(cert))); 62 message: 'no trusted certificate path found', 67 const path = paths.reduce((prev, curr) => prev.length < curr.length ? prev : curr); 68 // Construct chain from shortest path 69 // Removes the last certificate in the path, which will be a second copy 71 return [leafCert, ...path] [all...] |
| /third_party/node/deps/npm/node_modules/glob/dist/esm/ |
| H A D | index.d.ts | 2 import { Path } from 'path-scurry'; 10 export declare function globStreamSync(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass<Path, Path>; 13 export declare function globStreamSync(pattern: string | string[], options: GlobOptions): Minipass<Path, Path> | Minipass<string, string>; 15 * Return a stream that emits all the strings or `Path` objects and 19 export declare function globStream(pattern: string | string[], options: GlobOptionsWithFileTypesTrue): Minipass<Path, Path>; 21 export declare function globStream(pattern: string | string[], options: GlobOptions): Minipass<Path, Pat [all...] |
| /third_party/skia/tools/skqp/ |
| H A D | cut_release.py | 37 assert os.path.exists(exe) 65 def gset(path): 67 if os.path.isfile(path): 68 with open(path, 'r') as f: 79 path = ASSETS + '/gmkb/' + d 80 if os.path.isdir(path): 81 shutil.rmtree(path) 89 def get_digest(path) [all...] |
| /third_party/skia/gm/ |
| H A D | sharedcorners.cpp | 114 SkPath path; in drawTriangleBoxes() local 115 path.setFillType(SkPathFillType::kEvenOdd); in drawTriangleBoxes() 116 path.setIsVolatile(true); in drawTriangleBoxes() 118 path.moveTo(points[triangle[0]]); in drawTriangleBoxes() 119 path.lineTo(points[triangle[1]]); in drawTriangleBoxes() 120 path.lineTo(points[triangle[2]]); in drawTriangleBoxes() 121 path.close(); in drawTriangleBoxes() 123 SkScalar scale = kBoxSize / std::max(path.getBounds().height(), path.getBounds().width()); in drawTriangleBoxes() 124 path in drawTriangleBoxes() 141 drawRow(SkCanvas* canvas, const SkPath& path) drawRow() argument [all...] |
| /foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
| H A D | thumbnail_source_loading.cpp | 92 std::string GetLocalThumbnailPath(const std::string &path, const std::string &key)
in GetLocalThumbnailPath() argument 94 if (path.length() < ROOT_MEDIA_DIR.length()) {
in GetLocalThumbnailPath() 98 return LOCAL_MEDIA_PATH + ((key == "") ? "" : ".thumbs/") + path.substr(ROOT_MEDIA_DIR.length()) + suffix;
in GetLocalThumbnailPath() 101 std::string GetLocalKeyFrameThumbnailPath(const std::string &path, const std::string &key, const std::string &timeStamp)
in GetLocalKeyFrameThumbnailPath() argument 103 if (path.length() < ROOT_MEDIA_DIR.length()) {
in GetLocalKeyFrameThumbnailPath() 107 return LOCAL_MEDIA_PATH + ((key == "") ? "" : ".thumbs/") + path.substr(ROOT_MEDIA_DIR.length()) +
in GetLocalKeyFrameThumbnailPath() 111 std::string GetLcdExPath(const std::string &path)
in GetLcdExPath() argument 113 if (path.length() < ROOT_MEDIA_DIR.length()) {
in GetLcdExPath() 117 return ROOT_MEDIA_DIR + ".thumbs/" + path.substr(ROOT_MEDIA_DIR.length()) + suffix;
in GetLcdExPath() 120 bool IsLocalSourceAvailable(const std::string& path)
in IsLocalSourceAvailable() argument 144 IsCloudSourceAvailable(const std::string& path) IsCloudSourceAvailable() argument [all...] |
| /third_party/ltp/include/ |
| H A D | tst_safe_macros.h | 29 #define SAFE_ACCESS(path, mode) \ 30 safe_access(__FILE__, __LINE__, (path), (mode)) 32 #define SAFE_BASENAME(path) \ 33 safe_basename(__FILE__, __LINE__, NULL, (path)) 35 #define SAFE_CHDIR(path) \ 36 safe_chdir(__FILE__, __LINE__, NULL, (path)) 46 #define SAFE_CHROOT(path) \ 47 safe_chroot(__FILE__, __LINE__, (path)) 48 int safe_chroot(const char *file, const int lineno, const char *path); 50 #define SAFE_DIRNAME(path) \ 321 safe_truncate(const char *file, const int lineno, const char *path, off_t length) safe_truncate() argument 342 safe_stat(const char *file, const int lineno, const char *path, struct stat *buf) safe_stat() argument 383 safe_lstat(const char *file, const int lineno, const char *path, struct stat *buf) safe_lstat() argument 404 safe_statfs(const char *file, const int lineno, const char *path, struct statfs *buf) safe_statfs() argument [all...] |
| /third_party/pcre2/ |
| H A D | OAT.xml | 25 <policyitem type="copyright" name="University of Cambridge" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 26 <policyitem type="copyright" name="北京万里红科技有限公司" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 27 <policyitem type="copyright" name="Huawei Device Co., Ltd." path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 28 <policyitem type="copyright" name="Steven G. Johnson <stevenj@alum.mit.edu>" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 29 <policyitem type="copyright" name="Daniel Richard G. <skunk@iSKUNK.ORG>" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 30 <policyitem type="copyright" name="X Consortium" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 31 <policyitem type="copyright" name="Free Software Foundation, Inc" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 32 <policyitem type="copyright" name=" Free Software" path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc=""/> 33 <policyitem type="compatibility" name="GPLStyleLicense" path="pcre2/missing" desc="协议为 Autoconf/Libtool exception to GPL 2.0 or later,满足该协议的约束,不受GPL协议影响。"/> 34 <policyitem type="license" name="GPLStyleLicense" path [all...] |
| /third_party/typescript/src/testRunner/unittests/ |
| H A D | paths.ts | 6 assert.strictEqual(ts.normalizeSlashes("\\\\server\\path"), "//server/path");
11 assert.strictEqual(ts.getRootLength("/path"), 1);
21 assert.strictEqual(ts.getRootLength("file:///path"), 8);
24 assert.strictEqual(ts.getRootLength("file:///c:/path"), 11);
27 assert.strictEqual(ts.getRootLength("file:///c%3a/path"), 13);
30 assert.strictEqual(ts.getRootLength("file:///c%3A/path"), 13);
33 assert.strictEqual(ts.getRootLength("file://localhost/path"), 17);
36 assert.strictEqual(ts.getRootLength("file://localhost/c:/path"), 20);
39 assert.strictEqual(ts.getRootLength("file://localhost/c%3a/path"), 2 [all...] |
| /third_party/typescript/src/testRunner/unittests/tsserver/ |
| H A D | declarationFileMaps.ts | 5 fileName: file.path,
34 const project = Debug.checkDefined(session.getProjectService().getDefaultProjectForFile(file.path as server.NormalizedPath, /*ensureProject*/ false));
36 const output = getFileEmitOutput(program, Debug.checkDefined(program.getSourceFile(file.path)), /*emitOnlyDtsFiles*/ true);
40 assert.deepEqual(output.outputFiles, expectedFiles.map((e): OutputFile => ({ name: e.path, text: e.content, writeByteOrderMark: false })));
45 path: "/a/a.ts",
55 const aTsconfig: File = { path: "/a/tsconfig.json", content: configContent };
66 path: "/a/bin/a.d.ts.map",
70 path: "/a/bin/a.d.ts",
76 path: "/b/b.ts",
79 const bTsconfig: File = { path [all...] |
| /third_party/vk-gl-cts/scripts/ |
| H A D | make_release.py | 50 def removeLeadingPath (path, basePath): 52 assert os.path.normpath(path) == path 53 assert os.path.normpath(basePath) == basePath 54 return path[len(basePath) + 1:] 58 if os.path.exists(file): 64 basePath = os.path.normpath(basePath) 67 relPath = removeLeadingPath(os.path.normpath(os.path [all...] |
| /third_party/lzma/CPP/Windows/ |
| H A D | FileLink.cpp | 60 1) there is NUL wchar after path
62 Substitute Path
63 Print Path
67 1) there is no NUL wchar after path
69 Print Path
70 Substitute Path
117 static void WriteString(Byte *dest, const wchar_t *path)
in WriteString() argument 121 wchar_t c = *path++;
in WriteString() 129 bool FillLinkData(CByteBuffer &dest, const wchar_t *path, bool isSymLink, bool isWSL)
in FillLinkData() argument 131 bool isAbs = IsAbsolutePath(path);
in FillLinkData() 450 GetReparseData(CFSTR path, CByteBuffer &reparseData, BY_HANDLE_FILE_INFORMATION *fileInfo) GetReparseData() argument 469 CreatePrefixDirOfFile(CFSTR path) CreatePrefixDirOfFile() argument 484 OutIoReparseData(DWORD controlCode, CFSTR path, void *data, DWORD size) OutIoReparseData() argument 499 SetReparseData(CFSTR path, bool isDir, const void *data, DWORD size) SetReparseData() argument 530 DeleteReparseData(CFSTR path) DeleteReparseData() argument 559 GetReparseData(CFSTR path, CByteBuffer &reparseData) GetReparseData() argument [all...] |
| /third_party/node/tools/ |
| H A D | install.py | 19 path = os.path.join(*args) 20 return os.path.abspath(path) 26 def try_unlink(path): 28 os.unlink(path) 35 try_mkdir_r(os.path.dirname(link_path)) 38 def try_mkdir_r(path): 40 os.makedirs(path) 44 def try_rmdir_r(path) [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/subzero/bloat/ |
| H A D | bloat.py | 56 Yields: (symbol name, symbol type, symbol size, source file path). 57 Path may be None if nm couldn't figure out the source file. 79 path = match.group(4) 80 yield sym, type, size, path 209 for sym, type, size, path in symbols: 210 if path: 211 path = os.path.normpath(path) 212 if strip_prefix and path 424 path = '' global() variable [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_glob.py | 15 return os.path.normpath(os.path.join(self.tempdir, *parts)) 18 return [os.path.join(self.tempdir, *parts) for parts in tuples] 22 base, file = os.path.split(filename) 23 if not os.path.exists(base): 42 os.symlink(os.path.join('a', 'bcd'), self.norm('sym3')) 57 pattern = os.path.join(*parts) 58 p = os.path.join(self.tempdir, pattern) 70 self.assertFalse(os.path.isabs(x), x) 75 self.assertCountEqual([os.path [all...] |
| H A D | test_os.py | 114 # longer path if longer paths support is enabled. Internally, the os 120 # On Windows, the test can stop when trying to create a path longer 124 # On VxWorks, PATH_MAX is defined as 1024 bytes. Creating a path 133 with os_helper.change_cwd(tmpdir) as path: 134 expected = path 140 need = min_len - (len(cwd) + len(os.path.sep)) 146 path = os.path.join(path, dirname) 148 os.mkdir(path) [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/js/src/mod_file/class_file/ |
| H A D | file_n_exporter.cpp | 99 bool CheckUri(napi_env env, string &path) in CheckUri() argument 104 string pathOrigin = path; in CheckUri() 107 if (path == "") { in CheckUri() 127 path = abilityContext->GetFilesDir(); in CheckUri() 129 path = abilityContext->GetCacheDir(); in CheckUri() 134 path = path + "/" + uriSplit[i]; in CheckUri() 139 int GetRealPath(string &path) in GetRealPath() argument 142 if (realpath(path.c_str(), absPath.get()) == nullptr) { in GetRealPath() 145 path in GetRealPath() 149 UriToAbsolute(string path) UriToAbsolute() argument 180 GetFileNames(string path, vector<string> &filenames, bool rec, bool isList) GetFileNames() argument 203 Mkdirs(string path) Mkdirs() argument 220 Rmdirs(const string &path) Rmdirs() argument 244 ConvertUri(string path, string originPath, string originUri) ConvertUri() argument 260 string path = asyncCallbackInfo->url; MkdirExec() local 293 string path = asyncCallbackInfo->url; RmdirExec() local 329 string path = asyncCallbackInfo->url; GetExec() local 393 string path = asyncCallbackInfo->url; ListExec() local 523 string path = asyncCallbackInfo->url; CopyExec() local 632 string path = asyncCallbackInfo->url; MoveExec() local 687 string path = asyncCallbackInfo->url; DeleteExec() local 720 string path = asyncCallbackInfo->url; AccessExec() local 753 string path = asyncCallbackInfo->url; WriteTextExec() local 793 string path = asyncCallbackInfo->url; WriteArrayBufferExec() local 838 string path = asyncCallbackInfo->url; ReadTextExec() local 886 string path = asyncCallbackInfo->url; ReadArrayBufferExec() local 963 string path = (uri == nullptr) ? "" : uri.get(); Mkdir() local 1000 string path = (uri == nullptr) ? "" : uri.get(); Rmdir() local 1036 string path = (uri == nullptr) ? "" : uri.get(); Get() local 1072 string path = (uri == nullptr) ? "" : uri.get(); List() local 1180 string path = (uri == nullptr) ? "" : uri.get(); Delete() local 1214 string path = (uri == nullptr) ? "" : uri.get(); Access() local 1252 string path = (uri == nullptr) ? "" : uri.get(); WriteText() local 1314 string path = (uri == nullptr) ? "" : uri.get(); WriteArrayBuffer() local 1355 string path = (uri == nullptr) ? "" : uri.get(); ReadText() local 1402 string path = (uri == nullptr) ? "" : uri.get(); ReadArrayBuffer() local [all...] |