Home
last modified time | relevance | path

Searched refs:selectedKeys (Results 1 – 10 of 10) 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/java/nio/channels/
DSelector.java344 public abstract Set<SelectionKey> selectedKeys(); in selectedKeys() method in Selector
563 Set<SelectionKey> selectedKeys = selectedKeys(); in doSelect() local
564 synchronized (selectedKeys) { in doSelect()
565 selectedKeys.clear(); in doSelect()
574 Set<SelectionKey> keysToConsume = Set.copyOf(selectedKeys); in doSelect()
576 selectedKeys.clear(); in doSelect()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSelectorImpl.java44 protected Set<SelectionKey> selectedKeys; field in SelectorImpl
56 selectedKeys = new HashSet<SelectionKey>(); in SelectorImpl()
59 publicSelectedKeys = selectedKeys; in SelectorImpl()
62 publicSelectedKeys = Util.ungrowableSet(selectedKeys); in SelectorImpl()
72 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()
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/
DSelectorImpl.java44 public java.util.Set<java.nio.channels.SelectionKey> selectedKeys() { in selectedKeys() method in SelectorImpl
101 protected java.util.Set<java.nio.channels.SelectionKey> selectedKeys; field in SelectorImpl
/libcore/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java516 assertTrue(Thread.holdsLock(sel.selectedKeys())); in testLocks()
524 assertTrue(Thread.holdsLock(sel.selectedKeys())); in testLocks()
532 assertTrue(Thread.holdsLock(sel.selectedKeys())); in testLocks()
566 assertTrue(sel.selectedKeys().contains(key1)); in testCancel()
567 assertTrue(sel.selectedKeys().contains(key2)); in testCancel()
576 assertFalse(sel.selectedKeys().contains(key1)); in testCancel()
577 assertTrue(sel.selectedKeys().contains(key2)); in testCancel()
585 assertFalse(sel.selectedKeys().contains(key1)); in testCancel()
586 assertFalse(sel.selectedKeys().contains(key2)); in testCancel()
DSelectAfterRead.java76 sel.selectedKeys().clear(); in testSelectAfterRead()
/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
/libcore/api/
Dcurrent.txt6508 method public abstract java.util.Set<java.nio.channels.SelectionKey> selectedKeys();