Home
last modified time | relevance | path

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

12345678910>>...59

/external/antlr/runtime/Perl5/lib/ANTLR/Runtime/
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 …]
/external/tensorflow/tensorflow/core/kernels/
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 …]
/external/mbedtls/tests/scripts/
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 …]
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 …]
/external/cronet/base/i18n/
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 …]
Dfile_util_icu.h18 // Returns true if file_name does not have any illegal character. The input
20 BASE_I18N_EXPORT bool IsFilenameLegal(const std::u16string& file_name);
22 // Replaces characters in |file_name| that are illegal for file names with
23 // |replace_char|. |file_name| must not be a full or relative path, but just the
25 // trailing whitespace or periods in |file_name| is also replaced with the
33 // If |replace_char| is a whitespace or period and |file_name| contains no legal
35 // If |replace_char| is a whitespace or period and |file_name| contains no legal
49 FilePath::StringType* file_name,
58 // Calculates the canonical file-system representation of |file_name| base name.
59 // Modifies |file_name| in place. No-op if not on ChromeOS.
[all …]
/external/libtextclassifier/native/utils/base/
Dlogging.cc29 // Returns pointer to beginning of last /-separated token from file_name.
30 // file_name should be a pointer to a zero-terminated array of chars.
32 const char *JumpToBasename(const char *file_name) { in JumpToBasename() argument
33 if (file_name == nullptr) { in JumpToBasename()
38 const char *last_token_start = file_name; in JumpToBasename()
39 while (*file_name != '\0') { in JumpToBasename()
40 if (*file_name == '/') { in JumpToBasename()
42 // this position. Notice that if file_name is a valid zero-terminated in JumpToBasename()
43 // string, file_name + 1 is a valid pointer (there is at least one char in JumpToBasename()
44 // after address file_name, the zero terminator). in JumpToBasename()
[all …]
/external/icing/icing/text_classifier/lib3/utils/base/
Dlogging.cc27 // Returns pointer to beginning of last /-separated token from file_name.
28 // file_name should be a pointer to a zero-terminated array of chars.
30 const char *JumpToBasename(const char *file_name) { in JumpToBasename() argument
31 if (file_name == nullptr) { in JumpToBasename()
36 const char *last_token_start = file_name; in JumpToBasename()
37 while (*file_name != '\0') { in JumpToBasename()
38 if (*file_name == '/') { in JumpToBasename()
40 // this position. Notice that if file_name is a valid zero-terminated in JumpToBasename()
41 // string, file_name + 1 is a valid pointer (there is at least one char in JumpToBasename()
42 // after address file_name, the zero terminator). in JumpToBasename()
[all …]
/external/openthread/third_party/mbedtls/repo/tests/scripts/
Dset_psa_test_dependencies.py130 def systematic_dependencies(file_name, function_name, arguments): argument
152 if os.path.basename(file_name) == 'test_suite_psa_crypto_persistent_key.data' and \
162 def updated_dependencies(file_name, function_name, arguments, dependencies): argument
171 automatic = systematic_dependencies(file_name, function_name, arguments)
177 def keep_manual_dependencies(file_name, function_name, arguments): argument
192 def process_data_stanza(stanza, file_name, test_case_number): argument
208 .format(test_case_number, file_name))
211 .format(test_case_number, file_name))
214 if keep_manual_dependencies(file_name, function_name, arguments):
233 .format(test_case_number, file_name))
[all …]
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 …]
/external/openthread/script/
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 …]
/external/igt-gpu-tools/tests/
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 …]
/external/libtextclassifier/native/lang_id/common/lite_base/
Dcompact-logging.cc37 // Returns pointer to beginning of last /-separated token from file_name.
38 // file_name should be a pointer to a zero-terminated array of chars.
40 const char *JumpToBasename(const char *file_name) { in JumpToBasename() argument
41 if (file_name == nullptr) { in JumpToBasename()
46 const char *last_token_start = file_name; in JumpToBasename()
47 while (*file_name != '\0') { in JumpToBasename()
48 if (*file_name == '/') { in JumpToBasename()
50 // this position. Notice that if file_name is a valid zero-terminated in JumpToBasename()
51 // string, file_name + 1 is a valid pointer (there is at least one char in JumpToBasename()
52 // after address file_name, the zero terminator). in JumpToBasename()
[all …]
/external/icing/icing/legacy/index/
Dicing-mock-filesystem.h36 ON_CALL(*this, DeleteFile).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
37 return real_icing_filesystem_.DeleteFile(file_name); in IcingMockFilesystem()
49 ON_CALL(*this, FileExists).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
50 return real_icing_filesystem_.FileExists(file_name); in IcingMockFilesystem()
58 .WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
59 return real_icing_filesystem_.GetBasenameIndex(file_name); in IcingMockFilesystem()
62 ON_CALL(*this, GetBasename).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
63 return real_icing_filesystem_.GetBasename(file_name); in IcingMockFilesystem()
66 ON_CALL(*this, GetDirname).WillByDefault([this](const char *file_name) { in IcingMockFilesystem()
67 return real_icing_filesystem_.GetDirname(file_name); in IcingMockFilesystem()
[all …]
/external/ltp/include/
Dtst_cgroup.h180 #define SAFE_CG_HAS(cg, file_name) \ argument
181 safe_cg_has(__FILE__, __LINE__, (cg), (file_name))
185 const char *const file_name)
188 #define SAFE_CG_READ(cg, file_name, out, len) \ argument
190 (cg), (file_name), (out), (len))
194 const char *const file_name,
198 #define SAFE_CG_PRINTF(cg, file_name, fmt, ...) \ argument
200 (cg), (file_name), (fmt), __VA_ARGS__)
202 #define SAFE_CG_PRINT(cg, file_name, str) \ argument
203 safe_cg_printf(__FILE__, __LINE__, (cg), (file_name), "%s", (str))
[all …]
/external/protobuf/src/google/protobuf/compiler/javamicro/
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 …]
/external/angle/build/util/
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 …]
/external/libultrahdr/third_party/image_io/src/utils/
Dfile_utils.cc18 bool GetFileSize(const std::string& file_name, size_t* size) { in GetFileSize() argument
20 if (stat(file_name.c_str(), &stat_buf)) { in GetFileSize()
30 unique_ptr<ostream> OpenOutputFile(const std::string& file_name, in OpenOutputFile() argument
32 auto* file_stream = new fstream(file_name, std::ios::out | std::ios::binary); in OpenOutputFile()
37 message_handler->ReportMessage(Message::kStdLibError, file_name); in OpenOutputFile()
43 unique_ptr<istream> OpenInputFile(const std::string& file_name, in OpenInputFile() argument
45 auto* file_stream = new fstream(file_name, std::ios::in | std::ios::binary); in OpenInputFile()
50 message_handler->ReportMessage(Message::kStdLibError, file_name); in OpenInputFile()
56 std::shared_ptr<DataSegment> ReadEntireFile(const std::string& file_name, in ReadEntireFile() argument
60 if (GetFileSize(file_name, &buffer_size)) { in ReadEntireFile()
[all …]
/external/image_io/src/utils/
Dfile_utils.cc18 bool GetFileSize(const std::string& file_name, size_t* size) { in GetFileSize() argument
20 if (stat(file_name.c_str(), &stat_buf)) { in GetFileSize()
30 unique_ptr<ostream> OpenOutputFile(const std::string& file_name, in OpenOutputFile() argument
32 auto* file_stream = new fstream(file_name, std::ios::out | std::ios::binary); in OpenOutputFile()
37 message_handler->ReportMessage(Message::kStdLibError, file_name); in OpenOutputFile()
43 unique_ptr<istream> OpenInputFile(const std::string& file_name, in OpenInputFile() argument
45 auto* file_stream = new fstream(file_name, std::ios::in | std::ios::binary); in OpenInputFile()
50 message_handler->ReportMessage(Message::kStdLibError, file_name); in OpenInputFile()
56 std::shared_ptr<DataSegment> ReadEntireFile(const std::string& file_name, in ReadEntireFile() argument
60 if (GetFileSize(file_name, &buffer_size)) { in ReadEntireFile()
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_params.h95 bool has_java_package(const std::string& file_name) const { in has_java_package() argument
96 return java_packages_.find(file_name) in has_java_package()
99 void set_java_package(const std::string& file_name, in set_java_package() argument
101 java_packages_[file_name] = java_package; in set_java_package()
103 const std::string& java_package(const std::string& file_name) const { in java_package() argument
106 itr = java_packages_.find(file_name); in java_package()
117 bool has_java_outer_classname(const std::string& file_name) const { in has_java_outer_classname() argument
118 return java_outer_classnames_.find(file_name) in has_java_outer_classname()
121 void set_java_outer_classname(const std::string& file_name, in set_java_outer_classname() argument
123 java_outer_classnames_[file_name] = java_outer_classname; in set_java_outer_classname()
[all …]
/external/fonttools/Tests/ttx/
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 …]
/external/icing/icing/file/
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 …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_list.py15 def GetPersistentDeviceList(file_name): argument
19 file_name: the file name containing a list of devices.
23 if not os.path.isfile(file_name):
24 logger.warning("Device file %s doesn't exist.", file_name)
28 with open(file_name) as f:
37 'Error reading device file %s. Falling back to old format.', file_name)
40 with open(file_name) as f:
44 def WritePersistentDeviceList(file_name, device_list): argument
45 path = os.path.dirname(file_name)
52 with open(file_name, 'w') as f:
/external/libgav1/examples/
Dfile_reader_test_common.h37 const char* file_name) in FileReaderTestParameters()
38 : open_function(open_function), file_name(file_name) {} in FileReaderTestParameters()
46 const char* file_name = nullptr; member
59 void OpenReader(const char* file_name, in OpenReader() argument
61 file_name_ = test_utils::GetTestInputFilePath(file_name); in OpenReader()
82 OpenReader(GetParam().file_name, GetParam().open_function); in SetUp()
98 OpenReader(GetParam().file_name, GetParam().open_function); in SetUp()
113 file_name_ = test_utils::GetTestInputFilePath(GetParam().file_name); in SetUp()
122 FileReaderFactory::OpenFunction open_function, const char* file_name, in FileReaderTestWithTimeStampsParameters()
125 file_name(file_name), in FileReaderTestWithTimeStampsParameters()
[all …]
/external/webrtc/rtc_tools/
Dvideo_file_writer.cc27 const std::string& file_name, in WriteVideoToFile() argument
31 FILE* output_file = fopen(file_name.c_str(), "wb"); in WriteVideoToFile()
33 RTC_LOG(LS_ERROR) << "Could not open file for writing: " << file_name; in WriteVideoToFile()
48 << "\nWhile trying to create: " << file_name; in WriteVideoToFile()
66 RTC_LOG(LS_ERROR) << "Error writing to file " << file_name; in WriteVideoToFile()
74 const std::string& file_name, in WriteVideoToFile() argument
76 WriteVideoToFile(video, file_name, fps, in WriteVideoToFile()
77 /*isY4m=*/absl::EndsWith(file_name, ".y4m")); in WriteVideoToFile()
81 const std::string& file_name, in WriteY4mVideoToFile() argument
83 WriteVideoToFile(video, file_name, fps, /*isY4m=*/true); in WriteY4mVideoToFile()
[all …]

12345678910>>...59