/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_file.cc | 57 : file_(file), in FileGenerator() 88 SplitStringUsing(file_->package(), ".", &package_parts_); in FileGenerator() 94 string filename_identifier = FilenameIdentifier(file_->name()); in GenerateHeader() 106 "filename", file_->name(), in GenerateHeader() 135 if (file_->message_type_count() > 0) { in GenerateHeader() 136 if (HasDescriptorMethods(file_)) { in GenerateHeader() 148 if (HasDescriptorMethods(file_) && HasEnumDefinitions(file_)) { in GenerateHeader() 153 if (HasGenericServices(file_)) { in GenerateHeader() 158 if (UseUnknownFieldSet(file_) && file_->message_type_count() > 0) { in GenerateHeader() 165 for (int i = 0; i < file_->public_dependency_count(); i++) { in GenerateHeader() [all …]
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_file.cc | 143 : file_(file), in FileGenerator() 155 for (int i = 0; i < file_->message_type_count(); ++i) { in FileGenerator() 157 generator_factory_->NewMessageGenerator(file_->message_type(i))); in FileGenerator() 159 for (int i = 0; i < file_->extension_count(); ++i) { in FileGenerator() 161 generator_factory_->NewExtensionGenerator(file_->extension(i))); in FileGenerator() 172 if (name_resolver_->HasConflictingClassName(file_, classname_)) { in Validate() 173 error->assign(file_->name()); in Validate() 193 if (immutable_api_ && !file_->options().has_java_outer_classname()) { in Validate() 195 name_resolver_->GetFileDefaultImmutableClassName(file_); in Validate() 197 GOOGLE_LOG(WARNING) << file_->name() << ": The default outer class name, \"" in Validate() [all …]
|
D | java_shared_code_generator.cc | 52 : name_resolver_(new ClassNameResolver), file_(file) { in SharedCodeGenerator() 60 string java_package = FileJavaPackage(file_); in Generate() 63 if (HasDescriptorMethods(file_)) { in Generate() 65 string classname = name_resolver_->GetDescriptorClassName(file_); in Generate() 75 "filename", file_->name()); in Generate() 115 file_->CopyTo(&file_proto); in GenerateDescriptors() 165 for (int i = 0; i < file_->dependency_count(); i++) { in GenerateDescriptors() 166 if (ShouldIncludeDependency(file_->dependency(i))) { in GenerateDescriptors() 167 string filename = file_->dependency(i)->name(); in GenerateDescriptors() 168 string classname = FileJavaPackage(file_->dependency(i)) + "." + in GenerateDescriptors() [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/libvpx/libvpx/third_party/libwebm/ |
D | mkvwriter.cpp | 19 MkvWriter::MkvWriter() : file_(NULL), writer_owns_file_(true) {} in MkvWriter() 21 MkvWriter::MkvWriter(FILE* fp) : file_(fp), writer_owns_file_(false) {} in MkvWriter() 26 if (!file_) in Write() 35 const size_t bytes_written = fwrite(buffer, 1, length, file_); in Write() 44 if (file_) in Open() 48 file_ = _fsopen(filename, "wb", _SH_DENYWR); in Open() 50 file_ = fopen(filename, "wb"); in Open() 52 if (file_ == NULL) in Open() 58 if (file_ && writer_owns_file_) { in Close() 59 fclose(file_); in Close() [all …]
|
/external/sfntly/cpp/src/sfntly/port/ |
D | file_input_stream.cc | 27 : file_(NULL), in FileInputStream() 41 if (file_) { in Close() 42 fclose(file_); in Close() 45 file_ = NULL; in Close() 59 if (!file_) { in Read() 65 if (feof(file_)) { in Read() 72 size_t length = fread(&value, 1, 1, file_); in Read() 83 if (!file_) { in Read() 89 if (feof(file_)) { in Read() 99 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); in Read() [all …]
|
/external/protobuf/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 1651 FileDescriptorProto file_; member in google::protobuf::compiler::__anonaab372be0111::SourceInfoTest 1658 if (!parser_->Parse(input_.get(), &file_)) { in Parse() 1662 const SourceCodeInfo& source_info = file_.source_code_info(); in Parse() 1668 if (!FollowPath(file_, location.path().begin(), location.path().end(), in Parse() 1870 EXPECT_TRUE(HasSpan('a', 'h', file_)); in TEST_F() 1871 EXPECT_TRUE(HasSpan('b', 'c', file_, "package")); in TEST_F() 1872 EXPECT_TRUE(HasSpan('d', 'e', file_, "dependency", 0)); in TEST_F() 1873 EXPECT_TRUE(HasSpan('f', 'g', file_, "dependency", 1)); in TEST_F() 1881 EXPECT_TRUE(HasSpan('a', 'd', file_.message_type(0))); in TEST_F() 1882 EXPECT_TRUE(HasSpan('b', 'c', file_.message_type(0), "name")); in TEST_F() [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/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/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/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/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 246 Generator::Generator() : file_(NULL) { in Generator() 265 file_ = file; in Generate() 272 file_->CopyTo(&fdp); in Generate() 281 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate() 311 for (int i = 0; i < file_->dependency_count(); ++i) { in PrintImports() 312 string module_name = ModuleName(file_->dependency(i)->name()); in PrintImports() 319 for (int i = 0; i < file_->public_dependency_count(); ++i) { in PrintImports() 320 string module_name = ModuleName(file_->public_dependency(i)->name()); in PrintImports() 330 m["name"] = file_->name(); in PrintFileDescriptor() 331 m["package"] = file_->package(); in PrintFileDescriptor() [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/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 | 32 int64_t file_len = file_.GetLength(); in MapFileRegionToMemory() 34 DPLOG(ERROR) << "fstat " << file_.GetPlatformFile(); in MapFileRegionToMemory() 69 file_.GetPlatformFile(), map_start)); in MapFileRegionToMemory() 71 DPLOG(ERROR) << "mmap " << file_.GetPlatformFile(); in MapFileRegionToMemory() 85 file_.Close(); in CloseHandles()
|
D | important_file_writer_unittest.cc | 90 file_ = temp_dir_.path().AppendASCII("test-file"); in SetUp() 95 FilePath file_; member in base::ImportantFileWriterTest 103 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 115 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 149 ImportantFileWriter writer(file_, in TEST_F() 166 ImportantFileWriter writer(file_, ThreadTaskRunnerHandle::Get()); in TEST_F() 182 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 …]
|
/external/libvpx/libvpx/test/ |
D | video_source.h | 80 file_ = GetTempOutFile(&file_name_); in TempOutFile() 89 return file_; in file() 97 if (file_) { in CloseFile() 98 fclose(file_); in CloseFile() 99 file_ = NULL; in CloseFile() 102 FILE *file_; variable
|
/external/webrtc/webrtc/modules/audio_processing/test/ |
D | test_utils.cc | 37 : file_(std::move(file)) {} in ChannelBufferWavReader() 40 RTC_CHECK_EQ(file_->num_channels(), buffer->num_channels()); in Read() 42 if (file_->ReadSamples(interleaved_.size(), &interleaved_[0]) != in Read() 54 : file_(std::move(file)) {} in ChannelBufferWavWriter() 57 RTC_CHECK_EQ(file_->num_channels(), buffer.num_channels()); in Write() 62 file_->WriteSamples(&interleaved_[0], interleaved_.size()); in Write()
|
/external/google-breakpad/src/common/mac/ |
D | macho_walker.cc | 54 : file_(-1), in MachoWalker() 62 file_ = open(path, O_RDONLY); in MachoWalker() 67 : file_(-1), in MachoWalker() 78 if (file_ != -1) in ~MachoWalker() 79 close(file_); in ~MachoWalker() 117 return pread(file_, buffer, size, offset) == (ssize_t)size; in ReadBytes()
|
/external/google-breakpad/src/processor/ |
D | source_line_resolver_base_types.h | 59 explicit AutoFileCloser(FILE *file) : file_(file) {} in AutoFileCloser() 61 if (file_) in ~AutoFileCloser() 62 fclose(file_); in ~AutoFileCloser() 66 FILE *file_;
|