Home
last modified time | relevance | path

Searched refs:filepath (Results 1 – 25 of 258) sorted by relevance

1234567891011

/third_party/mbedtls/tests/scripts/
Dcheck_files.py87 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/
Djava_checker.py52 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/
Dbloaty_treemap.py72 (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/
Dmain.py39 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/
Dmain.py36 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/
Ddiff_asm.go29 …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/
Drecreate_skps.go72 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/
Dlibcontrollers.c131 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/
Dgtest_premature_exit_test.cc49 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/
Dgtest_premature_exit_test.cc49 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/
Dlibecho.c43 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/
DBisectSlide.cpp21 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/
Dmain.c21 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/
Dmain.go63 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/
DBisectSlide.cpp16 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/
Dtest-file-write-stream3.js31 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/
Dperf_puppeteer_skottie_frames.go92 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 …]
Dperf_puppeteer_skottie_frames_test.go45 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/
Ddatabase.c65 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/
Dzip_utils.py37 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/
Dzip_utils.py36 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/
Dmain.go55 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/
Dperf_puppeteer_render_skps.go92 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/
Dmain.go87 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/
Dfileutils_common.go30 path, err := filepath.Abs(filename)
39 toolRoot := filepath.Dir(GoSourcePath())
40 root, err := filepath.Abs(filepath.Join(toolRoot, "../../.."))

1234567891011