/external/antlr/runtime/Perl5/lib/ANTLR/Runtime/ |
D | ANTLRFileStream.pm | 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 58 or croak "Can't open $file_name: $!"; [all …]
|
/external/tensorflow/tensorflow/core/kernels/ |
D | spectrogram_test_utils.cc | 32 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 …]
|
D | spectrogram_test_utils.h | 29 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/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_params.h | 76 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/igt-gpu-tools/tests/ |
D | kms_dp_dsc.c | 78 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/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_params.h | 95 bool has_java_package(const 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 string& file_name, in set_java_package() argument 101 java_packages_[file_name] = java_package; in set_java_package() 103 const string& java_package(const 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 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 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/icing/icing/legacy/index/ |
D | icing-mock-filesystem.h | 37 ON_CALL(*this, DeleteFile).WillByDefault([this](const char *file_name) { in IcingMockFilesystem() 38 return real_icing_filesystem_.DeleteFile(file_name); in IcingMockFilesystem() 50 ON_CALL(*this, FileExists).WillByDefault([this](const char *file_name) { in IcingMockFilesystem() 51 return real_icing_filesystem_.FileExists(file_name); in IcingMockFilesystem() 59 .WillByDefault([this](const char *file_name) { in IcingMockFilesystem() 60 return real_icing_filesystem_.GetBasenameIndex(file_name); in IcingMockFilesystem() 63 ON_CALL(*this, GetBasename).WillByDefault([this](const char *file_name) { in IcingMockFilesystem() 64 return real_icing_filesystem_.GetBasename(file_name); in IcingMockFilesystem() 67 ON_CALL(*this, GetDirname).WillByDefault([this](const char *file_name) { in IcingMockFilesystem() 68 return real_icing_filesystem_.GetDirname(file_name); in IcingMockFilesystem() [all …]
|
D | icing-filesystem.cc | 116 void LogOpenError(const char *desc1, const char *file_name, const char *desc2, in LogOpenError() argument 119 "%s%s%s%s", 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() 183 bool IcingFilesystem::DeleteFile(const char *file_name) const { in DeleteFile() 184 ICING_VLOG(1) << IcingStringUtil::StringPrintf("Deleting file %s", file_name); in DeleteFile() 185 int ret = unlink(file_name); in DeleteFile() 189 "Deleting file %s failed: %s", file_name, strerror(errno)); in DeleteFile() 242 bool IcingFilesystem::FileExists(const char *file_name) const { in FileExists() [all …]
|
/external/libtextclassifier/native/utils/base/ |
D | logging.cc | 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() 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/icing/icing/text_classifier/lib3/utils/base/ |
D | logging.cc | 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() 43 last_token_start = file_name + 1; in JumpToBasename() 45 file_name++; in JumpToBasename() 51 LogMessage::LogMessage(LogSeverity severity, const char *file_name, in LogMessage() argument 54 stream_ << JumpToBasename(file_name) << ":" << line_number << ": "; in LogMessage()
|
/external/libtextclassifier/native/lang_id/common/lite_base/ |
D | compact-logging.cc | 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() 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/image_io/src/utils/ |
D | file_utils.cc | 18 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/webrtc/rtc_tools/ |
D | video_file_writer.cc | 27 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 …]
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/classfile/ |
D | ClassParser.java | 48 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/fonttools/Tests/ttx/ |
D | ttx_test.py | 54 def temp_font(self, font_path, file_name): argument 56 temppath = os.path.join(self.tempdir, file_name) 83 file_name = "TestOTF.otf" 84 font_path = self.getpath(file_name) 85 temp_path = self.temp_font(font_path, file_name) 91 os.path.join(self.tempdir, file_name), 92 os.path.join(self.tempdir, file_name.split(".")[0] + ".ttx"), 97 file_name = "TestTTF.ttf" 98 font_path = self.getpath(file_name) 99 temp_path = self.temp_font(font_path, file_name) [all …]
|
/external/libchrome/base/i18n/ |
D | file_util_icu.cc | 103 bool IsFilenameLegal(const string16& file_name) { in IsFilenameLegal() argument 104 return IllegalCharacters::GetInstance()->IsAllowedName(file_name); in IsFilenameLegal() 107 void ReplaceIllegalCharactersInPath(FilePath::StringType* file_name, in ReplaceIllegalCharactersInPath() argument 115 while (cursor < static_cast<int>(file_name->size())) { in ReplaceIllegalCharactersInPath() 120 U16_NEXT(file_name->data(), cursor, static_cast<int>(file_name->length()), in ReplaceIllegalCharactersInPath() 126 U8_NEXT(file_name->data(), cursor, static_cast<int>(file_name->length()), in ReplaceIllegalCharactersInPath() 133 ((char_begin == 0 || cursor == static_cast<int>(file_name->length())) && in ReplaceIllegalCharactersInPath() 135 file_name->replace(char_begin, cursor - char_begin, 1, replace_char); in ReplaceIllegalCharactersInPath() 167 void NormalizeFileNameEncoding(FilePath* file_name) { in NormalizeFileNameEncoding() argument 170 if (ConvertToUtf8AndNormalize(file_name->BaseName().value(), kCodepageUTF8, in NormalizeFileNameEncoding() [all …]
|
/external/elfutils/libdwfl/ |
D | dwfl_build_id_find_elf.c | 42 __libdwfl_open_by_build_id (Dwfl_Module *mod, bool debug, char **file_name, in __libdwfl_open_by_build_id() argument 103 if (*file_name != NULL) in __libdwfl_open_by_build_id() 104 free (*file_name); in __libdwfl_open_by_build_id() 105 *file_name = realpath (name, NULL); in __libdwfl_open_by_build_id() 106 if (*file_name == NULL) in __libdwfl_open_by_build_id() 108 *file_name = name; in __libdwfl_open_by_build_id() 129 __libdwfl_open_mod_by_build_id (Dwfl_Module *mod, bool debug, char **file_name) in __libdwfl_open_mod_by_build_id() argument 140 return __libdwfl_open_by_build_id (mod, debug, file_name, id_len, id); in __libdwfl_open_mod_by_build_id() 148 char **file_name, Elf **elfp) in dwfl_build_id_find_elf() argument 163 *file_name = strdup (executable); in dwfl_build_id_find_elf() [all …]
|
/external/icing/icing/file/ |
D | mock-filesystem.h | 34 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 …]
|
D | filesystem.cc | 114 void LogOpenError(const char* desc1, const char* file_name, const char* desc2, in LogOpenError() argument 117 "%s%s%s%s", desc1, file_name, desc2, strerror(errnum)); in LogOpenError() 139 std::string file_name(p->d_name); in ListDirectoryInternal() local 140 if (file_name == "." || file_name == ".." || in ListDirectoryInternal() 141 exclude.find(file_name) != exclude.end()) { in ListDirectoryInternal() 181 bool Filesystem::DeleteFile(const char* file_name) const { in DeleteFile() 182 ICING_VLOG(1) << IcingStringUtil::StringPrintf("Deleting file %s", file_name); in DeleteFile() 183 int ret = unlink(file_name); in DeleteFile() 186 "Deleting file %s failed: %s", file_name, strerror(errno)); in DeleteFile() 240 bool Filesystem::FileExists(const char* file_name) const { in FileExists() [all …]
|
/external/compiler-rt/lib/asan/scripts/ |
D | symbolize.py | 35 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/chromium-trace/catapult/devil/devil/android/ |
D | device_list.py | 15 def GetPersistentDeviceList(file_name): argument 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/ltp/testcases/kernel/fs/fs_perms/ |
D | fs_perms.c | 68 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/curl/src/ |
D | tool_doswin.c | 67 static SANITIZEcode msdosify(char **const sanitized, const char *file_name, 71 const char *file_name, 110 SANITIZEcode sanitize_file_name(char **const sanitized, const char *file_name, in sanitize_file_name() argument 123 if(!file_name) in sanitize_file_name() 128 if(file_name[0] == '\\' && file_name[1] == '\\') in sanitize_file_name() 141 len = strlen(file_name); in sanitize_file_name() 144 truncate_dryrun(file_name, max_sanitized_len)) in sanitize_file_name() 154 strncpy(target, file_name, len); in sanitize_file_name() 310 SANITIZEcode msdosify(char **const sanitized, const char *file_name, in msdosify() argument 318 const char *s = file_name; in msdosify() [all …]
|
/external/rust/crates/protobuf/src/well_known_types/ |
D | source_context.rs | 26 pub file_name: ::std::string::String, field 49 &self.file_name in get_file_name() 52 self.file_name.clear(); in clear_file_name() 57 self.file_name = v; in set_file_name() 63 &mut self.file_name in mut_file_name() 68 ::std::mem::replace(&mut self.file_name, ::std::string::String::new()) in take_file_name() 82 … crate::rt::read_singular_proto3_string_into(wire_type, is, &mut self.file_name)?; in merge_from() 96 if !self.file_name.is_empty() { in compute_size() 97 my_size += crate::rt::string_size(1, &self.file_name); in compute_size() 105 if !self.file_name.is_empty() { in write_to_with_cached_sizes() [all …]
|
/external/libchrome/base/ |
D | location.cc | 21 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()
|