Home
last modified time | relevance | path

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

12

/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/
DFontDataTests.java86 ReadableFontData rfd = fillTestWFD(WritableFontData.createWritableFontData(size), size); in testReadableFontData() local
87 slicingReadTest(rfd); in testReadableFontData()
131 private void slicingReadTest(ReadableFontData rfd) throws Exception { in slicingReadTest() argument
132 for (int trim = 0; trim < (rfd.length() / 2) + 1; in slicingReadTest()
133 trim += (rfd.length() / SLICING_READWRITE_TEST_BUFFER_TRIM_FRACTION_DENOMINATOR) + 1) { in slicingReadTest()
135 int length = rfd.length() - 2 * trim; in slicingReadTest()
136 ReadableFontData slice = rfd.slice(trim, length); in slicingReadTest()
137 readComparison(trim, length, rfd, slice); in slicingReadTest()
141 private void slicingWriteTest(ReadableFontData rfd, WritableFontData wfd) throws Exception { in slicingWriteTest() argument
142 for (int trim = 0; trim < (rfd.length() / 2) + 1; in slicingWriteTest()
[all …]
/third_party/flutter/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/
DFontDataTests.java86 ReadableFontData rfd = fillTestWFD(WritableFontData.createWritableFontData(size), size); in testReadableFontData() local
87 slicingReadTest(rfd); in testReadableFontData()
131 private void slicingReadTest(ReadableFontData rfd) throws Exception { in slicingReadTest() argument
132 for (int trim = 0; trim < (rfd.length() / 2) + 1; in slicingReadTest()
133 trim += (rfd.length() / SLICING_READWRITE_TEST_BUFFER_TRIM_FRACTION_DENOMINATOR) + 1) { in slicingReadTest()
135 int length = rfd.length() - 2 * trim; in slicingReadTest()
136 ReadableFontData slice = rfd.slice(trim, length); in slicingReadTest()
137 readComparison(trim, length, rfd, slice); in slicingReadTest()
141 private void slicingWriteTest(ReadableFontData rfd, WritableFontData wfd) throws Exception { in slicingWriteTest() argument
142 for (int trim = 0; trim < (rfd.length() / 2) + 1; in slicingWriteTest()
[all …]
/third_party/skia/third_party/externals/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 …]
/third_party/flutter/skia/third_party/externals/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 …]
/third_party/gstreamer/gstreamer/tests/check/gst/
Dgstpoll.c39 GstPollFD rfd = GST_POLL_FD_INIT; in GST_START_TEST() local
53 rfd.fd = socks[0]; in GST_START_TEST()
56 fail_unless (gst_poll_add_fd (set, &rfd), "Could not add read descriptor"); in GST_START_TEST()
57 fail_unless (gst_poll_fd_ctl_read (set, &rfd, TRUE), in GST_START_TEST()
64 fail_unless (gst_poll_fd_can_read (set, &rfd), in GST_START_TEST()
66 fail_if (gst_poll_fd_can_write (set, &rfd), in GST_START_TEST()
75 fail_unless (gst_poll_fd_can_read (set, &rfd), in GST_START_TEST()
77 fail_if (gst_poll_fd_can_write (set, &rfd), in GST_START_TEST()
84 fail_unless (read (rfd.fd, &c, 1) == 1, "read() failed"); in GST_START_TEST()
88 fail_if (gst_poll_fd_can_read (set, &rfd), in GST_START_TEST()
[all …]
/third_party/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()
/third_party/ltp/testcases/kernel/syscalls/write/
Dwrite04.c26 static int rfd, wfd; variable
59 rfd = SAFE_OPEN(fifo, O_RDONLY | O_NONBLOCK); in setup()
67 if (rfd > 0) in cleanup()
68 SAFE_CLOSE(rfd); in cleanup()
/third_party/node/deps/npm/node_modules/getpass/lib/
Dindex.js48 openTTY(function (err, rfd, wfd, rtty, wtty) { argument
93 if (wfd !== undefined && wfd !== rfd) {
97 if (rfd !== undefined) {
99 mod_fs.closeSync(rfd);
/third_party/flutter/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/
DFontFactory.java218 WritableFontData rfd = WritableFontData.createWritableFontData(b); in loadFonts() local
219 if (isCollection(rfd)) { in loadFonts()
220 return loadCollection(rfd); in loadFonts()
222 return new Font[] {loadSingleOTF(rfd)}; in loadFonts()
283 static private boolean isCollection(ReadableFontData rfd) { in isCollection() argument
285 rfd.readBytes(0, tag, 0, tag.length); in isCollection()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/
DFontFactory.java218 WritableFontData rfd = WritableFontData.createWritableFontData(b); in loadFonts() local
219 if (isCollection(rfd)) { in loadFonts()
220 return loadCollection(rfd); in loadFonts()
222 return new Font[] {loadSingleOTF(rfd)}; in loadFonts()
283 static private boolean isCollection(ReadableFontData rfd) { in isCollection() argument
285 rfd.readBytes(0, tag, 0, tag.length); in isCollection()
/third_party/python/Lib/test/
Dtest_select.py63 rfd, wfd, xfd = select.select([pipe], [], [], timeout)
66 if not rfd:
68 if rfd == [pipe]:
78 rfd, wfd, xfd)
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/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()
/third_party/wpa_supplicant/wpa_supplicant-2.9/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()
/third_party/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()
1549 fd_set rfd, efd; in xmlNanoFTPCloseConnection() local
1557 FD_ZERO(&rfd); in xmlNanoFTPCloseConnection()
1558 FD_SET(ctxt->controlFd, &rfd); in xmlNanoFTPCloseConnection()
1561 res = select(ctxt->controlFd + 1, &rfd, NULL, &efd, &tv); in xmlNanoFTPCloseConnection()
1731 fd_set rfd, efd; in xmlNanoFTPList() local
1772 FD_ZERO(&rfd); in xmlNanoFTPList()
[all …]
/third_party/toybox/toys/pending/
Dbootchartd.c41 int rfd = open(fname, O_RDONLY); local
43 if (rfd != -1) {
45 xsendfile(rfd, wfd);
46 close(rfd);
/third_party/NuttX/fs/nfs/
Drpc_clnt.c448 fd_set rfd; in rpcclnt_alivecheck() local
456 FD_ZERO(&rfd); in rpcclnt_alivecheck()
461 FD_SET((uint32_t)sockfd, &rfd); in rpcclnt_alivecheck()
468 ret = select(sockfd + 1, &rfd, NULL, NULL, &timeout); in rpcclnt_alivecheck()
477 if (FD_ISSET((uint32_t)sockfd, &rfd)) in rpcclnt_alivecheck()
/third_party/harfbuzz/src/
Dhb-blob.cc588 int rfd = _open_resource_fork (file_name, file); in hb_blob_create_from_file() local
589 if (rfd != -1) in hb_blob_create_from_file()
592 fd = rfd; in hb_blob_create_from_file()
/third_party/nghttp2/src/
Dshrpx_exec.h35 int rfd; member
Dshrpx_connection_handler.cc151 ocsp_.proc.rfd = -1; in ConnectionHandler()
664 ev_io_set(&ocsp_.rev, ocsp_.proc.rfd, EV_READ); in start_ocsp_update()
677 while ((n = read(ocsp_.proc.rfd, buf.data(), buf.size())) == -1 && in read_ocsp_chunk()
784 if (ocsp_.proc.rfd != -1) { in reset_ocsp()
785 close(ocsp_.proc.rfd); in reset_ocsp()
788 ocsp_.proc.rfd = -1; in reset_ocsp()
Dshrpx_dns_resolver.h100 int handle_event(int rfd, int wfd);
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-blob.cc647 int rfd = _open_resource_fork (file_name, file); in hb_blob_create_from_file_or_fail() local
648 if (rfd != -1) in hb_blob_create_from_file_or_fail()
651 fd = rfd; in hb_blob_create_from_file_or_fail()
/third_party/skia/third_party/externals/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()
/third_party/flutter/skia/third_party/externals/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