| /third_party/node/test/parallel/ |
| H A D | test-module-symlinked-peer-modules.js | 13 const path = require('path'); 18 const tmpDir = tmpdir.path; 33 const moduleA = path.join(tmpDir, 'moduleA'); 34 const app = path.join(tmpDir, 'app'); 35 const moduleB = path.join(app, 'node_modules', 'moduleB'); 36 const moduleA_link = path.join(app, 'node_modules', 'moduleA'); 39 fs.mkdirSync(path.join(app, 'node_modules')); 51 fs.writeFileSync(path.join(moduleA, 'package.json'), 53 fs.writeFileSync(path [all...] |
| H A D | test-path.js | 25 const path = require('path'); 39 [path.posix, path.win32].forEach((namespace) => { 58 // path.sep tests 60 assert.strictEqual(path.win32.sep, '\\'); 62 assert.strictEqual(path.posix.sep, '/'); 64 // path.delimiter tests 66 assert.strictEqual(path.win32.delimiter, ';'); 68 assert.strictEqual(path [all...] |
| H A D | test-snapshot-error.js | 11 const path = require('path'); 15 const blobPath = path.join(tmpdir.path, 'snapshot.blob'); 16 const entry = fixtures.path('snapshot', 'error.js'); 25 cwd: tmpdir.path 34 assert(!fs.existsSync(path.join(tmpdir.path, 'snapshot.blob'))); 44 cwd: tmpdir.path 52 assert(!fs.existsSync(path [all...] |
| H A D | test-fs-realpath.js | 32 const path = require('path'); 37 const tmpDir = tmpdir.path; 55 return path.join(tmpDir, p); 58 const targetsAbsDir = path.join(tmpDir, 'targets'); 63 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index')); 64 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'one')); 65 fs.mkdirSync(path.join(targetsAbsDir, 'nested-index', 'two')); 85 realpath('/this/path/does/not/exist', common.mustCall(function(err, s) { 93 realpath('/this/path/doe [all...] |
| /third_party/node/deps/npm/node_modules/node-gyp/lib/ |
| H A D | find-node-directory.js | 3 const path = require('path') 17 const npmParentDirectory = path.join(scriptLocation, '../../../..') 19 path.basename(npmParentDirectory)) 23 if (path.basename(npmParentDirectory) === 'deps') { 26 nodeRootDir = path.join(npmParentDirectory, '..') 29 } else if (path.basename(npmParentDirectory) === 'node_modules') { 35 nodeRootDir = path.join(npmParentDirectory, '..') 37 nodeRootDir = path.join(npmParentDirectory, '../..') 44 const nodeDir = path [all...] |
| /third_party/mesa3d/src/gallium/drivers/i915/ci/ |
| H A D | traces-i915.yml | 8 - path: glxgears/glxgears-2-v2.trace 12 - path: gputest/plot3d-v2.trace 16 - path: gputest/triangle-v2.trace 22 #- path: humus/AmbientAperture-v2.trace 26 - path: humus/CelShading-v2.trace 32 #- path: humus/DynamicBranching3-v2.trace 37 #- path: humus/HDR-v2.trace 41 - path: humus/Portals-v2.trace 46 #- path: humus/RaytracedShadows-v2.trace 51 #- path [all...] |
| /third_party/python/Modules/_multiprocessing/clinic/ |
| H A D | posixshmem.c.h | 8 "shm_open($module, /, path, flags, mode=511)\n" 17 _posixshmem_shm_open_impl(PyObject *module, PyObject *path, int flags, 24 static const char * const _keywords[] = {"path", "flags", "mode", NULL}; in _posixshmem_shm_open() 28 PyObject *path; in _posixshmem_shm_open() local 38 _PyArg_BadArgument("shm_open", "argument 'path'", "str", args[0]); in _posixshmem_shm_open() 44 path = args[0]; in _posixshmem_shm_open() 57 _return_value = _posixshmem_shm_open_impl(module, path, flags, mode); in _posixshmem_shm_open() 72 "shm_unlink($module, /, path)\n" 85 _posixshmem_shm_unlink_impl(PyObject *module, PyObject *path); 91 static const char * const _keywords[] = {"path", NUL in _posixshmem_shm_unlink() 94 PyObject *path; _posixshmem_shm_unlink() local [all...] |
| /third_party/vixl/tools/ |
| H A D | config.py | 30 dir_tools = os.path.dirname(os.path.realpath(__file__)) 31 dir_root = os.path.abspath(os.path.join(dir_tools, '..')) 32 dir_build = os.path.join(dir_root, 'obj') 33 dir_build_latest = os.path.join(dir_build, 'latest') 34 dir_src_vixl = os.path.join(dir_root, 'src') 35 dir_tests = os.path.join(dir_root, 'test') 36 dir_aarch64_benchmarks = os.path.join(dir_root, 'benchmarks', 'aarch64') 37 dir_aarch32_benchmarks = os.path [all...] |
| /third_party/typescript/src/testRunner/unittests/tsserver/ |
| H A D | languageService.ts | 5 path: "/a/Lib/lib.d.ts",
9 path: "/a/b/app.ts",
14 projectService.openClientFile(f.path);
22 path: "/project/shared.ts",
28 path: `/project/a/tsconfig.json`,
32 path: `/project/a/foo.d.ts`,
38 path: "/project/a/index.ts",
42 path: `/project/b/tsconfig.json`,
46 path: `/project/b/foo.d.ts`,
52 path [all...] |
| /third_party/python/Lib/test/test_importlib/ |
| H A D | test_path.py | 10 def execute(self, package, path): 11 with resources.as_file(resources.files(package).joinpath(path)): 17 # Path should be readable. 18 # Test also implicitly verifies the returned object is a pathlib.Path 21 with resources.as_file(target) as path: 22 self.assertTrue(path.name.endswith("utf-8.file"), repr(path)) 23 # pathlib.Path.read_text() was introduced in Python 3.5. 24 with path.open('r', encoding='utf-8') as file: 37 with resources.as_file(target) as path [all...] |
| /third_party/rust/crates/cxx/gen/build/src/ |
| H A D | paths.rs | 4 use std::path::{Component, Path, PathBuf}; 14 // Given a path provided by the user, determines where generated files related 15 // to that path should go in our out dir. In particular we don't want to 17 // passed a path containing lots of `..` or an absolute path. 18 pub(crate) fn local_relative_path(path: &Path) -> PathBuf { 20 for component in path.components() { 34 impl PathExt for Path { [all...] |
| /third_party/skia/include/core/ |
| H A D | SkPathMeasure.h | 18 /** Initialize the pathmeasure with the specified path. The parts of the path that are needed 19 * are copied, so the client is free to modify/delete the path after this call. 24 SkPathMeasure(const SkPath& path, bool forceClosed, SkScalar resScale = 1); 27 /** Reset the pathmeasure with the specified path. The parts of the path that are needed 28 * are copied, so the client is free to modify/delete the path after this call.. 32 /** Return the total length of the current contour, or 0 if no path 39 Returns false if there is no path, or a zero-length path wa [all...] |
| /third_party/skia/infra/bots/recipes/infra.expected/ |
| H A D | infra_tests_lottie_ci.json | 13 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/cache/gopath/bin:<PATH>:RECIPE_REPO[depot_tools]" 29 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/cache/gopath/bin:<PATH>:RECIPE_REPO[depot_tools]" 47 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/cache/gopath/bin:<PATH>:RECIPE_REPO[depot_tools]" 62 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/cache/gopath/bin:<PATH>:RECIPE_REPO[depot_tools]" 78 "PATH": "[START_DIR]/go/go/bin:[START_DIR]/cache/gopath/bin:<PATH> [all...] |
| /test/testfwk/xdevice/src/xdevice/_core/executor/ |
| H A D | source.py | 104 inner_testcases_dir = os.path.abspath(os.path.join( 106 if getattr(config, ConfigConst.testcases_path, "") and os.path.normcase( 107 config.testcases_path) != os.path.normcase(inner_testcases_dir): 113 if os.path.normcase(Variables.exec_dir) != os.path.normcase( 126 testcases_dirs.append(os.path.abspath(os.path.join(root, sub_dir))) 137 if not os.path.isabs(file_name): 138 file_name = os.path [all...] |
| /third_party/lzma/CPP/Windows/ |
| H A D | FileName.cpp | 278 int FindAltStreamColon(CFSTR path) throw()
in FindAltStreamColon() argument 281 if (IsDrivePath2(path))
in FindAltStreamColon() 286 FChar c = path[i];
in FindAltStreamColon() 304 // Network path: we look "server\path\" as root prefix
in GetRootPrefixSize_Of_NetworkPath() 353 // Network path: we look "server\path\" as root prefix
in GetRootPrefixSize_Of_NetworkPath() 420 static bool GetCurDir(UString &path)
in GetCurDir() argument 422 path.Empty();
in GetCurDir() 426 path in GetCurDir() 755 GetSuperPath(CFSTR path, UString &superPath, bool onlyIfNew) GetSuperPath() argument 889 GetFullPath(CFSTR path, FString &fullPath) GetFullPath() argument [all...] |
| /third_party/node/tools/gyp/pylib/gyp/ |
| H A D | __init__.py | 11 import os.path namespace 40 % (mode.upper(), os.path.basename(ctx[0]), ctx[1], ctx[2], message) 87 generator_name = os.path.splitext(format)[0] 88 path, generator_name = os.path.split(generator_name) 90 # Make sure the path to the custom generator is in sys.path 91 # Don't worry about removing it once we are done. Keeping the path 92 # to each generator that is used in sys.path is likely harmless and 94 path variable [all...] |
| /third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/gyp/ |
| H A D | __init__.py | 11 import os.path namespace 41 % (mode.upper(), os.path.basename(ctx[0]), ctx[1], ctx[2], message) 88 generator_name = os.path.splitext(format)[0] 89 path, generator_name = os.path.split(generator_name) 91 # Make sure the path to the custom generator is in sys.path 92 # Don't worry about removing it once we are done. Keeping the path 93 # to each generator that is used in sys.path is likely harmless and 95 path variable [all...] |
| /test/xts/acts/ai/neural_network_runtime/v2_0/common/ |
| H A D | nnrt_utils.cpp | 323 PathType CheckPath(const std::string &path) in CheckPath() argument 325 if (path.empty()) { in CheckPath() 326 LOGI("CheckPath: path is null"); in CheckPath() 330 if (stat(path.c_str(), &buf) == 0) { in CheckPath() 339 LOGI("%s not found", path.c_str()); in CheckPath() 343 bool DeleteFile(const std::string &path) in DeleteFile() argument 345 if (path.empty()) { in DeleteFile() 346 LOGI("DeleteFile: path is null"); in DeleteFile() 349 if (CheckPath(path) == PathType::NOT_FOUND) { in DeleteFile() 350 LOGI("not found: %s", path in DeleteFile() 387 DeleteFolder(const std::string &path) DeleteFolder() argument 423 CreateFolder(const std::string &path) CreateFolder() argument [all...] |
| /test/xts/acts/ai/neural_network_runtime/v1_0/common/ |
| H A D | nnrt_utils.cpp | 323 PathType CheckPath(const std::string &path) in CheckPath() argument 325 if (path.empty()) { in CheckPath() 326 LOGI("CheckPath: path is null"); in CheckPath() 330 if (stat(path.c_str(), &buf) == 0) { in CheckPath() 339 LOGI("%s not found", path.c_str()); in CheckPath() 343 bool DeleteFile(const std::string &path) in DeleteFile() argument 345 if (path.empty()) { in DeleteFile() 346 LOGI("DeleteFile: path is null"); in DeleteFile() 349 if (CheckPath(path) == PathType::NOT_FOUND) { in DeleteFile() 350 LOGI("not found: %s", path in DeleteFile() 387 DeleteFolder(const std::string &path) DeleteFolder() argument 423 CreateFolder(const std::string &path) CreateFolder() argument [all...] |
| /third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ant/ |
| H A D | CleanOutputDirectoryTask.java | 19 import java.nio.file.Path; 68 private Path root = null; 85 private Path path = null; field in CleanOutputDirectoryTask.Retain 87 // Don't use "Path" for the argument type because that always makes an absolute path (e.g. 90 public void setPath(String path) { in setPath() argument 91 Path p = Paths.get(path).normalize(); in setPath() 92 checkBuild(!p.isAbsolute() && !p.startsWith(".."), "invalid path in setPath() 228 couldDelete(Path path, Path dir, Dir dirInfo) couldDelete() argument 232 wasAutoGenerated(Path path) wasAutoGenerated() argument [all...] |
| /third_party/lzma/C/Util/SfxSetup/ |
| H A D | SfxSetup.c | 182 static BoolInt DoesFileOrDirExist(const WCHAR *path)
in DoesFileOrDirExist() argument 186 handle = FindFirstFileW(path, &fd);
in DoesFileOrDirExist() 193 static WRes RemoveDirWithSubItems(WCHAR *path)
in RemoveDirWithSubItems() argument 198 const size_t len = wcslen(path);
in RemoveDirWithSubItems() 199 wcscpy(path + len, L"*");
in RemoveDirWithSubItems() 200 handle = FindFirstFileW(path, &fd);
in RemoveDirWithSubItems() 201 path[len] = L'\0';
in RemoveDirWithSubItems() 210 wcscpy(path + len, fd.cFileName);
in RemoveDirWithSubItems() 213 wcscat(path, WSTRING_PATH_SEPARATOR);
in RemoveDirWithSubItems() 214 res = RemoveDirWithSubItems(path);
in RemoveDirWithSubItems() 265 WCHAR path[MAX_PATH * 3 + 2]; main() local [all...] |
| /third_party/ltp/lib/ |
| H A D | tst_device.c | 51 static int set_dev_loop_path(int dev, char *path, size_t path_len) in set_dev_loop_path() argument 57 snprintf(path, path_len, dev_loop_variants[i], dev); in set_dev_loop_path() 59 if (stat(path, &st) == 0 && S_ISBLK(st.st_mode)) in set_dev_loop_path() 66 static int set_dev_path(char *dev, char *path, size_t path_len) in set_dev_path() argument 72 snprintf(path, path_len, dev_variants[i], dev); in set_dev_path() 74 if (stat(path, &st) == 0 && S_ISBLK(st.st_mode)) in set_dev_path() 81 int tst_find_free_loopdev(char *path, size_t path_len) in tst_find_free_loopdev() argument 94 if (path && set_dev_loop_path(rc, path, path_len)) in tst_find_free_loopdev() 97 rc, path in tst_find_free_loopdev() 390 tst_umount(const char *path) tst_umount() argument 424 tst_is_mounted(const char *path) tst_is_mounted() argument 447 tst_is_mounted_at_tmpdir(const char *path) tst_is_mounted_at_tmpdir() argument 468 find_stat_file(const char *dev, char *path, size_t path_len) find_stat_file() argument 518 tst_find_backing_dev(const char *path, char *dev, size_t dev_size) tst_find_backing_dev() argument 639 tst_dev_block_size(const char *path) tst_dev_block_size() argument [all...] |
| /third_party/skia/src/gpu/ops/ |
| H A D | AtlasPathRenderer.cpp | 88 // The atlas is only used for small-area paths, which means at least one dimension of every path is 89 // guaranteed to be quite small. So if we transpose tall paths, then every path will have a small 93 // Ensure every path in the atlas falls in or below the 256px high rectanizer band. 100 // http://skbug.com/12291 -- The way GrDynamicAtlas works, a single 2048x1 path is given an entire 107 // b/195095846: There is a bug with the atlas path renderer on OpenGL iOS. Disable until we can in IsSupported() 118 // default path renderer when tessellation isn't available. in IsSupported() 149 return // Ensure the path's largest dimension fits in the atlas. in pathFitsInAtlas() 157 void AtlasPathRenderer::AtlasPathKey::set(const SkMatrix& m, const SkPath& path) { in set() argument 159 fPathGenID = path.getGenerationID(); in set() 166 fFillRule = (uint32_t)GrFillRuleForSkPath(path); // Fil in set() 169 addPathToAtlas(GrRecordingContext* rContext, const SkMatrix& viewMatrix, const SkPath& path, const SkRect& pathDevBounds, SkIRect* devIBounds, SkIPoint16* locationInAtlas, bool* transposedInAtlas, const DrawRefsAtlasCallback& drawRefsAtlasCallback) addPathToAtlas() argument 285 SkPath path; onDrawPath() local 324 makeAtlasClipEffect(const SurfaceDrawContext* sdc, const GrOp* opBeingClipped, std::unique_ptr<GrFragmentProcessor> inputFP, const SkIRect& drawBounds, const SkMatrix& viewMatrix, const SkPath& path) makeAtlasClipEffect() argument [all...] |
| /base/hiviewdfx/hidumper/frameworks/native/src/util/ |
| H A D | file_utils.cpp | 30 bool FileUtils::CreateFolder(const string &path) in CreateFolder() argument 32 if (!access(path.c_str(), F_OK) || path == "") { in CreateFolder() 36 size_t pos = path.rfind("/"); in CreateFolder() 41 string upperPath = path.substr(0, pos); in CreateFolder() 43 if (mkdir(path.c_str(), S_IRWXU | S_IRWXG | S_IRWXO)) { in CreateFolder() 53 bool FileUtils::LoadStringFromProcCb(const std::string& path, bool oneLine, bool endWithoutN, const DataHandler& func) in LoadStringFromProcCb() argument 56 if (realpath(path.c_str(), canonicalPath) == nullptr) { in LoadStringFromProcCb() 57 DUMPER_HILOGE(MODULE_COMMON, "realpath failed, errno=%{public}d, path=%{public}s", errno, path in LoadStringFromProcCb() 86 GetProcValue(const int32_t &pid, const string& path, const string& key) GetProcValue() argument [all...] |
| /foundation/filemanagement/storage_service/services/storage_daemon/mtp/src/ |
| H A D | mtp_device_manager.cpp | 44 LOGI("MountDevice: start mount mtp device, path=%{public}s", device.path.c_str()); in MountDevice() 50 if (!IsDir(device.path)) { in MountDevice() 51 LOGI("MountDevice: mtp device mount path directory is not exist, create it first."); in MountDevice() 52 bool ret = PrepareDir(device.path, PUBLIC_DIR_MODE, FILE_MANAGER_UID, FILE_MANAGER_GID); in MountDevice() 54 LOGE("Prepare directory for mtp device path = %{public}s failed.", device.path.c_str()); in MountDevice() 70 device.path, in MountDevice() 87 client.NotifyMtpMounted(device.id, device.path, device.vendor, device.uuid); in MountDevice() 93 LOGI("MountDevice: start umount mtp device, path in UmountDevice() [all...] |