| /third_party/skia/modules/canvaskit/htmlcanvas/ |
| H A D | canvas2dcontext.js | 30 this._currentPath = new CanvasKit.Path(); 484 this._currentPath = new CanvasKit.Path(); 498 this.clip = function(path, fillRule) { 499 if (typeof path === 'string') { 501 fillRule = path; 502 path = this._currentPath; 503 } else if (path && path._getPath) { 504 path = path [all...] |
| /third_party/rust/crates/syn/codegen/src/ |
| H A D | workspace_path.rs | 1 use std::path::{Path, PathBuf}; 3 pub fn get(relative_to_workspace_root: impl AsRef<Path>) -> PathBuf { in get() 4 let mut path = PathBuf::from(env!("CARGO_MANIFEST_DIR")); in get() variables 5 assert!(path.pop()); in get() 6 path.push(relative_to_workspace_root); in get() 7 path in get()
|
| /foundation/bundlemanager/bundle_framework/common/utils/src/ |
| H A D | bundle_file_util.cpp | 51 APP_LOGE("bundle file path invalid"); in CheckFilePath() 64 APP_LOGE("file is not real path"); in CheckFilePath() 68 APP_LOGE("access failed path: %{public}s errno %{public}d", realPath.c_str(), errno); in CheckFilePath() 84 APP_LOGD("check file path"); in CheckFilePath() 96 APP_LOGD("path is a file"); in CheckFilePath() 114 APP_LOGD("finish check file path"); in CheckFilePath() 120 APP_LOGD("path is %{public}s, support suffix is %{public}s", fileName.c_str(), extensionName.c_str()); in CheckFileType() 142 APP_LOGE("path length %{public}zu too long", fileName.size()); in CheckFileName() 164 APP_LOGD("GetHapFilesFromBundlePath with path is %{public}s", currentBundlePath.c_str()); in GetHapFilesFromBundlePath() 188 APP_LOGE("invalid hap path in GetHapFilesFromBundlePath() 205 DeleteDir(const std::string &path) DeleteDir() argument [all...] |
| /foundation/filemanagement/user_file_service/utils/ |
| H A D | file_util.h | 84 static int CheckFsStatByPath(const string &path, uv_fs_t* req)
in CheckFsStatByPath() argument 86 int ret = uv_fs_stat(nullptr, req, path.c_str(), nullptr);
in CheckFsStatByPath() 88 HILOG_ERROR("Failed to stat file with path");
in CheckFsStatByPath() 94 static bool GetStat(const string &path, StatEntity &statEntity)
in GetStat() argument 102 auto err = CheckFsStatByPath(path, stat_req.get());
in GetStat() 110 static bool CheckDir(const string &path)
in CheckDir() argument 113 if (stat(path.c_str(), &fileInformation) == 0 && (fileInformation.st_mode & S_IFDIR)) {
in CheckDir() 121 static tuple<bool, int> Access(const string &path)
in Access() argument 128 int ret = uv_fs_access(nullptr, access_req.get(), path.c_str(), 0, nullptr);
in Access() 130 HILOG_ERROR("Failed to access file by path");
in Access() 137 Mkdir(const string &path) Mkdir() argument 270 ScanDir(const string &path) ScanDir() argument [all...] |
| /test/xts/acts/ability/ability_runtime/actsabilityamstest/actsstartchildprocesstest/entry/src/ohosTest/ets/test/ |
| H A D | StartArkChildProcess.test.ets | 104 let path = context.filesDir + '/test.txt'; 105 let file = fs.openSync(path, fs.OpenMode.READ_ONLY | fs.OpenMode.CREATE); 137 let path = context.filesDir + '/test.txt'; 138 let file = fs.openSync(path, fs.OpenMode.READ_ONLY | fs.OpenMode.CREATE); 162 * @tc.name Child process source file path is null 169 let path = context.filesDir + '/test.txt'; 170 let file = fs.openSync(path, fs.OpenMode.READ_ONLY | fs.OpenMode.CREATE); 189 'Test passed: startArkChildProcess returns error 401 when Child process source file path is null.'); 196 * @tc.name Child process source file path is undefined 203 let path [all...] |
| /third_party/backends/ |
| H A D | OAT.xml | 20 basedir: Root dir, the basedir + project path is the real source file location. 29 5. task project: Projects to be checked, the path field define the source root dir of the project. 34 2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 35 <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 37 "compatibility" is used to check license compatibility in the specified path; 38 "license" is used to check source license header in the specified path; 39 "copyright" is used to check source copyright header in the specified path; 40 "import" is used to check source dependency in the specified path, such as import ... ,include ... 41 "filetype" is used to check file type in the specified path, supported file types: archive, binary 42 "filename" is used to check whether the specified file exists in the specified path(suppor [all...] |
| /third_party/libuv/src/ |
| H A D | heap-inl.h | 112 unsigned int path; in HEAP_EXPORT() local 120 /* Calculate the path from the root to the insertion point. This is a min in HEAP_EXPORT() 123 path = 0; in HEAP_EXPORT() 125 path = (path << 1) | (n & 1); in HEAP_EXPORT() 127 /* Now traverse the heap using the path we calculated in the previous step. */ in HEAP_EXPORT() 131 if (path & 1) in HEAP_EXPORT() 135 path >>= 1; in HEAP_EXPORT() 157 unsigned int path; in HEAP_EXPORT() local 164 /* Calculate the path fro in HEAP_EXPORT() [all...] |
| /third_party/node/tools/gyp/ |
| H A D | test_gyp.py | 24 result.extend([os.path.join(root, f) for f in files if is_test_name(f)]) 60 "--path", action="append", default=[], help="additional $PATH directory" 80 if args.path: 81 extra_path = [os.path.abspath(p) for p in args.path] 83 os.environ["PATH"] = extra_path + os.pathsep + os.environ["PATH"] 93 if os.path.isdir(arg): 94 tests.extend(find_all_gyptest_files(os.path [all...] |
| /third_party/node/deps/npm/node_modules/node-gyp/gyp/ |
| H A D | test_gyp.py | 24 result.extend([os.path.join(root, f) for f in files if is_test_name(f)]) 60 "--path", action="append", default=[], help="additional $PATH directory" 80 if args.path: 81 extra_path = [os.path.abspath(p) for p in args.path] 83 os.environ["PATH"] = extra_path + os.pathsep + os.environ["PATH"] 93 if os.path.isdir(arg): 94 tests.extend(find_all_gyptest_files(os.path [all...] |
| /third_party/ltp/testcases/kernel/syscalls/nftw/ |
| H A D | lib64.c | 55 * Create a path containing a component of length pathconf(NAME_MAX) + 1 179 char *path, *tmpPtr; in test_ENAMETOOLONG_path() local 194 if ((path = malloc(pcPathMax + 2)) == NULL) { in test_ENAMETOOLONG_path() 195 tst_resm(TFAIL, "malloc(%zu) for path failed: %s", in test_ENAMETOOLONG_path() 200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path() 201 pathLength = (int)strlen(path); in test_ENAMETOOLONG_path() 204 /* leave some chars for element that pushes path over PC_PATH_MAX */ in test_ENAMETOOLONG_path() 207 tmpPtr = path + strlen(path); in test_ENAMETOOLONG_path() [all...] |
| H A D | lib.c | 55 * Create a path containing a component of length pathconf(NAME_MAX) + 1 179 char *path, *tmpPtr; in test_ENAMETOOLONG_path() local 194 if ((path = malloc(pcPathMax + 2)) == NULL) { in test_ENAMETOOLONG_path() 195 tst_resm(TFAIL, "malloc(%zu) for path failed: %s", in test_ENAMETOOLONG_path() 200 path = strcpy(path, tmp_path); in test_ENAMETOOLONG_path() 201 pathLength = (int)strlen(path); in test_ENAMETOOLONG_path() 204 /* leave some chars for element that pushes path over PC_PATH_MAX */ in test_ENAMETOOLONG_path() 207 tmpPtr = path + strlen(path); in test_ENAMETOOLONG_path() [all...] |
| /third_party/node/deps/uv/src/ |
| H A D | heap-inl.h | 111 unsigned int path; in HEAP_EXPORT() local 119 /* Calculate the path from the root to the insertion point. This is a min in HEAP_EXPORT() 122 path = 0; in HEAP_EXPORT() 124 path = (path << 1) | (n & 1); in HEAP_EXPORT() 126 /* Now traverse the heap using the path we calculated in the previous step. */ in HEAP_EXPORT() 130 if (path & 1) in HEAP_EXPORT() 134 path >>= 1; in HEAP_EXPORT() 156 unsigned int path; in HEAP_EXPORT() local 163 /* Calculate the path fro in HEAP_EXPORT() [all...] |
| /third_party/python/Tools/wasm/ |
| H A D | wasm_assets.py | 20 SRCDIR = pathlib.Path(__file__).parent.parent.parent.absolute() 128 def get_builddir(args: argparse.Namespace) -> pathlib.Path: 129 """Get builddir path from pybuilddir.txt""" 132 return pathlib.Path(builddir) 135 def get_sysconfigdata(args: argparse.Namespace) -> pathlib.Path: 136 """Get path to sysconfigdata relative to build root""" 152 pathname = pathlib.Path(filename).resolve() 203 def path(val: str) -> pathlib.Path: function 204 return pathlib.Path(va [all...] |
| /third_party/python/Lib/ |
| H A D | glob.py | 62 dirname, basename = os.path.split(pathname) 81 # `os.path.split()` returns the argument itself as a dirname if it is a 82 # drive or UNC path. Prevent an infinite recursion if a drive or UNC path 99 yield os.path.join(dirname, name) 116 # `os.path.split()` returns an empty basename for paths ending with a 185 path = _join(dirname, x) if dirname else x 186 for y in _rlistdir(path, dir_fd, dironly, 192 # Same as os.path.lexists(), but with dir_fd 194 return os.path [all...] |
| /third_party/python/Lib/test/support/ |
| H A D | import_helper.py | 44 for dirname in sys.path: 45 source = os.path.join(dirname, modname + '.py') 56 :param source: The file system path to the source file. The source file 58 :return: The file system path to the legacy pyc file. 61 up_one = os.path.dirname(os.path.abspath(source)) 62 legacy_pyc = os.path.join(up_one, source + 'c') 205 """Context manager to temporarily add directories to sys.path. 207 This makes a copy of sys.path, appends any directories given 208 as positional arguments, then reverts sys.path t [all...] |
| /third_party/skia/third_party/externals/swiftshader/tests/regres/cov/ |
| H A D | import.go | 23 "path/filepath" 32 Path string 46 RootDir string // path to SwiftShader git root directory 47 ExePath string // path to the executable binary 48 TurboCov string // path to turbo-cov (optional) 75 filepath.Walk(filepath.Join(e.RootDir, "src"), func(path string, info os.FileInfo, err error) error { 79 rel, err := filepath.Rel(e.RootDir, path) 84 switch filepath.Ext(path) { 87 cov.Files = append(cov.Files, File{Path: rel}) 187 file := File{Path 274 type Path []string global() type [all...] |
| /third_party/skia/third_party/externals/swiftshader/tests/regres/llvm/ |
| H A D | llvm.go | 26 "path/filepath" 130 func relfile(path string) string { 133 return filepath.Join(thisDir, path) 168 // If paths is empty, then PATH is searched. 173 for _, path := range paths { 174 if util.IsFile(path) { 175 path = filepath.Dir(path) 177 if t := toolchain(path); t != nil { 181 if t := toolchain(filepath.Join(path, "bi [all...] |
| /third_party/skia/tests/ |
| H A D | PathOpsAsWindingTest.cpp | 13 SkPath path; in build_squircle() local 17 path.addRect(rect, dir); in build_squircle() 21 path.moveTo(rect.centerX(), rect.fTop); in build_squircle() 22 path.quadTo(rect.fRight, rect.fTop, rect.fRight, rect.centerY()); in build_squircle() 23 path.quadTo(rect.fRight, rect.fBottom, rect.centerX(), rect.fBottom); in build_squircle() 24 path.quadTo(rect.fLeft, rect.fBottom, rect.fLeft, rect.centerY()); in build_squircle() 25 path.quadTo(rect.fLeft, rect.fTop, rect.centerX(), rect.fTop); in build_squircle() 28 path.addCircle(rect.centerX(), rect.centerY(), rect.width() / 2, dir); in build_squircle() 36 path.moveTo(rect.centerX(), rect.fTop); in build_squircle() 37 path in build_squircle() [all...] |
| /third_party/skia/third_party/externals/dawn/src/dawn_node/ |
| H A D | README.md | 14 Dawn uses the Chromium build system and dependency management so you need to [install depot_tools] and add it to the PATH. 38 mkdir <build-output-path> 39 cd <build-output-path> 40 cmake <dawn-root-path> -GNinja -DDAWN_BUILD_NODE_BINDINGS=1 -DDAWN_ENABLE_PIC=1 51 ./src/dawn_node/tools/run-cts --cts=<path-to-webgpu-cts> --dawn-node=<path-to-dawn.node> [WebGPU CTS query] 59 VK_ICD_FILENAMES=<swiftshader-cmake-build>/Linux/vk_swiftshader_icd.json ./src/dawn_node/tools/run-cts --cts=<path-to-webgpu-cts> --dawn-node=<path-to-dawn.node> --flag=dawn-backend=vulkan [WebGPU CTS query] 64 * `dlldir=<path>` - used to add an extra DLL search path o [all...] |
| /third_party/toybox/toys/posix/ |
| H A D | getconf.c | 9 * Added -a, copied FSF behavior of assuming "/" if no path supplied. 17 usage: getconf -a [PATH] | -l | NAME [PATH] 19 Get system configuration values. Values from pathconf(3) require a path. 21 -a Show all (defaults to "/" if no path given) 120 // Probe the live system with a path 135 CONF(PATH), CONF(V7_ENV) 174 static void show_conf(int i, struct config *c, const char *path) in show_conf() argument 177 long l = i ? pathconf(path, c->value) : sysconf(c->value); in show_conf() 196 char *name, *path in getconf_main() local [all...] |
| /third_party/typescript/src/testRunner/unittests/tscWatch/ |
| H A D | moduleResolution.ts | 8 path: `${projectRoot}/packages/pkg1/package.json`,
16 path: `${projectRoot}/packages/pkg1/index.ts`,
22 path: `${projectRoot}/packages/pkg1/tsconfig.json`,
30 path: `${projectRoot}/packages/pkg2/build/const.d.ts`,
34 path: `${projectRoot}/packages/pkg2/build/index.d.ts`,
38 path: `${projectRoot}/packages/pkg2/build/other.d.ts`,
42 path: `${projectRoot}/packages/pkg2/package.json`,
50 path: `${projectRoot}/node_modules/pkg2`,
81 path: `${projectRoot}/tsconfig.json`,
92 path [all...] |
| /third_party/skia/infra/bots/ |
| H A D | utils.py | 118 def RemoveDirectory(*path): 124 Remove the directory located at *path, if it exists. 137 file_path = os.path.join(*path) 138 if not os.path.exists(file_path): 143 file_path = os.path.normcase(file_path) 153 def RemoveWithRetry_non_win(rmfunc, path): 154 if os.path.islink(path): 155 return os.remove(path) [all...] |
| /foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/dm/ |
| H A D | onebadarc.cpp | 49 OH_Drawing_Path* path = OH_Drawing_PathCreate(); in OnTestFunction() local 50 OH_Drawing_PathMoveTo(path, Bits2Float(0x41a00000), Bits2Float(0x41a00000)); in OnTestFunction() 51 OH_Drawing_PathLineTo(path, Bits2Float(0x4208918c), Bits2Float(0x4208918c)); in OnTestFunction() 52 OH_Drawing_PathConicTo(path, Bits2Float(0x41a00000), Bits2Float(0x42412318), Bits2Float(0x40bb73a0), in OnTestFunction() 55 path, Bits2Float(0x40bb73a0), Bits2Float(0x4208918c), Bits2Float(0x40bb73a2), Bits2Float(0x4208918c)); in OnTestFunction() 56 OH_Drawing_PathLineTo(path, Bits2Float(0x41a00000), Bits2Float(0x41a00000)); in OnTestFunction() 57 OH_Drawing_PathClose(path); in OnTestFunction() 67 OH_Drawing_CanvasDrawPath(canvas, path); in OnTestFunction() 75 OH_Drawing_PathDestroy(path); in OnTestFunction()
|
| /foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/hmsymbol_fuzzer/ |
| H A D | hm_symbol_fuzzer.cpp | 38 Path path; in HmSymbolFuzzTest() local 39 Path path1; in HmSymbolFuzzTest() 40 Path path2; in HmSymbolFuzzTest() 41 std::vector<Path> paths { path1, path2 }; in HmSymbolFuzzTest() 42 hmSymbol.PathOutlineDecompose(path, paths); in HmSymbolFuzzTest() 49 Path path3; in HmSymbolFuzzTest() 50 Path path4; in HmSymbolFuzzTest() 51 std::vector<Path> multPaths {path3, path4}; in HmSymbolFuzzTest()
|
| /foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
| H A D | skia_hm_symbol.cpp | 26 void SkiaHMSymbol::PathOutlineDecompose(const Path& path, std::vector<Path>& paths) in PathOutlineDecompose() argument 29 auto skiaPath = path.GetImpl<SkiaPath>(); in PathOutlineDecompose() 38 Path pathTmp; in PathOutlineDecompose() 45 const std::vector<Path>& paths, std::vector<Path>& multPaths) in MultilayerPath() 50 for (const Path& pathTmp : paths) { in MultilayerPath() 60 Path pathTmp; in MultilayerPath()
|