Home
last modified time | relevance | path

Searched refs:rfd (Results 1 – 25 of 32) sorted by relevance

12

/external/sfntly/cpp/src/test/
Dfont_data_test.cc143 void ReadFontDataWithSingleByte(ReadableFontData* rfd, ByteVector* buffer) { in ReadFontDataWithSingleByte() argument
144 buffer->resize(rfd->Length()); in ReadFontDataWithSingleByte()
145 for (int32_t index = 0; index < rfd->Length(); ++index) { in ReadFontDataWithSingleByte()
146 (*buffer)[index] = (byte_t)(rfd->ReadByte(index)); in ReadFontDataWithSingleByte()
150 void ReadFontDataWithBuffer(ReadableFontData* rfd, in ReadFontDataWithBuffer() argument
154 b->resize(rfd->Length()); in ReadFontDataWithBuffer()
157 while (index < rfd->Length()) { in ReadFontDataWithBuffer()
158 int32_t bytes_read = rfd->ReadBytes(index, &(buffer[0]), 0, buffer.size()); in ReadFontDataWithBuffer()
165 void ReadFontDataWithSlidingWindow(ReadableFontData* rfd, int32_t window_size, in ReadFontDataWithSlidingWindow() argument
167 b->resize(rfd->Length()); in ReadFontDataWithSlidingWindow()
[all …]
Dendian_test.cc42 ReadableFontDataPtr rfd = new ReadableFontData(ba1); in TestEndian() local
43 EXPECT_EQ(rfd->ReadULongAsInt(0), Tag::head); in TestEndian()
44 EXPECT_EQ(rfd->ReadUByte(4), 202); in TestEndian()
45 EXPECT_EQ(rfd->ReadByte(5), -54); in TestEndian()
46 EXPECT_EQ(rfd->ReadChar(6), 202); in TestEndian()
47 EXPECT_EQ(rfd->ReadUShort(8), 24); in TestEndian()
48 EXPECT_EQ(rfd->ReadShort(10), -32744); in TestEndian()
49 EXPECT_EQ(rfd->ReadUInt24(12), 24); in TestEndian()
50 EXPECT_EQ(rfd->ReadULong(16), 24); in TestEndian()
51 EXPECT_EQ(rfd->ReadLong(20), -256); in TestEndian()
[all …]
/external/strace/tests-m32/
Dreadv.test43 rfd="$(($wfd - 1))"
45 -eread="$rfd" -ewrite="$wfd"
47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd"
50 [ $rfd -lt 1023 ] || rfd=1023
52 while [ $i -lt $rfd ]; do
/external/strace/tests-mx32/
Dreadv.test43 rfd="$(($wfd - 1))"
45 -eread="$rfd" -ewrite="$wfd"
47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd"
50 [ $rfd -lt 1023 ] || rfd=1023
52 while [ $i -lt $rfd ]; do
/external/strace/tests/
Dreadv.test43 rfd="$(($wfd - 1))"
45 -eread="$rfd" -ewrite="$wfd"
47 -eread="!$rfd" -ewrite="!$wfd" -eread="$rfd" -ewrite="$wfd"
50 [ $rfd -lt 1023 ] || rfd=1023
52 while [ $i -lt $rfd ]; do
/external/syslinux/gpxe/src/drivers/net/
Deepro100.c763 static void ifec_rfd_init ( struct ifec_rfd *rfd, s16 command, u32 link ) in ifec_rfd_init() argument
767 rfd->status = 0; in ifec_rfd_init()
768 rfd->command = command; in ifec_rfd_init()
769 rfd->rx_buf_addr = 0xFFFFFFFF; in ifec_rfd_init()
770 rfd->count = 0; in ifec_rfd_init()
771 rfd->size = RFD_PACKET_LEN; in ifec_rfd_init()
772 rfd->link = link; in ifec_rfd_init()
843 struct ifec_rfd *rfd = priv->rfds[cur_rx]; in ifec_rx_process() local
850 while ( iob && rfd && ( status = rfd->status ) ) { in ifec_rx_process()
851 rx_len = rfd->count & RFDMaskCount; in ifec_rx_process()
[all …]
Deepro100.h193 static void ifec_rfd_init ( struct ifec_rfd *rfd, s16 command, u32 link );
/external/ltp/testcases/kernel/syscalls/read/
Dread03.c57 int rfd, wfd; variable
81 TEST(read(rfd, &c, 1)); in main()
128 rfd = open(fifo, O_RDONLY | O_NONBLOCK); in setup()
139 close(rfd); in cleanup()
/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/syslinux/utils/
Disohybrid.in81 my $rfd, $rnd;
84 if (open($rfd, "< /dev/urandom\0") && read($rfd, $rnd, 4) == 4) {
88 close($rfd) if (defined($rfd));
Dmkdiskimage.in45 my $rfd, $rnd;
48 if (open($rfd, "< /dev/urandom\0") && read($rfd, $rnd, 4) == 4) {
52 close($rfd) if (defined($rfd));
/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.py150 rfd, wfd = os.pipe()
151 self.addCleanup(os.close, rfd)
/external/ltp/testcases/kernel/syscalls/write/
Dwrite04.c67 int rfd, wfd; variable
128 rfd = open(fifo, O_RDONLY | O_NONBLOCK); in main()
130 if (rfd < 0) { in main()
234 close(rfd); in cleanup()
/external/syslinux/bios/utils/
Dmkdiskimage45 my $rfd, $rnd;
48 if (open($rfd, "< /dev/urandom\0") && read($rfd, $rnd, 4) == 4) {
52 close($rfd) if (defined($rfd));
Disohybrid.pl81 my $rfd, $rnd;
84 if (open($rfd, "< /dev/urandom\0") && read($rfd, $rnd, 4) == 4) {
88 close($rfd) if (defined($rfd));
/external/wpa_supplicant_8/src/common/
Dwpa_helpers.c104 fd_set rfd; in get_wpa_cli_event2() local
118 FD_ZERO(&rfd); in get_wpa_cli_event2()
119 FD_SET(fd, &rfd); in get_wpa_cli_event2()
122 ret = select(fd + 1, &rfd, NULL, NULL, &tv); in get_wpa_cli_event2()
/external/libxml2/
Dnanoftp.c732 fd_set rfd; in xmlNanoFTPCheckResponse() local
738 FD_ZERO(&rfd); in xmlNanoFTPCheckResponse()
739 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCheckResponse()
740 switch(select(ctxt->controlFd + 1, &rfd, NULL, NULL, &tv)) { in xmlNanoFTPCheckResponse()
1550 fd_set rfd, efd; in xmlNanoFTPCloseConnection() local
1558 FD_ZERO(&rfd); in xmlNanoFTPCloseConnection()
1559 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCloseConnection()
1562 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPCloseConnection()
1732 fd_set rfd, efd; in xmlNanoFTPList() local
1773 FD_ZERO(&rfd); in xmlNanoFTPList()
[all …]
/external/toybox/toys/pending/
Dbootchartd.c57 int rfd = open(fname, O_RDONLY); in dump_data_in_file() local
59 if (rfd != -1) { in dump_data_in_file()
61 xsendfile(rfd, wfd); in dump_data_in_file()
62 close(rfd); in dump_data_in_file()
/external/compiler-rt/lib/tsan/rtl/
Dtsan_fd.cc236 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) { in FdPipeCreate() argument
237 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd); in FdPipeCreate()
239 init(thr, pc, rfd, ref(s)); in FdPipeCreate()
Dtsan_fd.h48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
/external/sfntly/cpp/src/sfntly/
Dfont_factory.cc203 bool FontFactory::IsCollection(ReadableFontData* rfd) { in IsCollection() argument
205 rfd->ReadBytes(0, &(tag[0]), 0, tag.size()); in IsCollection()
/external/python/cpython2/Lib/multiprocessing/
Dforking.py251 rfd, wfd = os.pipe()
254 rhandle = duplicate(msvcrt.get_osfhandle(rfd), inheritable=True)
255 os.close(rfd)
/external/python/cpython2/Lib/
Dtelnetlib.py591 rfd, wfd, xfd = select.select([self, sys.stdin], [], [])
592 if self in rfd:
601 if sys.stdin in rfd:
/external/clang/test/SemaCXX/
Daddr-of-overloaded-function.cpp16 int (&rfd)(double) = f; // selects f(double) variable

12