Searched refs:OP_WRITE (Results 1 – 16 of 16) sorted by relevance
/libcore/ojluni/src/test/java/nio/channels/SelectionKey/ |
D | AtomicUpdates.java | 46 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/ |
D | SelectionKey.java | 308 public static final int OP_WRITE = 1 << 2; field in SelectionKey 377 return (readyOps() & OP_WRITE) != 0; in isWritable()
|
D | Pipe.java | 117 return SelectionKey.OP_WRITE; in validOps()
|
D | DatagramChannel.java | 202 | SelectionKey.OP_WRITE); in validOps()
|
D | SocketChannel.java | 220 | SelectionKey.OP_WRITE in validOps()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | UnixSelectorTest.java | 79 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()
|
D | SelectionKeyTest.java | 144 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()
|
D | SelectorTest.java | 414 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());
|
D | SinkChannelTest.java | 64 assertEquals(SelectionKey.OP_WRITE, sink.validOps()); in test_validOps()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | SinkChannelImpl.java | 131 ((intOps & SelectionKey.OP_WRITE) != 0)) in translateReadyOps() 132 newOps |= SelectionKey.OP_WRITE; in translateReadyOps() 147 if (ops == SelectionKey.OP_WRITE) in translateAndSetInterestOps()
|
D | SocketChannelImpl.java | 987 ((intOps & SelectionKey.OP_WRITE) != 0) && in translateReadyOps() 989 newOps |= SelectionKey.OP_WRITE; in translateReadyOps() 1032 if ((ops & SelectionKey.OP_WRITE) != 0) in translateAndSetInterestOps()
|
D | DatagramChannelImpl.java | 1133 ((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/ |
D | SelectorTest.java | 131 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()
|
D | OldSocketChannelTest.java | 176 SelectionKey.OP_WRITE), this.channel1.validOps()); in testChannelBasicStatus()
|
/libcore/ojluni/src/test/java/nio/channels/Selector/ |
D | SelectWithConsumer.java | 150 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/ |
D | current.txt | 6945 field public static final int OP_WRITE = 4; // 0x4
|