Home
last modified time | relevance | path

Searched refs:OP_READ (Results 1 – 13 of 13) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java115 SelectionKey.OP_READ, null); in test_register_LSelectorILObject()
121 acceptKey = sc.register(acceptSelector2, SelectionKey.OP_READ, null); in test_register_LSelectorILObject()
147 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument()
161 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument()
183 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument()
197 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument()
214 sc.register(null, SelectionKey.OP_READ, argObj); in test_register_LSelectorILObject_IllegalArgument()
223 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument()
242 SelectionKey.OP_READ, argObj); in test_keyfor_LSelector()
245 SelectionKey.OP_READ, null); in test_keyfor_LSelector()
[all …]
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java228 public static final int OP_READ = 1 << 0; field in SelectionKey
289 return (readyOps() & OP_READ) != 0; in isReadable()
DPipe.java83 return SelectionKey.OP_READ; in validOps()
DDatagramChannel.java196 return (SelectionKey.OP_READ in validOps()
DSocketChannel.java214 return (SelectionKey.OP_READ in validOps()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSourceChannelImpl.java132 ((intOps & SelectionKey.OP_READ) != 0)) in translateReadyOps()
133 newOps |= SelectionKey.OP_READ; in translateReadyOps()
148 if (ops == SelectionKey.OP_READ) in translateAndSetInterestOps()
DSocketChannelImpl.java975 ((intOps & SelectionKey.OP_READ) != 0) && in translateReadyOps()
977 newOps |= SelectionKey.OP_READ; in translateReadyOps()
1030 if ((ops & SelectionKey.OP_READ) != 0) in translateAndSetInterestOps()
DDatagramChannelImpl.java1129 ((intOps & SelectionKey.OP_READ) != 0)) in translateReadyOps()
1130 newOps |= SelectionKey.OP_READ; in translateReadyOps()
1176 if ((ops & SelectionKey.OP_READ) != 0) in translateAndSetInterestOps()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java131 SelectionKey.OP_CONNECT | SelectionKey.OP_READ | SelectionKey.OP_WRITE); in test_57456()
133 assertEquals(SelectionKey.OP_READ | SelectionKey.OP_WRITE, key.readyOps()); in test_57456()
166 sc.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE); in test28318596()
DOldSocketChannelTest.java175 assertEquals((SelectionKey.OP_CONNECT | SelectionKey.OP_READ | in testChannelBasicStatus()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java118 SelectionKey key3 = sc.register(selector, SelectionKey.OP_READ); in test_keys()
339 SelectionKey key2 = sc.register(selector, SelectionKey.OP_READ);
363 final SelectionKey key = pipe.source().register(selector, SelectionKey.OP_READ);
548 sc.register(selector, SelectionKey.OP_READ);
554 sc2.register(selector, SelectionKey.OP_READ);
564 assertEquals(SelectionKey.OP_READ, key.readyOps());
DSelectionKeyTest.java224 MockSelectionKey mockSelectionKey1 = new MockSelectionKey(SelectionKey.OP_READ); in test_isReadable()
DSourceChannelTest.java60 assertEquals(SelectionKey.OP_READ, source.validOps()); in test_validOps()