Home
last modified time | relevance | path

Searched refs:OP_WRITE (Results 1 – 16 of 16) sorted by relevance

/libcore/ojluni/src/test/java/nio/channels/SelectionKey/
DAtomicUpdates.java46 import static java.nio.channels.SelectionKey.OP_WRITE;
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()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java308 public static final int OP_WRITE = 1 << 2; field in SelectionKey
377 return (readyOps() & OP_WRITE) != 0; in isWritable()
DPipe.java117 return SelectionKey.OP_WRITE; in validOps()
DDatagramChannel.java202 | SelectionKey.OP_WRITE); in validOps()
DSocketChannel.java220 | SelectionKey.OP_WRITE in validOps()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DUnixSelectorTest.java79 socketChannel.register(sel2, SelectionKey.OP_WRITE); in testSelectorAcceptAndRead()
96 SelectionKey mkey3 = socketChannel2.register(sel3, SelectionKey.OP_WRITE); in testSelectUnConnectedChannel()
111 …electionKey mkey5 = socketChannel2.register(sel5, SelectionKey.OP_CONNECT | SelectionKey.OP_WRITE); in testSelectUnConnectedChannel()
DSelectionKeyTest.java144 selectionKey.interestOps(SelectionKey.OP_WRITE); in test_interestOpsI()
145 assertEquals(SelectionKey.OP_WRITE, selectionKey.interestOps()); in test_interestOpsI()
234 MockSelectionKey mockSelectionKey1 = new MockSelectionKey(SelectionKey.OP_WRITE); in test_isWritable()
DSelectorTest.java414 SelectionKey key1 = sc.register(selector, SelectionKey.OP_WRITE);
422 assertEquals(SelectionKey.OP_WRITE, key.readyOps());
619 sc.register(selector, SelectionKey.OP_WRITE);
626 assertEquals(SelectionKey.OP_WRITE, key.readyOps());
DSinkChannelTest.java64 assertEquals(SelectionKey.OP_WRITE, sink.validOps()); in test_validOps()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSinkChannelImpl.java131 ((intOps & SelectionKey.OP_WRITE) != 0)) in translateReadyOps()
132 newOps |= SelectionKey.OP_WRITE; in translateReadyOps()
147 if (ops == SelectionKey.OP_WRITE) in translateAndSetInterestOps()
DSocketChannelImpl.java987 ((intOps & SelectionKey.OP_WRITE) != 0) && in translateReadyOps()
989 newOps |= SelectionKey.OP_WRITE; in translateReadyOps()
1032 if ((ops & SelectionKey.OP_WRITE) != 0) in translateAndSetInterestOps()
DDatagramChannelImpl.java1133 ((intOps & SelectionKey.OP_WRITE) != 0)) in translateReadyOps()
1134 newOps |= SelectionKey.OP_WRITE; in translateReadyOps()
1178 if ((ops & SelectionKey.OP_WRITE) != 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.java176 SelectionKey.OP_WRITE), this.channel1.validOps()); in testChannelBasicStatus()
/libcore/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java150 SelectionKey key = sink.register(sel, SelectionKey.OP_WRITE); in testWritable()
153 testActionInvoked(key, SelectionKey.OP_WRITE); in testWritable()
172 SelectionKey.OP_WRITE)); in testReadableAndWriteable()
179 testActionInvoked(key, (SelectionKey.OP_READ | SelectionKey.OP_WRITE)); in testReadableAndWriteable()
198 SelectionKey key2 = sink.register(sel, SelectionKey.OP_WRITE); in testTwoChannels()
565 SelectionKey key2 = sink.register(sel, SelectionKey.OP_WRITE); in testCancel()
/libcore/api/
Dcurrent.txt6945 field public static final int OP_WRITE = 4; // 0x4