Home
last modified time | relevance | path

Searched refs:OP_ACCEPT (Results 1 – 10 of 10) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectionKeyTest.java98 MockSelectionKey mockSelectionKey = new MockSelectionKey(SelectionKey.OP_ACCEPT); in test_attach()
116 MockSelectionKey mockSelectionKey = new MockSelectionKey(SelectionKey.OP_ACCEPT); in test_attachment()
148 selectionKey.interestOps(SelectionKey.OP_ACCEPT); in test_interestOpsI()
204 MockSelectionKey mockSelectionKey1 = new MockSelectionKey(SelectionKey.OP_ACCEPT); in test_isAcceptable()
216 MockSelectionKey mockSelectionKey2 = new MockSelectionKey(SelectionKey.OP_ACCEPT); in test_isConnectable()
226 MockSelectionKey mockSelectionKey2 = new MockSelectionKey(SelectionKey.OP_ACCEPT); in test_isReadable()
236 MockSelectionKey mockSelectionKey2 = new MockSelectionKey(SelectionKey.OP_ACCEPT); in test_isWritable()
DUnixSelectorTest.java65 SelectionKey mkey0 = server.serverChannel.register(sel0, SelectionKey.OP_ACCEPT); in testSelectorAcceptAndRead()
66 server.serverChannel.register(sel1, SelectionKey.OP_ACCEPT); in testSelectorAcceptAndRead()
DSelectableChannelTest.java40 msc.register(Selector.open(), SelectionKey.OP_ACCEPT); in test_register_LSelectorI()
DSelectorTest.java105 SelectionKey key = ssc.register(selector, SelectionKey.OP_ACCEPT); in test_keys()
152 ssc.register(selector, SelectionKey.OP_ACCEPT); in test_selectedKeys()
333 SelectionKey key1 = ssc.register(selector, SelectionKey.OP_ACCEPT);
472 ssc.register(selector, SelectionKey.OP_ACCEPT);
480 assertEquals(SelectionKey.OP_ACCEPT, key.readyOps());
DServerSocketChannelTest.java89 assertEquals(SelectionKey.OP_ACCEPT, this.serverChannel.validOps()); in testValidOps()
90 assertEquals(SelectionKey.OP_ACCEPT, testMSChnl.validOps()); in testValidOps()
91 assertEquals(SelectionKey.OP_ACCEPT, testMSChnlnull.validOps()); in testValidOps()
102 assertEquals(SelectionKey.OP_ACCEPT, testMSChnlnotnull.validOps()); in testOpen()
325 assertEquals(SelectionKey.OP_ACCEPT, this.serverChannel.validOps()); in testChannelBasicStatus()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectorTest.java121 SelectionKey.OP_ACCEPT); in test_register_LSelectorI()
138 ssc.register(acceptSelector, SelectionKey.OP_ACCEPT); in test_register_LSelectorI_error()
148 ssc.register(acceptSelector, SelectionKey.OP_ACCEPT); in test_register_LSelectorI_error()
156 SelectionKey.OP_ACCEPT); in test_register_LSelectorI_error()
DAbstractSelectableChannelTest.java309 return SelectionKey.OP_ACCEPT; in validOps()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectionKey.java267 public static final int OP_ACCEPT = 1 << 4; field in SelectionKey
360 return (readyOps() & OP_ACCEPT) != 0; in isAcceptable()
DServerSocketChannel.java122 return SelectionKey.OP_ACCEPT; in validOps()
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketChannelImpl.java335 ((intOps & SelectionKey.OP_ACCEPT) != 0)) in translateReadyOps()
336 newOps |= SelectionKey.OP_ACCEPT; in translateReadyOps()
379 if ((ops & SelectionKey.OP_ACCEPT) != 0) in translateAndSetInterestOps()