Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java241 public static final int OP_WRITE = 1 << 2; field in SelectionKey
312 return (readyOps() & OP_WRITE) != 0; in isWritable()
DPipe.java117 return SelectionKey.OP_WRITE; in validOps()
DDatagramChannel.java197 | SelectionKey.OP_WRITE); in validOps()
DSocketChannel.java215 | 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/api/
Dcurrent.txt6292 field public static final int OP_WRITE = 4; // 0x4