/third_party/mbedtls/tests/scripts/ |
D | check_files.py | 87 def normalize_path(filepath): argument 89 filepath = os.path.normpath(filepath) 95 return '/'.join(filepath.split(seps)) 97 def should_check_file(self, filepath): argument 104 if filepath.endswith(files_exemption): 107 re.match(self.path_exemptions, self.normalize_path(filepath)): 111 def check_file_for_issue(self, filepath): argument 118 def record_issue(self, filepath, line_number): argument 120 if filepath not in self.files_with_issues.keys(): 121 self.files_with_issues[filepath] = [] [all …]
|
/third_party/skia/buildtools/checkdeps/ |
D | java_checker.py | 52 def _GetClassFullName(self, filepath): argument 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) 116 def _PrescanFile(self, filepath, added_classset): argument 118 print('Prescanning: ' + filepath) 119 full_class_name = self._GetClassFullName(filepath) [all …]
|
/third_party/skia/tools/ |
D | bloaty_treemap.py | 72 (filepath, symbol, vmsize, filesize) = vals 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 = filepath[rel_path_start:] 89 print("ERROR: Unexpected absolute path:\n" + filepath) 96 add_path(filepath) 104 print("['" + symbol + "', '" + filepath + "', " + filesize + "],")
|
/third_party/skia/tools/copyright/ |
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): argument 95 with open(filepath, 'r') as file_handle: [all …]
|
/third_party/flutter/skia/tools/copyright/ |
D | main.py | 36 for filepath in filepaths: 37 parser = fileparser.CreateParser(filepath) 40 filepath) 42 old_file_contents = ReadFileIntoString(filepath) 46 filepath) 49 ReportWarning('cannot find copyright block in file %s' % filepath) 54 holder, filepath)) 62 WriteStringToFile(new_file_contents, filepath) 85 def ReadFileIntoString(filepath): argument 88 with open(filepath, 'r') as file_handle: [all …]
|
/third_party/boringssl/src/util/ |
D | diff_asm.go | 29 …opensslDir = flag.String("openssl", filepath.Join("..", "openssl"), "The path to the OpenSSL che… 33 path = strings.Replace(path, filepath.FromSlash("/fipsmodule/"), string(filepath.Separator), 1) 34 switch filepath.ToSlash(path) { 38 return filepath.FromSlash("crypto/ec/asm/ecp_nistz256-x86_64.pl") 67 err := filepath.Walk(*boringsslDir, func(path string, info os.FileInfo, err error) error { 72 path, err = filepath.Rel(*boringsslDir, path) 77 dir := filepath.Base(filepath.Dir(path)) 78 …if !info.IsDir() && (dir == "asm" || dir == "perlasm") && strings.HasSuffix(filepath.Base(path), "… 108 …if err := diff(filepath.Join(*opensslDir, opensslFile), filepath.Join(*boringsslDir, file)); err !…
|
/third_party/skia/infra/bots/task_drivers/recreate_skps/ |
D | recreate_skps.go | 72 specPath := filepath.Join(checkoutRoot, ".gclient") 77 …botUpdateScript := filepath.Join(depotToolsDir, "recipes", "recipe_modules", "bot_update", "resour… 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… 160 skiaDir := filepath.Join(cwd, "skia") 163 gitCacheDir = filepath.Join(cwd, *gitCacheDirFlag) 167 checkoutRoot = filepath.Join(cwd, *checkoutRootFlag) 172 dmPath := filepath.Join(cwd, *dmPathFlag) [all …]
|
/third_party/ltp/testcases/kernel/controllers/libcontrollers/ |
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()
|
/third_party/googletest/googletest/test/ |
D | gtest_premature_exit_test.cc | 49 static bool FileExists(const char* filepath) { in FileExists() argument 51 return Stat(filepath, &stat) == 0; in FileExists() 115 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 116 if (filepath != NULL && *filepath != '\0') { in main() 117 if (PrematureExitTest::FileExists(filepath)) { in main() 120 filepath); in main()
|
/third_party/boringssl/src/third_party/googletest/test/ |
D | gtest_premature_exit_test.cc | 49 static bool FileExists(const char* filepath) { in FileExists() argument 51 return Stat(filepath, &stat) == 0; in FileExists() 115 const char* const filepath = GetEnv("TEST_PREMATURE_EXIT_FILE"); in main() local 116 if (filepath != nullptr && *filepath != '\0') { in main() 117 if (PrematureExitTest::FileExists(filepath)) { in main() 120 filepath); in main()
|
/third_party/e2fsprogs/util/ |
D | libecho.c | 43 char filepath[256]; in echo_files() local 52 strcpy(filepath, f); in echo_files() 54 slash = strrchr(filepath, '\\'); in echo_files() 60 filepath[0] = '\0'; in echo_files() 70 printf("%s%s%s\n", prefix, filepath, fdt.name); in echo_files() 75 printf("%s%s%s\n", prefix, filepath, fdt.name); in echo_files()
|
/third_party/flutter/skia/tools/viewer/ |
D | BisectSlide.cpp | 21 sk_sp<BisectSlide> BisectSlide::Create(const char filepath[]) { in Create() argument 22 SkFILEStream stream(filepath); in Create() 24 SkDebugf("BISECT: invalid input file at \"%s\"\n", filepath); in Create() 28 sk_sp<BisectSlide> bisect(new BisectSlide(filepath)); in Create() 33 SkDebugf("BISECT: XML parsing failed: \"%s\"\n", filepath); in Create() 38 SkDebugf("BISECT: couldn't load svg at \"%s\"\n", filepath); in Create() 49 SkDebugf("BISECT: couldn't load skp at \"%s\"\n", filepath); in Create() 58 BisectSlide::BisectSlide(const char filepath[]) in BisectSlide() argument 60 , fFilePath(filepath) { in BisectSlide()
|
/third_party/skia/third_party/externals/freetype/tests/issue-1063/ |
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/third_party/externals/tint/tools/src/cmd/intrinsic-gen/ |
D | main.go | 63 defPath := filepath.Join(projectRoot, defProjectRelPath) 96 tmplPath := filepath.Join(projectRoot, relTmplPath) 109 …sb.WriteString(fmt.Sprintf(header, filepath.ToSlash(relTmplPath), filepath.ToSlash(defProjectRelPa… 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/skia/tools/viewer/ |
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/node/test/parallel/ |
D | test-file-write-stream3.js | 31 const filepath = path.join(tmpdir.path, 'write_pos.txt'); constant 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/skia/infra/bots/task_drivers/perf_puppeteer_skottie_frames/ |
D | perf_puppeteer_skottie_frames.go | 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.Join(canvaskitBinPath, "canvaskit.wasm"), 201 "--input_lottie", filepath.Join(lottie, "data.json"), [all …]
|
D | perf_puppeteer_skottie_frames_test.go | 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.Join(output, "perf-taskid1352.json") 240 err = writeFilesToDisk(filepath.Join(input, "out"), map[string]string{ [all …]
|
/third_party/libsnd/regtest/ |
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 …tf (" %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) in get_ekey_from_filename() argument [all …]
|
/third_party/skia/infra/bots/ |
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/flutter/skia/infra/bots/ |
D | zip_utils.py | 36 filepath = os.path.join(r, filename) 37 zi = zipfile.ZipInfo(filepath) 38 zi.filename = os.path.relpath(filepath, target_dir) 43 perms = os.stat(filepath).st_mode 45 if os.path.islink(filepath): 46 print 'Skipping symlink %s' % filepath 52 with open(filepath, 'rb') as f:
|
/third_party/skia/third_party/externals/swiftshader/tests/check_build_files/ |
D | main.go | 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/skia/infra/bots/task_drivers/perf_puppeteer_render_skps/ |
D | perf_puppeteer_render_skps.go | 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 { 137 if err := os.MkdirAll(filepath.Join(benchmarkPath, "out"), 0777); err != nil { 168 return filepath.Walk(skpsPath, func(path string, info os.FileInfo, _ error) error { 173 return filepath.SkipDir 189 name := filepath.Base(skp) 196 args := []string{filepath.Join(nodeBinPath, "node"), 199 "--canvaskit_js", filepath.Join(canvaskitBinPath, "canvaskit.js"), 200 "--canvaskit_wasm", filepath.Join(canvaskitBinPath, "canvaskit.wasm"), 203 "--output", filepath.Join(benchmarkPath, "out", name+".json"), [all …]
|
/third_party/skia/third_party/externals/swiftshader/tests/regres/cmd/run_testlist/ |
D | main.go | 87 ok, _ := filepath.Match(*filter, name) 167 _, file := filepath.Split(icdPath) 194 dir := filepath.Dir(vkSwiftshaderICD) 195 path, err := filepath.Abs(filepath.Join(dir, root.ICD.Path)) 213 dir := filepath.Dir(vkSwiftshaderICD) 214 toolchainInfoPath := filepath.Join(dir, "coverage-toolchain.txt") 243 thisDir := filepath.Dir(thisFile) 244 root, err := filepath.Abs(filepath.Join(thisDir, "../../../.."))
|
/third_party/skia/third_party/externals/tint/tools/src/fileutils/ |
D | fileutils_common.go | 30 path, err := filepath.Abs(filename) 39 toolRoot := filepath.Dir(GoSourcePath()) 40 root, err := filepath.Abs(filepath.Join(toolRoot, "../../.."))
|