Home
last modified time | relevance | path

Searched refs:file_name (Results 1 – 25 of 599) sorted by relevance

12345678910>>...24

/external/tensorflow/tensorflow/core/kernels/
Dspectrogram_test_utils.cc31 bool ReadWaveFileToVector(const string& file_name, std::vector<double>* data) { in ReadWaveFileToVector() argument
33 if (!ReadFileToString(Env::Default(), file_name, &wav_data).ok()) { in ReadWaveFileToVector()
34 LOG(ERROR) << "Wave file read failed for " << file_name; in ReadWaveFileToVector()
56 const string& file_name, int row_length, in ReadRawFloatFileToComplexVector() argument
60 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadRawFloatFileToComplexVector()
61 LOG(ERROR) << "Failed to open file " << file_name; in ReadRawFloatFileToComplexVector()
106 const string& file_name, in ReadCSVFileToComplexVectorOrDie() argument
110 if (!ReadFileToString(Env::Default(), file_name, &data_string).ok()) { in ReadCSVFileToComplexVectorOrDie()
111 LOG(FATAL) << "Failed to open file " << file_name; in ReadCSVFileToComplexVectorOrDie()
170 bool WriteDoubleVectorToFile(const string& file_name, in WriteDoubleVectorToFile() argument
[all …]
Dspectrogram_test_utils.h29 bool ReadWaveFileToVector(const string& file_name, std::vector<double>* data);
35 const string& file_name, int row_length,
40 const string& file_name,
50 bool WriteDoubleVectorToFile(const string& file_name,
55 bool WriteFloatVectorToFile(const string& file_name,
60 bool WriteDoubleArrayToFile(const string& file_name, int size,
65 bool WriteFloatArrayToFile(const string& file_name, int size,
71 const string& file_name,
/external/antlr/runtime/Perl5/lib/ANTLR/Runtime/
DANTLRFileStream.pm20 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
58 or croak "Can't open $file_name: $!";
[all …]
/external/tensorflow/tensorflow/contrib/ignite/python/tests/
Digfs_test.py42 file_name = "igfs:///test_create_file/1"
43 self.assertFalse(gfile.Exists(file_name))
45 with gfile.Open(file_name, mode="w") as w:
48 self.assertTrue(gfile.Exists(file_name))
55 file_name = "igfs:///test_write_read_file/1"
57 self.assertFalse(gfile.Exists(file_name))
59 with gfile.Open(file_name, mode="w") as w:
63 with gfile.Open(file_name, mode="r") as r:
76 file_name = "igfs:///test_delete_recursively/1"
78 self.assertFalse(gfile.Exists(file_name))
[all …]
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_params.h76 bool has_java_package(const 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 string& file_name, in set_java_package() argument
82 java_packages_[file_name] = java_package; in set_java_package()
84 const string& java_package(const 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 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 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/tensorflow/tensorflow/contrib/ignite/kernels/igfs/
Digfs.cc77 Status IGFS::NewRandomAccessFile(const string &file_name, in NewRandomAccessFile() argument
80 string path = TranslateName(file_name); in NewRandomAccessFile()
92 << file_name << "]"; in NewRandomAccessFile()
97 Status IGFS::NewWritableFile(const string &file_name, in NewWritableFile() argument
100 string path = TranslateName(file_name); in NewWritableFile()
120 << file_name << "]"; in NewWritableFile()
125 Status IGFS::NewAppendableFile(const string &file_name, in NewAppendableFile() argument
133 TF_RETURN_IF_ERROR(client->Exists(&exists_response, file_name)); in NewAppendableFile()
137 TF_RETURN_IF_ERROR(client->Delete(&del_response, file_name, false)); in NewAppendableFile()
141 TF_RETURN_IF_ERROR(client->OpenAppend(&open_append_resp, file_name)); in NewAppendableFile()
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_params.h97 bool has_java_package(const string& file_name) const { in has_java_package() argument
98 return java_packages_.find(file_name) in has_java_package()
101 void set_java_package(const string& file_name, in set_java_package() argument
103 java_packages_[file_name] = java_package; in set_java_package()
105 const string& java_package(const string& file_name) const { in java_package() argument
108 itr = java_packages_.find(file_name); in java_package()
119 bool has_java_outer_classname(const string& file_name) const { in has_java_outer_classname() argument
120 return java_outer_classnames_.find(file_name) in has_java_outer_classname()
123 void set_java_outer_classname(const string& file_name, in set_java_outer_classname() argument
125 java_outer_classnames_[file_name] = java_outer_classname; in set_java_outer_classname()
[all …]
/external/fonttools/Tests/ttx/
Dttx_test.py53 def temp_font(self, font_path, file_name): argument
55 temppath = os.path.join(self.tempdir, file_name)
82 file_name = "TestOTF.otf"
83 font_path = self.getpath(file_name)
84 temp_path = self.temp_font(font_path, file_name)
90 os.path.join(self.tempdir, file_name),
91 os.path.join(self.tempdir, file_name.split(".")[0] + ".ttx"),
96 file_name = "TestTTF.ttf"
97 font_path = self.getpath(file_name)
98 temp_path = self.temp_font(font_path, file_name)
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/
DClassParser.java48 private final String file_name; field in ClassParser
70 public ClassParser(final InputStream inputStream, final String file_name) { in ClassParser() argument
71 this.file_name = file_name; in ClassParser()
87 public ClassParser(final String file_name) { in ClassParser() argument
89 this.file_name = file_name; in ClassParser()
99 public ClassParser(final String zip_file, final String file_name) { in ClassParser() argument
103 this.file_name = file_name; in ClassParser()
124 final ZipEntry entry = zip.getEntry(file_name); in parse()
127 throw new IOException("File " + file_name + " not found"); in parse()
134 file_name), BUFSIZE)); in parse()
[all …]
/external/libtextclassifier/utils/base/
Dlogging.cc32 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()
45 last_token_start = file_name + 1; in JumpToBasename()
47 file_name++; in JumpToBasename()
53 LogMessage::LogMessage(LogSeverity severity, const char *file_name, in LogMessage() argument
56 stream_ << JumpToBasename(file_name) << ":" << line_number << ": "; in LogMessage()
/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/elfutils/libdwfl/
Ddwfl_build_id_find_elf.c42 __libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug, char **file_name, in __libdwfl_open_by_build_id() argument
100 if (*file_name != NULL) in __libdwfl_open_by_build_id()
101 free (*file_name); in __libdwfl_open_by_build_id()
102 *file_name = realpath (name, NULL); in __libdwfl_open_by_build_id()
103 if (*file_name == NULL) in __libdwfl_open_by_build_id()
105 *file_name = name; in __libdwfl_open_by_build_id()
126 __libdwfl_open_mod_by_build_id (Dwfl_Module *mod, bool debug, char **file_name) in __libdwfl_open_mod_by_build_id() argument
137 return __libdwfl_open_by_build_id (mod, debug, file_name, id_len, id); in __libdwfl_open_mod_by_build_id()
145 char **file_name, Elf **elfp) in dwfl_build_id_find_elf() argument
160 *file_name = strdup (executable); in dwfl_build_id_find_elf()
[all …]
Doffline.c101 const char *file_name, int fd, Elf *elf);
103 const char *file_name, int fd, Elf *elf,
110 process_file (Dwfl *dwfl, const char *name, const char *file_name, int fd, in process_file() argument
122 return process_elf (dwfl, name, file_name, fd, elf); in process_file()
125 return process_archive (dwfl, name, file_name, fd, elf, predicate); in process_file()
131 process_elf (Dwfl *dwfl, const char *name, const char *file_name, int fd, in process_elf() argument
134 Dwfl_Module *mod = __libdwfl_report_elf (dwfl, name, file_name, fd, elf, in process_elf()
167 process_archive_member (Dwfl *dwfl, const char *name, const char *file_name, in process_archive_member() argument
192 if (unlikely (asprintf (&member_name, "%s(%s)", file_name, h->ar_name) < 0)) in process_archive_member()
245 process_archive (Dwfl *dwfl, const char *name, const char *file_name, int fd, in process_archive() argument
[all …]
/external/libtextclassifier/lang_id/common/lite_base/
Dcompact-logging.cc40 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()
53 last_token_start = file_name + 1; in JumpToBasename()
55 file_name++; in JumpToBasename()
61 LogMessage::LogMessage(LogSeverity severity, const char *file_name, in LogMessage() argument
64 stream_ << JumpToBasename(file_name) << ":" << line_number << ": "; in LogMessage()
/external/compiler-rt/lib/asan/scripts/
Dsymbolize.py35 def postprocess_file_name(file_name, paths_to_cut): argument
37 file_name = re.sub(".*" + path_to_cut, "", file_name)
38 file_name = re.sub(".*asan_[a-z_]*.(cc|h):[0-9]*", "[asan_rtl]", file_name)
39 file_name = re.sub(".*crtstuff.c:0", "???:0", file_name)
40 return file_name
76 file_name = p.stdout.readline().rstrip()
79 file_name = postprocess_file_name(file_name, paths_to_cut)
80 frames.append((function_name, file_name))
/external/curl/src/
Dtool_doswin.c93 static SANITIZEcode msdosify(char **const sanitized, const char *file_name,
97 const char *file_name,
136 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, in sanitize_file_name() argument
149 if(!file_name) in sanitize_file_name()
154 if(file_name[0] == '\\' && file_name[1] == '\\') in sanitize_file_name()
167 len = strlen(file_name); in sanitize_file_name()
170 truncate_dryrun(file_name, max_sanitized_len)) in sanitize_file_name()
180 strncpy(target, file_name, len); in sanitize_file_name()
336 SANITIZEcode msdosify(char **const sanitized, const char *file_name, in msdosify() argument
344 const char *s = file_name; in msdosify()
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_list.py14 def GetPersistentDeviceList(file_name): argument
22 if not os.path.isfile(file_name):
23 logger.warning("Device file %s doesn't exist.", file_name)
27 with open(file_name) as f:
36 'Error reading device file %s. Falling back to old format.', file_name)
39 with open(file_name) as f:
43 def WritePersistentDeviceList(file_name, device_list): argument
44 path = os.path.dirname(file_name)
51 with open(file_name, 'w') as f:
/external/ltp/testcases/kernel/fs/fs_perms/
Dfs_perms.c68 static void testsetup(const char *file_name, int flag, mode_t mode, in testsetup() argument
73 file = fopen(file_name, "w"); in testsetup()
77 "Could not create test file %s.", file_name); in testsetup()
94 if (chmod(file_name, mode)) in testsetup()
96 "Could not chmod test file %s.", file_name); in testsetup()
98 if (chown(file_name, user_id, group_id)) in testsetup()
100 "Could not chown test file %s.", file_name); in testsetup()
106 static int testfperm(const char *file_name, int flag, int user_id, in testfperm() argument
130 execl(file_name, file_name, NULL); in testfperm()
132 execlp(file_name, "test", NULL); in testfperm()
[all …]
/external/libchrome/base/
Dlocation.cc21 Location::Location(const char* file_name, const void* program_counter) in Location() argument
22 : file_name_(file_name), program_counter_(program_counter) {} in Location()
25 const char* file_name, in Location() argument
29 file_name_(file_name), in Location()
61 NOINLINE Location Location::CreateFromHere(const char* file_name) { in CreateFromHere() argument
62 return Location(file_name, RETURN_ADDRESS()); in CreateFromHere()
67 const char* file_name, in CreateFromHere() argument
69 return Location(function_name, file_name, line_number, RETURN_ADDRESS()); in CreateFromHere()
/external/autotest/server/cros/chaos_lib/
Dchaos_analyzer.py37 for file_name in file_names:
38 if file_name.endswith('.trc'):
39 basename = os.path.basename(file_name)
42 self._traces.append(os.path.join(dir_name, file_name))
49 for file_name in file_names:
50 if file_name == self.MESSAGES_FILE_NAME:
51 self._message_log = os.path.join(root, file_name)
53 for file_name in file_names:
54 if file_name == self.NET_LOG_FILE_NAME:
55 self._net_log = os.path.join(root, file_name)
[all …]
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Drtp_file_source.cc29 RtpFileSource* RtpFileSource::Create(const std::string& file_name) { in Create() argument
31 RTC_CHECK(source->OpenFile(file_name)); in Create()
35 bool RtpFileSource::ValidRtpDump(const std::string& file_name) { in ValidRtpDump() argument
37 RtpFileReader::Create(RtpFileReader::kRtpDump, file_name)); in ValidRtpDump()
41 bool RtpFileSource::ValidPcap(const std::string& file_name) { in ValidPcap() argument
43 RtpFileReader::Create(RtpFileReader::kPcap, file_name)); in ValidPcap()
89 bool RtpFileSource::OpenFile(const std::string& file_name) { in OpenFile() argument
90 rtp_reader_.reset(RtpFileReader::Create(RtpFileReader::kRtpDump, file_name)); in OpenFile()
93 rtp_reader_.reset(RtpFileReader::Create(RtpFileReader::kPcap, file_name)); in OpenFile()
/external/protobuf/src/google/protobuf/
Dsource_context.pb.cc200 this->file_name().data(), this->file_name().length(), in MergePartialFromCodedStream()
235 if (this->file_name().size() > 0) { in SerializeWithCachedSizes()
237 this->file_name().data(), this->file_name().length(), in SerializeWithCachedSizes()
241 1, this->file_name(), output); in SerializeWithCachedSizes()
251 if (this->file_name().size() > 0) { in SerializeWithCachedSizesToArray()
253 this->file_name().data(), this->file_name().length(), in SerializeWithCachedSizesToArray()
258 1, this->file_name(), target); in SerializeWithCachedSizesToArray()
270 if (this->file_name().size() > 0) { in ByteSize()
273 this->file_name()); in ByteSize()
300 if (from.file_name().size() > 0) { in MergeFrom()
[all …]
/external/ltp/testcases/kernel/syscalls/chown/
Dchown02.c123 char *file_name; /* ptr. for test file name */ in main() local
135 file_name = test_cases[i].pathname; in main()
144 TEST(CHOWN(cleanup, file_name, user_id, group_id)); in main()
148 "chown(%s, ..) failed", file_name); in main()
155 if (stat(file_name, &stat_buf) < 0) { in main()
158 file_name, TEST_ERRNO); in main()
169 "%d", file_name, in main()
183 "%#o", file_name, NEW_PERMS1, in main()
190 "%#o", file_name, in main()
195 file_name); in main()
/external/icu/icu4c/source/tools/
Dicu-file-utf8-check.py52 def check_file(file_name, is_source): argument
53 f = open(file_name, 'r')
61 print "Error: %s is a source code file but contains non-utf-8 bytes." % file_name
64 if not (file_name.endswith(".txt") or file_name.endswith(".sln")
65 or file_name.endswith(".targets")
66 or ".vcxproj" in file_name):
67 print "Warning: file %s contains a UTF-8 BOM: " % file_name
/external/vboot_reference/tests/
Drsa_verify_benchmark.c22 char file_name[FILE_NAME_SIZE]; in SpeedTestAlgorithm() local
37 snprintf(file_name, FILE_NAME_SIZE, "testkeys/key_rsa%d.keyb", key_size); in SpeedTestAlgorithm()
38 key = RSAPublicKeyFromFile(file_name); in SpeedTestAlgorithm()
40 VBDEBUG(("Couldn't read RSA Public key from file: %s\n", file_name)); in SpeedTestAlgorithm()
46 snprintf(file_name, FILE_NAME_SIZE, "testcases/test_file.%s.digest", in SpeedTestAlgorithm()
48 digest = BufferFromFile(file_name, &digest_len); in SpeedTestAlgorithm()
56 snprintf(file_name, FILE_NAME_SIZE, "testcases/test_file.rsa%d_%s.sig", in SpeedTestAlgorithm()
58 signature = BufferFromFile(file_name, &sig_len); in SpeedTestAlgorithm()

12345678910>>...24