/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_file.cc | 190 : file_(file), in FileGenerator() 200 for (int i = 0; i < file_->message_type_count(); ++i) { in FileGenerator() 202 generator_factory_->NewMessageGenerator(file_->message_type(i))); in FileGenerator() 204 for (int i = 0; i < file_->extension_count(); ++i) { in FileGenerator() 206 generator_factory_->NewExtensionGenerator(file_->extension(i))); in FileGenerator() 217 if (name_resolver_->HasConflictingClassName(file_, classname_, in Validate() 219 error->assign(file_->name()); in Validate() 234 file_, classname_, NameEquality::EQUAL_IGNORE_CASE)) { in Validate() 236 << file_->name() << ": The file's outer class name, \"" << classname_ in Validate() 245 if (file_->options().optimize_for() == FileOptions::LITE_RUNTIME && in Validate() [all …]
|
D | java_shared_code_generator.cc | 53 : name_resolver_(new ClassNameResolver), file_(file), options_(options) {} in SharedCodeGenerator() 60 std::string java_package = FileJavaPackage(file_); in Generate() 63 if (HasDescriptorMethods(file_, options_.enforce_lite)) { in Generate() 65 std::string classname = name_resolver_->GetDescriptorClassName(file_); in Generate() 81 "filename", file_->name()); in Generate() 96 printer->Annotate("classname", file_->name()); in Generate() 130 file_->CopyTo(&file_proto); in GenerateDescriptors() 163 for (int i = 0; i < file_->dependency_count(); i++) { in GenerateDescriptors() 164 std::string filename = file_->dependency(i)->name(); in GenerateDescriptors() 165 std::string package = FileJavaPackage(file_->dependency(i)); in GenerateDescriptors() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 2556 FileDescriptorProto file_; member in google::protobuf::compiler::__anon72fcef8f0111::SourceInfoTest 2563 if (!parser_->Parse(input_.get(), &file_)) { in Parse() 2567 const SourceCodeInfo& source_info = file_.source_code_info(); in Parse() 2573 if (!FollowPath(file_, location.path().begin(), location.path().end(), in Parse() 2782 EXPECT_TRUE(HasSpan('a', 'q', file_)); in TEST_F() 2783 EXPECT_TRUE(HasSpan('b', 'c', file_, "package")); in TEST_F() 2784 EXPECT_TRUE(HasSpan('d', 'e', file_, "dependency", 0)); in TEST_F() 2785 EXPECT_TRUE(HasSpan('f', 'h', file_, "dependency", 1)); in TEST_F() 2786 EXPECT_TRUE(HasSpan('j', 'm', file_, "dependency", 2)); in TEST_F() 2787 EXPECT_TRUE(HasSpan('k', 'l', file_, "public_dependency", 0)); in TEST_F() [all …]
|
/third_party/flutter/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | file_input_stream.cc | 29 : file_(NULL), in FileInputStream() 47 if (file_) { in Close() 48 fclose(file_); in Close() 51 file_ = NULL; in Close() 65 if (!file_) { in Read() 71 if (feof(file_)) { in Read() 78 size_t length = fread(&value, 1, 1, file_); in Read() 89 if (!file_) { in Read() 95 if (feof(file_)) { in Read() 105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read() [all …]
|
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/port/ |
D | file_input_stream.cc | 29 : file_(NULL), in FileInputStream() 47 if (file_) { in Close() 48 fclose(file_); in Close() 51 file_ = NULL; in Close() 65 if (!file_) { in Read() 71 if (feof(file_)) { in Read() 78 size_t length = fread(&value, 1, 1, file_); in Read() 89 if (!file_) { in Read() 95 if (feof(file_)) { in Read() 105 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_reflection_class.cc | 57 file_(file) { in ReflectionClassGenerator() 74 if (file_->extension_count() > 0) { in Generate() 80 "file_name", file_->name()); in Generate() 82 for (int i = 0; i < file_->extension_count(); i++) { in Generate() 84 CreateFieldGenerator(file_->extension(i), -1, this->options())); in Generate() 94 if (file_->enum_type_count() > 0) { in Generate() 96 for (int i = 0; i < file_->enum_type_count(); i++) { in Generate() 97 EnumGenerator enumGenerator(file_->enum_type(i), this->options()); in Generate() 105 if (file_->message_type_count() > 0) { in Generate() 107 for (int i = 0; i < file_->message_type_count(); i++) { in Generate() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_file.cc | 96 : file_(file), options_(options), scc_analyzer_(options) { in FileGenerator() 100 variables_["tablename"] = UniqueName("TableStruct", file_, options_); in FileGenerator() 102 UniqueName("file_level_metadata", file_, options_); in FileGenerator() 103 variables_["desc_table"] = DescriptorTableName(file_, options_); in FileGenerator() 105 UniqueName("file_level_enum_descriptors", file_, options_); in FileGenerator() 107 UniqueName("file_level_service_descriptors", file_, options_); in FileGenerator() 108 variables_["filename"] = file_->name(); in FileGenerator() 109 variables_["package_ns"] = Namespace(file_, options); in FileGenerator() 129 if (HasGenericServices(file_, options_)) { in FileGenerator() 157 if (file_->name() != "net/proto2/compiler/proto/plugin.proto" && in GenerateMacroUndefs() [all …]
|
/third_party/gn/src/base/files/ |
D | file_win.cc | 24 return file_.IsValid(); in IsValid() 28 return file_.Get(); in GetPlatformFile() 32 return file_.Take(); in TakePlatformFile() 36 if (!file_.IsValid()) in Close() 39 file_.Close(); in Close() 48 if (!SetFilePointerEx(file_.Get(), distance, &res, move_method)) in Seek() 66 if (::ReadFile(file_.Get(), data, size, &bytes_read, &overlapped)) in Read() 80 if (::ReadFile(file_.Get(), data, size, &bytes_read, NULL)) in ReadAtCurrentPos() 109 if (::WriteFile(file_.Get(), data, size, &bytes_written, &overlapped)) in Write() 121 if (::WriteFile(file_.Get(), data, size, &bytes_written, NULL)) in WriteAtCurrentPos() [all …]
|
D | file_posix.cc | 122 return file_.is_valid(); in IsValid() 126 return file_.get(); in GetPlatformFile() 130 return file_.release(); in TakePlatformFile() 137 file_.reset(); in Close() 144 return lseek(file_.get(), static_cast<off_t>(offset), in Seek() 156 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, size - bytes_read, in Read() 175 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos() 187 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); in ReadNoBestEffort() 195 return HANDLE_EINTR(read(file_.get(), data, size)); in ReadAtCurrentPosNoBestEffort() 199 if (IsOpenAppend(file_.get())) in Write() [all …]
|
/third_party/ninja/src/ |
D | deps_log.cc | 54 assert(!file_); in OpenForWrite() 117 if (fwrite(&size, 4, 1, file_) < 1) in RecordDeps() 120 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps() 123 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps() 126 if (fwrite(&mtime_part, 4, 1, file_) < 1) in RecordDeps() 130 if (fwrite(&id, 4, 1, file_) < 1) in RecordDeps() 133 if (fflush(file_) != 0) in RecordDeps() 147 if (file_) in Close() 148 fclose(file_); in Close() 149 file_ = NULL; in Close() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 301 Generator::Generator() : file_(nullptr) {} in Generator() 337 file_ = file; in Generate() 349 file_->CopyTo(&fdp); in Generate() 358 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate() 396 for (int i = 0; i < file_->dependency_count(); ++i) { in PrintImports() 397 const std::string& filename = file_->dependency(i)->name(); in PrintImports() 424 CopyPublicDependenciesAliases(module_alias, file_->dependency(i)); in PrintImports() 429 for (int i = 0; i < file_->public_dependency_count(); ++i) { in PrintImports() 430 std::string module_name = ModuleName(file_->public_dependency(i)->name()); in PrintImports() 440 m["name"] = file_->name(); in PrintFileDescriptor() [all …]
|
/third_party/gn/src/gn/ |
D | location.cc | 16 : file_(file), line_number_(line_number), column_number_(column_number) {} in Location() 19 return (file_ == other.file_ && line_number_ == other.line_number_ && in operator ==() 28 DCHECK(file_ == other.file_); in operator <() 34 DCHECK(file_ == other.file_); in operator <=() 40 if (!file_) in Describe() 44 if (file_->friendly_name().empty()) in Describe() 45 ret = file_->name().value(); in Describe() 47 ret = file_->friendly_name(); in Describe()
|
D | c_include_iterator.cc | 124 : input_file_(input), file_(input->contents()) {} in CIncludeIterator() 158 if (offset_ == file_.size()) in GetNextLine() 162 while (offset_ < file_.size() && file_[offset_] != '\n') in GetNextLine() 166 *line = file_.substr(begin, offset_ - begin); in GetNextLine() 170 if (offset_ < file_.size()) in GetNextLine()
|
D | file_writer.cc | 34 file_ = base::win::ScopedHandle(::CreateFile( in Create() 38 valid_ = file_.IsValid(); in Create() 51 ::WriteFile(file_.Get(), str.data(), str.size(), &written, nullptr); in Write() 68 HANDLE handle = file_.Take(); in Close()
|
/third_party/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_file.cc | 189 : file_(file), in FileGenerator() 193 for (int i = 0; i < file_->enum_type_count(); i++) { in FileGenerator() 194 EnumGenerator *generator = new EnumGenerator(file_->enum_type(i)); in FileGenerator() 197 for (int i = 0; i < file_->message_type_count(); i++) { in FileGenerator() 199 new MessageGenerator(root_class_name_, file_->message_type(i), options_); in FileGenerator() 202 for (int i = 0; i < file_->extension_count(); i++) { in FileGenerator() 204 new ExtensionGenerator(root_class_name_, file_->extension(i)); in FileGenerator() 248 for (int i = 0; i < file_->public_dependency_count(); i++) { in GenerateHeader() 249 import_writer.AddFile(file_->public_dependency(i), header_extension); in GenerateHeader() 346 if (FileContainsEnums(file_)) { in GenerateSource() [all …]
|
/third_party/openh264/test/utils/ |
D | FileInputStream.h | 10 file_.open (fileName, std::ios_base::in | std::ios_base::binary); in Open() 11 return file_.is_open(); in Open() 14 if (!file_.good()) { in read() 17 file_.read (static_cast<char*> (ptr), len); in read() 18 return (int) file_.gcount(); in read() 21 std::ifstream file_;
|
/third_party/cef/libcef/browser/ |
D | stream_impl.cc | 72 : close_(close), file_(file) {} in CefFileReader() 77 base::CloseFile(file_); in ~CefFileReader() 82 return fread(ptr, size, n, file_); in Read() 88 return _fseeki64(file_, offset, whence); in Seek() 90 return fseek(file_, offset, whence); in Seek() 97 return _ftelli64(file_); in Tell() 99 return ftell(file_); in Tell() 105 return feof(file_); in Eof() 111 : file_(file), close_(close) {} in CefFileWriter() 116 base::CloseFile(file_); in ~CefFileWriter() [all …]
|
/third_party/flutter/skia/third_party/externals/zlib/google/ |
D | zip_reader.cc | 442 FileWriterDelegate::FileWriterDelegate(base::File* file) : file_(file) {} in FileWriterDelegate() 445 : file_(file.get()), owned_file_(std::move(file)) {} in FileWriterDelegate() 448 if (!file_->SetLength(file_length_)) { in ~FileWriterDelegate() 454 return file_->Seek(base::File::FROM_BEGIN, 0) >= 0; in PrepareOutput() 458 int bytes_written = file_->WriteAtCurrentPos(data, num_bytes); in WriteBytes() 465 file_->SetTimes(base::Time::Now(), time); in SetTimeModified() 482 file_.Initialize(output_file_path_, in PrepareOutput() 484 return file_.IsValid(); in PrepareOutput() 488 return num_bytes == file_.WriteAtCurrentPos(data, num_bytes); in WriteBytes() 492 file_.Close(); in SetTimeModified()
|
D | zip_reader_unittest.cc | 53 file_.Initialize(path, flags); in FileWrapper() 58 base::PlatformFile platform_file() { return file_.GetPlatformFile(); } in platform_file() 60 base::File* file() { return &file_; } in file() 63 base::File file_; member in __anon6a9556700111::FileWrapper 638 file_.Initialize(temp_file_path_, (base::File::FLAG_CREATE_ALWAYS | in SetUp() 643 ASSERT_TRUE(file_.IsValid()); in SetUp() 651 ASSERT_NE(-1LL, file_.Write(0LL, kSomeData, kSomeDataLen)); in PopulateFile() 655 base::File file_; member in zip::FileWriterDelegateTest 666 FileWriterDelegate writer(&file_); in TEST_F() 670 ASSERT_EQ(kSomeDataLen, file_.GetLength()); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/zlib/google/ |
D | zip_reader.cc | 447 FileWriterDelegate::FileWriterDelegate(base::File* file) : file_(file) {} in FileWriterDelegate() 450 : file_(file.get()), owned_file_(std::move(file)) {} in FileWriterDelegate() 453 if (!file_->SetLength(file_length_)) { in ~FileWriterDelegate() 459 return file_->Seek(base::File::FROM_BEGIN, 0) >= 0; in PrepareOutput() 463 int bytes_written = file_->WriteAtCurrentPos(data, num_bytes); in WriteBytes() 470 file_->SetTimes(base::Time::Now(), time); in SetTimeModified() 487 file_.Initialize(output_file_path_, in PrepareOutput() 489 return file_.IsValid(); in PrepareOutput() 493 return num_bytes == file_.WriteAtCurrentPos(data, num_bytes); in WriteBytes() 497 file_.Close(); in SetTimeModified()
|
D | zip_reader_unittest.cc | 53 file_.Initialize(path, flags); in FileWrapper() 58 base::PlatformFile platform_file() { return file_.GetPlatformFile(); } in platform_file() 60 base::File* file() { return &file_; } in file() 63 base::File file_; member in __anon7a28d4bb0111::FileWrapper 634 file_.Initialize(temp_file_path_, (base::File::FLAG_CREATE_ALWAYS | in SetUp() 639 ASSERT_TRUE(file_.IsValid()); in SetUp() 647 ASSERT_NE(-1LL, file_.Write(0LL, kSomeData, kSomeDataLen)); in PopulateFile() 651 base::File file_; member in zip::FileWriterDelegateTest 662 FileWriterDelegate writer(&file_); in TEST_F() 666 ASSERT_EQ(kSomeDataLen, file_.GetLength()); in TEST_F() [all …]
|
/third_party/node/deps/zlib/google/ |
D | zip_reader.cc | 448 FileWriterDelegate::FileWriterDelegate(base::File* file) : file_(file) {} in FileWriterDelegate() 451 : file_(file.get()), owned_file_(std::move(file)) {} in FileWriterDelegate() 454 if (!file_->SetLength(file_length_)) { in ~FileWriterDelegate() 460 return file_->Seek(base::File::FROM_BEGIN, 0) >= 0; in PrepareOutput() 464 int bytes_written = file_->WriteAtCurrentPos(data, num_bytes); in WriteBytes() 471 file_->SetTimes(base::Time::Now(), time); in SetTimeModified() 488 file_.Initialize(output_file_path_, in PrepareOutput() 490 return file_.IsValid(); in PrepareOutput() 494 return num_bytes == file_.WriteAtCurrentPos(data, num_bytes); in WriteBytes() 498 file_.Close(); in SetTimeModified()
|
D | zip_reader_unittest.cc | 53 file_.Initialize(path, flags); in FileWrapper() 58 base::PlatformFile platform_file() { return file_.GetPlatformFile(); } in platform_file() 60 base::File* file() { return &file_; } in file() 63 base::File file_; member in __anonc8ac22b60111::FileWrapper 634 file_.Initialize(temp_file_path_, (base::File::FLAG_CREATE_ALWAYS | in SetUp() 639 ASSERT_TRUE(file_.IsValid()); in SetUp() 647 ASSERT_NE(-1LL, file_.Write(0LL, kSomeData, kSomeDataLen)); in PopulateFile() 651 base::File file_; member in zip::FileWriterDelegateTest 662 FileWriterDelegate writer(&file_); in TEST_F() 666 ASSERT_EQ(kSomeDataLen, file_.GetLength()); in TEST_F() [all …]
|
/third_party/protobuf/src/google/protobuf/io/ |
D | zero_copy_stream_impl.cc | 102 : file_(file_descriptor), in CopyingFileInputStream() 120 if (close_no_eintr(file_) != 0) { in Close() 136 result = read(file_, buffer, size); in Read() 150 if (!previous_seek_failed_ && lseek(file_, count, SEEK_CUR) != (off_t)-1) { in Skip() 189 : file_(file_descriptor), in CopyingFileOutputStream() 206 if (close_no_eintr(file_) != 0) { in Close() 227 bytes = write(file_, buffer_base + total_written, size - total_written); in Write()
|
/third_party/flutter/engine/flutter/fml/ |
D | logging.cc | 53 : severity_(severity), file_(file), line_(line) { in LogMessage() 59 stream_ << ":" << (severity > LOG_INFO ? StripDots(file_) : StripPath(file_)) in LogMessage()
|