Home
last modified time | relevance | path

Searched refs:register (Results 1 – 25 of 30) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java114 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 …]
DAbstractSelectorTest.java120 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()
DMockAbstractSelector.java48 protected SelectionKey register(AbstractSelectableChannel arg0, int arg1, in register() method in MockAbstractSelector
/libcore/jsr166-tests/src/test/java/jsr166/
DPhaserTest.java52 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/
DUnixSelectorTest.java65 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()
DSelectorTest.java105 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 …]
DSelectableChannelTest.java40 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
DSelectionKeyTest.java47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT); in setUp()
/libcore/ojluni/src/main/java/java/nio/channels/
DSelectableChannel.java219 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/
DWatchable.java89 WatchKey register(WatchService watcher, in register() method
125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) in register() method
DPath.java661 WatchKey register(WatchService watcher, in register() method
709 WatchKey register(WatchService watcher, in register() method
/libcore/luni/src/test/java/libcore/java/nio/file/
DWatchServiceTest.java128 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()
DLinuxPathTest.java371 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/
DAbstractPath.java100 public final WatchKey register(WatchService watcher, in register() method
104 return register(watcher, events, new WatchEvent.Modifier[0]); in register()
DAbstractWatchService.java65 abstract WatchKey register(Path path, in register() method in AbstractWatchService
DLinuxWatchService.java94 WatchKey register(Path dir, in register() method in LinuxWatchService
100 return poller.register(dir, events, modifiers); in register()
DAbstractPoller.java95 final WatchKey register(Path dir, in register() method in AbstractPoller
DPollingWatchService.java71 WatchKey register(final Path path, in register() method in PollingWatchService
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java45 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/
DPort.java64 final void register(int fd, PollableChannel ch) { in register() method in Port
129 register(fdVal, new PollableChannel() { in attachForeignChannel()
DSelectorImpl.java123 protected final SelectionKey register(AbstractSelectableChannel ch, in register() method in SelectorImpl
DUnixAsynchronousSocketChannelImpl.java116 port.register(fdVal, this); in UnixAsynchronousSocketChannelImpl()
133 port.register(fdVal, this); in UnixAsynchronousSocketChannelImpl()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractSelectableChannel.java191 public final SelectionKey register(Selector sel, int ops, in register() method in AbstractSelectableChannel
212 k = ((AbstractSelector)sel).register(this, ops, att); in register()
DAbstractSelector.java175 protected abstract SelectionKey register(AbstractSelectableChannel ch, in register() method in AbstractSelector
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java799 register(initial); in Itrs()
866 void register(Itr itr) { in register() method in ArrayBlockingQueue.Itrs
1029 itrs.register(this); // in this order in Itr()

12