Home
last modified time | relevance | path

Searched refs:rfd (Results 1 – 25 of 48) 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] = (uint8_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/
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-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/ltp/testcases/kernel/syscalls/read/
Dread03.c18 static int rfd, wfd; variable
24 TST_EXP_FAIL(read(rfd, &c, 1), EAGAIN, in verify_read()
40 rfd = SAFE_OPEN(fifo, O_RDONLY | O_NONBLOCK); in setup()
46 SAFE_CLOSE(rfd); in cleanup()
/external/ltp/testcases/kernel/syscalls/write/
Dwrite04.c24 static int rfd, wfd; variable
44 rfd = SAFE_OPEN(fifo, O_RDONLY | O_NONBLOCK); in setup()
52 if (rfd > 0) in cleanup()
53 SAFE_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/python/cpython3/Lib/test/
Dtest_select.py63 rfd, wfd, xfd = select.select([pipe], [], [], timeout)
66 if not rfd:
68 if rfd == [pipe]:
78 rfd, wfd, xfd)
/external/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyFileDescriptor.java65 RubyFileDescriptor rfd = in getRubyFileDescriptor() local
67 rfd.fileDescriptor = descriptor.getFile(); in getRubyFileDescriptor()
68 return rfd; in getRubyFileDescriptor()
/external/cronet/third_party/protobuf/ruby/src/main/java/com/google/protobuf/jruby/
DRubyFileDescriptor.java61 …RubyFileDescriptor rfd = (RubyFileDescriptor) cFileDescriptor.newInstance(context, Block.NULL_BLOC… in getRubyFileDescriptor() local
62 rfd.fileDescriptor = descriptor.getFile(); in getRubyFileDescriptor()
63 return rfd; in getRubyFileDescriptor()
/external/rust/crates/quiche/deps/boringssl/src/ssl/test/
Dhandshake_util.cc180 static bool Proxy(BIO *socket, bool async, int control, int rfd, int wfd) { in Proxy() argument
252 ssize_t bytes_written = write_eintr(rfd, out, bytes_read); in Proxy()
486 int rfd[2], wfd[2]; in RunHandshaker() local
497 if (pipe(rfd) != 0) { in RunHandshaker()
501 ScopedFD rfd0_closer(rfd[0]), rfd1_closer(rfd[1]); in RunHandshaker()
513 {{kFdProxyToHandshaker, rfd[0]}, {kFdHandshakerToProxy, wfd[1]}}, in RunHandshaker()
514 {rfd[1], wfd[0]})) { in RunHandshaker()
525 bool ok = Proxy(bio, config->async, control.fd(), rfd[1], wfd[0]); in RunHandshaker()
Dhandshaker.cc55 bool Handshaker(const TestConfig *config, int rfd, int wfd, in Handshaker() argument
70 if (fcntl(rfd, F_SETFL, O_NONBLOCK) != 0) { in Handshaker()
74 SSL_set_rfd(ssl.get(), rfd); in Handshaker()
/external/cronet/third_party/boringssl/src/ssl/test/
Dhandshake_util.cc180 static bool Proxy(BIO *socket, bool async, int control, int rfd, int wfd) { in Proxy() argument
252 ssize_t bytes_written = write_eintr(rfd, out, bytes_read); in Proxy()
486 int rfd[2], wfd[2]; in RunHandshaker() local
497 if (pipe(rfd) != 0) { in RunHandshaker()
501 ScopedFD rfd0_closer(rfd[0]), rfd1_closer(rfd[1]); in RunHandshaker()
513 {{kFdProxyToHandshaker, rfd[0]}, {kFdHandshakerToProxy, wfd[1]}}, in RunHandshaker()
514 {rfd[1], wfd[0]})) { in RunHandshaker()
525 bool ok = Proxy(bio, config->async, control.fd(), rfd[1], wfd[0]); in RunHandshaker()
Dhandshaker.cc55 bool Handshaker(const TestConfig *config, int rfd, int wfd, in Handshaker() argument
70 if (fcntl(rfd, F_SETFL, O_NONBLOCK) != 0) { in Handshaker()
74 SSL_set_rfd(ssl.get(), rfd); in Handshaker()
/external/boringssl/src/ssl/test/
Dhandshake_util.cc180 static bool Proxy(BIO *socket, bool async, int control, int rfd, int wfd) { in Proxy() argument
252 ssize_t bytes_written = write_eintr(rfd, out, bytes_read); in Proxy()
486 int rfd[2], wfd[2]; in RunHandshaker() local
497 if (pipe(rfd) != 0) { in RunHandshaker()
501 ScopedFD rfd0_closer(rfd[0]), rfd1_closer(rfd[1]); in RunHandshaker()
513 {{kFdProxyToHandshaker, rfd[0]}, {kFdHandshakerToProxy, wfd[1]}}, in RunHandshaker()
514 {rfd[1], wfd[0]})) { in RunHandshaker()
525 bool ok = Proxy(bio, config->async, control.fd(), rfd[1], wfd[0]); in RunHandshaker()
Dhandshaker.cc55 bool Handshaker(const TestConfig *config, int rfd, int wfd, in Handshaker() argument
70 if (fcntl(rfd, F_SETFL, O_NONBLOCK) != 0) { in Handshaker()
74 SSL_set_rfd(ssl.get(), rfd); in Handshaker()
/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/toybox/toys/pending/
Dbootchartd.c41 int rfd = open(fname, O_RDONLY); local
43 if (rfd != -1) {
45 xsendfile(rfd, wfd);
46 close(rfd);
/external/cronet/third_party/libxml/src/
Dnanoftp.c715 fd_set rfd; in xmlNanoFTPCheckResponse() local
721 FD_ZERO(&rfd); in xmlNanoFTPCheckResponse()
722 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCheckResponse()
723 switch(select(ctxt->controlFd + 1, &rfd, NULL, NULL, &tv)) { in xmlNanoFTPCheckResponse()
1532 fd_set rfd, efd; in xmlNanoFTPCloseConnection() local
1540 FD_ZERO(&rfd); in xmlNanoFTPCloseConnection()
1541 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCloseConnection()
1544 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPCloseConnection()
1714 fd_set rfd, efd; in xmlNanoFTPList() local
1755 FD_ZERO(&rfd); in xmlNanoFTPList()
[all …]
/external/libxml2/
Dnanoftp.c715 fd_set rfd; in xmlNanoFTPCheckResponse() local
721 FD_ZERO(&rfd); in xmlNanoFTPCheckResponse()
722 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCheckResponse()
723 switch(select(ctxt->controlFd + 1, &rfd, NULL, NULL, &tv)) { in xmlNanoFTPCheckResponse()
1532 fd_set rfd, efd; in xmlNanoFTPCloseConnection() local
1540 FD_ZERO(&rfd); in xmlNanoFTPCloseConnection()
1541 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCloseConnection()
1544 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPCloseConnection()
1714 fd_set rfd, efd; in xmlNanoFTPList() local
1755 FD_ZERO(&rfd); in xmlNanoFTPList()
[all …]
/external/harfbuzz_ng/src/
Dhb-blob.cc645 int rfd = _open_resource_fork (file_name, file); in hb_blob_create_from_file_or_fail() local
646 if (rfd != -1) in hb_blob_create_from_file_or_fail()
649 fd = rfd; in hb_blob_create_from_file_or_fail()
/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()
/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/sfntly/cpp/src/sfntly/
Dfont_factory.cc206 bool FontFactory::IsCollection(ReadableFontData* rfd) { in IsCollection() argument
208 rfd->ReadBytes(0, &(tag[0]), 0, tag.size()); in IsCollection()

12