Home
last modified time | relevance | path

Searched refs:rfd (Results 1 - 24 of 24) sorted by relevance

/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/sfntly/data/
H A DFontDataTests.java86 ReadableFontData rfd = fillTestWFD(WritableFontData.createWritableFontData(size), size); in testReadableFontData()
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 in slicingWriteTest()
200 readFontDataWithBuffer(ReadableFontData rfd, int bufferSize) readFontDataWithBuffer() argument
213 readFontDataWithSlidingWindow(ReadableFontData rfd, int windowSize) readFontDataWithSlidingWindow() argument
225 readFontDataWithSingleByte(ReadableFontData rfd) readFontDataWithSingleByte() argument
234 writeFontDataWithBuffer( ReadableFontData rfd, WritableFontData wfd, int bufferSize) writeFontDataWithBuffer() argument
246 writeFontDataWithSlidingWindow( ReadableFontData rfd, WritableFontData wfd, int windowSize) writeFontDataWithSlidingWindow() argument
259 writeFontDataWithSingleByte(ReadableFontData rfd, WritableFontData wfd) writeFontDataWithSingleByte() argument
[all...]
/third_party/skia/third_party/externals/sfntly/cpp/src/test/
H A 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 in ReadFontDataWithSlidingWindow()
179 WriteFontDataWithSingleByte(ReadableFontData* rfd, WritableFontData* wfd) WriteFontDataWithSingleByte() argument
186 WriteFontDataWithBuffer(ReadableFontData* rfd, WritableFontData* wfd, int32_t buffer_size) WriteFontDataWithBuffer() argument
198 WriteFontDataWithSlidingWindow(ReadableFontData* rfd, WritableFontData* wfd, int32_t window_size) WriteFontDataWithSlidingWindow() argument
254 SlicingReadTest(ReadableFontData* rfd) SlicingReadTest() argument
267 SlicingWriteTest(ReadableFontData* rfd, WritableFontData* wfd) SlicingWriteTest() argument
308 ReadableFontDataPtr rfd = new ReadableFontData(ba); TestReadableFontData() local
[all...]
H A 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 in TestEndian()
[all...]
/third_party/ltp/testcases/kernel/syscalls/read/
H A 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/
H A 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()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/
H A DFontFactory.java218 WritableFontData rfd = WritableFontData.createWritableFontData(b); in loadFonts()
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/
H A Dtest_select.py65 rfd, wfd, xfd = select.select([pipe], [], [], timeout)
68 if not rfd:
70 if rfd == [pipe]:
80 rfd, wfd, xfd)
H A Dtest_signal.py272 rfd, wfd = os.pipe()
273 self.addCleanup(os.close, rfd)
H A Dtest_embed.py1793 rfd, wfd = os.pipe()
1794 self.addCleanup(os.close, rfd)
1806 data = os.read(rfd, 100)
H A Dtest_os.py3797 rfd, wfd, xfd = select.select([fd], [fd], [fd], 0)
3798 self.assertEqual((rfd, wfd, xfd), ([], [fd], []))
3802 rfd, wfd, xfd = select.select([fd], [fd], [fd], 0)
3803 self.assertEqual((rfd, wfd, xfd), ([fd], [fd], []))
3808 rfd, wfd, xfd = select.select([fd], [fd], [fd], 0)
3809 self.assertEqual((rfd, wfd, xfd), ([fd], [], []))
3986 rfd, wfd = os.pipe()
3987 self.addCleanup(os.close, rfd)
3989 self.assertEqual(os.get_inheritable(rfd), False)
H A Dtest_posix.py1704 rfd, wfd = os.pipe()
1705 self.addCleanup(os.close, rfd)
1729 output = os.read(rfd, 100)
H A Dtest_socket.py6680 fds = [rfd for rfd, wfd in pipes]
6697 rfd, wfd = fds
6700 for index, rfd in enumerate(fds2):
6701 data = os.read(rfd, 100)
/third_party/toybox/toys/pending/
H A Dbootchartd.c41 int rfd = open(fname, O_RDONLY); in dump_data_in_file() local
43 if (rfd != -1) { in dump_data_in_file()
45 xsendfile(rfd, wfd); in dump_data_in_file()
46 close(rfd); in dump_data_in_file()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
H A 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/
H A 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/nghttp2/src/
H A Dshrpx_exec.h35 int rfd; member
40 // stdout from command using proc.rfd. On success, this function
H A Dshrpx_exec.cc131 proc.rfd = pfd[0]; in exec_read_command()
H A Dshrpx_dns_resolver.h100 int handle_event(int rfd, int wfd);
H A Dshrpx_dns_resolver.cc190 int DNSResolver::handle_event(int rfd, int wfd) { in handle_event() argument
195 ares_process_fd(channel_, rfd, wfd); in handle_event()
H A 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()
/third_party/NuttX/fs/nfs/
H A 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/skia/third_party/externals/sfntly/cpp/src/sfntly/
H A Dfont_factory.cc206 bool FontFactory::IsCollection(ReadableFontData* rfd) { in IsCollection() argument
208 rfd->ReadBytes(0, &(tag[0]), 0, tag.size()); in IsCollection()
/third_party/skia/third_party/externals/harfbuzz/src/
H A 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/python/Lib/test/test_asyncio/
H A Dtest_streams.py786 rfd, wfd = os.pipe()
789 pipe = open(rfd, 'rb', 0)

Completed in 35 milliseconds