/third_party/skia/buildtools/checkdeps/ |
H A D | java_checker.py | 22 that reads all the .java files and builds a mapping of class name -> filepath. 23 In CheckFile, we convert each import statement into a real filepath, and check 33 _classmap: dict of fully-qualified Java class name -> filepath 52 def _GetClassFullName(self, filepath): 54 if not os.path.isfile(filepath): 56 with codecs.open(filepath, encoding='utf-8') as f: 57 short_class_name, _ = os.path.splitext(os.path.basename(filepath)) 104 for filepath, changed_lines in (added_imports or []): 105 if not self.ShouldCheck(filepath): 107 full_class_name = self._GetClassFullName(filepath) [all...] |
/third_party/mbedtls/tests/scripts/ |
H A D | check_files.py | 56 def normalize_path(filepath): 57 """Normalize ``filepath`` with / as the directory separator.""" 58 filepath = os.path.normpath(filepath) 64 return '/'.join(filepath.split(seps)) 66 def should_check_file(self, filepath): 73 if filepath.endswith(files_exemption): 76 re.match(self.path_exemptions, self.normalize_path(filepath)): 80 def check_file_for_issue(self, filepath): 87 def record_issue(self, filepath, line_numbe [all...] |
/third_party/skia/tools/ |
H A D | bloaty_treemap.py | 31 # For a given filepath "foo/bar/baz.cpp", `add_path` outputs rows to the data table 72 (filepath, symbol, vmsize, filesize) = vals 74 # Skip any entry where the filepath or symbol starts with '[' 76 if filepath.startswith("[") or symbol.startswith("["): 80 while filepath.startswith("../"): 81 filepath = filepath[3:]; 84 if filepath.startswith("/"): 85 rel_path_start = filepath.find("third_party") 87 filepath [all...] |
/third_party/skia/tools/copyright/ |
H A D | main.py | 39 for filepath in filepaths: 40 parser = fileparser.CreateParser(filepath) 43 filepath) 45 old_file_contents = ReadFileIntoString(filepath) 49 filepath) 52 ReportWarning('cannot find copyright block in file %s' % filepath) 57 holder, filepath)) 65 WriteStringToFile(new_file_contents, filepath) 92 def ReadFileIntoString(filepath): 95 with open(filepath, ' [all...] |
/third_party/skia/infra/bots/task_drivers/recreate_skps/ |
H A D | recreate_skps.go | 14 "path/filepath" 72 specPath := filepath.Join(checkoutRoot, ".gclient") 77 botUpdateScript := filepath.Join(depotToolsDir, "recipes", "recipe_modules", "bot_update", "resources", "bot_update.py") 82 outputJson := filepath.Join(tmp, "bot_update.json") 83 revMapFile := filepath.Join(tmp, "revmap") 88 cleanupDir := filepath.Join(tmp, "cleanup") 115 if _, err := exec.RunCwd(ctx, checkoutRoot, "vpython", "-u", filepath.Join(depotToolsDir, "gclient.py"), "runhooks"); err != nil { 160 skiaDir := filepath.Join(cwd, "skia") 163 gitCacheDir = filepath.Join(cwd, *gitCacheDirFlag) 167 checkoutRoot = filepath [all...] |
/third_party/python/Lib/lib2to3/tests/ |
H A D | test_all_fixers.py | 24 def refactor_file(self, filepath): 26 print(f"Refactor file: {filepath}") 27 if os.path.basename(filepath) == 'infinite_recursion.py': 32 self.refactor.refactor_file(filepath) 34 self.refactor.refactor_file(filepath) 37 for filepath in support.all_project_files(): 38 with self.subTest(filepath=filepath): 39 self.refactor_file(filepath)
|
/third_party/ltp/testcases/kernel/controllers/libcontrollers/ |
H A D | libcontrollers.c | 131 int read_file(char *filepath, int action, unsigned int *value) in read_file() argument 138 tmp = read_shares_file(filepath); in read_file() 145 fp = fopen(filepath, "r"); in read_file() 147 error_function("Could not open file", filepath); in read_file() 154 error_function("Could not close file", filepath); in read_file() 161 filepath); in read_file() 183 int read_shares_file(char *filepath) in read_shares_file() argument 187 fp = fopen(filepath, "r"); in read_shares_file() 189 error_function("Could not open file", filepath); in read_shares_file() 194 error_function("Could not close file", filepath); in read_shares_file() [all...] |
/third_party/googletest/googletest/test/ |
H A D | gtest_premature_exit_test.cc | 49 static bool FileExists(const char* filepath) { in FileExists() argument 51 return Stat(filepath, &stat) == 0; in FileExists() 117 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 118 if (filepath != nullptr && *filepath != '\0') { in main() 119 if (PrematureExitTest::FileExists(filepath)) { in main() 122 filepath); in main()
|
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/ |
H A D | main.go | 25 "path/filepath" 63 defPath := filepath.Join(projectRoot, defProjectRelPath) 96 tmplPath := filepath.Join(projectRoot, relTmplPath) 109 sb.WriteString(fmt.Sprintf(header, filepath.ToSlash(relTmplPath), filepath.ToSlash(defProjectRelPath))) 112 abspath := filepath.Join(filepath.Dir(tmplPath), relpath) 123 _, tmplFileName := filepath.Split(tmplPath) 140 if err := os.MkdirAll(filepath.Dir(path), 0777); err != nil {
|
/third_party/rust/crates/syn/examples/dump-syntax/src/ |
H A D | main.rs | 35 filepath: PathBuf, 49 filepath, in fmt() 51 } => render_location(f, error, filepath, source_code), in fmt() 67 let filepath = match (args.next(), args.next()) { in try_main() 72 let code = fs::read_to_string(&filepath).map_err(Error::ReadFile)?; in try_main() 76 filepath, in try_main() 96 filepath: &Path, in render_location() 112 let filename = filepath in render_location()
|
/third_party/node/test/parallel/ |
H A D | test-file-write-stream3.js | 31 const filepath = path.join(tmpdir.path, 'write_pos.txt'); 61 const file = fs.createWriteStream(filepath, options); 75 const fileData = fs.readFileSync(filepath, 'utf8'); 103 const file = fs.createWriteStream(filepath, options); 117 const fileData = fs.readFileSync(filepath, 'utf8'); 144 const file = fs.createWriteStream(filepath, options); 158 const fileData = fs.readFileSync(filepath, 'utf8'); 183 fs.createWriteStream(filepath, { start: -5, flags: 'r+' }); 200 fs.createWriteStream(filepath, { start: 2 ** 53, flags: 'r+' });
|
/third_party/libsnd/regtest/ |
H A D | database.c | 65 static void get_filename_pathname (REGTEST_DB * db, const char *filepath) ; 68 static int get_ekey_from_filename (REGTEST_DB * db, const char *filepath) ; 172 db_add_file (REG_DB * db_handle, const char * filepath) in db_add_file() argument 181 get_filename_pathname (db, filepath) ; in db_add_file() 183 if (db_file_exists (db_handle, filepath)) in db_add_file() 195 { printf (" %s : could not open : %s, filepath: '%s'\n", db->filename, sf_strerror (NULL), filepath) ; in db_add_file() 222 db_check_file (REG_DB * db_handle, const char * filepath) in db_check_file() argument 226 if (db_file_exists (db_handle, filepath) == 0) in db_check_file() 233 ekey = get_ekey_from_filename (db, filepath) ; in db_check_file() 285 get_ekey_from_filename(REGTEST_DB * db, const char *filepath) get_ekey_from_filename() argument 428 get_filename_pathname(REGTEST_DB * db, const char *filepath) get_filename_pathname() argument [all...] |
/third_party/skia/third_party/externals/freetype/tests/issue-1063/ |
H A D | main.c | 21 char filepath[FILENAME_MAX]; in main() local 24 snprintf( filepath, sizeof( filepath ), "%s/%s", in main() 29 if ( FT_New_Face( library, filepath, 0, &face ) != 0 ) in main() 31 fprintf( stderr, "Could not open file: %s\n", filepath ); in main()
|
/third_party/skia/infra/bots/task_drivers/perf_puppeteer_skottie_frames/ |
H A D | perf_puppeteer_skottie_frames_test.go | 11 "path/filepath" 45 fi, err := os.Stat(filepath.Join(benchmarkPath, "out")) 55 require.NoError(t, os.MkdirAll(filepath.Join(lotties, "animation_1"), 0777)) 82 "--input_lottie", filepath.Join(lotties, "animation_1", "data.json"), 83 "--assets", filepath.Join(lotties, "animation_1", "images"), 96 require.NoError(t, os.MkdirAll(filepath.Join(lotties, "animation_1"), 0777)) 123 "--input_lottie", filepath.Join(lotties, "animation_1", "data.json"), 124 "--assets", filepath.Join(lotties, "animation_1", "images"), 141 err = writeFilesToDisk(filepath.Join(input, "out"), map[string]string{ 160 outputFile := filepath [all...] |
H A D | perf_puppeteer_skottie_frames.go | 18 "path/filepath" 92 outputFile := filepath.Join(outputAbsPath, fmt.Sprintf("perf-%s.json", *taskID)) 125 if _, err := exec.RunCwd(ctx, benchmarkPath, filepath.Join(nodeBinPath, "npm"), "ci"); err != nil { 129 if err := os.MkdirAll(filepath.Join(benchmarkPath, "out"), 0777); err != nil { 166 return filepath.Walk(lottiesPath, func(path string, info os.FileInfo, _ error) error { 172 return filepath.SkipDir 189 name := filepath.Base(lottie) 196 args := []string{filepath.Join(nodeBinPath, "node"), 199 "--canvaskit_js", filepath.Join(canvaskitBinPath, "canvaskit.js"), 200 "--canvaskit_wasm", filepath [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/check_build_files/ |
H A D | main.go | 25 "path/filepath" 55 filepath.Walk(wd, func(path string, info os.FileInfo, err error) error { 60 rel, err := filepath.Rel(wd, path) 62 return filepath.SkipDir 67 return filepath.SkipDir 80 switch filepath.Ext(path) { 158 source = filepath.Join(filepath.Dir(path), source) 161 sources, err := filepath.Glob(source)
|
/third_party/node/test/sequential/ |
H A D | test-fs-watch.js | 55 const filepath = path.join(testDir, 'watch.txt'); 57 fs.writeFileSync(filepath, 'hello'); 59 const watcher = fs.watch(filepath); 70 const interval = repeat(() => { fs.writeFileSync(filepath, 'world'); }); 96 const filepath = path.join(testsubdir, 'newfile.txt'); 112 fs.rmSync(filepath, { force: true }); 113 const fd = fs.openSync(filepath, 'w');
|
/third_party/skia/tools/viewer/ |
H A D | BisectSlide.cpp | 16 sk_sp<BisectSlide> BisectSlide::Create(const char filepath[]) { in Create() argument 17 SkFILEStream stream(filepath); in Create() 19 SkDebugf("BISECT: invalid input file at \"%s\"\n", filepath); in Create() 23 sk_sp<BisectSlide> bisect(new BisectSlide(filepath)); in Create() 24 ToolUtils::sniff_paths(filepath, [&](const SkMatrix& matrix, in Create() 37 BisectSlide::BisectSlide(const char filepath[]) in BisectSlide() argument 38 : fFilePath(filepath) { in BisectSlide()
|
/third_party/skia/infra/bots/ |
H A D | zip_utils.py | 37 filepath = os.path.join(r, filename) 38 zi = zipfile.ZipInfo(filepath) 39 zi.filename = os.path.relpath(filepath, target_dir) 44 perms = os.stat(filepath).st_mode 46 if os.path.islink(filepath): 47 print('Skipping symlink %s' % filepath) 53 with open(filepath, 'rb') as f:
|
/third_party/musl/libc-test/src/functionalext/supplement/misc/ |
H A D | nftw.c | 63 char filepath[PATH_MAX]; in remove_directory() local 75 int result = snprintf(filepath, sizeof(filepath), "%s/%s", path, entry->d_name); in remove_directory() 76 if (result >= sizeof(filepath)) { in remove_directory() 79 remove_directory(filepath); in remove_directory() 81 int result = snprintf(filepath, sizeof(filepath), "%s/%s", path, entry->d_name); in remove_directory() 82 if (result >= sizeof(filepath)) { in remove_directory() 85 if (remove(filepath) == -1) { in remove_directory() 86 t_error("%s error in remove test nftw filepath! \ in remove_directory() [all...] |
/third_party/skia/infra/bots/task_drivers/perf_puppeteer_render_skps/ |
H A D | perf_puppeteer_render_skps_test.go | 11 "path/filepath" 50 fi, err := os.Stat(filepath.Join(benchmarkPath, "out")) 60 require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "first_skp"), []byte("doesnt matter"), 0777)) 88 "--input_skp", filepath.Join(skps, "first_skp"), 101 require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "desk_carsvg.skp"), []byte("doesnt matter"), 0777)) 134 require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "first_skp"), []byte("doesnt matter"), 0777)) 162 "--input_skp", filepath.Join(skps, "first_skp"), 176 require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "first_skp"), []byte("doesnt matter"), 0777)) 205 "--input_skp", filepath.Join(skps, "first_skp"), 219 err = writeFilesToDisk(filepath [all...] |
/third_party/musl/Benchmark/musl/ |
H A D | libc_unistd.cpp | 324 const char *filepath = "/data/local/tmp/lseel_test.txt"; in Bm_function_Lseek() local 325 int fd = open(filepath, O_CREAT | O_RDONLY, OPEN_MODE); in Bm_function_Lseek() 337 remove(filepath); in Bm_function_Lseek() 391 const char *filepath = "/data/local/tmp/fsync_test"; in Bm_function_Fsync() local 392 int fd = open(filepath, O_CREAT | O_WRONLY, OPEN_MODE); in Bm_function_Fsync() 402 remove(filepath); in Bm_function_Fsync() 407 const char *filepath = "/data/local/tmp/fdatasync_test"; in Bm_function_Fdatasync() local 408 int fd = open(filepath, O_CREAT | O_WRONLY, OPEN_MODE); in Bm_function_Fdatasync() 418 remove(filepath); in Bm_function_Fdatasync() 423 const char *filepath in Bm_function_Ftruncate() local 440 const char *filepath = "/data/local/tmp/unlink_test"; Bm_function_Unlink() local [all...] |
/third_party/libwebsockets/lib/misc/cache-ttl/ |
H A D | file.c | 84 cache->cache.info.u.nscookiejar.filepath); in nsc_backing_open_lock() 106 fd = open(cache->cache.info.u.nscookiejar.filepath, in nsc_backing_open_lock() 111 cache->cache.info.u.nscookiejar.filepath); in nsc_backing_open_lock() 126 cache->cache.info.u.nscookiejar.filepath); in nsc_backing_close_unlock() 603 char filepath[128]; in nsc_regen() local 610 lws_snprintf(filepath, sizeof(filepath), "%s.tmp", in nsc_regen() 611 cache->cache.info.u.nscookiejar.filepath); in nsc_regen() 612 unlink(filepath); in nsc_regen() 617 ctx.fdt = open(filepath, LWS_O_CREA in nsc_regen() [all...] |
/third_party/skia/third_party/externals/tint/tools/src/glob/ |
H A D | glob.go | 24 "path/filepath" 34 err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { 35 rel, err := filepath.Rel(root, path) 41 return filepath.SkipDir 189 root = filepath.ToSlash(root) // Canonicalize 190 absPath = filepath.ToSlash(absPath) // Canonicalize 191 relPath, err := filepath.Rel(root, absPath) 195 relPath = filepath.ToSlash(relPath) // Canonicalize
|
/third_party/libwebsockets/minimal-examples/raw/minimal-raw-file/ |
H A D | minimal-raw-file.c | 25 static char filepath[256]; variable 41 vhd->filefd = lws_open(filepath, O_RDWR); in callback_raw_test() 43 lwsl_err("Unable to open %s\n", filepath); in callback_raw_test() 74 lwsl_err("Reading from %s failed\n", filepath); in callback_raw_test() 146 lws_strncpy(filepath, argv[1], sizeof(filepath)); in main()
|