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/ |
D | SelectionKeyTest.java | 98 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()
|
D | UnixSelectorTest.java | 65 SelectionKey mkey0 = server.serverChannel.register(sel0, SelectionKey.OP_ACCEPT); in testSelectorAcceptAndRead() 66 server.serverChannel.register(sel1, SelectionKey.OP_ACCEPT); in testSelectorAcceptAndRead()
|
D | SelectableChannelTest.java | 40 msc.register(Selector.open(), SelectionKey.OP_ACCEPT); in test_register_LSelectorI()
|
D | SelectorTest.java | 105 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());
|
D | ServerSocketChannelTest.java | 89 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/ |
D | AbstractSelectorTest.java | 121 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()
|
D | AbstractSelectableChannelTest.java | 309 return SelectionKey.OP_ACCEPT; in validOps()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SelectionKey.java | 267 public static final int OP_ACCEPT = 1 << 4; field in SelectionKey 360 return (readyOps() & OP_ACCEPT) != 0; in isAcceptable()
|
D | ServerSocketChannel.java | 122 return SelectionKey.OP_ACCEPT; in validOps()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketChannelImpl.java | 335 ((intOps & SelectionKey.OP_ACCEPT) != 0)) in translateReadyOps() 336 newOps |= SelectionKey.OP_ACCEPT; in translateReadyOps() 379 if ((ops & SelectionKey.OP_ACCEPT) != 0) in translateAndSetInterestOps()
|