Home
last modified time | relevance | path

Searched refs:file_handle (Results 1 – 25 of 36) sorted by relevance

12

/external/sfntly/cpp/src/test/
Dfile_io_test.cc27 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-mx32/
Dfile_handle.c55 struct file_handle { struct
100 struct file_handle *fh = in do_name_to_handle_at()
101 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at()
107 sizeof(struct file_handle), in do_name_to_handle_at()
129 struct file_handle *fh = in do_open_by_handle_at()
130 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at()
138 sizeof(struct file_handle), in do_open_by_handle_at()
202 struct file_handle *handle = in main()
203 tail_alloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in main()
204 struct file_handle *handle_0 = in main()
[all …]
Dpure_executables.am53 file_handle \
Dpure_executables.list52 file_handle
Dgen_tests.in75 file_handle -e trace=name_to_handle_at,open_by_handle_at
/external/strace/tests-m32/
Dfile_handle.c55 struct file_handle { struct
100 struct file_handle *fh = in do_name_to_handle_at()
101 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at()
107 sizeof(struct file_handle), in do_name_to_handle_at()
129 struct file_handle *fh = in do_open_by_handle_at()
130 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at()
138 sizeof(struct file_handle), in do_open_by_handle_at()
202 struct file_handle *handle = in main()
203 tail_alloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in main()
204 struct file_handle *handle_0 = in main()
[all …]
Dpure_executables.am53 file_handle \
Dpure_executables.list52 file_handle
Dgen_tests.in75 file_handle -e trace=name_to_handle_at,open_by_handle_at
/external/strace/tests/
Dfile_handle.c55 struct file_handle { struct
100 struct file_handle *fh = in do_name_to_handle_at()
101 (struct file_handle *) (uintptr_t) handle; in do_name_to_handle_at()
107 sizeof(struct file_handle), in do_name_to_handle_at()
129 struct file_handle *fh = in do_open_by_handle_at()
130 (struct file_handle *) (uintptr_t) handle; in do_open_by_handle_at()
138 sizeof(struct file_handle), in do_open_by_handle_at()
202 struct file_handle *handle = in main()
203 tail_alloc(sizeof(struct file_handle) + MAX_HANDLE_SZ); in main()
204 struct file_handle *handle_0 = in main()
[all …]
Dpure_executables.am53 file_handle \
Dpure_executables.list52 file_handle
/external/skia/tools/copyright/
Dmain.py88 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/autotest/client/site_tests/platform_KernelVersionByBoard/
Dplatform_KernelVersionByBoard.py26 with open(os.path.join(self.bindir, _EXPECTED_FILE)) as file_handle:
27 for line in file_handle:
/external/python/cpython2/Modules/
Dmmapmodule.c104 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/autotest/client/site_tests/platform_FilePerms/
Dplatform_FilePerms.py296 file_handle = open(mtab_path, 'r')
297 lines = file_handle.readlines()
298 file_handle.close()
/external/ImageMagick/MagickCore/
Dnt-base.c1671 file_handle, in NTMapMemory() local
1679 file_handle=INVALID_HANDLE_VALUE; in NTMapMemory()
1705 file_handle=INVALID_HANDLE_VALUE; in NTMapMemory()
1707 file_handle=(HANDLE) _get_osfhandle(file); in NTMapMemory()
1708 map_handle=CreateFileMapping(file_handle,0,protection_mode,high_length, in NTMapMemory()
2572 file_handle; in NTTruncateFile() local
2578 file_handle=(HANDLE) _get_osfhandle(file); in NTTruncateFile()
2579 if (file_handle == INVALID_HANDLE_VALUE) in NTTruncateFile()
2583 file_pointer=SetFilePointer(file_handle,low,&high,FILE_BEGIN); in NTTruncateFile()
2586 if (SetEndOfFile(file_handle) == 0) in NTTruncateFile()
/external/libjpeg-turbo/
Djmemsys.h108 short file_handle; /* DOS file handle if it's a temp file */ member
/external/webrtc/webrtc/voice_engine/
Dvoe_audio_processing_impl.h83 int StartDebugRecording(FILE* file_handle) override;
Dvoe_audio_processing_impl.cc930 int VoEAudioProcessingImpl::StartDebugRecording(FILE* file_handle) { in StartDebugRecording() argument
938 return _shared->audio_processing()->StartDebugRecording(file_handle); in StartDebugRecording()
/external/webrtc/webrtc/voice_engine/include/
Dvoe_audio_processing.h195 virtual int StartDebugRecording(FILE* file_handle) = 0;
/external/libusb/libusb/os/
Dwindows_winusb.c2411 HANDLE file_handle; in winusbx_open() local
2420file_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()
2580file_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 …]
/external/libchrome/base/memory/
Dshared_memory_unittest.cc581 base::win::ScopedHandle file_handle(::CreateFile( in TEST() local
583 EXPECT_TRUE(file_handle.IsValid()); in TEST()
585 ::CreateFileMappingA(file_handle.Get(), nullptr, in TEST()
/external/strace/
DAndroid.mk59 file_handle.c \
/external/webrtc/webrtc/test/
Dmock_voice_engine.h85 MOCK_METHOD1(StartDebugRecording, int(FILE* file_handle));

12