/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_file.cc | 55 : file_(file), in FileGenerator() 86 SplitStringUsing(file_->package(), ".", &package_parts_); in FileGenerator() 92 string filename_identifier = FilenameIdentifier(file_->name()); in GenerateHeader() 104 "filename", file_->name(), in GenerateHeader() 133 if (file_->message_type_count() > 0) { in GenerateHeader() 134 if (HasDescriptorMethods(file_)) { in GenerateHeader() 146 if (HasUnknownFields(file_)) { in GenerateHeader() 151 if (HasDescriptorMethods(file_) && HasEnumDefinitions(file_)) { in GenerateHeader() 156 if (HasGenericServices(file_)) { in GenerateHeader() 161 if (HasUnknownFields(file_) && file_->message_type_count() > 0) { in GenerateHeader() [all …]
|
/external/protobuf/src/google/protobuf/compiler/cpp/ |
D | cpp_file.cc | 55 : file_(file), in FileGenerator() 86 SplitStringUsing(file_->package(), ".", &package_parts_); in FileGenerator() 92 string filename_identifier = FilenameIdentifier(file_->name()); in GenerateHeader() 104 "filename", file_->name(), in GenerateHeader() 135 if (HasDescriptorMethods(file_)) { in GenerateHeader() 140 if (HasGenericServices(file_)) { in GenerateHeader() 146 for (int i = 0; i < file_->dependency_count(); i++) { in GenerateHeader() 149 "dependency", StripProto(file_->dependency(i)->name())); in GenerateHeader() 164 "adddescriptorsname", GlobalAddDescriptorsName(file_->name()), in GenerateHeader() 173 "assigndescriptorsname", GlobalAssignDescriptorsName(file_->name()), in GenerateHeader() [all …]
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_file.cc | 89 : file_(file), in FileGenerator() 102 for (int i = 0; i < file_->enum_type_count() && !found_conflict; i++) { in Validate() 103 if (file_->enum_type(i)->name() == classname_) { in Validate() 107 for (int i = 0; i < file_->message_type_count() && !found_conflict; i++) { in Validate() 108 if (file_->message_type(i)->name() == classname_) { in Validate() 112 for (int i = 0; i < file_->service_count() && !found_conflict; i++) { in Validate() 113 if (file_->service(i)->name() == classname_) { in Validate() 119 error->assign(file_->name()); in Validate() 140 "filename", file_->name()); in Generate() 158 "lite", HasDescriptorMethods(file_) ? "" : "Lite"); in Generate() [all …]
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_file.cc | 136 : file_(file), in FileGenerator() 150 for (int i = 0; i < file_->enum_type_count() && !found_conflict; i++) { in Validate() 151 if (file_->enum_type(i)->name() == classname_) { in Validate() 155 for (int i = 0; i < file_->message_type_count() && !found_conflict; i++) { in Validate() 156 if (file_->message_type(i)->name() == classname_) { in Validate() 160 for (int i = 0; i < file_->service_count() && !found_conflict; i++) { in Validate() 161 if (file_->service(i)->name() == classname_) { in Validate() 167 error->assign(file_->name()); in Validate() 188 "filename", file_->name()); in Generate() 206 "lite", HasDescriptorMethods(file_) ? "" : "Lite"); in Generate() [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() 22 MkvWriter::MkvWriter(FILE* fp): file_(fp), writer_owns_file_(false) { in MkvWriter() 30 if (!file_) in Write() 39 const size_t bytes_written = fwrite(buffer, 1, length, file_); in Write() 48 if (file_) in Open() 52 file_ = _fsopen(filename, "wb", _SH_DENYWR); in Open() 54 file_ = fopen(filename, "wb"); in Open() 56 if (file_ == NULL) in Open() 62 if (file_ && writer_owns_file_) { in Close() 63 fclose(file_); in Close() [all …]
|
/external/chromium_org/third_party/libvpx/source/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/chromium_org/third_party/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/chromium_org/base/files/ |
D | file_proxy.cc | 28 : file_(file.Pass()), in FileHelper() 36 proxy_->SetFile(file_.Pass()); in PassFile() 37 else if (file_.IsValid()) in PassFile() 38 task_runner_->PostTask(FROM_HERE, Bind(&FileDeleter, Passed(&file_))); in PassFile() 42 File file_; member in base::FileHelper 60 file_.Close(); in Close() 65 bool rv = file_.SetTimes(last_access_time, last_modified_time); in SetTimes() 70 if (file_.SetLength(length)) in SetLength() 75 if (file_.Flush()) in Flush() 96 file_.Initialize(file_path, file_flags); in RunWork() [all …]
|
D | file_win.cc | 89 file_.Set(CreateFile(name.value().c_str(), access, sharing, NULL, in InitializeUnsafe() 92 if (file_.IsValid()) { in InitializeUnsafe() 106 return file_.IsValid(); in IsValid() 110 return file_.Get(); in GetPlatformFile() 114 return file_.Take(); in TakePlatformFile() 118 if (file_.IsValid()) { in Close() 120 file_.Close(); in Close() 131 if (!SetFilePointerEx(file_.Get(), distance, &res, move_method)) in Seek() 151 if (::ReadFile(file_.Get(), data, size, &bytes_read, &overlapped)) in Read() 167 if (::ReadFile(file_.Get(), data, size, &bytes_read, NULL)) in ReadAtCurrentPos() [all …]
|
D | file_posix.cc | 254 file_.reset(descriptor); in InitializeUnsafe() 259 return file_.is_valid(); in IsValid() 263 return file_.get(); in GetPlatformFile() 267 return file_.release(); in TakePlatformFile() 275 file_.reset(); in Close() 284 return lseek64(file_.get(), static_cast<off64_t>(offset), in Seek() 288 return lseek(file_.get(), static_cast<off_t>(offset), in Seek() 302 rv = HANDLE_EINTR(pread(file_.get(), data + bytes_read, in Read() 322 rv = HANDLE_EINTR(read(file_.get(), data + bytes_read, size - bytes_read)); in ReadAtCurrentPos() 336 return HANDLE_EINTR(pread(file_.get(), data, size, offset)); in ReadNoBestEffort() [all …]
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/ |
D | parser_unittest.cc | 1484 FileDescriptorProto file_; member in google::protobuf::compiler::__anon856b80680111::SourceInfoTest 1491 if (!parser_->Parse(input_.get(), &file_)) { in Parse() 1495 const SourceCodeInfo& source_info = file_.source_code_info(); in Parse() 1501 if (!FollowPath(file_, location.path().begin(), location.path().end(), in Parse() 1703 EXPECT_TRUE(HasSpan('a', 'h', file_)); in TEST_F() 1704 EXPECT_TRUE(HasSpan('b', 'c', file_, "package")); in TEST_F() 1705 EXPECT_TRUE(HasSpan('d', 'e', file_, "dependency", 0)); in TEST_F() 1706 EXPECT_TRUE(HasSpan('f', 'g', file_, "dependency", 1)); in TEST_F() 1714 EXPECT_TRUE(HasSpan('a', 'd', file_.message_type(0))); in TEST_F() 1715 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/chromium_org/content/browser/download/ |
D | save_file.cc | 17 : file_(base::FilePath(), in SaveFile() 37 return file_.Initialize(base::FilePath()); in Initialize() 42 return file_.AppendDataToFile(data, data_len); in AppendDataToFile() 46 return file_.Rename(full_path); in Rename() 50 file_.Detach(); in Detach() 54 file_.Cancel(); in Cancel() 58 file_.Finish(); in Finish() 64 file_.AnnotateWithSourceInformation(); in AnnotateWithSourceInformation() 68 return file_.full_path(); in FullPath() 72 return file_.in_progress(); in InProgress() [all …]
|
D | download_file_impl.cc | 45 : file_(save_info->file_path, in DownloadFileImpl() 71 file_.Initialize(default_download_directory_); in Initialize() 106 return file_.AppendDataToFile(data, data_len); in AppendDataToFile() 151 if ((option & UNIQUIFY) && full_path != file_.full_path()) { in RenameWithRetryInternal() 159 DownloadInterruptReason reason = file_.Rename(new_path); in RenameWithRetryInternal() 166 if (ShouldRetryFailedRename(reason) && file_.in_progress() && in RenameWithRetryInternal() 196 reason = file_.AnnotateWithSourceInformation(); in RenameWithRetryInternal() 216 file_.Detach(); in Detach() 220 file_.Cancel(); in Cancel() 224 return file_.full_path(); in FullPath() [all …]
|
/external/chromium_org/base/ |
D | event_recorder_win.cc | 51 DCHECK(!file_); in StartRecording() 52 file_ = OpenFile(filename, "wb+"); in StartRecording() 53 if (!file_) { in StartRecording() 66 CloseFile(file_); in StartRecording() 86 DCHECK(file_ != NULL); in StopRecording() 87 CloseFile(file_); in StopRecording() 88 file_ = NULL; in StopRecording() 102 DCHECK(!file_); in StartPlayback() 103 file_ = OpenFile(filename, "rb"); in StartPlayback() 104 if (!file_) { in StartPlayback() [all …]
|
/external/chromium_org/third_party/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 …]
|
/external/chromium_org/sandbox/win/sandbox_poc/pocdll/ |
D | utils.h | 17 file_ = NULL; in HandleToFile() 22 if (file_) { in ~HandleToFile() 23 fflush(file_); in ~HandleToFile() 24 fclose(file_); in ~HandleToFile() 31 if (file_) { in Translate() 55 file_ = _fdopen(c_file_handle, mode); in Translate() 56 return file_; in Translate() 60 FILE* file_;
|
/external/chromium_org/tools/gn/ |
D | location.cc | 12 : file_(NULL), in Location() 21 : file_(file), in Location() 28 return other.file_ == file_ && in operator ==() 38 DCHECK(file_ == other.file_); in operator <() 45 if (!file_) in Describe() 49 if (file_->friendly_name().empty()) in Describe() 50 ret = file_->name().value(); in Describe() 52 ret = file_->friendly_name(); in Describe()
|
/external/chromium_org/third_party/webrtc/test/ |
D | rtp_file_reader.cc | 53 RtpDumpReader() : file_(NULL) {} in RtpDumpReader() 55 if (file_ != NULL) { in ~RtpDumpReader() 56 fclose(file_); in ~RtpDumpReader() 57 file_ = NULL; in ~RtpDumpReader() 62 file_ = fopen(filename.c_str(), "rb"); in Init() 63 if (file_ == NULL) { in Init() 69 if (fgets(firstline, kFirstLineLength, file_) == NULL) { in Init() 118 if (fread(rtp_data, 1, len, file_) != len) { in NextPacket() 133 if (fread(&tmp, 1, sizeof(uint8_t), file_) != sizeof(uint8_t)) in Read() 145 if (fread(&tmp, 1, sizeof(uint8_t), file_) != sizeof(uint8_t)) in Read() [all …]
|
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 240 Generator::Generator() : file_(NULL) { in Generator() 259 file_ = file; in Generate() 266 file_->CopyTo(&fdp); in Generate() 275 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate() 305 for (int i = 0; i < file_->dependency_count(); ++i) { in PrintImports() 306 string module_name = ModuleName(file_->dependency(i)->name()); in PrintImports() 313 for (int i = 0; i < file_->public_dependency_count(); ++i) { in PrintImports() 314 string module_name = ModuleName(file_->public_dependency(i)->name()); in PrintImports() 324 m["name"] = file_->name(); in PrintFileDescriptor() 325 m["package"] = file_->package(); in PrintFileDescriptor() [all …]
|
/external/chromium_org/third_party/leveldatabase/ |
D | env_chromium_win.cc | 51 HANDLE file_; member in leveldb_env::__anon67eb3ec40111::ChromiumSequentialFileWin 58 : filename_(fname), file_(f), uma_logger_(uma_logger) { in ChromiumSequentialFileWin() 59 DCHECK(file_ != INVALID_HANDLE_VALUE); in ChromiumSequentialFileWin() 62 DCHECK(file_ != INVALID_HANDLE_VALUE); in ~ChromiumSequentialFileWin() 63 CloseHandle(file_); in ~ChromiumSequentialFileWin() 64 file_ = INVALID_HANDLE_VALUE; in ~ChromiumSequentialFileWin() 70 DCHECK(file_ != INVALID_HANDLE_VALUE); in Read() 71 if (ReadFile(file_, scratch, n, &bytes_read, NULL)) { in Read() 87 if (SetFilePointer(file_, li.LowPart, &li.HighPart, FILE_CURRENT) == in Skip() 101 mutable ::base::File file_; [all …]
|
/external/chromium_org/media/filters/ |
D | file_data_source.cc | 21 file_.Initialize(file.Pass()); in FileDataSource() 25 DCHECK(!file_.IsValid()); in Initialize() 26 return file_.Initialize(file_path); in Initialize() 34 if (force_read_errors_ || !file_.IsValid()) { in Read() 39 int64 file_size = file_.length(); in Read() 49 memcpy(data, file_.data() + position, clamped_size); in Read() 54 *size_out = file_.length(); in GetSize()
|
/external/protobuf/src/google/protobuf/compiler/python/ |
D | python_generator.cc | 225 Generator::Generator() : file_(NULL) { in Generator() 244 file_ = file; in Generate() 251 file_->CopyTo(&fdp); in Generate() 260 PrintTopBoilerplate(printer_, file_, GeneratingDescriptorProto()); in Generate() 287 for (int i = 0; i < file_->dependency_count(); ++i) { in PrintImports() 288 string module_name = ModuleName(file_->dependency(i)->name()); in PrintImports() 299 m["name"] = file_->name(); in PrintFileDescriptor() 300 m["package"] = file_->package(); in PrintFileDescriptor() 323 for (int i = 0; i < file_->enum_type_count(); ++i) { in PrintTopLevelEnums() 324 const EnumDescriptor& enum_descriptor = *file_->enum_type(i); in PrintTopLevelEnums() [all …]
|