Home
last modified time | relevance | path

Searched full:file_name (Results 1 – 25 of 3066) sorted by relevance

12345678910>>...123

/aosp_15_r20/external/fonttools/Tests/ttx/
H A Dttx_test.py57 def temp_font(self, font_path, file_name): argument
59 temppath = os.path.join(self.tempdir, file_name)
84 file_name = "TestOTF.otf"
85 font_path = self.getpath(file_name)
86 temp_path = self.temp_font(font_path, file_name)
92 os.path.join(self.tempdir, file_name),
93 os.path.join(self.tempdir, file_name.split(".")[0] + ".ttx"),
98 file_name = "TestTTF.ttf"
99 font_path = self.getpath(file_name)
100 temp_path = self.temp_font(font_path, file_name)
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/path/
H A Dtests.rs46 ($path:expr, parent: $parent:expr, file_name: $file:expr) => (
55 let file = path.file_name().map(|p| p.to_str().unwrap());
57 assert!(file == exp_file, "file_name: Expected {:?}, found {:?}",
96 parent: $parent:expr, file_name: $file:expr,
102 t!($path, parent: $parent, file_name: $file);
137 file_name: None, in test_decompositions_unix()
148 file_name: Some("foo"), in test_decompositions_unix()
159 file_name: None, in test_decompositions_unix()
170 file_name: Some("foo"), in test_decompositions_unix()
181 file_name: Some("foo"), in test_decompositions_unix()
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/path/
H A Dtests.rs46 ($path:expr, parent: $parent:expr, file_name: $file:expr) => (
55 let file = path.file_name().map(|p| p.to_str().unwrap());
57 assert!(file == exp_file, "file_name: Expected {:?}, found {:?}",
96 parent: $parent:expr, file_name: $file:expr,
102 t!($path, parent: $parent, file_name: $file);
137 file_name: None, in test_decompositions_unix()
148 file_name: Some("foo"), in test_decompositions_unix()
159 file_name: None, in test_decompositions_unix()
170 file_name: Some("foo"), in test_decompositions_unix()
181 file_name: Some("foo"), in test_decompositions_unix()
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/core/kernels/
H A Dspectrogram_test_utils.cc32 bool ReadWaveFileToVector(const string& file_name, std::vector<double>* data) { in ReadWaveFileToVector() argument
34 if (!ReadFileToString(Env::Default(), file_name, &wav_data).ok()) { in ReadWaveFileToVector()
35 LOG(ERROR) << "Wave file read failed for " << file_name; in ReadWaveFileToVector()
57 const string& file_name, int row_length, in ReadRawFloatFileToComplexVector() argument
61 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadRawFloatFileToComplexVector()
62 LOG(ERROR) << "Failed to open file " << file_name; in ReadRawFloatFileToComplexVector()
107 const string& file_name, in ReadCSVFileToComplexVectorOrDie() argument
111 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadCSVFileToComplexVectorOrDie()
112 LOG(FATAL) << "Failed to open file " << file_name; in ReadCSVFileToComplexVectorOrDie()
176 bool WriteDoubleVectorToFile(const string& file_name, in WriteDoubleVectorToFile() argument
[all …]
/aosp_15_r20/external/emboss/compiler/front_end/
H A Dglue_test.py68 file_name = "nonexistent.emb"
70 file_name, test_util.dict_file_reader({}))
77 self.assertFalse(file_name in debug_info.modules)
81 file_name = "tokens.emb"
83 file_name, test_util.dict_file_reader({file_name: "@"}))
84 self.assertTrue(debug_info.modules[file_name].source_code)
90 file_name = "indent.emb"
92 file_name, test_util.dict_file_reader(
93 {file_name: "struct Foo:\n"
96 self.assertTrue(debug_info.modules[file_name].source_code)
[all …]
H A Dglue.py63 file_name: The name of the file from which this module came.
72 __slots__ = ("file_name", "tokens", "parse_tree", "ir", "used_productions",
75 def __init__(self, file_name): argument
76 self.file_name = file_name
84 return (self.file_name == other.file_name and self.tokens == other.tokens
126 def parse_module_text(source_code, file_name): argument
131 file_name: The name of the module's source file (will be included in the
144 if (source_code, file_name) in _cached_modules:
145 debug_info = _cached_modules[source_code, file_name]
148 debug_info = ModuleDebugInfo(file_name)
[all …]
/aosp_15_r20/external/cronet/base/i18n/
H A Dfile_util_icu.cc164 // Returns the code point at position |cursor| in |file_name|, and increments
166 UChar32 GetNextCodePoint(const FilePath::StringType* const file_name, in GetNextCodePoint() argument
171 U16_NEXT(file_name->data(), cursor, static_cast<int>(file_name->length()), in GetNextCodePoint()
177 U8_NEXT(file_name->data(), cursor, static_cast<int>(file_name->length()), in GetNextCodePoint()
187 bool IsFilenameLegal(const std::u16string& file_name) { in IsFilenameLegal() argument
188 return IllegalCharacters::GetInstance()->IsAllowedName(file_name); in IsFilenameLegal()
191 void ReplaceIllegalCharactersInPath(FilePath::StringType* file_name, in ReplaceIllegalCharactersInPath() argument
200 file_name->size() <= 12 && in ReplaceIllegalCharactersInPath()
202 *file_name); in ReplaceIllegalCharactersInPath()
218 while (could_be_short_name && cursor < static_cast<int>(file_name->size())) { in ReplaceIllegalCharactersInPath()
[all …]
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/path/
H A Dtests.rs46 ($path:expr, parent: $parent:expr, file_name: $file:expr) => (
55 let file = path.file_name().map(|p| p.to_str().unwrap());
57 assert!(file == exp_file, "file_name: Expected {:?}, found {:?}",
96 parent: $parent:expr, file_name: $file:expr,
102 t!($path, parent: $parent, file_name: $file);
147 file_name: None, in test_decompositions_unix()
158 file_name: Some("foo"), in test_decompositions_unix()
169 file_name: None, in test_decompositions_unix()
180 file_name: Some("foo"), in test_decompositions_unix()
191 file_name: Some("foo"), in test_decompositions_unix()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/path/
H A Dtests.rs46 ($path:expr, parent: $parent:expr, file_name: $file:expr) => (
55 let file = path.file_name().map(|p| p.to_str().unwrap());
57 assert!(file == exp_file, "file_name: Expected {:?}, found {:?}",
96 parent: $parent:expr, file_name: $file:expr,
102 t!($path, parent: $parent, file_name: $file);
147 file_name: None, in test_decompositions_unix()
158 file_name: Some("foo"), in test_decompositions_unix()
169 file_name: None, in test_decompositions_unix()
180 file_name: Some("foo"), in test_decompositions_unix()
191 file_name: Some("foo"), in test_decompositions_unix()
[all …]
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/path/
H A Dtests.rs46 ($path:expr, parent: $parent:expr, file_name: $file:expr) => (
55 let file = path.file_name().map(|p| p.to_str().unwrap());
57 assert!(file == exp_file, "file_name: Expected {:?}, found {:?}",
96 parent: $parent:expr, file_name: $file:expr,
102 t!($path, parent: $parent, file_name: $file);
147 file_name: None, in test_decompositions_unix()
158 file_name: Some("foo"), in test_decompositions_unix()
169 file_name: None, in test_decompositions_unix()
180 file_name: Some("foo"), in test_decompositions_unix()
191 file_name: Some("foo"), in test_decompositions_unix()
[all …]
/aosp_15_r20/external/mbedtls/tests/scripts/
H A Dset_psa_test_dependencies.py124 def systematic_dependencies(file_name, function_name, arguments): argument
146 if os.path.basename(file_name) == 'test_suite_psa_crypto_persistent_key.data' and \
156 def updated_dependencies(file_name, function_name, arguments, dependencies): argument
165 automatic = systematic_dependencies(file_name, function_name, arguments)
171 def keep_manual_dependencies(file_name, function_name, arguments): argument
186 def process_data_stanza(stanza, file_name, test_case_number): argument
202 .format(test_case_number, file_name))
205 .format(test_case_number, file_name))
208 if keep_manual_dependencies(file_name, function_name, arguments):
227 .format(test_case_number, file_name))
[all …]
H A Dcheck_test_cases.py27 def error(self, file_name, line_number, fmt, *args): argument
29 format(file_name, line_number, *args))
32 def warning(self, file_name, line_number, fmt, *args): argument
35 .format(file_name, line_number, *args))
50 file_name, line_number, description): argument
55 file_name: a relative path to the file containing the test case.
88 def walk_ssl_opt_sh(self, file_name): argument
91 with open(file_name, 'rb') as file_contents:
101 file_name, line_number, description)
103 def walk_compat_sh(self, file_name): argument
[all …]
/aosp_15_r20/external/openthread/third_party/mbedtls/repo/tests/scripts/
H A Dset_psa_test_dependencies.py124 def systematic_dependencies(file_name, function_name, arguments): argument
146 if os.path.basename(file_name) == 'test_suite_psa_crypto_persistent_key.data' and \
156 def updated_dependencies(file_name, function_name, arguments, dependencies): argument
165 automatic = systematic_dependencies(file_name, function_name, arguments)
171 def keep_manual_dependencies(file_name, function_name, arguments): argument
186 def process_data_stanza(stanza, file_name, test_case_number): argument
202 .format(test_case_number, file_name))
205 .format(test_case_number, file_name))
208 if keep_manual_dependencies(file_name, function_name, arguments):
227 .format(test_case_number, file_name))
[all …]
/aosp_15_r20/external/igt-gpu-tools/tests/
H A Dkms_dp_dsc.c78 char file_name[128] = {0}; in is_dp_dsc_supported() local
81 strcpy(file_name, data->conn_name); in is_dp_dsc_supported()
82 strcat(file_name, "/i915_dsc_fec_support"); in is_dp_dsc_supported()
83 igt_require(igt_debugfs_simple_read(data->debugfs_fd, file_name, buf, in is_dp_dsc_supported()
85 igt_debugfs_read(data->drm_fd, file_name, buf); in is_dp_dsc_supported()
92 char file_name[128] = {0}; in is_dp_fec_supported() local
95 strcpy(file_name, data->conn_name); in is_dp_fec_supported()
96 strcat(file_name, "/i915_dsc_fec_support"); in is_dp_fec_supported()
97 igt_debugfs_read(data->drm_fd, file_name, buf); in is_dp_fec_supported()
104 char file_name[128] = {0}; in is_dp_dsc_enabled() local
[all …]
/aosp_15_r20/external/ltp/include/
H A Dtst_cgroup.h181 #define SAFE_CG_HAS(cg, file_name) \ argument
182 safe_cg_has(__FILE__, __LINE__, (cg), (file_name))
186 const char *const file_name)
189 #define SAFE_CG_READ(cg, file_name, out, len) \ argument
191 (cg), (file_name), (out), (len))
195 const char *const file_name,
199 #define SAFE_CG_PRINTF(cg, file_name, fmt, ...) \ argument
201 (cg), (file_name), (fmt), __VA_ARGS__)
203 #define SAFE_CG_PRINT(cg, file_name, str) \ argument
204 safe_cg_printf(__FILE__, __LINE__, (cg), (file_name), "%s", (str))
[all …]
/aosp_15_r20/external/icing/icing/file/
H A Dfilesystem.cc105 // Logs an error formatted as: desc1 + file_name + desc2 + strerror(errnum).
109 void LogOpenError(const char* desc1, const char* file_name, const char* desc2, in LogOpenError() argument
112 ICING_VLOG(1) << desc1 << file_name << desc2 << strerror(errnum); in LogOpenError()
114 ICING_LOG(ERROR) << desc1 << file_name << desc2 << strerror(errnum); in LogOpenError()
140 std::string file_name(p->d_name); in ListDirectoryInternal() local
141 if (file_name == "." || file_name == ".." || in ListDirectoryInternal()
142 exclude.find(file_name) != exclude.end()) { in ListDirectoryInternal()
181 bool Filesystem::DeleteFile(const char* file_name) const { in DeleteFile()
182 ICING_VLOG(1) << "Deleting file " << file_name; in DeleteFile()
183 int ret = unlink(file_name); in DeleteFile()
[all …]
H A Dmock-filesystem.h34 ON_CALL(*this, DeleteFile).WillByDefault([this](const char* file_name) { in MockFilesystem()
35 return real_filesystem_.DeleteFile(file_name); in MockFilesystem()
58 ON_CALL(*this, FileExists).WillByDefault([this](const char* file_name) { in MockFilesystem()
59 return real_filesystem_.FileExists(file_name); in MockFilesystem()
67 .WillByDefault([this](const char* file_name) { in MockFilesystem()
68 return real_filesystem_.GetBasenameIndex(file_name); in MockFilesystem()
71 ON_CALL(*this, GetBasename).WillByDefault([this](const char* file_name) { in MockFilesystem()
72 return real_filesystem_.GetBasename(file_name); in MockFilesystem()
75 ON_CALL(*this, GetDirname).WillByDefault([this](const char* file_name) { in MockFilesystem()
76 return real_filesystem_.GetDirname(file_name); in MockFilesystem()
[all …]
/aosp_15_r20/external/icing/icing/legacy/index/
H A Dicing-mock-filesystem.h35 ON_CALL(*this, DeleteFile).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
36 return real_icing_filesystem_.DeleteFile(file_name); in IcingMockFilesystem()
48 ON_CALL(*this, FileExists).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
49 return real_icing_filesystem_.FileExists(file_name); in IcingMockFilesystem()
57 .WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
58 return real_icing_filesystem_.GetBasenameIndex(file_name); in IcingMockFilesystem()
61 ON_CALL(*this, GetBasename).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
62 return real_icing_filesystem_.GetBasename(file_name); in IcingMockFilesystem()
65 ON_CALL(*this, GetDirname).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
66 return real_icing_filesystem_.GetDirname(file_name); in IcingMockFilesystem()
[all …]
H A Dicing-filesystem.cc113 // Logs an error formatted as: desc1 + file_name + desc2 + strerror(errnum).
117 void LogOpenError(const char *desc1, const char *file_name, const char *desc2, in LogOpenError() argument
119 ICING_LOG(ERROR) << desc1 << file_name << desc2 << strerror(errnum); in LogOpenError()
141 std::string file_name(p->d_name); in ListDirectoryInternal() local
142 if (file_name == "." || file_name == ".." || in ListDirectoryInternal()
143 exclude.find(file_name) != exclude.end()) { in ListDirectoryInternal()
182 bool IcingFilesystem::DeleteFile(const char *file_name) const { in DeleteFile()
183 ICING_VLOG(1) << "Deleting file " << file_name; in DeleteFile()
184 int ret = unlink(file_name); in DeleteFile()
187 ICING_LOG(ERROR) << "Deleting file " << file_name in DeleteFile()
[all …]
/aosp_15_r20/external/openthread/script/
H A Dupdate-makefiles.py44 "{}/{}".format(dir_path, file_name)[2:]
46 for file_name in file_names
47 if file_name.endswith(extension)
51 def read_txt_file(file_name): argument
52 … """Read the content of a text file with name `file_name` and return content as a list of lines"""
53 with open(file_name, 'r') as file:
58 def write_txt_file(file_name, lines): argument
59 """Write a text file with name `file_name` with the content given as a list of `lines`"""
60 with open(file_name, 'w') as file:
64 def update_build_file(file_name, start_string, end_string, new_list, search_string=None): argument
[all …]
/aosp_15_r20/external/federated-compute/fcp/base/
H A Dtracing_schema_generated.h114 std::string file_name{};
132 const flatbuffers::String *file_name() const { in file_name() function
143 verifier.VerifyString(file_name()) && in Verify()
159 void add_file_name(flatbuffers::Offset<flatbuffers::String> file_name) { in add_file_name()
160 fbb_.AddOffset(ResultExpectError::VT_FILE_NAME, file_name); in add_file_name()
179 flatbuffers::Offset<flatbuffers::String> file_name = 0,
183 builder_.add_file_name(file_name);
191 const char *file_name = nullptr,
194 auto file_name__ = file_name ? _fbb.CreateString(file_name) : 0;
209 std::string file_name{};
[all …]
/aosp_15_r20/external/cronet/build/util/
H A Dversion_test.py184 file_name = os.path.join(tmpdir, "version.h")
186 with open(file_name, "w") as f:
188 os.chmod(file_name, 0o644)
189 mtime = os.lstat(file_name).st_mtime
192 version.WriteIfChanged(file_name, contents, 0o644)
193 with open(file_name) as f:
195 self.assertNotEqual(mtime, os.lstat(file_name).st_mtime)
200 file_name = os.path.join(tmpdir, "version.h")
202 with open(file_name, "w") as f:
204 os.chmod(file_name, 0o644)
[all …]
/aosp_15_r20/external/angle/build/util/
H A Dversion_test.py184 file_name = os.path.join(tmpdir, "version.h")
186 with open(file_name, "w") as f:
188 os.chmod(file_name, 0o644)
189 mtime = os.lstat(file_name).st_mtime
192 version.WriteIfChanged(file_name, contents, 0o644)
193 with open(file_name) as f:
195 self.assertNotEqual(mtime, os.lstat(file_name).st_mtime)
200 file_name = os.path.join(tmpdir, "version.h")
202 with open(file_name, "w") as f:
204 os.chmod(file_name, 0o644)
[all …]
/aosp_15_r20/external/protobuf/src/google/protobuf/compiler/javamicro/
H A Djavamicro_params.h76 bool has_java_package(const std::string& file_name) const { in has_java_package() argument
77 return java_packages_.find(file_name) in has_java_package()
80 void set_java_package(const std::string& file_name, in set_java_package() argument
82 java_packages_[file_name] = java_package; in set_java_package()
84 const std::string& java_package(const std::string& file_name) const { in java_package() argument
87 itr = java_packages_.find(file_name); in java_package()
98 bool has_java_outer_classname(const std::string& file_name) const { in has_java_outer_classname() argument
99 return java_outer_classnames_.find(file_name) in has_java_outer_classname()
102 void set_java_outer_classname(const std::string& file_name, in set_java_outer_classname() argument
104 java_outer_classnames_[file_name] = java_outer_classname; in set_java_outer_classname()
[all …]
/aosp_15_r20/external/antlr/runtime/Perl5/lib/ANTLR/Runtime/
H A DANTLRFileStream.pm10 has 'file_name' => ( attribute in ANTLR::Runtime::ANTLRFileStream
20 my $file_name = $args->{file_name};
21 if (!defined $file_name) {
28 open $fh, "<:encoding($encoding)", $file_name
29 or croak "Can't open $file_name: $!";
32 open $fh, '<', $file_name
33 or croak "Can't open $file_name: $!";
49 my ($self, $file_name, $encoding) = @_;
51 if (!defined $file_name) {
57 open $fh, "<:encoding($encoding)", $file_name
[all …]

12345678910>>...123