Home
last modified time | relevance | path

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

12345678910>>...33

/external/python/pyfakefs/pyfakefs/tests/
Dimport_as_example.py31 def check_if_exists1(filepath): argument
33 return my_os.path.exists(filepath)
36 def check_if_exists2(filepath): argument
38 return path.exists(filepath)
41 def check_if_exists3(filepath): argument
43 return Path(filepath).exists()
46 def check_if_exists4(filepath, file_exists=my_os.path.exists): argument
47 return file_exists(filepath)
50 def check_if_exists5(filepath): argument
52 return exists(filepath)
[all …]
/external/mbedtls/tests/scripts/
Dcheck_files.py55 def normalize_path(filepath): argument
57 filepath = os.path.normpath(filepath)
63 return '/'.join(filepath.split(seps))
65 def should_check_file(self, filepath): argument
72 if filepath.endswith(files_exemption):
75 re.match(self.path_exemptions, self.normalize_path(filepath)):
79 def check_file_for_issue(self, filepath): argument
86 def record_issue(self, filepath, line_number): argument
88 if filepath not in self.files_with_issues.keys():
89 self.files_with_issues[filepath] = []
[all …]
/external/openthread/third_party/mbedtls/repo/tests/scripts/
Dcheck_files.py56 def normalize_path(filepath): argument
58 filepath = os.path.normpath(filepath)
64 return '/'.join(filepath.split(seps))
66 def should_check_file(self, filepath): argument
73 if filepath.endswith(files_exemption):
76 re.match(self.path_exemptions, self.normalize_path(filepath)):
80 def check_file_for_issue(self, filepath): argument
87 def record_issue(self, filepath, line_number): argument
89 if filepath not in self.files_with_issues.keys():
90 self.files_with_issues[filepath] = []
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/utils/
Ddump_mlir_util_test.cc36 std::string filepath = DumpMlirOpToFile("module", module_ref.get()); in TEST() local
37 EXPECT_EQ(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)"); in TEST()
46 std::string filepath = DumpMlirOpToFile("module", module_ref.get()); in TEST() local
47 EXPECT_EQ(filepath, "(stderr)"); in TEST()
63 std::string filepath = DumpMlirOpToFile("module", module_ref.get()); in TEST() local
64 ASSERT_NE(filepath, "(TF_DUMP_GRAPH_PREFIX not specified)"); in TEST()
65 ASSERT_NE(filepath, "LOG(INFO)"); in TEST()
66 ASSERT_NE(filepath, "(unavailable)"); in TEST()
70 TF_ASSERT_OK(ReadFileToString(env, filepath, &file_txt_module)); in TEST()
81 std::string filepath = in TEST() local
[all …]
/external/webrtc/
DWATCHLISTS15 'filepath': '^WATCHLISTS$',
19 'filepath': '^.*',
23 'filepath': '^[^/]*$',
26 'filepath': '\.gni$|\.gn$',
29 'filepath': '\.java$|\.xml$',
32 'filepath': 'api/.*',
35 'filepath': 'audio/.*',
38 'filepath': 'rtc_base/.*',
41 'filepath': 'call/.*',
44 'filepath': 'media/engine/.*',
[all …]
/external/tensorflow/tensorflow/c/experimental/filesystem/
Dmodular_filesystem_test.cc222 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local
224 Status status = env_->NewWritableFile(filepath, &new_file); in TEST_P()
229 const std::string filepath = GetURIForPath("dir_not_found/a_file"); in TEST_P() local
231 Status status = env_->NewWritableFile(filepath, &new_file); in TEST_P()
236 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local
237 Status status = env_->CreateDir(filepath); in TEST_P()
241 status = env_->NewWritableFile(filepath, &new_file); in TEST_P()
246 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local
248 Status status = env_->NewWritableFile(filepath, &file); in TEST_P()
258 const std::string filepath = GetURIForPath("a_file"); in TEST_P() local
[all …]
/external/cronet/tot/third_party/libxml/src/
Dpy-compile113 filetrans="filepath = path"
115 filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)"
146 if not os.path.exists(filepath) or not (len(filepath) >= 3
147 and filepath[-3:] == '.py'):
152 py_compile.compile(filepath, $import_call(filepath), path)
154 py_compile.compile(filepath, filepath + 'c', path)
170 if not os.path.exists(filepath) or not (len(filepath) >= 3
171 and filepath[-3:] == '.py'):
176 py_compile.compile(filepath, $import_call(filepath$import_arg2), path)
178 py_compile.compile(filepath, filepath + 'o', path)
/external/cronet/stable/third_party/libxml/src/
Dpy-compile113 filetrans="filepath = path"
115 filetrans="filepath = os.path.normpath('$destdir' + os.sep + path)"
146 if not os.path.exists(filepath) or not (len(filepath) >= 3
147 and filepath[-3:] == '.py'):
152 py_compile.compile(filepath, $import_call(filepath), path)
154 py_compile.compile(filepath, filepath + 'c', path)
170 if not os.path.exists(filepath) or not (len(filepath) >= 3
171 and filepath[-3:] == '.py'):
176 py_compile.compile(filepath, $import_call(filepath$import_arg2), path)
178 py_compile.compile(filepath, filepath + 'o', path)
/external/tensorflow/tensorflow/python/keras/saving/
Dsave.py38 filepath, argument
126 filepath = path_to_string(filepath)
134 (h5py is not None and isinstance(filepath, h5py.File)) or
135 saving_utils.is_hdf5_filepath(filepath)):
147 model, filepath, overwrite, include_optimizer)
150 saved_model_save.save(model, filepath, overwrite, include_optimizer,
155 def load_model(filepath, custom_objects=None, compile=True, options=None): # pylint: disable=redef… argument
200 (isinstance(filepath, h5py.File) or h5py.is_hdf5(filepath))):
201 return hdf5_format.load_model_from_hdf5(filepath, custom_objects,
204 filepath = path_to_string(filepath)
[all …]
/external/intel-media-driver/media_driver/agnostic/gen11/codec/kernel_free/
Dbuild.py61 filepath = os.path.join('./Binary', 'DS4x_Frame.krn')
62 count += os.path.getsize(filepath)
69 filepath = os.path.join('./Binary', 'DS2x_Frame.krn')
70 count1 += os.path.getsize(filepath)
77 filepath = os.path.join('./Binary', 'HME_P.krn')
78 count2 += os.path.getsize(filepath)
85 filepath = os.path.join('./Binary', 'HME_B.krn')
86 count3 += os.path.getsize(filepath)
93 filepath = os.path.join('./Binary', 'HME_VDENC.krn')
94 count4 += os.path.getsize(filepath)
[all …]
/external/skia/tools/
Dbloaty_treemap.py83 (filepath, symbol, vmsize, filesize) = vals
87 if filepath.startswith("[") or symbol.startswith("["):
91 while filepath.startswith("../"):
92 filepath = filepath[3:];
95 if filepath.startswith("/"):
96 rel_path_start = filepath.find("third_party")
98 filepath = filepath[rel_path_start:]
100 print("ERROR: Unexpected absolute path:\n" + filepath)
107 add_path(filepath)
119 print("['%s', '%s (Path)', %d]," % (symbol, filepath, int(filesize)))
/external/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 …]
/external/python/cpython3/Doc/data/
Dpython3.13.abi1683 …<function-decl name='_PyType_SetFlags' filepath='./Include/internal/pycore_typeobject.h' line='231…
1689 …<function-decl name='_PyType_SetFlagsRecursive' filepath='./Include/internal/pycore_typeobject.h' …
1698 …<function-decl name='_PyUnicode_EncodeUTF7' filepath='./Include/internal/pycore_unicodeobject.h' l…
1705 …<function-decl name='_PyUnicode_DecodeUnicodeEscapeStateful' filepath='./Include/internal/pycore_u…
1712 …<function-decl name='_PyUnicode_DecodeRawUnicodeEscapeStateful' filepath='./Include/internal/pycor…
1719 …<function-decl name='_PyUnicode_AsLatin1String' filepath='./Include/internal/pycore_unicodeobject.…
1724 …<function-decl name='_PyUnicode_EncodeCharmap' filepath='./Include/internal/pycore_unicodeobject.h…
1732 …<var-decl name='_PyIO_Module' type-id='type-id-9' visibility='default' filepath='./Modules/_io/_io…
1735 …<typedef-decl name='_PyIO_State' type-id='type-id-10' filepath='./Modules/_io/_iomodule.h' line='3…
1736 …<typedef-decl name='Py_off_t' type-id='type-id-12' filepath='./Modules/_io/_iomodule.h' line='109'…
[all …]
/external/flatbuffers/src/
Dutil.cpp269 std::string StripExtension(const std::string &filepath) { in StripExtension() argument
270 size_t i = filepath.find_last_of('.'); in StripExtension()
271 return i != std::string::npos ? filepath.substr(0, i) : filepath; in StripExtension()
274 std::string GetExtension(const std::string &filepath) { in GetExtension() argument
275 size_t i = filepath.find_last_of('.'); in GetExtension()
276 return i != std::string::npos ? filepath.substr(i + 1) : ""; in GetExtension()
279 std::string StripPath(const std::string &filepath) { in StripPath() argument
280 size_t i = filepath.find_last_of(PathSeparatorSet); in StripPath()
281 return i != std::string::npos ? filepath.substr(i + 1) : filepath; in StripPath()
284 std::string StripFileName(const std::string &filepath) { in StripFileName() argument
[all …]
/external/boringssl/src/util/
Ddiff_asm.go31 …opensslDir = flag.String("openssl", filepath.Join("..", "openssl"), "The path to the OpenSSL che…
35 path = strings.Replace(path, filepath.FromSlash("/fipsmodule/"), string(filepath.Separator), 1)
36 pathSlash := filepath.ToSlash(path)
55 return filepath.FromSlash("crypto/ec/asm/ecp_nistz256-x86_64.pl")
57 return filepath.FromSlash("crypto/ec/asm/ecp_nistz256-armv8.pl")
86 err := filepath.Walk(*boringsslDir, func(path string, info os.FileInfo, err error) error {
91 path, err = filepath.Rel(*boringsslDir, path)
96 dir := filepath.Base(filepath.Dir(path))
97 …if !info.IsDir() && (dir == "asm" || dir == "perlasm") && strings.HasSuffix(filepath.Base(path), "…
127 …if err := diff(filepath.Join(*opensslDir, opensslFile), filepath.Join(*boringsslDir, file)); err !…
/external/webrtc/modules/audio_processing/test/py_quality_assessment/quality_assessment/
Ddata_access.py37 def LoadFileMetadata(cls, filepath): argument
46 with open(filepath + cls._GENERIC_METADATA_SUFFIX) as f:
50 def SaveFileMetadata(cls, filepath, metadata): argument
57 with open(filepath + cls._GENERIC_METADATA_SUFFIX, 'w') as f:
101 def Load(cls, filepath): argument
110 with open(filepath) as f:
114 def Save(cls, filepath, config): argument
121 with open(filepath, 'w') as f:
133 def Load(cls, filepath): argument
142 with open(filepath) as f:
[all …]
/external/cronet/tot/third_party/boringssl/src/util/
Ddiff_asm.go31 …opensslDir = flag.String("openssl", filepath.Join("..", "openssl"), "The path to the OpenSSL che…
35 path = strings.Replace(path, filepath.FromSlash("/fipsmodule/"), string(filepath.Separator), 1)
36 pathSlash := filepath.ToSlash(path)
51 return filepath.FromSlash("crypto/ec/asm/ecp_nistz256-x86_64.pl")
80 err := filepath.Walk(*boringsslDir, func(path string, info os.FileInfo, err error) error {
85 path, err = filepath.Rel(*boringsslDir, path)
90 dir := filepath.Base(filepath.Dir(path))
91 …if !info.IsDir() && (dir == "asm" || dir == "perlasm") && strings.HasSuffix(filepath.Base(path), "…
121 …if err := diff(filepath.Join(*opensslDir, opensslFile), filepath.Join(*boringsslDir, file)); err !…
/external/cronet/stable/third_party/boringssl/src/util/
Ddiff_asm.go31 …opensslDir = flag.String("openssl", filepath.Join("..", "openssl"), "The path to the OpenSSL che…
35 path = strings.Replace(path, filepath.FromSlash("/fipsmodule/"), string(filepath.Separator), 1)
36 pathSlash := filepath.ToSlash(path)
51 return filepath.FromSlash("crypto/ec/asm/ecp_nistz256-x86_64.pl")
80 err := filepath.Walk(*boringsslDir, func(path string, info os.FileInfo, err error) error {
85 path, err = filepath.Rel(*boringsslDir, path)
90 dir := filepath.Base(filepath.Dir(path))
91 …if !info.IsDir() && (dir == "asm" || dir == "perlasm") && strings.HasSuffix(filepath.Base(path), "…
121 …if err := diff(filepath.Join(*opensslDir, opensslFile), filepath.Join(*boringsslDir, file)); err !…
/external/bazelbuild-rules_go/go/tools/builders/
Dcgo2.go66 workDir = filepath.Join(workDir, "cgo", packagePath)
100 srcDir = filepath.Dir(cgoSrcs[0])
103 if filepath.Dir(src) != srcDir {
111 cgoSrcs[i] = filepath.Base(cgoSrcs[i])
114 srcDir = filepath.Join(workDir, "cgosrcs")
129 hdrDir := filepath.Dir(hdr)
156 if err := copyFile(filepath.Join(workDir, "_cgo_export.h"), cgoExportHPath); err != nil {
161 genGoSrcs[0] = filepath.Join(workDir, "_cgo_gotypes.go")
163 genCSrcs[0] = filepath.Join(workDir, "_cgo_export.c")
165 stem := strings.TrimSuffix(filepath.Base(src), ".go")
[all …]
/external/yapf/yapftests/
Dyapf_test.py85 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
86 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
89 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='yapf')
109 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
110 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
132 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
133 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
155 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
156 formatted_code, _, _ = yapf_api.FormatFile(filepath, style_config='pep8')
182 with utils.TempFileContents(self.test_tmpdir, unformatted_code) as filepath:
[all …]
Dstyle_test.py143 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath:
144 cfg = style.CreateStyleFromConfig(filepath)
154 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath:
155 cfg = style.CreateStyleFromConfig(filepath)
165 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath:
166 cfg = style.CreateStyleFromConfig(filepath)
176 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath:
177 cfg = style.CreateStyleFromConfig(filepath)
188 with utils.TempFileContents(self.test_tmpdir, cfg) as filepath:
189 cfg = style.CreateStyleFromConfig(filepath)
[all …]
/external/skia/infra/bots/task_drivers/recreate_skps/
Drecreate_skps.go84 specPath := filepath.Join(checkoutRoot, ".gclient")
89 …botUpdateScript := filepath.Join(depotToolsDir, "recipes", "recipe_modules", "bot_update", "resour…
94 outputJson := filepath.Join(tmp, "bot_update.json")
95 revMapFile := filepath.Join(tmp, "revmap")
100 cleanupDir := filepath.Join(tmp, "cleanup")
127 …if _, err := exec.RunCwd(ctx, checkoutRoot, "vpython3", "-u", filepath.Join(depotToolsDir, "gclien…
170 skiaDir := filepath.Join(cwd, "skia")
173 gitCacheDir = filepath.Join(cwd, *gitCacheDirFlag)
177 checkoutRoot = filepath.Join(cwd, *checkoutRootFlag)
182 dmPath := filepath.Join(cwd, *dmPathFlag)
[all …]
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dtempfile_ext_unittest.py62 with tempfile_ext.TemporaryFileName('foo') as filepath:
63 self.assertTrue(os.path.basename(filepath), 'foo')
64 self.assertFalse(os.path.exists(filepath))
66 with open(filepath, 'w') as f:
68 self.assertTrue(os.path.exists(filepath))
70 shutil.copyfile(filepath, filepath + '.bak')
71 self.assertTrue(filecmp.cmp(filepath, filepath + '.bak'))
73 self.assertFalse(os.path.exists(filepath))
74 self.assertFalse(os.path.exists(os.path.dirname(filepath)))
/external/ltp/testcases/kernel/controllers/libcontrollers/
Dlibcontrollers.c129 int read_file(char *filepath, int action, unsigned int *value) in read_file() argument
139 tmp = read_shares_file(filepath); in read_file()
146 fp = fopen(filepath, "r"); in read_file()
148 error_function("Could not open file", filepath); in read_file()
156 error_function("Could not close file", filepath); in read_file()
163 filepath); in read_file()
185 int read_shares_file(char *filepath) in read_shares_file() argument
189 fp = fopen(filepath, "r"); in read_shares_file()
191 error_function("Could not open file", filepath); in read_shares_file()
196 error_function("Could not close file", filepath); in read_shares_file()
/external/bazelbuild-rules_android/src/tools/ak/rjar/
Drjar_test.go42 out := filepath.Join(tmpDir, "R.jar")
59 if !zipContains(z, filepath.Join("android/support/v7", class)) {
60 t.Errorf("R.jar does not contain %s", filepath.Join("android/support/v7", class))
62 if !zipContains(z, filepath.Join("com/google/android/samples/skeletonapp", class)) {
63 …t.Errorf("R.jar does not contain %s", filepath.Join("com/google/android/samples/skeletonapp", clas…
65 if zipContains(z, filepath.Join("com/google/android/package/test", class)) {
66 t.Errorf("R.jar contains %s", filepath.Join("com/google/android/package/test", class))
72 return filepath.Join(os.Getenv("TEST_SRCDIR"), testDataBase, fn)

12345678910>>...33