/external/chromium_org/net/base/ |
file_stream_context.cc | 3 // found in the LICENSE file. 45 : file(base::kInvalidPlatformFileValue) { 48 FileStream::Context::OpenResult::OpenResult(base::PlatformFile file, 50 : file(file), 91 file_ = result.file; 200 base::PlatformFile file; local 206 file = base::OpenContentUriForRead(path); 209 // FileStream::Context actually closes the file asynchronously, 211 // users wanting to delete the file right after FileStream deletion. Thu [all...] |
file_stream_context.h | 3 // found in the LICENSE file. 5 // This file defines FileStream::Context class. 12 // instance is deleted. So FileStream's destructor can schedule file 18 // header file contains the complete definition of Context class including all 64 Context(base::PlatformFile file, 93 base::PlatformFile file() const { return file_; } function in class:net::FileStream::Context 101 // deferred if some asynchronous operation is now in progress or if file is 138 OpenResult(base::PlatformFile file, IOResult error_code); 139 base::PlatformFile file; member in struct:net::FileStream::Context::OpenResult 196 // Closes the file [all...] |
/external/chromium_org/net/disk_cache/ |
block_files_unittest.cc | 3 // found in the LICENSE file. 21 for (base::FilePath file = iter.Next(); !file.value().empty(); 22 file = iter.Next()) { 42 // Fill up the 32-byte block file (use three files). 68 // Fill up the 32-byte block file (use three files). 113 // At this point, there are kNumEntries / 2 entries on the file, randomly 117 MappedFile* file = files.GetFile(address); local 118 ASSERT_TRUE(NULL != file); 121 reinterpret_cast<BlockFileHeader*>(file->buffer()) 213 MappedFile* file = files.GetFile(address); local [all...] |
/external/chromium_org/net/disk_cache/simple/ |
simple_version_upgrade.cc | 3 // found in the LICENSE file. 33 base::PlatformFile file = base::CreatePlatformFile( local 43 file, 0, reinterpret_cast<char*>(&file_contents), sizeof(file_contents)); 44 if (!base::ClosePlatformFile(file) || 46 LOG(ERROR) << "Failed to write fake index file: " 65 // The V5 and V6 caches differ in the name of the index file (it moved to a 66 // subdirectory) and in the file format (directory last-modified time observed 70 // file. The directory for the new index file has to be created lazily anyway, 73 // Below is the detailed description of index file format differences. It is fo [all...] |
/external/chromium_org/net/tools/dump_cache/ |
cache_dumper.cc | 3 // found in the LICENSE file. 52 // If the path starts with the long file header, skip over that 103 base::FilePath::StringType file = entry_path_.value(); local 105 entry_ = CreateFileW(file.c_str(), GENERIC_WRITE|GENERIC_READ, 0, 0, 108 wprintf(L"CreateFileW (%s) failed: %d\n", file.c_str(), GetLastError()); 172 // Skip this entry if it was truncated (results in an empty file).
|
/external/chromium_org/ppapi/tests/ |
test_broker.cc | 3 // found in the LICENSE file. 83 bool ReadMessage(PlatformFile file, size_t message_len, char* message) { 88 return ::ReadFile(file, message, size, &read, NULL) && read == size; 94 ssize_t read = HANDLE_EINTR(::read(file, message + total_read, 104 bool WriteMessage(PlatformFile file, size_t message_len, const char* message) { 109 return ::WriteFile(file, message, size, &written, NULL) && written == size; 115 ssize_t written = HANDLE_EINTR(::write(file, message + total_written, 125 bool VerifyMessage(PlatformFile file, size_t message_len, const char* message) { 127 bool success = ReadMessage(file, message_len, message_received) && 133 bool ClosePlatformFile(PlatformFile file) { 296 PlatformFile file = IntToPlatformFile(handle); local [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
WebDragData.cpp | 88 File* file = toFile(blob.get()); local 89 item.filenameData = file->path(); 90 item.displayNameData = file->name();
|
/external/chromium_org/third_party/icu/source/tools/toolutil/ |
filestrm.c | 9 * File FILESTRM.C 34 FILE *file = fopen(filename, mode); local 35 return (FileStream*)file; 47 FILE* result = _wfopen(filename, mode); 52 FILE *result; 76 fclose((FILE*)fileStream); 82 FILE* temp = fopen(filename, "r"); 97 FILE* file = tmpfile() [all...] |
unewdata.c | 8 * file name: unewdata.c 28 FileStream *file; member in struct:UNewDataMemory 84 /* open the output file */ 100 pData->file=T_FileStream_open(filename, "wb"); 101 if(pData->file==NULL) { 120 T_FileStream_write(pData->file, &pData->headerSize, 4); 123 T_FileStream_write(pData->file, pInfo, pInfo->size); 127 T_FileStream_write(pData->file, comment, commentLength); 135 T_FileStream_write(pData->file, bytes, headerSize); 150 if(pData->file!=NULL) [all...] |
uparse.c | 8 * file name: uparse.c 16 * This file provides a parser for files that are delimited by one single 76 FileStream *file; local 92 file=T_FileStream_stdin(); 94 file=T_FileStream_open(filename, "r"); 96 if(file==NULL) { 101 while(T_FileStream_readLine(file, line, sizeof(line))!=NULL) { 176 T_FileStream_close(file);
|
/external/chromium_org/third_party/leveldatabase/src/db/ |
table_cache.cc | 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. 15 RandomAccessFile* file; member in struct:leveldb::TableAndFile 22 delete tf->file; 54 RandomAccessFile* file = NULL; local 56 s = env_->NewRandomAccessFile(fname, &file); 59 if (env_->NewRandomAccessFile(old_fname, &file).ok()) { 64 s = Table::Open(*options_, file, file_size, &table); 69 delete file; 71 // or somebody repairs the file, we recover automatically [all...] |
/external/chromium_org/third_party/leveldatabase/src/util/ |
env.cc | 3 // found in the LICENSE file. See the AUTHORS file for names of contributors. 39 WritableFile* file; local 40 Status s = env->NewWritableFile(fname, &file); 44 s = file->Append(data); 46 s = file->Sync(); 49 s = file->Close(); 51 delete file; // Will auto-close if we did not close above 70 SequentialFile* file; local 71 Status s = env->NewSequentialFile(fname, &file); [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/bio/ |
bss_file.c | 108 "FILE pointer", 122 FILE *file=NULL; local 154 (file=_wfopen(wfilename,wmode))==NULL && 156 ) /* UTF-8 decode succeeded, but no file, filename 158 file = fopen(filename,mode); 162 file = fopen(filename,mode); 165 file=fopen(filename,mode); 167 if (file == NULL) 179 fclose(file); [all...] |
/external/chromium_org/third_party/opus/src/celt/dump_modes/ |
dump_modes.c | 51 void dump_modes(FILE *file, CELTMode **modes, int nb_modes) 54 fprintf(file, "/* The contents of this file was automatically generated by dump_modes.c\n"); 55 fprintf(file, " with arguments:"); 59 fprintf(file, " %d %d",mode->Fs,mode->shortMdctSize*mode->nbShortMdcts); 61 fprintf(file, "\n It contains static definitions for some pre-defined modes. */\n"); 62 fprintf(file, "#include \"modes.h\"\n"); 63 fprintf(file, "#include \"rate.h\"\n"); 65 fprintf(file, "\n") 300 FILE *file; local [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/ |
plugin.cc | 73 CodeGeneratorResponse::File* file = response_->add_file(); local 74 file->set_name(filename); 75 return new io::StringOutputStream(file->mutable_content()); 80 CodeGeneratorResponse::File* file = response_->add_file(); local 81 file->set_name(filename); 82 file->set_insertion_point(insertion_point); 83 return new io::StringOutputStream(file->mutable_content()); 115 const FileDescriptor* file = pool.BuildFile(request.proto_file(i)) local 137 const FileDescriptor* file = parsed_files[i]; local [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/ |
message_unittest.cc | 110 int file = open(filename.c_str(), O_RDONLY | O_BINARY); local 113 EXPECT_TRUE(message.ParseFromFileDescriptor(file)); 116 EXPECT_GE(close(file), 0); 123 int file = open(filename.c_str(), O_RDONLY | O_BINARY); local 126 EXPECT_TRUE(message.ParseFromFileDescriptor(file)); 129 EXPECT_GE(close(file), 0); 342 FileDescriptorProto file; local 343 file.set_name("foo.proto"); 344 file.add_message_type()->set_name("Foo"); 345 const Descriptor* descriptor = pool.BuildFile(file)->message_type(0) [all...] |
/external/chromium_org/third_party/protobuf/src/google/protobuf/testing/ |
file.cc | 32 // emulates google3/file/base/file.cc 34 #include <google/protobuf/testing/file.h> 40 #include <windows.h> // Find*File(). :( 61 bool File::Exists(const string& name) { 65 bool File::ReadFileToString(const string& name, string* output) { 67 FILE* file = fopen(name.c_str(), "rb"); local 68 if (file == NULL) return false; 71 size_t n = fread(buffer, 1, sizeof(buffer), file); 86 FILE* file = fopen(name.c_str(), "wb"); local [all...] |
/external/chromium_org/third_party/skia/src/ports/ |
SkOSFile_win.cpp | 5 * found in the LICENSE file. 23 int fileno = _fileno((FILE*)f); 28 HANDLE file = (HANDLE)_get_osfhandle(fileno); local 29 if (INVALID_HANDLE_VALUE == file) { 35 if (0 == GetFileInformationByHandle(file, &info)) { 71 HANDLE file = (HANDLE)_get_osfhandle(fileno); local 72 if (INVALID_HANDLE_VALUE == file) { 77 if (0 == GetFileSizeEx(file, &fileSize)) { 78 //TODO: use SK_TRACEHR(GetLastError(), "Could not get file size.") to report. 85 SkAutoWinMMap mmap(CreateFileMapping(file, NULL, PAGE_READONLY, 0, 0, NULL)) [all...] |
/external/chromium_org/third_party/zlib/contrib/minizip/ |
ioapi.c | 85 FILE* file = NULL; local 97 file = fopen(filename, mode_fopen); 98 return file; 103 FILE* file = NULL; local 115 file = fopen64((const char*)filename, mode_fopen); 116 return file; 123 ret = (uLong)fread(buf, 1, (size_t)size, (FILE *)stream); 130 ret = (uLong)fwrite(buf, 1, (size_t)size, (FILE *)stream) [all...] |
/external/chromium_org/tools/gn/ |
command_args.cc | 3 // found in the LICENSE file. 62 const InputFile* file = location.file(); local 63 if (!file) 66 *location_str = file->name().value() + ":" + 69 const std::string& data = file->contents();
|
ninja_build_writer.cc | 3 // found in the LICENSE file. 116 std::ofstream file; local 117 file.open(FilePathToUTF8(ninja_file).c_str(), 119 if (file.fail()) 129 default_toolchain_targets, file, depfile); 139 // This rule will regenerate the ninja files when any input file has changed. 160 // Input build files. These go in the ".d" file. If we write them as 161 // dependencies in the .ninja file itself, ninja will expect the files to
|
/external/dexmaker/src/dx/java/com/android/dx/dex/file/ |
AnnotationSetItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 115 public void addContents(DexFile file) { 116 MixedItemSection byteData = file.getByteData(); 133 protected void writeTo0(DexFile file, AnnotatedOutput out) {
|
ClassDefsSection.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 31 * Class definitions list section of a {@code .dex} file. 44 * Constructs an instance. The file offset is initially unknown. 46 * @param file {@code non-null;} file that this instance is part of 48 public ClassDefsSection(DexFile file) { 49 super("class_defs", file, 4); 85 * Writes the portion of the file header that refers to this instance.
|
EncodedArrayItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 34 * {@code null-ok;} encoded form, ready for writing to a file; set during 86 public void addContents(DexFile file) { 87 ValueEncoder.addContents(file, array); 105 protected void writeTo0(DexFile file, AnnotatedOutput out) { 116 ValueEncoder encoder = new ValueEncoder(file, out);
|
MemberIdItem.java | 5 * you may not use this file except in compliance with the License. 17 package com.android.dx.dex.file; 27 * Dalvik file. 52 public void addContents(DexFile file) { 53 super.addContents(file); 55 StringIdsSection stringIds = file.getStringIds(); 61 public final void writeTo(DexFile file, AnnotatedOutput out) { 62 TypeIdsSection typeIds = file.getTypeIds(); 63 StringIdsSection stringIds = file.getStringIds(); 67 int typoidIdx = getTypoidIdx(file); [all...] |