/third_party/skia/gm/ |
H A D | manypathatlases.cpp | 21 * This test originally ensured that the ccpr path cache preserved fill rules properly. CCRP is gone 55 SkPath path = SkPath().moveTo(20, 0) variable 60 path.setIsVolatile(true); 64 canvas->drawPath(path, teal);
|
/third_party/skia/modules/svg/src/ |
H A D | SkSVGEllipse.cpp | 40 SkPath path = SkPath::Oval(this->resolve(ctx.lengthContext())); in onAsPath() local 41 this->mapToParent(&path); in onAsPath() 43 return path; in onAsPath()
|
/third_party/selinux/libselinux/utils/ |
H A D | selabel_partial_match.c | 13 "usage: %s [-v] -p <path> [-f file]\n\n" in usage() 22 " the path \"/sys/devices/system/cpu/online\", returning\n\t" in usage() 31 char *validate = NULL, *path = NULL, *file = NULL; in main() local 51 path = optarg; in main() 69 partial_match = selabel_partial_match(hnd, path); in main()
|
/base/startup/init/interfaces/innerkits/fs_manager/ |
H A D | fstab.c | 203 fp = fopen(file, "r"); // no file system, can not get real path in ReadFstabFromFile() 263 FstabItem *FindFstabItemForPath(Fstab fstab, const char *path) in FindFstabItemForPath() argument 267 if (path == NULL || *path != '/') { in FindFstabItemForPath() 273 if (strncpy_s(tmp, PATH_MAX - 1, path, strlen(path)) != EOK) { in FindFstabItemForPath() 274 BEGET_LOGE("Failed to copy path."); in FindFstabItemForPath() 285 // Reverse walk through path and met "/", just quit. in FindFstabItemForPath() 500 int GetBlockDevicePath(const char *partName, char *path, size_t size) in GetBlockDevicePath() argument 502 BEGET_CHECK_RETURN_VALUE(partName != NULL && path ! in GetBlockDevicePath() [all...] |
/base/update/updater/services/fs_manager/ |
H A D | partitions.cpp | 69 static std::string LastComponent(const std::string &path) in LastComponent() argument 72 if (path == MMC_PATH) { in LastComponent() 75 if (path == SDA_PATH) { in LastComponent() 78 if (path == SDB_PATH) { in LastComponent() 242 static BlockDevice* NewBlockDevice(const std::string &path) in NewBlockDevice() argument 253 dev->devPath = path; in NewBlockDevice() 308 int DiskAlloc(const std::string &path) in DiskAlloc() argument 312 dev = NewBlockDevice(path); in DiskAlloc() 420 Disk* GetRegisterBlockDisk(const std::string &path) in GetRegisterBlockDisk() argument 426 if (g_disks->dev->devPath == path) { in GetRegisterBlockDisk() [all...] |
/kernel/linux/build/ |
H A D | kernel_build.py | 37 def __init__(self, arch, path): 39 self.path = path 45 return os.path.normpath(filename) 61 if not os.path.exists(os.path.join(self.path, filename)): 271 if os.path.exists(config_path.format(arch, config)): 272 cp = f'cp ' + config_path.format(arch, config) + ' ' + os.path.join(knl_path, 'arch', arch, 'configs', config) 364 log_file = os.path [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 233 char path[4096]; in write_id_mapping() local 238 snprintf(path, sizeof(path), "/proc/%d/setgroups", pid); in write_id_mapping() 239 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping() 253 ret = snprintf(path, sizeof(path), "/proc/%d/uid_map", pid); in write_id_mapping() 256 ret = snprintf(path, sizeof(path), "/proc/%d/gid_map", pid); in write_id_mapping() 261 if (ret < 0 || ret >= sizeof(path)) in write_id_mapping() 264 fd = open(path, O_WRONL in write_id_mapping() [all...] |
/kernel/linux/linux-5.10/drivers/net/fddi/skfp/ |
H A D | ess.c | 226 * 1. path index = primary ring only in ess_raf_received_pack() 292 * Verify the path index and resource in ess_raf_received_pack() 508 chg->path.para.p_type = SMT_P320B ; in ess_send_response() 509 chg->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; in ess_send_response() 510 chg->path.mib_index = SBAPATHINDEX ; in ess_send_response() 511 chg->path.path_pad = 0; in ess_send_response() 512 chg->path.path_index = PRIMARY_RING ; in ess_send_response() 604 req->path.para.p_type = SMT_P320B ; in ess_send_alc_req() 605 req->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; in ess_send_alc_req() 606 req->path in ess_send_alc_req() [all...] |
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | nfs4namespace.c | 31 * Work out the length that an NFSv4 path would render to as a standard posix 32 * path, with a leading slash but no terminating slash. 55 * Convert the NFSv4 pathname components into a standard posix path. 86 * return the path component of "<server>:<path>" 87 * nfspath - the "<server>:<path>" string 110 * Determine the mount path as a string 115 char *path = nfs_path(&limit, dentry, buffer, buflen, in nfs4_path() local 117 if (!IS_ERR(path)) { in nfs4_path() 118 char *path_component = nfs_path_component(path, limi in nfs4_path() 133 const char *path; nfs4_validate_fspath() local [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | nfs4namespace.c | 31 * Work out the length that an NFSv4 path would render to as a standard posix 32 * path, with a leading slash but no terminating slash. 55 * Convert the NFSv4 pathname components into a standard posix path. 86 * return the path component of "<server>:<path>" 87 * nfspath - the "<server>:<path>" string 110 * Determine the mount path as a string 115 char *path = nfs_path(&limit, dentry, buffer, buflen, in nfs4_path() local 117 if (!IS_ERR(path)) { in nfs4_path() 118 char *path_component = nfs_path_component(path, limi in nfs4_path() 133 const char *path; nfs4_validate_fspath() local [all...] |
/kernel/linux/linux-6.6/drivers/net/fddi/skfp/ |
H A D | ess.c | 225 * 1. path index = primary ring only in ess_raf_received_pack() 291 * Verify the path index and resource in ess_raf_received_pack() 507 chg->path.para.p_type = SMT_P320B ; in ess_send_response() 508 chg->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; in ess_send_response() 509 chg->path.mib_index = SBAPATHINDEX ; in ess_send_response() 510 chg->path.path_pad = 0; in ess_send_response() 511 chg->path.path_index = PRIMARY_RING ; in ess_send_response() 603 req->path.para.p_type = SMT_P320B ; in ess_send_alc_req() 604 req->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; in ess_send_alc_req() 605 req->path in ess_send_alc_req() [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/filesystems/binderfs/ |
H A D | binderfs_test.c | 251 char path[4096]; in write_id_mapping() local 256 snprintf(path, sizeof(path), "/proc/%d/setgroups", pid); in write_id_mapping() 257 setgroups_fd = open(path, O_WRONLY | O_CLOEXEC | O_NOFOLLOW); in write_id_mapping() 271 ret = snprintf(path, sizeof(path), "/proc/%d/uid_map", pid); in write_id_mapping() 274 ret = snprintf(path, sizeof(path), "/proc/%d/gid_map", pid); in write_id_mapping() 279 if (ret < 0 || ret >= sizeof(path)) in write_id_mapping() 282 fd = open(path, O_WRONL in write_id_mapping() [all...] |
/kernel/liteos_a/testsuites/unittest/process/plimits/ |
H A D | process_plimits_test.cpp | 58 inline bool IsDir(const std::string &path); 59 inline bool IsSpecialDir(const std::string &path); 548 bool ProcessPlimitsTest::IsDir(const std::string &path) in IsDir() argument 551 return (lstat(path.c_str(), &statbuf) == 0) && S_ISDIR(statbuf.st_mode); in IsDir() 554 bool ProcessPlimitsTest::IsSpecialDir(const std::string &path) in IsSpecialDir() argument 556 return strcmp(path.c_str(), ".") == 0 || strcmp(path.c_str(), "..") == 0; in IsSpecialDir() 617 int RmdirTest(std::string path) in RmdirTest() argument 620 RmdirControlFile(path); in RmdirTest() 621 ret = rmdir(path in RmdirTest() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | nellymoserenc.c | 68 uint8_t (*path)[OPT_SIZE]; member 143 av_freep(&s->path); in encode_end() 194 s->path = av_malloc(NELLY_BANDS * OPT_SIZE * sizeof(uint8_t)); in encode_init() 195 if (!s->opt || !s->path) in encode_init() 241 uint8_t(*path)[OPT_SIZE] = s->path; in get_exponent_dynamic() 249 path[0][ff_nelly_init_table[i]] = i; in get_exponent_dynamic() 271 path[band][idx] = j; in get_exponent_dynamic() 291 idx_table[band] = path[band][best_idx]; in get_exponent_dynamic() 293 best_idx -= ff_nelly_delta_table[path[ban in get_exponent_dynamic() [all...] |
/third_party/icu/tools/cldr/cldr-to-icu/src/main/java/org/unicode/icu/tool/cldrtoicu/ |
H A D | PseudoLocales.java | 236 // Look for any attribute in the path with "narrow" in its value. Since "narrow" values 263 CldrPath path = value.getPath(); in filter() 267 if (AUX_EXEMPLARS.matches(path)) { in filter() 268 return getExemplarValue(path); in filter() 271 // The path we get here was from "en" so should already be "latn", but we just have in filter() 273 if (type == PseudoType.BIDI && NUMBERING_SYSTEM.matches(path)) { in filter() 280 if (!pathsToProcess.contains(path) || !IS_PSEUDO_PATH.test(path)) { in filter() 293 if (GREGORIAN_SHORT_STANDARD_PATTERN.matches(path)) { in filter() 296 String text = createMessage(value.getValue(), IS_PATTERN_PATH.test(path)); in filter() 307 getExemplarValue(CldrPath path) getExemplarValue() argument [all...] |
/third_party/libsnd/src/ |
H A D | test_file_io.c | 76 snprintf (psf->file.path, sizeof (psf->file.path), "%s", filename) ; in file_open_test() 94 unlink (psf->file.path) ; in file_open_test() 108 unlink (psf->file.path) ; in file_open_test() 129 snprintf (psf->file.path, sizeof (psf->file.path), "%s", filename) ; in file_read_write_test() 285 snprintf (psf->file.path, sizeof (psf->file.path), "%s", filename) ; in file_truncate_test() 342 snprintf (psf->file.path, sizeof (psf->file.path), " in file_seek_with_offset_test() [all...] |
/third_party/node/deps/v8/tools/clusterfuzz/foozzie/ |
H A D | v8_foozzie.py | 79 '--force-slow-path', 83 '--force-slow-path', 95 BASE_PATH = os.path.dirname(os.path.abspath(__file__)) 96 SMOKE_TESTS = os.path.join(BASE_PATH, 'v8_smoke_tests.js') 144 # The number of hex digits used from the hash of the original source file path. 155 # Mapping from relative original source path (e.g. CrashTests/path/to/file.js) 187 with open(os.path.join(os.path [all...] |
/third_party/lz4/tests/ |
H A D | test-lz4-speed.py | 27 working_path = os.getcwd() + '/' + working_dir_name # /path/to/lz4/tests/speedTest 28 clone_path = working_path + '/' + 'lz4' # /path/to/lz4/tests/speedTest/lz4 126 if not os.path.isfile(resultsFileName): 185 if os.path.isfile(commitFileName): 262 fileName = os.path.expanduser(fileName) 263 if os.path.isfile(fileName) or os.path.isdir(fileName): 264 testFilePaths.append(os.path.abspath(fileName)) 297 if not os.path.isdir(working_path): 299 if not os.path [all...] |
/third_party/mesa3d/src/nouveau/codegen/ |
H A D | nv50_ir_graph.cpp | 402 // @dist is indexed by Node::tag, returns -1 if no path found 406 std::vector<int> path(weight.size(), std::numeric_limits<int>::max()); in findLightestPathWeight() 410 path[a->tag] = 0; in findLightestPathWeight() 412 const int p = path[c->tag] + weight[c->tag]; in findLightestPathWeight() 416 if (path[t->tag] == std::numeric_limits<int>::max()) in findLightestPathWeight() 418 if (p < path[t->tag]) in findLightestPathWeight() 419 path[t->tag] = p; in findLightestPathWeight() 426 if (!next || path[(*n)->tag] < path[next->tag]) in findLightestPathWeight() 436 if (path[ in findLightestPathWeight() [all...] |
/third_party/node/deps/undici/src/lib/core/ |
H A D | util.js | 71 if (url.path != null && typeof url.path !== 'string') { 72 throw new InvalidArgumentError('Invalid URL path: the path must be a string or null/undefined.') 93 let path = url.path != null 94 ? url.path 101 if (path && !path.startsWith('/')) { 102 path [all...] |
/third_party/python/Lib/idlelib/idle_test/ |
H A D | test_query.py | 186 for path, func, result in ( 192 dialog.pathvar.set(path) 204 self.path = Var(value=dummy_path) 229 dialog.path.set(url) 238 dialog.path.set(__file__) 253 return self.path 257 for name, path, result in ((None, None, None), 262 dialog.name, dialog.path = name, path 289 args = ['-n', '10', '--verbose', '-p', '/path', ' [all...] |
/third_party/python/Lib/test/test_asyncio/ |
H A D | utils.py | 42 fullname = os.path.join(support.TEST_HOME_DIR, filename) 43 if os.path.isfile(fullname): 45 fullname = os.path.join(os.path.dirname(__file__), '..', filename) 46 if os.path.isfile(fullname): 236 # as the second return value will be a path; 259 path = gen_unix_socket_path() 261 yield path 264 os.unlink(path) 271 with unix_socket_path() as path [all...] |
/third_party/skia/samplecode/ |
H A D | SamplePathClip.cpp | 139 SkPath path; in draw_clipped_line() local 140 path.addPoly(verts, count, false); in draw_clipped_line() 141 canvas->drawPath(path, paint); in draw_clipped_line() 181 SkPath path; variable 182 path.addPoly(fPoly, N, true); 188 canvas->drawPath(path, p); 207 canvas->drawPath(path, p); 285 SkPath path; variable 286 path.addPoly(fPoly, N, true); 287 if (path [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/regres/cmd/export_to_sheets/ |
H A D | main.go | 30 "path/filepath" 45 projectPath = flag.String("projpath", ".", "project path") 46 testListPath = flag.String("testlist", "tests/regres/full-tests.json", "project relative path to the test list .json file") 141 path := filepath.Join(*projectPath, group.File) 144 path := testlist.FilePathWithStatus(path, status) 145 data, err := git.Show(path, hash) 151 return cause.Wrap(err, "Couldn't count lines in file '%s'", path) 415 func tokenFromFile(path string) (*oauth2.Token, error) { 416 f, err := os.Open(path) [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/regres/deqp/ |
H A D | deqp.go | 27 "path/filepath" 101 func LoadResults(path string) (*Results, error) { 102 f, err := os.Open(path) 104 return nil, cause.Wrap(err, "Couldn't open '%s' for loading test results", path) 119 func (r *Results) Save(path string) error { 120 if err := os.MkdirAll(filepath.Dir(path), 0777); err != nil { 121 return cause.Wrap(err, "couldn't make '%s' for saving test results", filepath.Dir(path)) 124 f, err := os.Create(path) 126 return cause.Wrap(err, "Couldn't open '%s' for saving test results", path) 251 path [all...] |