/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 114 SelectionKey acceptKey = sc.register(acceptSelector1, in test_register_LSelectorILObject() 121 acceptKey = sc.register(acceptSelector2, SelectionKey.OP_READ, null); in test_register_LSelectorILObject() 129 channel.register(selector, 0); in test_register_LSelectorILObject() 147 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 153 msc.register(null, 0, null); in test_register_LSelectorILObject_IllegalArgument() 161 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 167 msc.register(null, 0, null); in test_register_LSelectorILObject_IllegalArgument() 173 msc.register(acceptSelector, 0, null); in test_register_LSelectorILObject_IllegalArgument() 183 msc.register(acceptSelector, SelectionKey.OP_READ, null); in test_register_LSelectorILObject_IllegalArgument() 189 msc.register(null, 0, null); in test_register_LSelectorILObject_IllegalArgument() [all …]
|
D | AbstractSelectorTest.java | 120 SelectionKey acceptKey = ssc.register(acceptSelector, 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() 155 SelectionKey acceptKey = ssc.register(acceptSelector, in test_register_LSelectorI_error()
|
D | MockAbstractSelector.java | 48 protected SelectionKey register(AbstractSelectableChannel arg0, int arg1, in register() method in MockAbstractSelector
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | PhaserTest.java | 52 assertEquals(expectedPhase, phaser.register()); in assertTerminated() 141 assertEquals(0, phaser.register()); in testRegister1() 155 assertEquals(0, phaser.register()); in testRegister2() 159 phaser.register(); in testRegister2() 178 assertEquals(0, phaser.register()); in testRegister3() 180 assertEquals(1, phaser.register()); in testRegister3() 191 assertEquals(1, phaser.register()); in testRegister4() 204 assertEquals(0, child2.register()); in testRegisterEmptySubPhaser() 212 assertEquals(0, child2.register()); in testRegisterEmptySubPhaser() 294 assertEquals(0, phaser.register()); in testArriveAndDeregister() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
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() 79 socketChannel.register(sel2, SelectionKey.OP_WRITE); in testSelectorAcceptAndRead() 96 SelectionKey mkey3 = socketChannel2.register(sel3, SelectionKey.OP_WRITE); in testSelectUnConnectedChannel() 105 SelectionKey mkey4 = socketChannel2.register(sel4, SelectionKey.OP_CONNECT); in testSelectUnConnectedChannel() 111 …SelectionKey mkey5 = socketChannel2.register(sel5, SelectionKey.OP_CONNECT | SelectionKey.OP_WRITE… in testSelectUnConnectedChannel()
|
D | SelectorTest.java | 105 SelectionKey key = ssc.register(selector, SelectionKey.OP_ACCEPT); in test_keys() 118 SelectionKey key3 = sc.register(selector, SelectionKey.OP_READ); in test_keys() 152 ssc.register(selector, SelectionKey.OP_ACCEPT); in test_selectedKeys() 333 SelectionKey key1 = ssc.register(selector, SelectionKey.OP_ACCEPT); 339 SelectionKey key2 = sc.register(selector, SelectionKey.OP_READ); 363 final SelectionKey key = pipe.source().register(selector, SelectionKey.OP_READ); 396 sc.register(selector, SelectionKey.OP_CONNECT); 414 SelectionKey key1 = sc.register(selector, SelectionKey.OP_WRITE); 445 channel.register(selector, SelectionKey.OP_CONNECT); 472 ssc.register(selector, SelectionKey.OP_ACCEPT); [all …]
|
D | SelectableChannelTest.java | 40 msc.register(Selector.open(), SelectionKey.OP_ACCEPT); in test_register_LSelectorI() 73 public SelectionKey register(Selector sel, int ops, Object att) in register() method in SelectableChannelTest.MockSelectableChannel
|
D | SelectionKeyTest.java | 47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in setUp()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SelectableChannel.java | 219 public abstract SelectionKey register(Selector sel, int ops, Object att) in register() method in SelectableChannel 277 public final SelectionKey register(Selector sel, int ops) in register() method in SelectableChannel 280 return register(sel, ops, null); in register()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | Watchable.java | 89 WatchKey register(WatchService watcher, in register() method 125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) in register() method
|
D | Path.java | 661 WatchKey register(WatchService watcher, in register() method 709 WatchKey register(WatchService watcher, in register() method
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | WatchServiceTest.java | 128 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_singleFile() 172 WatchKey directoryKey1 = directory.register(watchService, events); in test_EventMask() 194 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_singleDirectory() 223 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_cancel() 253 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_removeTarget() 291 WatchKey directoryKey1 = directory1.register(watchService1, ALL_EVENTS_KINDS); in test_multipleKeys() 292 WatchKey directoryKey2 = directory2.register(watchService1, ALL_EVENTS_KINDS); in test_multipleKeys() 333 WatchKey directoryKey1 = directory1.register(watchService1, ALL_EVENTS_KINDS); in test_multipleServices() 334 WatchKey directoryKey2 = directory2.register(watchService2, ALL_EVENTS_KINDS); in test_multipleServices() 350 WatchKey directoryKey3 = directory1.register(watchService2, ALL_EVENTS_KINDS); in test_multipleServices()
|
D | LinuxPathTest.java | 371 WatchKey key = directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind() 405 directory.register(null, events); in test_register$WatchService$WatchEvent_Kind_NPE() 410 directory.register(watchService, (WatchEvent.Kind<?>) null); in test_register$WatchService$WatchEvent_Kind_NPE() 423 directory.register(watchService, ENTRY_CREATE); in test_register$WatchService$WatchEvent_Kind_Exception() 432 directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind_Exception() 439 directory.register(watchService, ENTRY_CREATE); in test_register$WatchService$WatchEvent_Kind_Exception() 452 directory.register(null, ENTRY_CREATE); in test_register$WatchService$WatchEvent_Kind_Exception_NPE() 457 directory.register(watchService, null); in test_register$WatchService$WatchEvent_Kind_Exception_NPE() 470 WatchKey key = dirRoot.register(watchService, events, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier() 486 WatchKey key = dirRoot.register(null, events, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractPath.java | 100 public final WatchKey register(WatchService watcher, in register() method 104 return register(watcher, events, new WatchEvent.Modifier[0]); in register()
|
D | AbstractWatchService.java | 65 abstract WatchKey register(Path path, in register() method in AbstractWatchService
|
D | LinuxWatchService.java | 94 WatchKey register(Path dir, in register() method in LinuxWatchService 100 return poller.register(dir, events, modifiers); in register()
|
D | AbstractPoller.java | 95 final WatchKey register(Path dir, in register() method in AbstractPoller
|
D | PollingWatchService.java | 71 WatchKey register(final Path path, in register() method in PollingWatchService
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SelectorTest.java | 45 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); in testNonBlockingConnect_immediate() 130 SelectionKey key = sc.register(selector, in test_57456() 166 sc.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE); in test28318596()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Port.java | 64 final void register(int fd, PollableChannel ch) { in register() method in Port 129 register(fdVal, new PollableChannel() { in attachForeignChannel()
|
D | SelectorImpl.java | 123 protected final SelectionKey register(AbstractSelectableChannel ch, in register() method in SelectorImpl
|
D | UnixAsynchronousSocketChannelImpl.java | 116 port.register(fdVal, this); in UnixAsynchronousSocketChannelImpl() 133 port.register(fdVal, this); in UnixAsynchronousSocketChannelImpl()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AbstractSelectableChannel.java | 191 public final SelectionKey register(Selector sel, int ops, in register() method in AbstractSelectableChannel 212 k = ((AbstractSelector)sel).register(this, ops, att); in register()
|
D | AbstractSelector.java | 175 protected abstract SelectionKey register(AbstractSelectableChannel ch, in register() method in AbstractSelector
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ArrayBlockingQueue.java | 799 register(initial); in Itrs() 866 void register(Itr itr) { in register() method in ArrayBlockingQueue.Itrs 1029 itrs.register(this); // in this order in Itr()
|