/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/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/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/ppapi/native_client/src/trusted/plugin/ |
H A D | temporary_file.cc | 42 PP_FileHandle file_handle; local 44 file_handle = 47 file_handle = existing_handle_; 51 if (file_handle == PP_kInvalidFileHandle) { 57 HANDLE handle = file_handle; 71 int32_t fd = file_handle;
|
H A D | pnacl_resources.cc | 73 PP_FileHandle file_handle = local 75 if (file_handle == PP_kInvalidFileHandle) 80 int32_t posix_desc = _open_osfhandle(reinterpret_cast<intptr_t>(file_handle), 86 CloseHandle(file_handle); 90 return file_handle;
|
/external/chromium_org/webkit/browser/database/ |
H A D | vfs_backend.h | 23 base::PlatformFile* file_handle); 27 base::PlatformFile* file_handle);
|
H A D | vfs_backend.cc | 60 base::PlatformFile* file_handle) { 97 *file_handle = 105 base::PlatformFile* file_handle) { 118 OpenFile(temp_file_path, desired_flags, file_handle); 58 OpenFile(const base::FilePath& file_path, int desired_flags, base::PlatformFile* file_handle) argument 102 OpenTempFileInDirectory( const base::FilePath& dir_path, int desired_flags, base::PlatformFile* file_handle) argument
|
/external/chromium/base/test/ |
H A D | test_file_util_win.cc | 42 base::win::ScopedHandle file_handle( 45 if (!file_handle) 50 CHECK(::GetFileInformationByHandle(file_handle, &bhi)); 68 ::ReadFile(file_handle, buffer, kOneMB, &bytes_read, NULL); 85 SetFilePointer(file_handle, total_bytes, NULL, FILE_BEGIN); 86 if (!::WriteFile(file_handle, buffer, kOneMB, &bytes_written, NULL) || 108 file_handle.Set(NULL); 109 file_handle.Set(CreateFile(file.value().c_str(), GENERIC_WRITE, 0, NULL, 111 CHECK_NE(SetFilePointer(file_handle, total_bytes, NULL, FILE_BEGIN), 113 CHECK(::SetEndOfFile(file_handle)); [all...] |
/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/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/components/nacl/renderer/ |
H A D | pnacl_translation_resource_host.h | 33 PP_FileHandle* file_handle, 50 PP_FileHandle* file_handle; member in class:PnaclTranslationResourceHost::CacheRequestInfo 67 PP_FileHandle* file_handle,
|
H A D | pnacl_translation_resource_host.cc | 19 : is_hit(hit), file_handle(handle), callback(cb) {} 63 PP_FileHandle* file_handle, 75 file_handle, 85 PP_FileHandle* file_handle, 98 instance, CacheRequestInfo(is_hit, file_handle, callback))); 140 *it->second.file_handle = IPC::PlatformFileForTransitToPlatformFile(file); 58 RequestNexeFd( int render_view_id, PP_Instance instance, const nacl::PnaclCacheInfo& cache_info, PP_Bool* is_hit, PP_FileHandle* file_handle, scoped_refptr<TrackedCallback> callback) argument 80 SendRequestNexeFd( int render_view_id, PP_Instance instance, const nacl::PnaclCacheInfo& cache_info, PP_Bool* is_hit, PP_FileHandle* file_handle, scoped_refptr<TrackedCallback> callback) argument
|
/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/webkit/browser/fileapi/ |
H A D | test_file_set.cc | 53 base::PlatformFile file_handle = local 57 ASSERT_NE(base::kInvalidPlatformFileValue, file_handle); 58 EXPECT_TRUE(base::ClosePlatformFile(file_handle));
|
/external/chromium_org/base/test/ |
H A D | test_file_util_win.cc | 138 base::win::ScopedHandle file_handle( 141 if (!file_handle) 146 CHECK(::GetFileInformationByHandle(file_handle, &bhi)); 164 ::ReadFile(file_handle, buffer, kOneMB, &bytes_read, NULL); 181 SetFilePointer(file_handle, total_bytes, NULL, FILE_BEGIN); 182 if (!::WriteFile(file_handle, buffer, kOneMB, &bytes_written, NULL) || 204 file_handle.Set(NULL); 205 file_handle.Set(CreateFile(file.value().c_str(), GENERIC_WRITE, 0, NULL, 207 CHECK_NE(SetFilePointer(file_handle, total_bytes, NULL, FILE_BEGIN), 209 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/base/files/ |
H A D | file_util_proxy.cc | 192 PlatformFile* file_handle, bool* created) { 193 DCHECK(file_handle); 200 *file_handle = CreatePlatformFile(file_path, file_flags, created, &error); 204 PlatformFileError CloseAdapter(PlatformFile file_handle) { argument 205 if (!ClosePlatformFile(file_handle)) { 254 base::PlatformFile file_handle, 259 file_handle, callback); 407 PlatformFile file_handle, 410 task_runner, FROM_HERE, Bind(close_task, file_handle), callback); 190 CreateOrOpenAdapter( const FilePath& file_path, int file_flags, PlatformFile* file_handle, bool* created) argument 252 Close( TaskRunner* task_runner, base::PlatformFile file_handle, const StatusCallback& callback) argument 404 RelayClose( TaskRunner* task_runner, const CloseTask& close_task, PlatformFile file_handle, const StatusCallback& callback) argument
|
/external/chromium_org/content/browser/renderer_host/pepper/ |
H A D | quota_reservation.cc | 68 scoped_ptr<fileapi::OpenFileHandle> file_handle = local 71 files_.insert(std::make_pair(id, file_handle.get())); 73 int64_t max_written_offset = file_handle->base_file_size(); 74 ignore_result(file_handle.release());
|
H A D | pepper_flash_file_message_filter.cc | 127 base::PlatformFile file_handle = base::CreatePlatformFile( local 130 DCHECK_EQ(file_handle, base::kInvalidPlatformFileValue); 137 if (!base::GetPlatformFileInfo(file_handle, &info) || info.is_directory) { 139 base::ClosePlatformFile(file_handle); 144 IPC::PlatformFileForTransit file = IPC::GetFileHandleForProcess(file_handle, 268 base::PlatformFile file_handle = base::CreatePlatformFile( local 276 DCHECK_EQ(file_handle, base::kInvalidPlatformFileValue); 280 IPC::PlatformFileForTransit file = IPC::GetFileHandleForProcess(file_handle,
|
/external/chromium_org/content/browser/renderer_host/ |
H A D | database_message_filter.cc | 121 base::PlatformFile file_handle = base::kInvalidPlatformFileValue; local 132 desired_flags, &file_handle); 141 db_tracker_->GetIncognitoFileHandle(vfs_file_name, &file_handle); 142 if (file_handle == base::kInvalidPlatformFileValue) { 145 &file_handle); 147 db_tracker_->SaveIncognitoFileHandle(vfs_file_name, file_handle); 150 VfsBackend::OpenFile(db_file, desired_flags, &file_handle); 160 IPC::GetFileHandleForProcess(file_handle, PeerHandle(), auto_close);
|
/external/chromium_org/content/browser/fileapi/ |
H A D | local_file_util_unittest.cc | 93 base::PlatformFile* file_handle, 102 file_flags, file_handle, created); 127 base::PlatformFile file_handle; local 130 CreateFile(file_name, &file_handle, &created)); 138 file_util()->Close(context.get(), file_handle)); 163 base::PlatformFile file_handle; local 166 context.get(), url, file_flags, &file_handle, &created)); 186 base::PlatformFile file_handle; local 189 CreateFile(file_name, &file_handle, &created)); 210 file_util()->Close(context.get(), file_handle)); 92 CreateFile(const char* file_name, base::PlatformFile* file_handle, bool* created) argument [all...] |
/external/chromium_org/sandbox/win/tools/finder/ |
H A D | finder_kernel.cc | 101 HANDLE file_handle; local 102 NTSTATUS status_code = NtOpenDirectoryObject(&file_handle, 108 status_code = NtQueryDirectoryObject(file_handle, 119 while (NtQueryDirectoryObject(file_handle, object_directory_info, 143 NtClose(file_handle);
|
/external/skia/bench/ |
H A D | check_bench_regressions.py | 94 file_handle = open(directory + '/' + bench_file, 'r') 98 bench_util.parse(default_settings, file_handle, rep)) 99 file_handle.close()
|