Home
last modified time | relevance | path

Searched refs:OP_CONNECT (Results 1 – 11 of 11) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectionKeyTest.java47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in setUp()
137 assertEquals(SelectionKey.OP_CONNECT, selectionKey.interestOps()); in test_interestOps()
206 MockSelectionKey mockSelectionKey2 = new MockSelectionKey(SelectionKey.OP_CONNECT); in test_isAcceptable()
214 MockSelectionKey mockSelectionKey1 = new MockSelectionKey(SelectionKey.OP_CONNECT); in test_isConnectable()
278 selectionKey.interestOps(SelectionKey.OP_CONNECT); in test_cancel()
302 assertEquals(SelectionKey.OP_CONNECT, selectionKey.readyOps()); in test_readyOps()
DUnixSelectorTest.java105 SelectionKey mkey4 = socketChannel2.register(sel4, SelectionKey.OP_CONNECT); in testSelectUnConnectedChannel()
111 …SelectionKey mkey5 = socketChannel2.register(sel5, SelectionKey.OP_CONNECT | SelectionKey.OP_WRITE… in testSelectUnConnectedChannel()
DSelectorTest.java396 sc.register(selector, SelectionKey.OP_CONNECT);
405 assertEquals(SelectionKey.OP_CONNECT, key.readyOps());
445 channel.register(selector, SelectionKey.OP_CONNECT);
505 sc.register(selector, SelectionKey.OP_CONNECT);
514 assertEquals(SelectionKey.OP_CONNECT, key.readyOps());
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java254 public static final int OP_CONNECT = 1 << 3; field in SelectionKey
336 return (readyOps() & OP_CONNECT) != 0; in isConnectable()
DSocketChannel.java216 | SelectionKey.OP_CONNECT); in validOps()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java45 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); in testNonBlockingConnect_immediate()
47 assertEquals(SelectionKey.OP_CONNECT, key.readyOps()); in testNonBlockingConnect_immediate()
131 SelectionKey.OP_CONNECT | SelectionKey.OP_READ | SelectionKey.OP_WRITE); in test_57456()
DOldSocketChannelTest.java175 assertEquals((SelectionKey.OP_CONNECT | SelectionKey.OP_READ | in testChannelBasicStatus()
DSocketChannelTest.java79 SelectionKey selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in test_56684()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketChannelImpl.java980 ((intOps & SelectionKey.OP_CONNECT) != 0) && in translateReadyOps()
982 newOps |= SelectionKey.OP_CONNECT; in translateReadyOps()
1034 if ((ops & SelectionKey.OP_CONNECT) != 0) in translateAndSetInterestOps()
DDatagramChannelImpl.java1180 if ((ops & SelectionKey.OP_CONNECT) != 0) in translateAndSetInterestOps()
/libcore/api/
Dcurrent.txt6290 field public static final int OP_CONNECT = 8; // 0x8