/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_file.cc | 61 : file_(file), in FileGenerator() 92 SplitStringUsing(file_->package(), ".", &package_parts_); in FileGenerator() 103 string filename_identifier = FilenameIdentifier(file_->name()); in GenerateProtoHeader() 109 for (int i = 0; i < file_->public_dependency_count(); i++) { in GenerateProtoHeader() 110 const FileDescriptor* dep = file_->public_dependency(i); in GenerateProtoHeader() 176 FilenameIdentifier(file_->name() + (options_.proto_h ? ".pb.h" : "")); in GeneratePBHeader() 181 "basename", StripProto(file_->name())); in GeneratePBHeader() 245 const bool use_system_include = IsWellKnownMessage(file_); in GenerateSource() 247 StripProto(file_->name()) + (options_.proto_h ? ".proto.h" : ".pb.h"); in GenerateSource() 264 "filename", file_->name(), in GenerateSource() [all …]
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_file.cc | 89 : file_(file), in FileGenerator() 99 file_->CopyTo(&file_proto); in Validate() 101 error->assign(file_->name()); in Validate() 108 if (file_->service_count() != 0 && !params_.ignore_services()) { in Validate() 109 error->assign(file_->name()); in Validate() 115 if (!IsOuterClassNeeded(params_, file_)) { in Validate() 120 if (!params_.has_java_outer_classname(file_->name()) in Validate() 121 && file_->message_type_count() == 1 in Validate() 122 && file_->enum_type_count() == 0 && file_->extension_count() == 0) { in Validate() 123 cout << "INFO: " << file_->name() << ":" << endl; in Validate() [all …]
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_file.cc | 198 : file_(file), in FileGenerator() 211 for (int i = 0; i < file_->message_type_count(); ++i) { in FileGenerator() 213 generator_factory_->NewMessageGenerator(file_->message_type(i))); in FileGenerator() 215 for (int i = 0; i < file_->extension_count(); ++i) { in FileGenerator() 217 generator_factory_->NewExtensionGenerator(file_->extension(i))); in FileGenerator() 228 if (name_resolver_->HasConflictingClassName(file_, classname_)) { in Validate() 229 error->assign(file_->name()); in Validate() 249 "filename", file_->name()); in Generate() 268 HasDescriptorMethods(file_, context_->EnforceLite()) ? "" : "Lite"); in Generate() 272 for (int i = 0; i < file_->extension_count(); i++) { in Generate() [all …]
|
D | java_shared_code_generator.cc | 57 file_(file) {} in SharedCodeGenerator() 64 string java_package = FileJavaPackage(file_); in Generate() 67 if (HasDescriptorMethods(file_, enforce_lite_)) { in Generate() 69 string classname = name_resolver_->GetDescriptorClassName(file_); in Generate() 79 "filename", file_->name()); in Generate() 119 file_->CopyTo(&file_proto); in GenerateDescriptors() 169 for (int i = 0; i < file_->dependency_count(); i++) { in GenerateDescriptors() 170 if (ShouldIncludeDependency(file_->dependency(i))) { in GenerateDescriptors() 171 string filename = file_->dependency(i)->name(); in GenerateDescriptors() 172 string classname = FileJavaPackage(file_->dependency(i)); in GenerateDescriptors() [all …]
|
/external/libvpx/libvpx/third_party/libwebm/mkvmuxer/ |
D | mkvwriter.cc | 17 MkvWriter::MkvWriter() : file_(NULL), writer_owns_file_(true) {} in MkvWriter() 19 MkvWriter::MkvWriter(FILE* fp) : file_(fp), writer_owns_file_(false) {} in MkvWriter() 24 if (!file_) in Write() 33 const size_t bytes_written = fwrite(buffer, 1, length, file_); in Write() 42 if (file_) in Open() 46 file_ = _fsopen(filename, "wb", _SH_DENYWR); in Open() 48 file_ = fopen(filename, "wb"); in Open() 50 if (file_ == NULL) in Open() 56 if (file_ && writer_owns_file_) { in Close() 57 fclose(file_); in Close() [all …]
|
/external/sfntly/cpp/src/sfntly/port/ |
D | file_input_stream.cc | 29 : file_(NULL), in FileInputStream() 43 if (file_) { in Close() 44 fclose(file_); in Close() 47 file_ = NULL; in Close() 61 if (!file_) { in Read() 67 if (feof(file_)) { in Read() 74 size_t length = fread(&value, 1, 1, file_); in Read() 85 if (!file_) { in Read() 91 if (feof(file_)) { in Read() 101 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read() [all …]
|
/external/protobuf/src/google/protobuf/compiler/javamicro/ |
D | javamicro_file.cc | 88 : file_(file), in FileGenerator() 98 file_->CopyTo(&file_proto); in Validate() 100 error->assign(file_->name()); in Validate() 106 if (file_->service_count() != 0) { in Validate() 107 error->assign(file_->name()); in Validate() 113 if (!IsOuterClassNeeded(params_, file_)) { in Validate() 118 if (!params_.has_java_outer_classname(file_->name()) in Validate() 119 && file_->message_type_count() == 1 in Validate() 120 && file_->enum_type_count() == 0 && file_->extension_count() == 0) { in Validate() 121 cout << "INFO: " << file_->name() << ":" << endl; in Validate() [all …]
|
/external/protobuf/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 2111 FileDescriptorProto file_; member in google::protobuf::compiler::__anonea569a9d0111::SourceInfoTest 2118 if (!parser_->Parse(input_.get(), &file_)) { in Parse() 2122 const SourceCodeInfo& source_info = file_.source_code_info(); in Parse() 2128 if (!FollowPath(file_, location.path().begin(), location.path().end(), in Parse() 2342 EXPECT_TRUE(HasSpan('a', 'h', file_)); in TEST_F() 2343 EXPECT_TRUE(HasSpan('b', 'c', file_, "package")); in TEST_F() 2344 EXPECT_TRUE(HasSpan('d', 'e', file_, "dependency", 0)); in TEST_F() 2345 EXPECT_TRUE(HasSpan('f', 'g', file_, "dependency", 1)); in TEST_F() 2346 EXPECT_TRUE(HasSpan('a', 'i', file_, "syntax")); in TEST_F() 2354 EXPECT_TRUE(HasSpan('a', 'd', file_.message_type(0))); in TEST_F() [all …]
|
/external/webrtc/webrtc/test/ |
D | rtp_file_reader.cc | 79 if (file_ != NULL) { in ~InterleavedRtpFileReader() 80 fclose(file_); in ~InterleavedRtpFileReader() 81 file_ = NULL; in ~InterleavedRtpFileReader() 87 file_ = fopen(filename.c_str(), "rb"); in Init() 88 if (file_ == NULL) { in Init() 95 assert(file_ != NULL); in NextPacket() 98 TRY(ReadUint32(&len, file_)); in NextPacket() 105 if (fread(packet->data, 1, len, file_) != len) in NextPacket() 116 FILE* file_ = NULL; member in webrtc::test::InterleavedRtpFileReader 124 RtpDumpReader() : file_(NULL) {} in RtpDumpReader() [all …]
|
D | rtp_file_writer.cc | 30 explicit RtpDumpWriter(FILE* file) : file_(file) { in RtpDumpWriter() 31 RTC_CHECK(file_ != NULL); in RtpDumpWriter() 35 if (file_ != NULL) { in ~RtpDumpWriter() 36 fclose(file_); in ~RtpDumpWriter() 37 file_ = NULL; in ~RtpDumpWriter() 48 return fwrite(packet->data, sizeof(uint8_t), packet->length, file_) == in WritePacket() 54 fprintf(file_, "%s", kFirstLine); in Init() 69 if (fwrite(&tmp, sizeof(uint8_t), 1, file_) != 1) in WriteUint32() 78 if (fwrite(&tmp, sizeof(uint8_t), 1, file_) != 1) in WriteUint16() 82 if (fwrite(&tmp, sizeof(uint8_t), 1, file_) != 1) in WriteUint16() [all …]
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_reflection_class.cc | 57 file_(file) { in ReflectionClassGenerator() 74 if (file_->enum_type_count() > 0) { in Generate() 76 for (int i = 0; i < file_->enum_type_count(); i++) { in Generate() 77 EnumGenerator enumGenerator(file_->enum_type(i), this->options()); in Generate() 85 if (file_->message_type_count() > 0) { in Generate() 87 for (int i = 0; i < file_->message_type_count(); i++) { in Generate() 88 MessageGenerator messageGenerator(file_->message_type(i), this->options()); in Generate() 116 "file_name", file_->name()); in WriteIntroduction() 127 "file_name", file_->name()); in WriteIntroduction() 147 "file_name", file_->name(), in WriteDescriptor() [all …]
|
/external/webrtc/webrtc/modules/remote_bitrate_estimator/test/ |
D | bwe_test_fileutils.cc | 29 if (file_ != NULL) { in ~ResourceFileReader() 30 fclose(file_); in ~ResourceFileReader() 31 file_ = NULL; in ~ResourceFileReader() 36 int32_t current_pos = ftell(file_); in IsAtEnd() 37 fseek(file_, 0, SEEK_END); in IsAtEnd() 38 int32_t end_pos = ftell(file_); in IsAtEnd() 39 fseek(file_, current_pos, SEEK_SET); in IsAtEnd() 46 if (fread(&tmp, 1, sizeof(uint32_t), file_) != sizeof(uint32_t)) { in Read() 68 if (file_ != NULL) { in ~OutputFileWriter() 69 fclose(file_); in ~OutputFileWriter() [all …]
|
D | bwe_test_fileutils.h | 36 explicit ResourceFileReader(FILE* file) : file_(file) {} in ResourceFileReader() 37 FILE* file_; variable 51 explicit OutputFileWriter(FILE* file) : file_(file) {} in OutputFileWriter() 52 FILE* file_; variable
|
/external/google-breakpad/src/client/ |
D | minidump_file_writer.cc | 52 : file_(-1), in MinidumpFileWriter() 64 assert(file_ == -1); in Open() 66 file_ = sys_open(path, O_WRONLY | O_CREAT | O_EXCL, 0600); in Open() 68 file_ = open(path, O_WRONLY | O_CREAT | O_EXCL, 0600); in Open() 71 return file_ != -1; in Open() 75 assert(file_ == -1); in SetFile() 76 file_ = file; in SetFile() 83 if (file_ != -1) { in Close() 84 if (-1 == ftruncate(file_, position_)) { in Close() 88 result = (sys_close(file_) == 0); in Close() [all …]
|
/external/fmtlib/fmt/ |
D | posix.h | 83 FILE *file_; 87 explicit BufferedFile(FILE *f) : file_(f) {} in BufferedFile() 91 BufferedFile() FMT_NOEXCEPT : file_(FMT_NULL) {} in BufferedFile() 109 BufferedFile(Proxy p) FMT_NOEXCEPT : file_(p.file) {} in BufferedFile() 112 BufferedFile(BufferedFile &f) FMT_NOEXCEPT : file_(f.file_) { in BufferedFile() 113 f.file_ = FMT_NULL; in BufferedFile() 119 file_ = p.file; 126 file_ = other.file_; 127 other.file_ = FMT_NULL; 134 Proxy p = {file_}; in Proxy() [all …]
|
D | posix.cc | 67 if (file_ && FMT_SYSTEM(fclose(file_)) != 0) in ~BufferedFile() 73 FMT_RETRY_VAL(file_, FMT_SYSTEM(fopen(filename.c_str(), mode.c_str())), 0); in BufferedFile() 74 if (!file_) in BufferedFile() 79 if (!file_) in close() 81 int result = FMT_SYSTEM(fclose(file_)); in close() 82 file_ = FMT_NULL; in close() 91 int fd = FMT_POSIX_CALL(fileno FMT_ARGS(file_)); in fileno()
|
/external/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_file.cc | 54 : file_(file), in FileGenerator() 58 for (int i = 0; i < file_->enum_type_count(); i++) { in FileGenerator() 59 EnumGenerator *generator = new EnumGenerator(file_->enum_type(i)); in FileGenerator() 62 for (int i = 0; i < file_->message_type_count(); i++) { in FileGenerator() 64 new MessageGenerator(root_class_name_, file_->message_type(i), options_); in FileGenerator() 67 for (int i = 0; i < file_->extension_count(); i++) { in FileGenerator() 69 new ExtensionGenerator(root_class_name_, file_->extension(i)); in FileGenerator() 89 "filename", file_->name()); in GenerateHeader() 205 "filename", file_->name()); in GenerateSource() 238 if (file_->extension_count() + file_->message_type_count() > 0) { in GenerateSource() [all …]
|
/external/libchrome/sandbox/win/sandbox_poc/pocdll/ |
D | utils.h | 18 file_ = NULL; in HandleToFile() 23 if (file_) { in ~HandleToFile() 24 fflush(file_); in ~HandleToFile() 25 fclose(file_); in ~HandleToFile() 32 if (file_) { in Translate() 56 file_ = _fdopen(c_file_handle, mode); in Translate() 57 return file_; in Translate() 61 FILE* file_;
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 295 Generator::Generator() : file_(NULL) { in Generator() 314 file_ = file; in Generate() 321 file_->CopyTo(&fdp); in Generate() 330 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate() 360 for (int i = 0; i < file_->dependency_count(); ++i) { in PrintImports() 361 const string& filename = file_->dependency(i)->name(); in PrintImports() 366 CopyPublicDependenciesAliases(module_alias, file_->dependency(i)); in PrintImports() 371 for (int i = 0; i < file_->public_dependency_count(); ++i) { in PrintImports() 372 string module_name = ModuleName(file_->public_dependency(i)->name()); in PrintImports() 382 m["name"] = file_->name(); in PrintFileDescriptor() [all …]
|
/external/libchrome/base/files/ |
D | file_posix.cc | 162 return file_.is_valid(); in IsValid() 166 return file_.get(); in GetPlatformFile() 170 return file_.release(); in TakePlatformFile() 179 file_.reset(); in Close() 192 return lseek64(file_.get(), static_cast<off64_t>(offset), in Seek() 196 return lseek(file_.get(), static_cast<off_t>(offset), in Seek() 212 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, in Read() 234 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos() 248 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); in ReadNoBestEffort() 258 return HANDLE_EINTR(read(file_.get(), data, size)); in ReadAtCurrentPosNoBestEffort() [all …]
|
D | memory_mapped_file_posix.cc | 33 int64_t file_len = file_.GetLength(); in MapFileRegionToMemory() 35 DPLOG(ERROR) << "fstat " << file_.GetPlatformFile(); in MapFileRegionToMemory() 81 file_.SetLength(std::max(file_.GetLength(), region.offset + region.size)); in MapFileRegionToMemory() 86 file_.GetPlatformFile(), map_start)); in MapFileRegionToMemory() 88 DPLOG(ERROR) << "mmap " << file_.GetPlatformFile(); in MapFileRegionToMemory() 102 file_.Close(); in CloseHandles()
|
D | important_file_writer_unittest.cc | 91 file_ = temp_dir_.path().AppendASCII("test-file"); in SetUp() 96 FilePath file_; member in base::ImportantFileWriterTest 104 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 116 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 150 ImportantFileWriter writer(file_, in TEST_F() 167 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 183 ImportantFileWriter writer(file_, in TEST_F()
|
/external/webrtc/webrtc/video/ |
D | replay.cc | 144 file_(nullptr), in FileRenderPassthrough() 150 if (file_ != nullptr) in ~FileRenderPassthrough() 151 fclose(file_); in ~FileRenderPassthrough() 163 if (file_ != nullptr) in RenderFrame() 164 fclose(file_); in RenderFrame() 171 file_ = fopen(filename.str().c_str(), "wb"); in RenderFrame() 172 if (file_ == nullptr) { in RenderFrame() 180 if (file_ == nullptr) in RenderFrame() 182 PrintVideoFrame(video_frame, file_); in RenderFrame() 189 FILE* file_; member in webrtc::FileRenderPassthrough [all …]
|
/external/webrtc/webrtc/system_wrappers/source/ |
D | data_log.cc | 101 FileWrapper* file_; member in webrtc::LogTable 147 file_(FileWrapper::Create()), in LogTable() 163 if (file_ != NULL) { in ~LogTable() 164 file_->Flush(); in ~LogTable() 165 file_->CloseFile(); in ~LogTable() 166 delete file_; in ~LogTable() 208 if (file_->Open()) in CreateLogFile() 210 file_->OpenFile(file_name.c_str(), in CreateLogFile() 215 if (file_ == NULL) in CreateLogFile() 234 file_->WriteText("%s[%u],", column_it->first.c_str(), in Flush() [all …]
|
/external/webrtc/webrtc/base/ |
D | stream.cc | 327 FileStream::FileStream() : file_(NULL) { in FileStream() 340 file_ = _wfopen(wfilename.c_str(), ToUtf16(mode).c_str()); in Open() 348 file_ = fopen(filename.c_str(), mode); in Open() 350 if (!file_ && error) { in Open() 353 return (file_ != NULL); in Open() 362 file_ = _wfsopen(wfilename.c_str(), ToUtf16(mode).c_str(), shflag); in OpenShare() 363 if (!file_ && error) { in OpenShare() 367 return file_ != NULL; in OpenShare() 380 if (!file_) in DisableBuffering() 382 return (setvbuf(file_, NULL, _IONBF, 0) == 0); in DisableBuffering() [all …]
|