Searched refs:keyFor (Results 1 – 5 of 5) sorted by relevance
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 163 assertEquals(ssc.keyFor(selector), selectedKeys.iterator().next()); in test_selectedKeys() 166 selectedKeys.add(ssc.keyFor(selector)); in test_selectedKeys() 178 ssc.keyFor(selector).cancel(); in test_selectedKeys() 404 assertEquals(sc.keyFor(selector), key); 479 assertEquals(ssc.keyFor(selector), key); 498 ssc.keyFor(selector).cancel(); 513 assertEquals(sc.keyFor(selector), key); 563 assertEquals(sc.keyFor(selector), key); 625 assertEquals(sc.keyFor(selector), key);
|
D | SelectableChannelTest.java | 65 public SelectionKey keyFor(Selector sel) { in keyFor() method in SelectableChannelTest.MockSelectableChannel
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 243 assertEquals(sc.keyFor(acceptSelector), acceptKey); in test_keyfor_LSelector() 246 assertSame(sc.keyFor(acceptSelector), acceptKeyObjNull); in test_keyfor_LSelector() 250 assertSame(sc.keyFor(acceptSelectorOther), acceptKeyOther); in test_keyfor_LSelector() 262 assertEquals(sc.keyFor(acceptSelector), acceptKey); in test_configureBlocking_Z_IllegalBlockingMode()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SelectableChannel.java | 149 public abstract SelectionKey keyFor(Selector sel); in keyFor() method in SelectableChannel
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelectableChannel.java | 158 public final SelectionKey keyFor(Selector sel) { in keyFor() method in AbstractSelectableChannel
|