Home
last modified time | relevance | path

Searched refs:WatchKey (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchService.java39 private final LinkedBlockingDeque<WatchKey> pendingKeys =
40 new LinkedBlockingDeque<WatchKey>();
43 private final WatchKey CLOSE_KEY =
65 abstract WatchKey register(Path path, in register()
71 final void enqueueKey(WatchKey key) { in enqueueKey()
87 private void checkKey(WatchKey key) { in checkKey()
96 public final WatchKey poll() { in poll()
98 WatchKey key = pendingKeys.poll(); in poll()
104 public final WatchKey poll(long timeout, TimeUnit unit) in poll()
108 WatchKey key = pendingKeys.poll(timeout, unit); in poll()
[all …]
DAbstractPoller.java85 abstract void implCancelKey(WatchKey key); in implCancelKey()
95 final WatchKey register(Path dir, in register()
125 return (WatchKey)invoke(RequestType.REGISTER, dir, eventSet, modifiers); in register()
131 final void cancel(WatchKey key) { in cancel()
268 WatchKey key = (WatchKey)params[0]; in processRequests()
DAbstractPath.java100 public final WatchKey register(WatchService watcher, in register()
DLinuxWatchService.java33 import java.nio.file.WatchKey;
93 WatchKey register(Path dir, in register()
294 void implCancelKey(WatchKey obj) { in implCancelKey()
DAbstractWatchKey.java35 abstract class AbstractWatchKey implements WatchKey {
DPollingWatchService.java71 WatchKey register(final Path path, in register()
DUnixPath.java887 public WatchKey register(WatchService watcher, in register()
/libcore/ojluni/src/main/java/java/nio/file/
DWatchService.java139 WatchKey poll(); in poll()
159 WatchKey poll(long timeout, TimeUnit unit) in poll()
173 WatchKey take() throws InterruptedException; in take()
DWatchable.java89 WatchKey register(WatchService watcher, in register()
125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) in register()
DPath.java661 WatchKey register(WatchService watcher, in register()
709 WatchKey register(WatchService watcher, in register()
DWatchKey.java84 public interface WatchKey { interface
/libcore/luni/src/test/java/libcore/java/nio/file/
DWatchServiceTest.java33 import java.nio.file.WatchKey;
82 WatchKey expectedWatchKey, in assertWatchServiceEvent()
88 WatchKey watchKey = watchService.poll(2, TimeUnit.SECONDS); in assertWatchServiceEvent()
112 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_singleFile()
130 WatchKey doubleModifyKey = watchService.poll(); in test_singleFile()
156 WatchKey directoryKey1 = directory.register(watchService, events); in test_EventMask()
178 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_singleDirectory()
207 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_cancel()
237 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_removeTarget()
275 WatchKey directoryKey1 = directory1.register(watchService1, ALL_EVENTS_KINDS); in test_multipleKeys()
[all …]
DLinuxPathTest.java39 import java.nio.file.WatchKey;
371 WatchKey key = directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind()
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()
492 WatchKey key = dirRoot.register(watchService, null, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE()
/libcore/
Dopenjdk_java_files.mk486 ojluni/src/main/java/java/nio/file/WatchKey.java \