/external/sfntly/cpp/src/test/ |
D | file_io_test.cc | 27 FILE* file_handle = NULL; in TestFileInputStream() local 29 fopen_s(&file_handle, SAMPLE_TTF_FILE, "rb"); in TestFileInputStream() 31 file_handle = fopen(SAMPLE_TTF_FILE, "rb"); in TestFileInputStream() 33 if (file_handle == NULL) { in TestFileInputStream() 36 fseek(file_handle, 0, SEEK_END); in TestFileInputStream() 37 size_t length = ftell(file_handle); in TestFileInputStream() 38 fseek(file_handle, 0, SEEK_SET); in TestFileInputStream() 41 size_t bytes_read = fread(&(b1[0]), 1, length, file_handle); in TestFileInputStream() 43 fclose(file_handle); in TestFileInputStream() 88 FILE* file_handle = NULL; in TestFontInputStreamBasic() local [all …]
|
/external/strace/tests-m32/ |
D | file_handle.c | 54 struct file_handle { struct 99 struct file_handle *fh = in do_name_to_handle_at() 100 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at() 106 sizeof(struct file_handle), in do_name_to_handle_at() 128 struct file_handle *fh = in do_open_by_handle_at() 129 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at() 137 sizeof(struct file_handle), in do_open_by_handle_at() 201 struct file_handle *handle = in main() 202 tail_alloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in main() 203 struct file_handle *handle_0 = in main() [all …]
|
/external/strace/tests-mx32/ |
D | file_handle.c | 54 struct file_handle { struct 99 struct file_handle *fh = in do_name_to_handle_at() 100 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at() 106 sizeof(struct file_handle), in do_name_to_handle_at() 128 struct file_handle *fh = in do_open_by_handle_at() 129 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at() 137 sizeof(struct file_handle), in do_open_by_handle_at() 201 struct file_handle *handle = in main() 202 tail_alloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in main() 203 struct file_handle *handle_0 = in main() [all …]
|
/external/strace/tests/ |
D | file_handle.c | 54 struct file_handle { struct 99 struct file_handle *fh = in do_name_to_handle_at() 100 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at() 106 sizeof(struct file_handle), in do_name_to_handle_at() 128 struct file_handle *fh = in do_open_by_handle_at() 129 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at() 137 sizeof(struct file_handle), in do_open_by_handle_at() 201 struct file_handle *handle = in main() 202 tail_alloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in main() 203 struct file_handle *handle_0 = in main() [all …]
|
/external/python/google-api-python-client/googleapiclient/discovery_cache/ |
D | file_cache.py | 64 f.file_handle().seek(0) 66 cache = json.load(f.file_handle()) 71 f.file_handle().truncate(0) 72 f.file_handle().seek(0) 73 json.dump(cache, f.file_handle()) 130 f.file_handle().truncate(0) 131 f.file_handle().seek(0) 132 json.dump(cache, f.file_handle())
|
/external/u-boot/lib/efi_loader/ |
D | efi_file.c | 25 struct file_handle { struct 37 #define to_fh(x) container_of(x, struct file_handle, base) argument 41 static char *basename(struct file_handle *fh) in basename() 49 static int set_blk_dev(struct file_handle *fh) in set_blk_dev() 54 static int is_dir(struct file_handle *fh) in is_dir() 133 struct file_handle *parent, s16 *file_name, u64 mode) in file_open() 135 struct file_handle *fh; in file_open() 197 struct file_handle *fh = to_fh(file); in efi_file_open() 209 static efi_status_t file_close(struct file_handle *fh) in file_close() 218 struct file_handle *fh = to_fh(file); in efi_file_close() [all …]
|
/external/curl/scripts/ |
D | updatemanpages.pl | 54 my $file_handle; 59 open($file_handle, $filename); 74 close($file_handle); 200 my $file_handle; 209 open($file_handle, $filename); 228 close($file_handle);
|
/external/python/oauth2client/tests/contrib/ |
D | test_locked_file.py | 49 self.assertIsNone(instance.file_handle()) 52 self.assertEqual(instance.file_handle(), fh) 78 self.assertIsNotNone(instance.file_handle()) 91 self.assertIsNone(instance.file_handle()) 101 self.assertEqual(instance.file_handle(), fh_mock) 145 self.assertEqual(instance.file_handle(), fh_mock) 228 self.assertEqual(instance.file_handle(), opener.file_handle()) 229 self.assertTrue(opener.file_handle.called)
|
/external/tensorflow/tensorflow/examples/ios/benchmark/ |
D | ios_image_load.mm | 30 FILE* file_handle = fopen(file_name, "rb"); 31 fseek(file_handle, 0, SEEK_END); 32 const size_t bytes_in_file = ftell(file_handle); 33 fseek(file_handle, 0, SEEK_SET); 35 fread(file_data.data(), 1, bytes_in_file, file_handle); 36 fclose(file_handle);
|
/external/tensorflow/tensorflow/lite/examples/ios/simple/ |
D | ios_image_load.mm | 27 FILE* file_handle = fopen(file_name, "rb"); 28 fseek(file_handle, 0, SEEK_END); 29 const size_t bytes_in_file = ftell(file_handle); 30 fseek(file_handle, 0, SEEK_SET); 32 fread(file_data.data(), 1, bytes_in_file, file_handle); 33 fclose(file_handle);
|
/external/tensorflow/tensorflow/examples/ios/simple/ |
D | ios_image_load.mm | 30 FILE* file_handle = fopen(file_name, "rb"); 31 fseek(file_handle, 0, SEEK_END); 32 const size_t bytes_in_file = ftell(file_handle); 33 fseek(file_handle, 0, SEEK_SET); 35 fread(file_data.data(), 1, bytes_in_file, file_handle); 36 fclose(file_handle);
|
/external/tensorflow/tensorflow/examples/ios/camera/ |
D | ios_image_load.mm | 30 FILE* file_handle = fopen(file_name, "rb"); 31 fseek(file_handle, 0, SEEK_END); 32 const size_t bytes_in_file = ftell(file_handle); 33 fseek(file_handle, 0, SEEK_SET); 35 fread(file_data.data(), 1, bytes_in_file, file_handle); 36 fclose(file_handle);
|
/external/skqp/tools/copyright/ |
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/ |
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/python/oauth2client/oauth2client/contrib/ |
D | multistore_file.py | 353 self._file.file_handle().seek(0) 354 return json.load(self._file.file_handle()) 367 self._file.file_handle().seek(0) 368 json.dump(data, self._file.file_handle(), 370 self._file.file_handle().truncate()
|
D | locked_file.py | 85 def file_handle(self): member in _Opener 211 def file_handle(self): member in LockedFile 213 return self._opener.file_handle()
|
/external/python/cpython2/Modules/ |
D | mmapmodule.c | 104 HANDLE file_handle; member 124 if (m_obj->file_handle != INVALID_HANDLE_VALUE) in mmap_object_dealloc() 125 CloseHandle (m_obj->file_handle); in mmap_object_dealloc() 162 if (self->file_handle != INVALID_HANDLE_VALUE) { in mmap_close_method() 163 CloseHandle(self->file_handle); in mmap_close_method() 164 self->file_handle = INVALID_HANDLE_VALUE; in mmap_close_method() 395 if (self->file_handle != INVALID_HANDLE_VALUE) { in mmap_size_method() 398 low = GetFileSize(self->file_handle, &high); in mmap_size_method() 470 SetFilePointer(self->file_handle, in mmap_resize_method() 473 SetEndOfFile(self->file_handle); in mmap_resize_method() [all …]
|
/external/python/cpython3/Modules/ |
D | mmapmodule.c | 104 HANDLE file_handle; member 125 if (m_obj->file_handle != INVALID_HANDLE_VALUE) in mmap_object_dealloc() 126 CloseHandle (m_obj->file_handle); in mmap_object_dealloc() 168 if (self->file_handle != INVALID_HANDLE_VALUE) { in mmap_close_method() 169 CloseHandle(self->file_handle); in mmap_close_method() 170 self->file_handle = INVALID_HANDLE_VALUE; in mmap_close_method() 410 if (self->file_handle != INVALID_HANDLE_VALUE) { in mmap_size_method() 413 low = GetFileSize(self->file_handle, &high); in mmap_size_method() 483 SetFilePointer(self->file_handle, in mmap_resize_method() 486 SetEndOfFile(self->file_handle); in mmap_resize_method() [all …]
|
/external/autotest/client/site_tests/platform_KernelVersionByBoard/ |
D | platform_KernelVersionByBoard.py | 26 with open(os.path.join(self.bindir, _EXPECTED_FILE)) as file_handle: 27 for line in file_handle:
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | cgroup_helpers.c | 197 struct file_handle *fhp, *fhp2; in get_cgroup_id() 216 fhsize = sizeof(struct file_handle) + fhp->handle_bytes; in get_cgroup_id()
|
/external/ImageMagick/MagickCore/ |
D | nt-base.c | 1715 file_handle, in NTMapMemory() local 1723 file_handle=INVALID_HANDLE_VALUE; in NTMapMemory() 1749 file_handle=INVALID_HANDLE_VALUE; in NTMapMemory() 1751 file_handle=(HANDLE) _get_osfhandle(file); in NTMapMemory() 1752 map_handle=CreateFileMapping(file_handle,0,protection_mode,high_length, in NTMapMemory() 2610 file_handle; in NTTruncateFile() local 2616 file_handle=(HANDLE) _get_osfhandle(file); in NTTruncateFile() 2617 if (file_handle == INVALID_HANDLE_VALUE) in NTTruncateFile() 2621 file_pointer=SetFilePointer(file_handle,low,&high,FILE_BEGIN); in NTTruncateFile() 2624 if (SetEndOfFile(file_handle) == 0) in NTTruncateFile()
|
/external/libxcam/xcore/ |
D | Makefile.am | 23 file_handle.cpp \ 103 file_handle.h \
|
/external/libjpeg-turbo/ |
D | jmemsys.h | 108 short file_handle; /* DOS file handle if it's a temp file */ member
|
/external/libxcam/ |
D | Android.bp | 34 "xcore/file_handle.cpp",
|
/external/libusb/libusb/os/ |
D | windows_winusb.c | 2411 HANDLE file_handle; in winusbx_open() local 2420 …file_handle = CreateFileA(priv->usb_interface[i].path, GENERIC_WRITE | GENERIC_READ, FILE_SHARE_WR… in winusbx_open() 2422 if (file_handle == INVALID_HANDLE_VALUE) { in winusbx_open() 2433 handle_priv->interface_handle[i].dev_handle = file_handle; in winusbx_open() 2545 HANDLE file_handle, winusb_handle; in winusbx_claim_interface() local 2555 file_handle = handle_priv->interface_handle[iface].dev_handle; in winusbx_claim_interface() 2556 if (!HANDLE_VALID(file_handle)) in winusbx_claim_interface() 2559 if (!WinUSBX[sub_api].Initialize(file_handle, &winusb_handle)) { in winusbx_claim_interface() 2580 …file_handle = CreateFileA(filter_path, GENERIC_WRITE | GENERIC_READ, FILE_SHARE_WRITE | FILE_SHARE… in winusbx_claim_interface() 2582 if (file_handle == INVALID_HANDLE_VALUE) { in winusbx_claim_interface() [all …]
|