Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/nio/channels/SelectionKey/
DAtomicUpdates.java45 import static java.nio.channels.SelectionKey.OP_READ;
119 previous = key.interestOpsOr(OP_READ | OP_WRITE); in test()
121 assertTrue(key.interestOps() == (OP_CONNECT | OP_READ | OP_WRITE)); in test()
124 previous = key.interestOpsAnd(~(OP_READ | OP_WRITE)); in test()
125 assertTrue(previous == (OP_CONNECT | OP_READ | OP_WRITE)); in test()
134 key.interestOps(OP_READ | OP_WRITE); in test()
136 assertTrue(previous == (OP_READ | OP_WRITE)); in test()
137 assertTrue(key.interestOps() == (OP_READ | OP_WRITE)); in test()
141 assertTrue(previous == (OP_READ | OP_WRITE)); in test()
156 key.interestOpsOr(OP_READ); in test()
[all …]
/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()
242 SelectionKey.OP_READ, argObj); in test_keyfor_LSelector()
245 SelectionKey.OP_READ, null); in test_keyfor_LSelector()
249 SelectionKey.OP_READ, null); in test_keyfor_LSelector()
[all …]
/libcore/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java129 SelectionKey key = source.register(sel, SelectionKey.OP_READ); in testReadable()
135 testActionInvoked(key, SelectionKey.OP_READ); in testReadable()
171 SelectionKey key = sc.register(sel, (SelectionKey.OP_READ | in testReadableAndWriteable()
179 testActionInvoked(key, (SelectionKey.OP_READ | SelectionKey.OP_WRITE)); in testReadableAndWriteable()
197 SelectionKey key1 = source.register(sel, SelectionKey.OP_READ); in testTwoChannels()
253 SelectionKey key = source.register(sel, SelectionKey.OP_READ); in testRepeatedSelect1()
259 testActionInvoked(key, SelectionKey.OP_READ); in testRepeatedSelect1()
260 testActionInvoked(key, SelectionKey.OP_READ); in testRepeatedSelect1()
277 SelectionKey key = source.register(sel, SelectionKey.OP_READ); in testRepeatedSelect2()
283 testActionInvoked(key, SelectionKey.OP_READ); in testRepeatedSelect2()
[all …]
DSelectAfterRead.java55 sc.register(sel, SelectionKey.OP_READ); in testSelectAfterRead()
73 sc.register(sel, SelectionKey.OP_READ); in testSelectAfterRead()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java296 public static final int OP_READ = 1 << 0; field in SelectionKey
354 return (readyOps() & OP_READ) != 0; in isReadable()
DPipe.java83 return SelectionKey.OP_READ; in validOps()
DDatagramChannel.java201 return (SelectionKey.OP_READ in validOps()
DSocketChannel.java219 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()
/libcore/api/
Dcurrent.txt6944 field public static final int OP_READ = 1; // 0x1