/external/chromium_org/ppapi/tests/ |
test_flash_file.cc | 28 void CloseFileHandle(PP_FileHandle file_handle) { 30 CloseHandle(file_handle); 32 close(file_handle); 36 bool WriteFile(PP_FileHandle file_handle, const std::string& contents) { 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) { 58 SetFilePointer(file_handle, 0, NULL, FILE_BEGIN); 61 result = !!::ReadFile(file_handle, buffer, kBufferSize, &bytes_read, NULL); 66 lseek(file_handle, 0, SEEK_SET) 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/sfntly/cpp/src/test/ |
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 = NULL local [all...] |
/external/sfntly/cpp/src/test/ |
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 = NULL local [all...] |
/external/chromium_org/sandbox/win/src/ |
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/ppapi/cpp/private/ |
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;
|
/development/testrunner/ |
logger.py | 55 file_handle = file(_LOG_FILE, 'a') 56 file_handle.write('\n' + str(msg)) 57 file_handle.close()
|
/external/chromium_org/content/child/ |
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/ |
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);
|
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);
|
/external/chromium_org/third_party/android_testrunner/ |
logger.py | 55 file_handle = file(_LOG_FILE, 'a') 56 file_handle.write('\n' + str(msg)) 57 file_handle.close()
|
/external/chromium_org/base/test/ |
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.Get())) [all...] |
/external/chromium_org/chrome/app/ |
image_pre_reader_win.cc | 45 bool SetFilePointer(HANDLE file_handle, size_t position) { 47 ::SetFilePointer(file_handle, 54 // given by |file_handle| into |buffer|. 55 bool ReadNextBytes(HANDLE file_handle, void* buffer, size_t bytes_to_read) { 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, 79 DCHECK(file_handle != INVALID_HANDLE_VALUE) [all...] |
/external/chromium_org/ppapi/native_client/src/trusted/plugin/ |
utility.cc | 120 void CloseFileHandle(PP_FileHandle file_handle) { 122 CloseHandle(file_handle); 124 close(file_handle);
|
utility.h | 34 void CloseFileHandle(PP_FileHandle file_handle);
|
/external/chromium_org/chrome/browser/chromeos/file_system_provider/ |
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,
|
provided_file_system.h | 55 int file_handle, 58 int file_handle, 87 int file_handle,
|
fake_provided_file_system.cc | 150 callback, 0 /* file_handle */, base::File::FILE_ERROR_NOT_FOUND)); 153 const int file_handle = ++last_file_handle_; local 154 opened_files_[file_handle] = entry_path; 156 base::Bind(callback, file_handle, base::File::FILE_OK)); 160 int file_handle, 163 opened_files_.find(file_handle); 175 int file_handle, 181 opened_files_.find(file_handle); 287 int file_handle, 293 opened_files_.find(file_handle); [all...] |
/external/chromium_org/chrome/browser/chromeos/file_system_provider/operations/ |
write_file.cc | 18 int file_handle, 24 file_handle_(file_handle),
|
open_file_unittest.cc | 37 Event(int file_handle, base::File::Error result) 38 : file_handle_(file_handle), result_(result) {} 41 int file_handle() { return file_handle_; } function in class:chromeos::file_system_provider::operations::__anon7830::CallbackLogger::Event 54 void OnOpenFile(int file_handle, base::File::Error result) { 55 events_.push_back(new Event(file_handle, result)); 205 EXPECT_LT(0, event->file_handle()); 230 ASSERT_EQ(0, event->file_handle());
|
read_file.h | 37 int file_handle,
|
write_file.h | 37 int file_handle,
|
read_file.cc | 48 int file_handle, 54 file_handle_(file_handle),
|
/external/chromium_org/chrome_elf/create_file/ |
chrome_create_file_unittest.cc | 54 PHANDLE file_handle, 65 return self_->HandleCreateFileCall(file_handle, 129 NTSTATUS HandleCreateFileCall(PHANDLE file_handle, 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 [all...] |
/external/chromium_org/third_party/webrtc/test/ |
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/content/browser/renderer_host/pepper/ |
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());
|