Home
last modified time | relevance | path

Searched refs:WatchKey (Results 1 – 15 of 15) 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.java87 WatchKey register(Path dir, in register()
289 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/luni/src/test/java/libcore/java/nio/file/
DWatchServiceTest.java28 import java.nio.file.WatchKey;
77 Map<WatchKey, List<WatchEventResult>> expectedResults, in checkWatchServiceEventMultipleKeys() argument
81 HashMap<WatchKey, ArrayList<WatchEventResult>> expectedResultsCopy in checkWatchServiceEventMultipleKeys()
83 for (Map.Entry<WatchKey, List<WatchEventResult>> entry : expectedResults.entrySet()) { in checkWatchServiceEventMultipleKeys()
88 WatchKey watchKey = watchService.poll(2, TimeUnit.SECONDS); in checkWatchServiceEventMultipleKeys()
113 WatchKey expectedWatchKey, in checkWatchServiceEvent()
116 Map<WatchKey, List<WatchEventResult>> expected = new HashMap<>(); in checkWatchServiceEvent()
128 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_singleFile()
146 WatchKey doubleModifyKey = watchService.poll(); in test_singleFile()
172 WatchKey directoryKey1 = directory.register(watchService, events); in test_EventMask()
[all …]
DLinuxPathTest.java40 import java.nio.file.WatchKey;
372 WatchKey key = directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind()
471 WatchKey key = dirRoot.register(watchService, events, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier()
487 WatchKey key = dirRoot.register(null, events, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE()
493 WatchKey key = dirRoot.register(watchService, null, in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE()
/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/
Dopenjdk_java_files.bp496 "ojluni/src/main/java/java/nio/file/WatchKey.java",
/libcore/api/
Dcurrent.txt6919 public interface WatchKey {
6928 method public java.nio.file.WatchKey poll();
6929 …method public java.nio.file.WatchKey poll(long, java.util.concurrent.TimeUnit) throws java.lang.In…
6930 method public java.nio.file.WatchKey take() throws java.lang.InterruptedException;
6934 …method public java.nio.file.WatchKey register(java.nio.file.WatchService, java.nio.file.WatchEvent…
6935 …method public java.nio.file.WatchKey register(java.nio.file.WatchService, java.nio.file.WatchEvent…