/libcore/ojluni/src/main/java/java/nio/file/ |
H A D | Watchable.java | 34 * <p> This interface defines the {@link #register register} method to register 42 * @see Path#register 89 WatchKey register(WatchService watcher, method in interface:Watchable 101 * watchable.{@link #register(WatchService,WatchEvent.Kind[],WatchEvent.Modifier[]) register}(watcher, events, new WatchEvent.Modifier[0]); 125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) method in interface:Watchable
|
H A D | Path.java | 60 * located by a path can be {@link #register registered} with a {@link 608 * register and may contain the following events: 661 WatchKey register(WatchService watcher, method in interface:Path 672 * watchable.{@link #register(WatchService,WatchEvent.Kind[],WatchEvent.Modifier[]) register}(watcher, events, new WatchEvent.Modifier[0]); 676 * Suppose we wish to register a directory for entry create, delete, and modify 682 * WatchKey key = dir.register(watcher, ENTRY_CREATE, ENTRY_DELETE, ENTRY_MODIFY); 709 WatchKey register(WatchService watcher, method in interface:Path
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | SelectableChannel.java | 37 * first be <i>registered</i> via the {@link #register(Selector,int,Object) 38 * register} method. This method returns a new {@link SelectionKey} object 219 public abstract SelectionKey register(Selector sel, int ops, Object att) method in class:SelectableChannel 238 * <blockquote><tt>sc.register(sel, ops)</tt></blockquote> 243 * #register(java.nio.channels.Selector,int,java.lang.Object) 244 * register}(sel, ops, null)</tt></blockquote> 277 public final SelectionKey register(Selector sel, int ops) method in class:SelectableChannel 280 return register(sel, ops, null); 296 * of the {@link #register(Selector, int) register} metho [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
H A D | AbstractSelectableChannelTest.java | 105 * @tests AbstractSelectableChannel#register(Selector, int, Object) 114 SelectionKey acceptKey = sc.register(acceptSelector1, 120 //test that sc.register invokes Selector.register() 121 acceptKey = sc.register(acceptSelector2, SelectionKey.OP_READ, null); 129 channel.register(selector, 0); 135 * @tests AbstractSelectableChannel#register(Selector, int, Object) 147 msc.register(acceptSelector, SelectionKey.OP_READ, null); 153 msc.register(null, 0, null); 161 msc.register(acceptSelecto [all...] |
H A D | AbstractSelectorTest.java | 30 * Tests for AbstractSelector and register of its default implementation 112 * @tests AbstractSelector#register(Selector,int) 120 SelectionKey acceptKey = ssc.register(acceptSelector, 128 * @tests AbstractSelector#register(Selector,int) 138 ssc.register(acceptSelector, SelectionKey.OP_ACCEPT); 148 ssc.register(acceptSelector, SelectionKey.OP_ACCEPT); 155 SelectionKey acceptKey = ssc.register(acceptSelector,
|
H A D | MockAbstractSelector.java | 48 protected SelectionKey register(AbstractSelectableChannel arg0, int arg1, method in class:MockAbstractSelector
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | PhaserTest.java | 52 assertEquals(expectedPhase, phaser.register()); 135 * register() will increment the number of unarrived parties by 141 assertEquals(0, phaser.register()); 155 assertEquals(0, phaser.register()); 159 phaser.register(); 173 * register() correctly returns the current barrier phase number 178 assertEquals(0, phaser.register()); 180 assertEquals(1, phaser.register()); 185 * register causes the next arrive to not increment the phase 191 assertEquals(1, phaser.register()); [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
H A D | UnixSelectorTest.java | 65 SelectionKey mkey0 = server.serverChannel.register(sel0, SelectionKey.OP_ACCEPT); 66 server.serverChannel.register(sel1, SelectionKey.OP_ACCEPT); 79 socketChannel.register(sel2, SelectionKey.OP_WRITE); 96 SelectionKey mkey3 = socketChannel2.register(sel3, SelectionKey.OP_WRITE); 105 SelectionKey mkey4 = socketChannel2.register(sel4, SelectionKey.OP_CONNECT); 111 SelectionKey mkey5 = socketChannel2.register(sel5, SelectionKey.OP_CONNECT | SelectionKey.OP_WRITE);
|
H A D | SelectableChannelTest.java | 33 * @tests SelectableChannel#register(Selector, int) 37 // Verify that calling register(Selector, int) leads to the method 38 // register(Selector, int, Object) being called with a null value 40 msc.register(Selector.open(), SelectionKey.OP_ACCEPT); 73 public SelectionKey register(Selector sel, int ops, Object att) method in class:SelectableChannelTest.MockSelectableChannel
|
H A D | SelectorTest.java | 105 SelectionKey key = ssc.register(selector, SelectionKey.OP_ACCEPT); 118 SelectionKey key3 = sc.register(selector, SelectionKey.OP_READ); 152 ssc.register(selector, SelectionKey.OP_ACCEPT); 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(selecto [all...] |
H A D | SelectionKeyTest.java | 47 selectionKey = sc.register(selector, SelectionKey.OP_CONNECT);
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | AbstractPath.java | 100 public final WatchKey register(WatchService watcher, method in class:AbstractPath 104 return register(watcher, events, new WatchEvent.Modifier[0]);
|
H A D | AbstractWatchService.java | 65 abstract WatchKey register(Path path, method in class:AbstractWatchService
|
H A D | AbstractPoller.java | 37 * also services "requests" from clients to register for new events or cancel 76 * Executed by poller thread to register directory for changes 93 * Requests, and waits on, poller thread to register given file. 95 final WatchKey register(Path dir, method in class:AbstractPoller 124 throw new IllegalArgumentException("No events to register");
|
H A D | LinuxWatchService.java | 93 WatchKey register(Path dir, method in class:LinuxWatchService 99 return poller.register(dir, events, modifiers); 266 // register with inotify (replaces existing mask if already registered)
|
H A D | PollingWatchService.java | 71 WatchKey register(final Path path, method in class:PollingWatchService 100 throw new IllegalArgumentException("No events to register");
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
H A D | WatchServiceTest.java | 112 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); 156 WatchKey directoryKey1 = directory.register(watchService, events); 178 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); 207 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); 237 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); 275 WatchKey directoryKey1 = directory1.register(watchService1, ALL_EVENTS_KINDS); 276 WatchKey directoryKey2 = directory2.register(watchService1, ALL_EVENTS_KINDS); 313 WatchKey directoryKey1 = directory1.register(watchService1, ALL_EVENTS_KINDS); 314 WatchKey directoryKey2 = directory2.register(watchService2, ALL_EVENTS_KINDS); 330 WatchKey directoryKey3 = directory1.register(watchService [all...] |
H A D | LinuxPathTest.java | 371 WatchKey key = directory.register(watchService, events); 405 directory.register(null, events); 410 directory.register(watchService, (WatchEvent.Kind<?>) null); 423 directory.register(watchService, ENTRY_CREATE); 432 directory.register(watchService, events); 439 directory.register(watchService, ENTRY_CREATE); 452 directory.register(null, ENTRY_CREATE); 457 directory.register(watchService, null); 470 WatchKey key = dirRoot.register(watchService, events, 486 WatchKey key = dirRoot.register(nul [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | Port.java | 64 final void register(int fd, PollableChannel ch) { method in class:Port 129 register(fdVal, new PollableChannel() {
|
H A D | SelectorImpl.java | 123 protected final SelectionKey register(AbstractSelectableChannel ch, method in class:SelectorImpl
|
H A D | UnixAsynchronousServerSocketChannelImpl.java | 96 port.register(fdVal, this); 326 // register for connections
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
H A D | AbstractSelector.java | 59 * declares the abstract {@link #register register} method that is invoked by a 60 * selectable channel's {@link AbstractSelectableChannel#register register} 160 * AbstractSelectableChannel#register register} method in order to perform 175 protected abstract SelectionKey register(AbstractSelectableChannel ch, method in class:AbstractSelector
|
H A D | AbstractSelectableChannel.java | 176 * selector, so the {@link AbstractSelector#register register} method of 191 public final SelectionKey register(Selector sel, int ops, method in class:AbstractSelectableChannel 212 k = ((AbstractSelector)sel).register(this, ops, att);
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | SelectorTest.java | 45 SelectionKey key = sc.register(selector, SelectionKey.OP_CONNECT); 130 SelectionKey key = sc.register(selector, 166 sc.register(selector, SelectionKey.OP_READ | SelectionKey.OP_WRITE);
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | ArrayBlockingQueue.java | 799 register(initial); 866 void register(Itr itr) { method in class:ArrayBlockingQueue.Itrs 1029 itrs.register(this); // in this order
|