| /foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/skia_adapter/ |
| H A D | skia_path_test.cpp | 18 #include "draw/path.h" 68 Path path; in HWTEST_F() local 69 skiaPath.AddPath(path, 200, 200, PathAddMode::APPEND_PATH_ADD_MODE); // 200: dx and dy in HWTEST_F() 70 skiaPath.AddPath(path, PathAddMode::APPEND_PATH_ADD_MODE); in HWTEST_F() 71 skiaPath.ReverseAddPath(path); in HWTEST_F() 73 skiaPath.AddPath(path, matrix, PathAddMode::APPEND_PATH_ADD_MODE); in HWTEST_F() 75 Path path2; in HWTEST_F() 76 skiaPath.Interpolate(path, 2, path2); // 2: weight in HWTEST_F() 108 Path pat in HWTEST_F() local 123 Path path; HWTEST_F() local 138 Path path; HWTEST_F() local 166 Path path; HWTEST_F() local [all...] |
| /third_party/node/deps/v8/third_party/zlib/google/ |
| H A D | zip_writer.cc | 35 bool ZipWriter::AddFileContent(const base::FilePath& path, base::File file) { in AddFileContent() argument 43 PLOG(ERROR) << "Cannot read file " << Redact(path); in AddFileContent() 51 PLOG(ERROR) << "Cannot write data from file " << Redact(path) in AddFileContent() 62 bool ZipWriter::OpenNewFileEntry(const base::FilePath& path, in OpenNewFileEntry() argument 65 std::string str_path = path.AsUTF8Unsafe(); in OpenNewFileEntry() 76 compression = GetCompressionMethod(path); in OpenNewFileEntry() 87 bool ZipWriter::AddFileEntry(const base::FilePath& path, base::File file) { in AddFileEntry() argument 92 if (!OpenNewFileEntry(path, /*is_directory=*/false, info.last_modified)) in AddFileEntry() 95 if (!AddFileContent(path, std::move(file))) in AddFileEntry() 102 bool ZipWriter::AddDirectoryEntry(const base::FilePath& path) { in AddDirectoryEntry() argument 277 AddDirectoryContents(const base::FilePath& path) AddDirectoryContents() argument [all...] |
| /third_party/node/deps/zlib/google/ |
| H A D | zip_writer.cc | 35 bool ZipWriter::AddFileContent(const base::FilePath& path, base::File file) { in AddFileContent() argument 43 PLOG(ERROR) << "Cannot read file " << Redact(path); in AddFileContent() 51 PLOG(ERROR) << "Cannot write data from file " << Redact(path) in AddFileContent() 62 bool ZipWriter::OpenNewFileEntry(const base::FilePath& path, in OpenNewFileEntry() argument 65 std::string str_path = path.AsUTF8Unsafe(); in OpenNewFileEntry() 76 compression = GetCompressionMethod(path); in OpenNewFileEntry() 87 bool ZipWriter::AddFileEntry(const base::FilePath& path, base::File file) { in AddFileEntry() argument 92 if (!OpenNewFileEntry(path, /*is_directory=*/false, info.last_modified)) in AddFileEntry() 95 if (!AddFileContent(path, std::move(file))) in AddFileEntry() 102 bool ZipWriter::AddDirectoryEntry(const base::FilePath& path) { in AddDirectoryEntry() argument 277 AddDirectoryContents(const base::FilePath& path) AddDirectoryContents() argument [all...] |
| /third_party/node/deps/icu-small/source/tools/genrb/ |
| H A D | filterrb.cpp | 20 ResKeyPath::ResKeyPath(const std::string& path, UErrorCode& status) { in ResKeyPath() argument 21 if (path.empty() || path[0] != '/') { in ResKeyPath() 22 std::cerr << "genrb error: path must start with /: " << path << std::endl; in ResKeyPath() 26 if (path.length() == 1) { in ResKeyPath() 33 j = path.find('/', i); in ResKeyPath() 34 std::string key = path.substr(i, j - i); in ResKeyPath() 36 std::cerr << "genrb error: empty subpaths and trailing slashes are not allowed: " << path << std::endl; in ResKeyPath() 86 ResKeyPath path(ruleLin in addRule() 90 addRule(const ResKeyPath& path, bool inclusionRule, UErrorCode& status) addRule() argument 161 applyRule( const ResKeyPath& path, std::list<std::string>::const_iterator it, bool inclusionRule, UErrorCode& status) applyRule() argument [all...] |
| /third_party/icu/icu4c/source/tools/genrb/ |
| H A D | filterrb.cpp | 20 ResKeyPath::ResKeyPath(const std::string& path, UErrorCode& status) { in ResKeyPath() argument 21 if (path.empty() || path[0] != '/') { in ResKeyPath() 22 std::cerr << "genrb error: path must start with /: " << path << std::endl; in ResKeyPath() 26 if (path.length() == 1) { in ResKeyPath() 33 j = path.find('/', i); in ResKeyPath() 34 std::string key = path.substr(i, j - i); in ResKeyPath() 36 std::cerr << "genrb error: empty subpaths and trailing slashes are not allowed: " << path << std::endl; in ResKeyPath() 86 ResKeyPath path(ruleLin in addRule() 90 addRule(const ResKeyPath& path, bool inclusionRule, UErrorCode& status) addRule() argument 161 applyRule( const ResKeyPath& path, std::list<std::string>::const_iterator it, bool inclusionRule, UErrorCode& status) applyRule() argument [all...] |
| /third_party/skia/third_party/externals/icu/source/tools/genrb/ |
| H A D | filterrb.cpp | 20 ResKeyPath::ResKeyPath(const std::string& path, UErrorCode& status) { in ResKeyPath() argument 21 if (path.empty() || path[0] != '/') { in ResKeyPath() 22 std::cerr << "genrb error: path must start with /: " << path << std::endl; in ResKeyPath() 26 if (path.length() == 1) { in ResKeyPath() 33 j = path.find('/', i); in ResKeyPath() 34 std::string key = path.substr(i, j - i); in ResKeyPath() 36 std::cerr << "genrb error: empty subpaths and trailing slashes are not allowed: " << path << std::endl; in ResKeyPath() 86 ResKeyPath path(ruleLin in addRule() 90 addRule(const ResKeyPath& path, bool inclusionRule, UErrorCode& status) addRule() argument 161 applyRule( const ResKeyPath& path, std::list<std::string>::const_iterator it, bool inclusionRule, UErrorCode& status) applyRule() argument [all...] |
| /third_party/skia/tests/ |
| H A D | ClipCubicTest.cpp | 177 SkPath path; in DEF_TEST() local 178 path.moveTo(SkBits2Float(0x00000000), SkBits2Float(0x00000000)); // 0,0 in DEF_TEST() 179 path.lineTo(SkBits2Float(0x43434343), SkBits2Float(0x43430143)); //195.263f, 195.005f in DEF_TEST() 180 path.lineTo(SkBits2Float(0x43434343), SkBits2Float(0x43434343)); //195.263f, 195.263f in DEF_TEST() 181 path.lineTo(SkBits2Float(0xb5434343), SkBits2Float(0x434300be)); //-7.2741e-07f, 195.003f in DEF_TEST() 183 path.cubicTo(SkBits2Float(0x43434343), SkBits2Float(0x43434341), in DEF_TEST() 187 path.cubicTo(SkBits2Float(0x016037c0), SkBits2Float(0x43434343), in DEF_TEST() 191 path.cubicTo(SkBits2Float(0x43434344), SkBits2Float(0x43434341), in DEF_TEST() 195 path.cubicTo(SkBits2Float(0xcab33535), SkBits2Float(0x34cacaca), in DEF_TEST() 198 path in DEF_TEST() 215 SkPath path; DEF_TEST() local [all...] |
| /foundation/filemanagement/file_api/interfaces/kits/js/src/mod_fs/properties/ |
| H A D | listfile.cpp | 135 static bool GetOptionArg(napi_env env, const NFuncArg &funcArg, OptionArgs &optionArgs, const string &path)
in GetOptionArg() argument 138 optionArgs.path = path;
in GetOptionArg() 188 string stPath = (g_optionArgs.path + '/' + string(filename.d_name));
in FilterFilesizeOver() 206 string stPath = g_optionArgs.path + '/' + string(filename.d_name);
in FilterLastModifyTime() 266 static int FilterFileRes(const string &path, vector<string> &dirents)
in FilterFileRes() argument 273 int num = scandir(path.c_str(), &(pNameList->namelist), FilterFunc, nullptr);
in FilterFileRes() 285 static int RecursiveFunc(const string &path, vector<string> &dirents)
in RecursiveFunc() argument 292 int num = scandir(path.c_str(), &(pNameList->namelist), FilterFunc, nullptr);
in RecursiveFunc() 300 dirents.emplace_back(path in RecursiveFunc() 314 DoListFileVector2NV(napi_env env, const string &path, vector<string> &dirents, bool recursion) DoListFileVector2NV() argument [all...] |
| /third_party/skia/infra/bots/recipes/check_generated_files.expected/ |
| H A D | Housekeeper-PerCommit-CheckGeneratedFiles.json | 10 "PATH": "<PATH>:RECIPE_REPO[depot_tools]" 34 "/path/to/tmp/json", 49 "/path/to/tmp/json", 61 "--spec-path", 72 "/path/to/tmp/json", 86 "PATH": [ 136 "/path/to/tmp/json", 154 "PATH": "<PATH> [all...] |
| /third_party/skia/infra/bots/task_drivers/perf_puppeteer_render_skps/ |
| H A D | perf_puppeteer_render_skps_test.go | 11 "path/filepath" 26 const fakeNodeBinPath = "/fake/path/to/node/bin" 39 assert.Equal(t, "/fake/path/to/node/bin/npm", cmd.Name) 62 const fakeNodeBinPath = "/fake/path/to/node/bin" 63 const fakeCanvasKitPath = "/fake/path/to/canvaskit" 64 const fakeBenchmarkPath = "/fake/path/to/perf-puppeteer" 82 assert.Equal(t, "/fake/path/to/node/bin/node", cmd.Name) 85 "--canvaskit_js", "/fake/path/to/canvaskit/canvaskit.js", 86 "--canvaskit_wasm", "/fake/path/to/canvaskit/canvaskit.wasm", 89 "--output", "/fake/path/t [all...] |
| /third_party/skia/infra/bots/ |
| H A D | recipes.py | 54 def __init__(self, msg, path): 55 full_message = 'malformed recipes.cfg: %s: %r' % (msg, path) 63 repo_root (str) - native path to the root of the repo we're trying to run 65 recipes_cfg_path (str) - native path to the recipes.cfg file to process. 70 recipes_path (str) - native path to where the recipes live inside of the 105 recipes_path = os.path.join(repo_root, 106 recipes_path.replace('/', os.path.sep)) 123 def _is_executable(path): 124 return os.path.isfile(path) an [all...] |
| /third_party/skia/infra/bots/recipes/sync_and_compile.expected/ |
| H A D | Build-Win10-Clang-x86_64-Release-NoDEPS.json | 10 "PATH": "<PATH>;RECIPE_REPO[depot_tools]" 33 "--path", 50 "PATH": "RECIPE_REPO[depot_tools];<PATH>" 97 "/path/to/tmp/json", 112 "/path/to/tmp/json", 115 "/path/to/tmp/" 133 "PATH": "<PATH>;RECIPE_REP [all...] |
| /third_party/node/deps/v8/third_party/zlib/ |
| H A D | gzlib.c | 91 local gzFile gz_open(path, fd, mode) in gz_open() 92 const void *path; in gz_open() 107 if (path == NULL) 190 /* save the path name for error messages */ 193 len = wcstombs(NULL, path, 0); 199 len = strlen((const char *)path); 200 state->path = (char *)malloc(len + 1); 201 if (state->path == NULL) { 208 wcstombs(state->path, path, le 290 char *path; /* identifier for error messages */ global() local [all...] |
| /third_party/node/deps/npm/node_modules/graceful-fs/ |
| H A D | graceful-fs.js | 111 function readFile (path, options, cb) { 115 return go$readFile(path, options, cb) 117 function go$readFile (path, options, cb, startTime) { 118 return fs$readFile(path, options, function (err) { 120 enqueue([go$readFile, [path, options, cb], err, startTime || Date.now(), Date.now()]) 131 function writeFile (path, data, options, cb) { 135 return go$writeFile(path, data, options, cb) 137 function go$writeFile (path, data, options, cb, startTime) { 138 return fs$writeFile(path, data, options, function (err) { 140 enqueue([go$writeFile, [path, dat [all...] |
| /third_party/skia/third_party/externals/zlib/ |
| H A D | gzlib.c | 91 local gzFile gz_open(path, fd, mode) in gz_open() 92 const void *path; in gz_open() 107 if (path == NULL) 190 /* save the path name for error messages */ 193 len = wcstombs(NULL, path, 0); 199 len = strlen((const char *)path); 200 state->path = (char *)malloc(len + 1); 201 if (state->path == NULL) { 208 wcstombs(state->path, path, le 290 char *path; /* identifier for error messages */ global() local [all...] |
| /third_party/skia/bench/ |
| H A D | TessellateBench.cpp | 48 SkPath path; in make_cubic_path() local 51 path.cubicTo(111.625f*x, 308.188f*x, 764.62f*x, -435.688f*x, 742.63f*x, 85.187f*x); in make_cubic_path() 52 path.cubicTo(764.62f*x, -435.688f*x, 111.625f*x, 308.188f*x, 0, 0); in make_cubic_path() 54 return path; in make_cubic_path() 59 SkPath path; in make_conic_path() local 64 path.conicTo(111.625f * x, 308.188f * x, 764.62f * x, -435.688f * x, w); in make_conic_path() 67 return path; in make_conic_path() 72 SkPath path; in make_quad_path() local 75 path.quadTo(111.625f * x, 308.188f * x, 764.62f * x, -435.688f * x); in make_quad_path() 77 return path; in make_quad_path() 82 SkPath path; make_line_path() local 167 benchmark_wangs_formula_cubic_log2(const SkMatrix& matrix, const SkPath& path) benchmark_wangs_formula_cubic_log2() argument 195 benchmark_wangs_formula_conic(const SkMatrix& matrix, const SkPath& path) benchmark_wangs_formula_conic() argument 209 benchmark_wangs_formula_conic_log2(const SkMatrix& matrix, const SkPath& path) benchmark_wangs_formula_conic_log2() argument 260 auto path = SkPath().moveTo(0, 0); make_simple_cubic_path() local 279 SkPath path; make_motionmark_paths() local [all...] |
| /third_party/node/deps/v8/tools/ |
| H A D | run_perf.py | 13 "path": <relative path chunks to perf resources and main file>, 52 specified, it is called after running the tests (with a path relative to the 53 suite level's path). It is expected to read the measurement's output text 62 "path": ["."], 82 "path": ["."], 90 "path": ["richards"], 95 "path": ["navier_stokes"], 101 Path pieces are concatenated. D8 is always run with the suite's path a [all...] |
| /third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/ |
| H A D | Path.inc | 1 //===- llvm/Support/Windows/Path.inc - Windows Path Impl --------*- C++ -*-===// 9 // This file implements the Windows specific implementation of the Path API. 50 using llvm::sys::path::widenPath; 64 namespace path { 66 // Convert a UTF-8 path to UTF-16. Also, if the absolute equivalent of the 67 // path is longer than CreateDirectory can tolerate, make it absolute and 78 // If we made this path absolute, how much longer would it get? 80 if (llvm::sys::path::is_absolute(Twine(Path8Str))) 88 // Would the absolute path b [all...] |
| /third_party/python/Lib/test/ |
| H A D | test_httpservers.py | 131 self.send_error(int(self.path[1:])) 134 self.send_error(int(self.path[1:])) 364 self.tempdir_name = os.path.basename(self.tempdir) 366 tempname = os.path.join(self.tempdir, 'test') 422 with open(os.path.join(self.tempdir, filename), 'wb') as f: 456 This checks that a path resolving to a directory on our server cannot 459 os.mkdir(os.path.join(self.tempdir, 'existing_directory')) 495 # there are or aren't multiple slashes at the start of the path that 500 #constructs the path relative to the root directory of the HTTPServer 521 os.makedirs(os.path [all...] |
| /third_party/node/deps/icu-small/source/common/ |
| H A D | udata.cpp | 83 static UDataMemory *udata_findCachedData(const char *path, UErrorCode &err); 225 findBasename(const char *path) { in findBasename() argument 226 const char *basename=uprv_strrchr(path, U_FILE_SEP_CHAR); in findBasename() 228 return path; in findBasename() 236 packageNameFromPath(const char *path) in packageNameFromPath() argument 238 if((path == nullptr) || (*path == 0)) { in packageNameFromPath() 242 path = findBasename(path); in packageNameFromPath() 244 if((path in packageNameFromPath() 305 udata_findCachedData(const char *path, UErrorCode &err) udata_findCachedData() argument 331 udata_cacheDataItem(const char *path, UDataMemory *item, UErrorCode *pErr) udata_cacheDataItem() argument 420 const char *path; /* working path (u_icudata_Dir) */ global() member in UDataPathIterator 670 openCommonData(const char *path, int32_t commonDataIndex, UErrorCode *pErrorCode) openCommonData() argument 764 UDataPathIterator iter(u_getDataDirectory(), inBasename, path, ".dat", true, pErrorCode); openCommonData() local 918 udata_setAppData(const char *path, const void *data, UErrorCode *err) udata_setAppData() argument 988 doLoadFromIndividualFiles(const char *pkgName, const char *dataPath, const char *tocEntryPathSuffix, const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *subErrorCode, UErrorCode *pErrorCode) doLoadFromIndividualFiles() argument 1046 doLoadFromCommonData(UBool isICUData, const char * , const char * , const char * , const char *tocEntryName, const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *subErrorCode, UErrorCode *pErrorCode) doLoadFromCommonData() argument 1159 doOpenChoice(const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *pErrorCode) doOpenChoice() argument 1395 udata_open(const char *path, const char *type, const char *name, UErrorCode *pErrorCode) udata_open() argument 1415 udata_openChoice(const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *pErrorCode) udata_openChoice() argument [all...] |
| /third_party/skia/third_party/externals/icu/source/common/ |
| H A D | udata.cpp | 83 static UDataMemory *udata_findCachedData(const char *path, UErrorCode &err); 225 findBasename(const char *path) { in findBasename() argument 226 const char *basename=uprv_strrchr(path, U_FILE_SEP_CHAR); in findBasename() 228 return path; in findBasename() 236 packageNameFromPath(const char *path) in packageNameFromPath() argument 238 if((path == NULL) || (*path == 0)) { in packageNameFromPath() 242 path = findBasename(path); in packageNameFromPath() 244 if((path in packageNameFromPath() 305 udata_findCachedData(const char *path, UErrorCode &err) udata_findCachedData() argument 331 udata_cacheDataItem(const char *path, UDataMemory *item, UErrorCode *pErr) udata_cacheDataItem() argument 420 const char *path; /* working path (u_icudata_Dir) */ global() member in UDataPathIterator 670 openCommonData(const char *path, int32_t commonDataIndex, UErrorCode *pErrorCode) openCommonData() argument 764 UDataPathIterator iter(u_getDataDirectory(), inBasename, path, ".dat", TRUE, pErrorCode); openCommonData() local 918 udata_setAppData(const char *path, const void *data, UErrorCode *err) udata_setAppData() argument 988 doLoadFromIndividualFiles(const char *pkgName, const char *dataPath, const char *tocEntryPathSuffix, const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *subErrorCode, UErrorCode *pErrorCode) doLoadFromIndividualFiles() argument 1046 doLoadFromCommonData(UBool isICUData, const char * , const char * , const char * , const char *tocEntryName, const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *subErrorCode, UErrorCode *pErrorCode) doLoadFromCommonData() argument 1159 doOpenChoice(const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *pErrorCode) doOpenChoice() argument 1395 udata_open(const char *path, const char *type, const char *name, UErrorCode *pErrorCode) udata_open() argument 1415 udata_openChoice(const char *path, const char *type, const char *name, UDataMemoryIsAcceptable *isAcceptable, void *context, UErrorCode *pErrorCode) udata_openChoice() argument [all...] |
| /third_party/python/Lib/ |
| H A D | os.py | 5 - os.path is either posixpath or ntpath 12 - os.pathsep is the component separator used in $PATH etc 14 - os.defpath is the default search path for executables 15 - os.devnull is the file path of the null device ('/dev/null', etc.) 20 and opendir), and leave all pathname manipulation to os.path 37 "defpath", "name", "path", "devnull", "SEEK_SET", "SEEK_CUR", 50 # Any new dependencies of the os module and/or changes in path separator 61 import posixpath as path namespace 81 import ntpath as path namespace 95 sys.modules['os.path'] [all...] |
| /third_party/node/deps/npm/node_modules/mkdirp/lib/ |
| H A D | path-arg.js | 2 const { resolve, parse } = require('path') 3 const pathArg = path => { 4 if (/\0/.test(path)) { 7 new TypeError('path must be a string without null bytes'), 9 path, 15 path = resolve(path) 18 const {root} = parse(path) 19 if (badWinChars.test(path.substr(root.length))) { 20 throw Object.assign(new Error('Illegal characters in path [all...] |
| /third_party/node/deps/undici/src/node_modules/@fastify/busboy/lib/utils/ |
| H A D | basename.js | 3 module.exports = function basename (path) { 4 if (typeof path !== 'string') { return '' } 5 for (var i = path.length - 1; i >= 0; --i) { // eslint-disable-line no-var 6 switch (path.charCodeAt(i)) { 9 path = path.slice(i + 1) 10 return (path === '..' || path === '.' ? '' : path) 13 return (path [all...] |
| /third_party/skia/docs/examples/ |
| H A D | Path_countPoints.cpp | 7 auto debugster = [](const char* prefix, const SkPath& path) -> void { in REG_FIDDLE() 8 SkDebugf("%s point count: %d\n", prefix, path.countPoints()); in REG_FIDDLE() 10 SkPath path; in REG_FIDDLE() local 11 debugster("empty", path); in REG_FIDDLE() 12 path.lineTo(0, 0); in REG_FIDDLE() 13 debugster("zero line", path); in REG_FIDDLE() 14 path.rewind(); in REG_FIDDLE() 15 path.moveTo(10, 10); in REG_FIDDLE() 16 path.lineTo(20, 20); in REG_FIDDLE() 17 debugster("line", path); in REG_FIDDLE() [all...] |