Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DSelectorTest.java158 Set<SelectionKey> selectedKeys = selector.selectedKeys(); in test_selectedKeys() local
159 Set<SelectionKey> selectedKeys2 = selector.selectedKeys(); in test_selectedKeys()
160 assertSame(selectedKeys, selectedKeys2); in test_selectedKeys()
162 assertEquals(1, selectedKeys.size()); in test_selectedKeys()
163 assertEquals(ssc.keyFor(selector), selectedKeys.iterator().next()); in test_selectedKeys()
166 selectedKeys.add(ssc.keyFor(selector)); in test_selectedKeys()
173 selectedKeys.clear(); in test_selectedKeys()
175 Set<SelectionKey> selectedKeys3 = selector.selectedKeys(); in test_selectedKeys()
176 assertSame(selectedKeys, selectedKeys3); in test_selectedKeys()
179 assertEquals(0, selectedKeys.size()); in test_selectedKeys()
[all …]
DUnixSelectorTest.java70 assertEquals(true, sel0.selectedKeys().contains(mkey0)); in testSelectorAcceptAndRead()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSelectorImpl.java45 protected Set<SelectionKey> selectedKeys; field in SelectorImpl
57 selectedKeys = new HashSet<SelectionKey>(); in SelectorImpl()
60 publicSelectedKeys = selectedKeys; in SelectorImpl()
63 publicSelectedKeys = Util.ungrowableSet(selectedKeys); in SelectorImpl()
73 public Set<SelectionKey> selectedKeys() { in selectedKeys() method in SelectorImpl
DAbstractPollSelectorImpl.java103 selectedKeys = null; in implClose()
124 if (selectedKeys.contains(sk)) { in updateSelectedKeys()
131 selectedKeys.add(sk); in updateSelectedKeys()
190 selectedKeys.remove(ski); in implDereg()
DEPollSelectorImpl.java110 if (selectedKeys.contains(ski)) { in updateSelectedKeys()
117 selectedKeys.add(ski); in updateSelectedKeys()
141 selectedKeys = null; in implClose()
176 selectedKeys.remove(ski); in implDereg()
DDevPollSelectorImpl.java115 if (selectedKeys.contains(ski)) { in updateSelectedKeys()
122 selectedKeys.add(ski); in updateSelectedKeys()
146 selectedKeys = null; in implClose()
176 selectedKeys.remove(ski); in implDereg()
DServerSocketAdaptor.java125 sel.selectedKeys().remove(sk); in accept()
DSocketAdaptor.java127 sel.selectedKeys().remove(sk); in connect()
243 sel.selectedKeys().remove(sk); in read()
DDatagramSocketAdaptor.java200 sel.selectedKeys().remove(sk); in receive()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelector.java275 public abstract Set<SelectionKey> selectedKeys(); in selectedKeys() method in Selector
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DMockAbstractSelector.java69 public Set<SelectionKey> selectedKeys() { in selectedKeys() method in MockAbstractSelector