/external/chromium_org/third_party/sfntly/cpp/src/test/ |
H A D | file_io_test.cc | 27 FILE* file_handle = NULL; local 29 fopen_s(&file_handle, SAMPLE_TTF_FILE, "rb"); 31 file_handle = fopen(SAMPLE_TTF_FILE, "rb"); 33 if (file_handle == NULL) { 36 fseek(file_handle, 0, SEEK_END); 37 size_t length = ftell(file_handle); 38 fseek(file_handle, 0, SEEK_SET); 41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); 43 fclose(file_handle); 88 FILE* file_handle local [all...] |
/external/sfntly/cpp/src/test/ |
H A D | file_io_test.cc | 27 FILE* file_handle = NULL; local 29 fopen_s(&file_handle, SAMPLE_TTF_FILE, "rb"); 31 file_handle = fopen(SAMPLE_TTF_FILE, "rb"); 33 if (file_handle == NULL) { 36 fseek(file_handle, 0, SEEK_END); 37 size_t length = ftell(file_handle); 38 fseek(file_handle, 0, SEEK_SET); 41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); 43 fclose(file_handle); 88 FILE* file_handle local [all...] |
/external/chromium_org/ppapi/tests/ |
H A D | test_flash_file.cc | 28 void CloseFileHandle(PP_FileHandle file_handle) { argument 30 CloseHandle(file_handle); 32 close(file_handle); 36 bool WriteFile(PP_FileHandle file_handle, const std::string& contents) { argument 39 BOOL result = ::WriteFile(file_handle, contents.c_str(), contents.size(), 45 bytes_written = write(file_handle, contents.c_str(), contents.size()); 51 bool ReadFile(PP_FileHandle file_handle, std::string* contents) { argument 58 SetFilePointer(file_handle, 0, NULL, FILE_BEGIN); 61 result = !!::ReadFile(file_handle, buffer, kBufferSize, &bytes_read, NULL); 66 lseek(file_handle, 129 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, local 161 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, local 193 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, local 243 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, local 279 PP_FileHandle file_handle = FileModuleLocal::OpenFile(instance_, local 309 PP_FileHandle file_handle = FileModuleLocal::CreateTemporaryFile(instance_); local [all...] |
/external/chromium_org/third_party/android_testrunner/ |
H A D | logger.py | 55 file_handle = file(_LOG_FILE, 'a') 56 file_handle.write('\n' + str(msg)) 57 file_handle.close()
|
/external/chromium_org/sandbox/win/src/ |
H A D | handle_inheritance_test.cc | 30 HANDLE file_handle = CreateFile( local 34 EXPECT_NE(file_handle, INVALID_HANDLE_VALUE); 37 EXPECT_EQ(SBOX_ALL_OK, runner.GetPolicy()->SetStdoutHandle(file_handle)); 40 EXPECT_TRUE(::CloseHandle(file_handle));
|
/external/chromium_org/third_party/skia/tools/copyright/ |
H A D | main.py | 88 with open(filepath, 'r') as file_handle: 89 contents = file_handle.read() 96 with open(filepath, 'w') as file_handle: 97 file_handle.write(string)
|
/external/skia/tools/copyright/ |
H A D | main.py | 88 with open(filepath, 'r') as file_handle: 89 contents = file_handle.read() 96 with open(filepath, 'w') as file_handle: 97 file_handle.write(string)
|
/external/chromium_org/ppapi/cpp/private/ |
H A D | flash_file.cc | 41 PP_FileHandle file_handle = PP_kInvalidFileHandle; local 45 OpenFile(instance.pp_instance(), path.c_str(), mode, &file_handle); 47 return (result == PP_OK) ? file_handle : PP_kInvalidFileHandle; 125 PP_FileHandle file_handle = PP_kInvalidFileHandle; local 129 CreateTemporaryFile(instance.pp_instance(), &file_handle); 131 return (result == PP_OK) ? file_handle : PP_kInvalidFileHandle; 156 PP_FileHandle file_handle = PP_kInvalidFileHandle; local 160 OpenFile(resource.pp_resource(), mode, &file_handle); 162 return (result == PP_OK) ? file_handle : PP_kInvalidFileHandle;
|
/external/chromium_org/content/child/ |
H A D | database_util.cc | 21 IPC::PlatformFileForTransit file_handle = local 26 vfs_file_name, desired_flags, &file_handle)); 28 return IPC::PlatformFileForTransitToPlatformFile(file_handle);
|
/external/chromium_org/content/renderer/media/ |
H A D | aec_dump_message_filter.h | 28 const IPC::PlatformFileForTransit& file_handle) = 0; 73 void OnEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); 77 void DoEnableAecDump(int id, IPC::PlatformFileForTransit file_handle);
|
H A D | aec_dump_message_filter.cc | 128 IPC::PlatformFileForTransit file_handle) { 136 file_handle)); 150 IPC::PlatformFileForTransit file_handle) { 154 it->second->OnAecDumpFile(file_handle); 157 base::File file = IPC::PlatformFileForTransitToFile(file_handle); 126 OnEnableAecDump( int id, IPC::PlatformFileForTransit file_handle) argument 148 DoEnableAecDump( int id, IPC::PlatformFileForTransit file_handle) argument
|
/external/chromium_org/base/test/ |
H A D | test_file_util_win.cc | 136 base::win::ScopedHandle file_handle( 139 if (!file_handle.IsValid()) 144 CHECK(::GetFileInformationByHandle(file_handle.Get(), &bhi)); 162 ::ReadFile(file_handle.Get(), buffer, kOneMB, &bytes_read, NULL); 179 SetFilePointer(file_handle.Get(), total_bytes, NULL, FILE_BEGIN); 180 if (!::WriteFile(file_handle.Get(), buffer, kOneMB, &bytes_written, NULL) || 202 file_handle.Set(NULL); 203 file_handle.Set(CreateFile(file.value().c_str(), GENERIC_WRITE, 0, NULL, 205 CHECK_NE(SetFilePointer(file_handle.Get(), total_bytes, NULL, FILE_BEGIN), 207 CHECK(::SetEndOfFile(file_handle [all...] |
/external/chromium_org/chrome/app/ |
H A D | image_pre_reader_win.cc | 45 bool SetFilePointer(HANDLE file_handle, size_t position) { argument 47 ::SetFilePointer(file_handle, 54 // given by |file_handle| into |buffer|. 55 bool ReadNextBytes(HANDLE file_handle, void* buffer, size_t bytes_to_read) { argument 56 DCHECK(file_handle != INVALID_HANDLE_VALUE); 62 ::ReadFile(file_handle, 71 // contains |desired_length| bytes read from the file given by |file_handle|. 73 // It is assumed that |file_handle| has been used to sequentially populate 76 bool ReadMissingBytes(HANDLE file_handle, argument 79 DCHECK(file_handle ! 128 ReadThroughSection(HANDLE file_handle, const IMAGE_SECTION_HEADER* section, size_t percentage, void* temp_buffer, size_t temp_buffer_size) argument [all...] |
/external/chromium_org/ppapi/native_client/src/trusted/plugin/ |
H A D | utility.cc | 120 void CloseFileHandle(PP_FileHandle file_handle) { argument 122 CloseHandle(file_handle); 124 close(file_handle);
|
H A D | utility.h | 34 void CloseFileHandle(PP_FileHandle file_handle);
|
/external/chromium_org/chrome/browser/chromeos/file_system_provider/operations/ |
H A D | write_file.cc | 18 int file_handle, 24 file_handle_(file_handle), 16 WriteFile(extensions::EventRouter* event_router, const ProvidedFileSystemInfo& file_system_info, int file_handle, scoped_refptr<net::IOBuffer> buffer, int64 offset, int length, const storage::AsyncFileUtil::StatusCallback& callback) argument
|
H A D | open_file_unittest.cc | 37 Event(int file_handle, base::File::Error result) argument 38 : file_handle_(file_handle), result_(result) {} 41 int file_handle() { return file_handle_; } function in class:chromeos::file_system_provider::operations::__anon3205::CallbackLogger::Event 54 void OnOpenFile(int file_handle, base::File::Error result) { argument 55 events_.push_back(new Event(file_handle, result)); 205 EXPECT_LT(0, event->file_handle()); 230 ASSERT_EQ(0, event->file_handle());
|
H A D | read_file.h | 37 int file_handle,
|
H A D | write_file.h | 37 int file_handle,
|
/external/chromium_org/chrome_elf/create_file/ |
H A D | chrome_create_file_unittest.cc | 54 PHANDLE file_handle, 65 return self_->HandleCreateFileCall(file_handle, 129 NTSTATUS HandleCreateFileCall(PHANDLE file_handle, argument 155 return old_func_ptr_(file_handle, 221 base::win::ScopedHandle file_handle; local 227 file_handle.Set(::CreateFileW(path.value().c_str(), 235 file_handle.Set(CreateFileNTDLL(path.value().c_str(), 245 EXPECT_TRUE(file_handle.IsValid()); 246 ::WriteFile(file_handle.Get(), kTestData, buffer_size, &bytes_written, 252 base::win::ScopedHandle file_handle; local 53 FakeNtCreateFile( PHANDLE file_handle, ACCESS_MASK desired_access, POBJECT_ATTRIBUTES object_attributes, PIO_STATUS_BLOCK io_status_block, PLARGE_INTEGER allocation_size, ULONG file_attributes, ULONG share_access, ULONG create_disposition, ULONG create_options, PVOID ea_buffer, ULONG ea_length) argument [all...] |
/external/chromium_org/chrome/browser/chromeos/file_system_provider/ |
H A D | provided_file_system.h | 55 int file_handle, 58 int file_handle, 87 int file_handle,
|
H A D | provided_file_system_interface.h | 66 typedef base::Callback<void(int file_handle, base::File::Error result)> 109 // |file_handle|. For either succes or error |callback| must be called. 111 int file_handle, 114 // Requests reading a file previously opened with |file_handle|. The callback 118 virtual AbortCallback ReadFile(int file_handle, 165 // Requests writing to a file previously opened with |file_handle|. 167 int file_handle,
|
/external/chromium_org/third_party/webrtc/test/ |
H A D | frame_generator.cc | 112 FILE* file_handle = fopen(file, "rb"); local 113 assert(file_handle); 114 return new YuvFileGenerator(file_handle, width, height);
|
/external/chromium_org/third_party/skia/gm/rebaseline_server/ |
H A D | server.py | 191 with open(file_path, 'w') as file_handle: 192 file_handle.write( 198 file_handle.write('<li>GM Expectations vs Actuals</li><ul>') 200 file_handle.write( 207 file_handle.write('</ul>') 210 file_handle.write( 213 file_handle.write('<li>%s vs %s:' % config_pair) 215 file_handle.write( 221 file_handle.write('</li>') 222 file_handle [all...] |
/external/chromium_org/content/browser/renderer_host/pepper/ |
H A D | quota_reservation.cc | 67 scoped_ptr<storage::OpenFileHandle> file_handle = local 70 files_.insert(std::make_pair(id, file_handle.get())); 72 int64_t max_written_offset = file_handle->GetMaxWrittenOffset(); 73 ignore_result(file_handle.release());
|