/external/chromium_org/sandbox/win/sandbox_poc/pocdll/ |
utils.h | 17 file_ = NULL; 22 if (file_) { 23 fflush(file_); 24 fclose(file_); 31 if (file_) { 55 file_ = _fdopen(c_file_handle, mode); 56 return file_; 60 FILE* file_; member in class:HandleToFile
|
/external/chromium_org/content/browser/download/ |
save_file.cc | 14 // the default download directory when initializing |file_|. 18 : file_(base::FilePath(), 38 return file_.Initialize(base::FilePath()); 43 return file_.AppendDataToFile(data, data_len); 47 return file_.Rename(full_path); 51 file_.Detach(); 55 file_.Cancel(); 59 file_.Finish(); 64 // file_.SetClientGuid() method first. 65 file_.AnnotateWithSourceInformation() [all...] |
/external/chromium_org/base/files/ |
memory_mapped_file_posix.cc | 17 : file_(kInvalidPlatformFileValue), 26 if (fstat(file_, &file_stat) == kInvalidPlatformFileValue) { 27 DPLOG(ERROR) << "fstat " << file_; 33 mmap(NULL, length_, PROT_READ, MAP_SHARED, file_, 0)); 35 DPLOG(ERROR) << "mmap " << file_; 45 if (file_ != kInvalidPlatformFileValue) 46 close(file_); 50 file_ = kInvalidPlatformFileValue;
|
memory_mapped_file_win.cc | 16 : file_(INVALID_HANDLE_VALUE), 25 file_ = CreatePlatformFile(file_name, PLATFORM_FILE_OPEN | PLATFORM_FILE_READ, 28 if (file_ == kInvalidPlatformFileValue) { 48 if (file_ == INVALID_HANDLE_VALUE) 51 length_ = ::GetFileSize(file_, NULL); 55 file_mapping_ = ::CreateFileMapping(file_, NULL, PAGE_READONLY | flags, 79 if (file_ != INVALID_HANDLE_VALUE) 80 ::CloseHandle(file_); 83 file_mapping_ = file_ = INVALID_HANDLE_VALUE;
|
memory_mapped_file.cc | 32 file_ = file; 47 file_ = CreatePlatformFile(file_name, PLATFORM_FILE_OPEN | PLATFORM_FILE_READ, 50 if (file_ == kInvalidPlatformFileValue) {
|
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
image_writer_utils.cc | 14 ImageWriter::ImageWriter() : file_(base::kInvalidPlatformFileValue), 19 if (file_ != base::kInvalidPlatformFileValue) 20 base::ClosePlatformFile(file_); 24 if (file_ != base::kInvalidPlatformFileValue) 26 DCHECK_EQ(base::kInvalidPlatformFileValue, file_); 28 file_ = base::CreatePlatformFile( 42 if (file_ != base::kInvalidPlatformFileValue && 43 base::ClosePlatformFile(file_)) { 44 file_ = base::kInvalidPlatformFileValue; 53 int written = base::WritePlatformFileAtCurrentPos(file_, data_block [all...] |
image_writer_utils.h | 29 base::PlatformFile file_; member in class:extensions::image_writer_utils::ImageWriter 47 base::PlatformFile file_; member in class:extensions::image_writer_utils::ImageReader
|
/external/chromium_org/third_party/ots/test/ |
file-stream.h | 16 : file_(stream), position_(0) { 23 if (::fwrite(data, length, 1, file_) == 1) { 32 if (!::_fseeki64(file_, position, SEEK_SET)) { 37 if (!::fseeko(file_, position, SEEK_SET)) { 50 FILE * const file_; member in class:ots::FILEStream
|
/external/chromium_org/media/filters/ |
file_data_source.cc | 19 DCHECK(!file_.IsValid()); 21 if (!file_.Initialize(file_path)) 30 DCHECK(!file_.IsValid()); 32 if (!file_.Initialize(file)) 50 if (force_read_errors_ || !file_.IsValid()) { 55 int64 file_size = file_.length(); 65 memcpy(data, file_.data() + position, clamped_size); 70 *size_out = file_.length(); 83 if (host() && file_.IsValid()) { 84 host()->SetTotalBytes(file_.length()) [all...] |
/external/chromium_org/tools/gn/ |
location.cc | 12 : file_(NULL), 18 : file_(file), 24 return other.file_ == file_ && 34 DCHECK(file_ == other.file_); 41 if (!file_) 45 if (file_->friendly_name().empty()) 46 ret = file_->name().value(); 48 ret = file_->friendly_name() [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/cpp/ |
cpp_file.cc | 55 : file_(file), 86 SplitStringUsing(file_->package(), ".", &package_parts_); 92 string filename_identifier = FilenameIdentifier(file_->name()); 104 "filename", file_->name(), 133 if (file_->message_type_count() > 0) { 134 if (HasDescriptorMethods(file_)) { 146 if (HasUnknownFields(file_)) { 151 if (HasDescriptorMethods(file_) && HasEnumDefinitions(file_)) { 156 if (HasGenericServices(file_)) { [all...] |
/external/protobuf/src/google/protobuf/compiler/java/ |
java_file.cc | 89 : file_(file), 102 for (int i = 0; i < file_->enum_type_count() && !found_conflict; i++) { 103 if (file_->enum_type(i)->name() == classname_) { 107 for (int i = 0; i < file_->message_type_count() && !found_conflict; i++) { 108 if (file_->message_type(i)->name() == classname_) { 112 for (int i = 0; i < file_->service_count() && !found_conflict; i++) { 113 if (file_->service(i)->name() == classname_) { 119 error->assign(file_->name()); 140 "filename", file_->name()); 158 "lite", HasDescriptorMethods(file_) ? "" : "Lite") [all...] |
/art/compiler/ |
file_output_stream.cc | 26 FileOutputStream::FileOutputStream(File* file) : OutputStream(file->GetPath()), file_(file) {} 29 return file_->WriteFully(buffer, byte_count); 33 return lseek(file_->Fd(), offset, static_cast<int>(whence));
|
/external/chromium_org/third_party/sfntly/cpp/src/sfntly/port/ |
file_input_stream.cc | 29 : file_(NULL), 43 if (file_) { 44 fclose(file_); 47 file_ = NULL; 61 if (!file_) { 67 if (feof(file_)) { 74 size_t length = fread(&value, 1, 1, file_); 85 if (!file_) { 91 if (feof(file_)) { 101 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); [all...] |
/external/sfntly/cpp/src/sfntly/port/ |
file_input_stream.cc | 27 : file_(NULL), 41 if (file_) { 42 fclose(file_); 45 file_ = NULL; 59 if (!file_) { 65 if (feof(file_)) { 72 size_t length = fread(&value, 1, 1, file_); 83 if (!file_) { 89 if (feof(file_)) { 99 int32_t actual_read = fread(&((*b)[offset]), 1, read_count, file_); [all...] |
/external/protobuf/src/google/protobuf/compiler/cpp/ |
cpp_file.cc | 55 : file_(file), 86 SplitStringUsing(file_->package(), ".", &package_parts_); 92 string filename_identifier = FilenameIdentifier(file_->name()); 104 "filename", file_->name(), 135 if (HasDescriptorMethods(file_)) { 140 if (HasGenericServices(file_)) { 146 for (int i = 0; i < file_->dependency_count(); i++) { 149 "dependency", StripProto(file_->dependency(i)->name())); 164 "adddescriptorsname", GlobalAddDescriptorsName(file_->name()), 173 "assigndescriptorsname", GlobalAssignDescriptorsName(file_->name()) [all...] |
/external/chromium_org/courgette/ |
memory_allocator.cc | 18 TempFile::TempFile() : file_(base::kInvalidPlatformFileValue) { 27 base::ClosePlatformFile(file_); 28 file_ = base::kInvalidPlatformFileValue; 33 DCHECK(file_ == base::kInvalidPlatformFileValue); 44 file_ = base::CreatePlatformFile(path, flags, &created, &error_code); 45 if (file_ == base::kInvalidPlatformFileValue) 52 return file_ != base::kInvalidPlatformFileValue; 56 return file_; 60 return base::TruncatePlatformFile(file_, size); 123 if (!file_.Create() | [all...] |
/external/chromium/base/ |
event_recorder.cc | 51 DCHECK(!file_); 52 file_ = file_util::OpenFile(filename, "wb+"); 53 if (!file_) { 66 file_util::CloseFile(file_); 86 DCHECK(file_ != NULL); 87 file_util::CloseFile(file_); 88 file_ = NULL; 102 DCHECK(!file_); 103 file_ = file_util::OpenFile(filename, "rb"); 104 if (!file_) { [all...] |
/external/chromium_org/base/ |
event_recorder_win.cc | 51 DCHECK(!file_); 52 file_ = OpenFile(filename, "wb+"); 53 if (!file_) { 66 CloseFile(file_); 86 DCHECK(file_ != NULL); 87 CloseFile(file_); 88 file_ = NULL; 102 DCHECK(!file_); 103 file_ = OpenFile(filename, "rb"); 104 if (!file_) { [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/java/ |
java_file.cc | 136 : file_(file), 150 for (int i = 0; i < file_->enum_type_count() && !found_conflict; i++) { 151 if (file_->enum_type(i)->name() == classname_) { 155 for (int i = 0; i < file_->message_type_count() && !found_conflict; i++) { 156 if (file_->message_type(i)->name() == classname_) { 160 for (int i = 0; i < file_->service_count() && !found_conflict; i++) { 161 if (file_->service(i)->name() == classname_) { 167 error->assign(file_->name()); 188 "filename", file_->name()); 206 "lite", HasDescriptorMethods(file_) ? "" : "Lite") [all...] |
/external/protobuf/src/google/protobuf/compiler/javanano/ |
javanano_file.cc | 89 : file_(file), 99 file_->CopyTo(&file_proto); 101 error->assign(file_->name()); 108 if (file_->service_count() != 0) { 109 error->assign(file_->name()); 115 if (!IsOuterClassNeeded(params_, file_)) { 120 if (!params_.has_java_outer_classname(file_->name()) 121 && file_->message_type_count() == 1 122 && file_->enum_type_count() == 0 && file_->extension_count() == 0) [all...] |
/external/chromium_org/third_party/libjingle/source/talk/base/ |
filelock.cc | 38 : path_(path), file_(file) { 51 if (file_) { 53 file_->Close(); 55 file_.reset();
|
/external/marisa-trie/lib/marisa/ |
writer.cc | 15 : file_(NULL), fd_(-1), stream_(NULL), needs_fclose_(false) {} 18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {} 21 : file_(NULL), fd_(fd), stream_(NULL), needs_fclose_(false) {} 24 : file_(NULL), fd_(-1), stream_(stream), needs_fclose_(false) {} 28 ::fclose(file_); 60 file_ = file; 70 Swap(&file_, &rhs->file_); 90 } else if (file_ != NULL) { 91 if ((::fwrite(data, 1, size, file_) != size) || (::fflush(file_) != 0)) [all...] |
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
writer.cc | 15 : file_(NULL), fd_(-1), stream_(NULL), needs_fclose_(false) {} 18 : file_(file), fd_(-1), stream_(NULL), needs_fclose_(false) {} 21 : file_(NULL), fd_(fd), stream_(NULL), needs_fclose_(false) {} 24 : file_(NULL), fd_(-1), stream_(stream), needs_fclose_(false) {} 28 ::fclose(file_); 60 file_ = file; 70 Swap(&file_, &rhs->file_); 90 } else if (file_ != NULL) { 91 if ((::fwrite(data, 1, size, file_) != size) || (::fflush(file_) != 0)) [all...] |
/external/chromium_org/net/disk_cache/flash/ |
storage.cc | 29 file_ = base::CreatePlatformFile(path_, flags, NULL, NULL); 30 if (file_ == base::kInvalidPlatformFileValue) 37 fallocate(file_, 0, 0, size_); 44 base::ClosePlatformFile(file_); 50 int rv = base::ReadPlatformFile(file_, offset, static_cast<char*>(buffer), 58 int rv = base::WritePlatformFile(file_, offset,
|