Home
last modified time | relevance | path

Searched refs:wfd (Results 1 – 25 of 61) sorted by relevance

123

/external/sfntly/cpp/src/sfntly/
Dfont_factory.cc56 WritableFontDataPtr wfd; in LoadFonts() local
57 wfd.Attach(WritableFontData::CreateWritableFontData(b)); in LoadFonts()
58 if (IsCollection(wfd)) { in LoadFonts()
59 LoadCollection(wfd, output); in LoadFonts()
63 font.Attach(LoadSingleOTF(wfd)); in LoadFonts()
85 WritableFontDataPtr wfd; in LoadFontsForBuilding() local
86 wfd.Attach(WritableFontData::CreateWritableFontData(b)); in LoadFontsForBuilding()
87 if (IsCollection(wfd)) { in LoadFontsForBuilding()
88 LoadCollectionForBuilding(wfd, output); in LoadFontsForBuilding()
92 builder.Attach(LoadSingleOTFForBuilding(wfd, 0)); in LoadFontsForBuilding()
[all …]
Dfont_factory.h116 CALLER_ATTACH Font* LoadSingleOTF(WritableFontData* wfd);
119 void LoadCollection(WritableFontData* wfd, FontArray* output);
123 LoadSingleOTFForBuilding(WritableFontData* wfd,
131 static bool IsCollection(ReadableFontData* wfd);
Dfont.cc227 WritableFontData* wfd, in GetOTFBuilder() argument
230 builder->LoadFont(wfd, offset_to_offset_table); in GetOTFBuilder()
333 void Font::Builder::LoadFont(WritableFontData* wfd, in LoadFont() argument
336 assert(wfd); in LoadFont()
338 ReadHeader(wfd, offset_to_offset_table, &records); in LoadFont()
339 LoadTableData(&records, wfd, &data_blocks_); in LoadFont()
/external/sfntly/cpp/src/test/
Dfont_data_test.cc82 FillTestFontDataWithShortsForSearching(WritableFontData* wfd, in FillTestFontDataWithShortsForSearching() argument
92 wfd->WriteUShort(offset, lower_data[i]); in FillTestFontDataWithShortsForSearching()
99 wfd->WriteUShort(offset, upper_data[i]); in FillTestFontDataWithShortsForSearching()
103 return wfd; in FillTestFontDataWithShortsForSearching()
109 WritableFontDataPtr wfd; in TestReadableFontDataSearching() local
110 wfd.Attach(WritableFontData::CreateWritableFontData(array_setup_offset[0])); in TestReadableFontDataSearching()
111 FillTestFontDataWithShortsForSearching(wfd, in TestReadableFontDataSearching()
120 int32_t found = wfd->SearchUShort(array_setup_offset[1], in TestReadableFontDataSearching()
179 void WriteFontDataWithSingleByte(ReadableFontData* rfd, WritableFontData* wfd) { in WriteFontDataWithSingleByte() argument
182 wfd->WriteByte(index, b); in WriteFontDataWithSingleByte()
[all …]
Dfont_parsing_test.cc63 WritableFontDataPtr wfd; in TestFontParsing() local
64 wfd.Attach(gdef_builder->Data()); in TestFontParsing()
67 wfd->ReadBytes(0, &(b[0]), 0, TTF_LENGTH[SAMPLE_TTF_FEAT]); in TestFontParsing()
/external/strace/tests-m32/
Dreadv.test42 wfd="$(../print_maxfd)"
43 rfd="$(($wfd - 1))"
45 -eread="$rfd" -ewrite="$wfd"
47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd"
58 [ $wfd -lt 1023 ] || wfd=1023
60 while [ $i -lt $wfd ]; do
/external/strace/tests-mx32/
Dreadv.test42 wfd="$(../print_maxfd)"
43 rfd="$(($wfd - 1))"
45 -eread="$rfd" -ewrite="$wfd"
47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd"
58 [ $wfd -lt 1023 ] || wfd=1023
60 while [ $i -lt $wfd ]; do
/external/strace/tests/
Dreadv.test42 wfd="$(../print_maxfd)"
43 rfd="$(($wfd - 1))"
45 -eread="$rfd" -ewrite="$wfd"
47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd"
58 [ $wfd -lt 1023 ] || wfd=1023
60 while [ $i -lt $wfd ]; do
/external/libusb/libusb/os/
Dpoll_windows.c323 struct winfd wfd = INVALID_WINFD; in usbi_create_fd() local
332 wfd.itransfer = itransfer; in usbi_create_fd()
333 wfd.cancel_fn = cancel_fn; in usbi_create_fd()
341 wfd.rw = RW_READ; in usbi_create_fd()
343 wfd.rw = RW_WRITE; in usbi_create_fd()
360 wfd.fd = i; in usbi_create_fd()
366 &wfd.handle, 0, TRUE, DUPLICATE_SAME_ACCESS)) { in usbi_create_fd()
368 wfd.handle = handle; in usbi_create_fd()
375 wfd.handle = handle; in usbi_create_fd()
377 wfd.overlapped = overlapped; in usbi_create_fd()
[all …]
Dwindows_usbdk.c555 struct winfd wfd; in usbdk_do_control_transfer() local
562 wfd = usbi_create_fd(sysHandle, RW_READ, NULL, NULL); in usbdk_do_control_transfer()
564 if (wfd.fd < 0) in usbdk_do_control_transfer()
574 …transResult = usbdk_helper.ReadPipe(priv->redirector_handle, &transfer_priv->request, wfd.overlapp… in usbdk_do_control_transfer()
576 …transResult = usbdk_helper.WritePipe(priv->redirector_handle, &transfer_priv->request, wfd.overlap… in usbdk_do_control_transfer()
580 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in usbdk_do_control_transfer()
581 wfd.overlapped->InternalHigh = (DWORD)Length; in usbdk_do_control_transfer()
587 usbi_free_fd(&wfd); in usbdk_do_control_transfer()
592 transfer_priv->pollable_fd = wfd; in usbdk_do_control_transfer()
604 struct winfd wfd; in usbdk_do_bulk_transfer() local
[all …]
Dwindows_winusb.c2712 struct winfd wfd; in winusbx_submit_control_transfer() local
2733 wfd = usbi_create_fd(winusb_handle, RW_READ, NULL, NULL); in winusbx_submit_control_transfer()
2735 if (wfd.fd < 0) in winusbx_submit_control_transfer()
2743 usbi_free_fd(&wfd); in winusbx_submit_control_transfer()
2746 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in winusbx_submit_control_transfer()
2747 wfd.overlapped->InternalHigh = 0; in winusbx_submit_control_transfer()
2749 … (!WinUSBX[sub_api].ControlTransfer(wfd.handle, *setup, transfer->buffer + LIBUSB_CONTROL_SETUP_SI… in winusbx_submit_control_transfer()
2752 usbi_free_fd(&wfd); in winusbx_submit_control_transfer()
2756 wfd.overlapped->Internal = STATUS_COMPLETED_SYNCHRONOUSLY; in winusbx_submit_control_transfer()
2757 wfd.overlapped->InternalHigh = (DWORD)size; in winusbx_submit_control_transfer()
[all …]
Dwince_usb.c544 struct winfd wfd = fd_to_winfd(transfer_priv->pollable_fd.fd); in wince_clear_transfer_priv() local
547 wfd.itransfer = NULL; in wince_clear_transfer_priv()
548 CloseHandle(wfd.handle); in wince_clear_transfer_priv()
571 struct winfd wfd; in wince_submit_control_or_bulk_transfer() local
593wfd = usbi_create_fd(eventHandle, direction_in ? RW_READ : RW_WRITE, itransfer, &wince_cancel_tran… in wince_submit_control_or_bulk_transfer()
594 if (wfd.fd < 0) { in wince_submit_control_or_bulk_transfer()
599 transfer_priv->pollable_fd = wfd; in wince_submit_control_or_bulk_transfer()
605 …ret = UkwIssueControlTransfer(priv->dev, flags, setup, buf, bufLen, &transfer->actual_length, wfd.… in wince_submit_control_or_bulk_transfer()
608 transfer->length, &transfer->actual_length, wfd.overlapped); in wince_submit_control_or_bulk_transfer()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite04.c39 static int rfd, wfd; variable
46 TEST(write(wfd, wbuf, sizeof(wbuf))); in verify_write()
73 wfd = SAFE_OPEN(fifo, O_WRONLY | O_NONBLOCK); in setup()
75 SAFE_WRITE(0, wfd, wbuf, sizeof(wbuf)); in setup()
83 if (wfd > 0) in cleanup()
84 SAFE_CLOSE(wfd); in cleanup()
/external/boringssl/src/ssl/test/
Dhandshake_util.cc173 static bool Proxy(BIO *socket, bool async, int control, int rfd, int wfd) { in Proxy() argument
177 FD_SET(wfd, &rfds); in Proxy()
179 int fd_max = wfd > control ? wfd : control; in Proxy()
187 if (FD_ISSET(wfd, &rfds) && in Proxy()
188 (bytes = read_eintr(wfd, buf, sizeof(buf))) > 0) { in Proxy()
290 int rfd[2], wfd[2]; in RunHandshaker() local
301 if (pipe(rfd) != 0 || pipe(wfd) != 0) { in RunHandshaker()
327 posix_spawn_file_actions_addclose(&actions, wfd[0])) { in RunHandshaker()
331 assert(kFdControl != wfd[1]); in RunHandshaker()
336 assert(kFdProxyToHandshaker != wfd[1]); in RunHandshaker()
[all …]
Dhandshaker.cc37 bool Handshaker(const TestConfig *config, int rfd, int wfd, in Handshaker() argument
53 SSL_set_wfd(ssl.get(), wfd); in Handshaker()
/external/python/cpython2/Lib/test/
Dtest_select.py37 rfd, wfd, xfd = select.select([p], [], [], tout)
38 if (rfd, wfd, xfd) == ([], [], []):
40 if (rfd, wfd, xfd) == ([p], [], []):
49 self.fail('Unexpected return values from select():', rfd, wfd, xfd)
/external/python/cpython3/Lib/test/
Dtest_select.py53 rfd, wfd, xfd = select.select([p], [], [], tout)
54 if (rfd, wfd, xfd) == ([], [], []):
56 if (rfd, wfd, xfd) == ([p], [], []):
65 self.fail('Unexpected return values from select():', rfd, wfd, xfd)
Dtest_signal.py149 rfd, wfd = os.pipe()
151 self.addCleanup(os.close, wfd)
154 os.set_blocking(wfd, True)
156 signal.set_wakeup_fd(wfd)
158 "the fd %s must be in non-blocking mode" % wfd)
161 os.set_blocking(wfd, False)
162 signal.set_wakeup_fd(wfd)
/external/ltp/testcases/kernel/syscalls/read/
Dread03.c57 int rfd, wfd; variable
129 wfd = open(fifo, O_WRONLY | O_NONBLOCK); in setup()
140 close(wfd); in cleanup()
/external/sfntly/cpp/src/sfntly/data/
Dwritable_font_data.cc42 WritableFontDataPtr wfd = new WritableFontData(ba); in CreateWritableFontData() local
43 return wfd.Detach(); in CreateWritableFontData()
53 WritableFontDataPtr wfd = new WritableFontData(ba); in CreateWritableFontData() local
54 return wfd.Detach(); in CreateWritableFontData()
Dreadable_font_data.cc45 ReadableFontDataPtr wfd = new ReadableFontData(ba); in CreateReadableFontData() local
46 return wfd.Detach(); in CreateReadableFontData()
216 int32_t ReadableFontData::CopyTo(WritableFontData* wfd) { in CopyTo() argument
217 return array_->CopyTo(wfd->BoundOffset(0), in CopyTo()
218 wfd->array_, in CopyTo()
/external/toybox/toys/pending/
Dbootchartd.c55 static void dump_data_in_file(char *fname, int wfd) in dump_data_in_file() argument
60 xwrite(wfd, TT.buf, strlen(TT.buf)); in dump_data_in_file()
61 xsendfile(rfd, wfd); in dump_data_in_file()
63 xwrite(wfd, "\n", 1); in dump_data_in_file()
/external/openssh/
Dchannels.c261 channel_register_fds(Channel *c, int rfd, int wfd, int efd, in channel_register_fds() argument
266 channel_max_fd = MAXIMUM(channel_max_fd, wfd); in channel_register_fds()
271 if (wfd != -1 && wfd != rfd) in channel_register_fds()
272 fcntl(wfd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
273 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
277 c->wfd = wfd; in channel_register_fds()
278 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds()
286 c->wfd_isatty = is_tty || isatty(c->wfd); in channel_register_fds()
293 if (wfd != -1) in channel_register_fds()
294 set_nonblock(wfd); in channel_register_fds()
[all …]
/external/python/cpython3/Lib/multiprocessing/
Dpopen_spawn_win32.py51 wfd = msvcrt.open_osfhandle(whandle, 0)
67 with open(wfd, 'wb', closefd=True) as to_child:
/external/libxml2/
Dnanohttp.c466 fd_set wfd; in xmlNanoHTTPSend() local
500 FD_ZERO(&wfd); in xmlNanoHTTPSend()
505 FD_SET(ctxt->fd, &wfd); in xmlNanoHTTPSend()
509 (void) select(ctxt->fd + 1, NULL, &wfd, NULL, &tv); in xmlNanoHTTPSend()
861 fd_set wfd; in xmlNanoHTTPConnectAttempt() local
961 FD_ZERO(&wfd); in xmlNanoHTTPConnectAttempt()
962 FD_SET(s, &wfd); in xmlNanoHTTPConnectAttempt()
968 switch (select(s + 1, NULL, &wfd, &xfd, &tv)) in xmlNanoHTTPConnectAttempt()
970 switch (select(s + 1, NULL, &wfd, NULL, &tv)) in xmlNanoHTTPConnectAttempt()
996 if (FD_ISSET(s, &wfd) in xmlNanoHTTPConnectAttempt()

123