Home
last modified time | relevance | path

Searched refs:WatchEvent (Results 1 – 18 of 18) sorted by relevance

/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractWatchKey.java63 private List<WatchEvent<?>> events;
67 private Map<Object,WatchEvent<?>> lastModifyEvents;
73 this.events = new ArrayList<WatchEvent<?>>(); in AbstractWatchKey()
74 this.lastModifyEvents = new HashMap<Object,WatchEvent<?>>(); in AbstractWatchKey()
105 final void signalEvent(WatchEvent.Kind<?> kind, Object context) { in signalEvent()
112 WatchEvent<?> prev = events.get(size-1); in signalEvent()
125 WatchEvent<?> ev = lastModifyEvents.get(context); in signalEvent()
149 new Event<Object>((WatchEvent.Kind<Object>)kind, context); in signalEvent()
163 public final List<WatchEvent<?>> pollEvents() { in pollEvents()
165 List<WatchEvent<?>> result = events; in pollEvents()
[all …]
DAbstractPoller.java79 Set<? extends WatchEvent.Kind<?>> events, in implRegister()
80 WatchEvent.Modifier... modifiers); in implRegister()
96 WatchEvent.Kind<?>[] events, in register()
97 WatchEvent.Modifier... modifiers) in register()
103 Set<WatchEvent.Kind<?>> eventSet = new HashSet<>(events.length); in register()
104 for (WatchEvent.Kind<?> event: events) { in register()
256 Set<? extends WatchEvent.Kind<?>> events = in processRequests()
257 (Set<? extends WatchEvent.Kind<?>>)params[1]; in processRequests()
258 WatchEvent.Modifier[] modifiers = in processRequests()
259 (WatchEvent.Modifier[])params[2]; in processRequests()
DPollingWatchService.java72 WatchEvent.Kind<?>[] events, in register()
73 WatchEvent.Modifier... modifiers) in register()
77 final Set<WatchEvent.Kind<?>> eventSet = in register()
78 new HashSet<WatchEvent.Kind<?>>(events.length); in register()
79 for (WatchEvent.Kind<?> event: events) { in register()
105 for (WatchEvent.Modifier modifier: modifiers) { in register()
142 Set<? extends WatchEvent.Kind<?>> events,
232 private Set<? extends WatchEvent.Kind<?>> events;
282 void enable(Set<? extends WatchEvent.Kind<?>> events, long period) {
DLinuxWatchService.java88 WatchEvent.Kind<?>[] events, in register()
89 WatchEvent.Modifier... modifiers) in register()
218 Set<? extends WatchEvent.Kind<?>> events, in implRegister()
219 WatchEvent.Modifier... modifiers) in implRegister()
224 for (WatchEvent.Kind<?> event: events) { in implRegister()
241 for (WatchEvent.Modifier modifier: modifiers) { in implRegister()
410 private WatchEvent.Kind<?> maskToEventKind(int mask) { in maskToEventKind()
457 WatchEvent.Kind<?> kind = maskToEventKind(mask); in processEvent()
DAbstractPath.java101 WatchEvent.Kind<?>... events) in register()
104 return register(watcher, events, new WatchEvent.Modifier[0]); in register()
DAbstractWatchService.java66 WatchEvent.Kind<?>[] events, in register()
67 WatchEvent.Modifier... modifers) in register()
DUnixPath.java888 WatchEvent.Kind<?>[] events, in register()
889 WatchEvent.Modifier... modifiers) in register()
/libcore/ojluni/src/main/java/java/nio/file/
DStandardWatchEventKinds.java47 public static final WatchEvent.Kind<Object> OVERFLOW =
58 public static final WatchEvent.Kind<Path> ENTRY_CREATE =
69 public static final WatchEvent.Kind<Path> ENTRY_DELETE =
80 public static final WatchEvent.Kind<Path> ENTRY_MODIFY =
83 private static class StdWatchEventKind<T> implements WatchEvent.Kind<T> {
DWatchable.java90 WatchEvent.Kind<?>[] events, in register()
91 WatchEvent.Modifier... modifiers) in register()
125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) in register()
DPath.java662 WatchEvent.Kind<?>[] events, in register()
663 WatchEvent.Modifier... modifiers) in register()
710 WatchEvent.Kind<?>... events) in register()
DWatchKey.java104 List<WatchEvent<?>> pollEvents(); in pollEvents()
DWatchEvent.java47 public interface WatchEvent<T> { interface
/libcore/luni/src/test/java/libcore/java/nio/file/
DWatchServiceTest.java27 import java.nio.file.WatchEvent;
51 private static final WatchEvent.Kind<?>[] ALL_EVENTS_KINDS =
58 final WatchEvent.Kind<Path> expectedKind;
62 public WatchEventResult(WatchEvent.Kind<Path> expectedKind) { in WatchEventResult()
68 public WatchEventResult(WatchEvent.Kind<Path> expectedKind, in WatchEventResult()
95 for (WatchEvent<?> event : watchKey.pollEvents()) { in checkWatchServiceEventMultipleKeys()
148 List<WatchEvent<?>> event = doubleModifyKey.pollEvents(); in test_singleFile()
167 WatchEvent.Kind<?>[] events = {ENTRY_DELETE}; in test_EventMask()
DLinuxPathTest.java21 import java.nio.file.WatchEvent.Kind;
39 import java.nio.file.WatchEvent;
367 WatchEvent.Kind<?>[] events = {ENTRY_CREATE, ENTRY_DELETE}; in test_register$WatchService$WatchEvent_Kind()
384 List<WatchEvent<?>> eventList = new ArrayList<>(); in test_register$WatchService$WatchEvent_Kind()
402 WatchEvent.Kind<?>[] events = {ENTRY_CREATE, ENTRY_DELETE}; in test_register$WatchService$WatchEvent_Kind_NPE()
411 directory.register(watchService, (WatchEvent.Kind<?>) null); in test_register$WatchService$WatchEvent_Kind_NPE()
431 WatchEvent.Kind<?>[] events = {new NonStandardEvent<>()}; in test_register$WatchService$WatchEvent_Kind_Exception()
467 WatchEvent.Kind<?>[] events = {ENTRY_CREATE}; in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier()
483 WatchEvent.Kind<?>[] events = {ENTRY_CREATE}; in test_register$WatchService$WatchEvent_Kind$WatchEvent_Modifier_NPE()
580 private static class NonStandardEvent<T> implements WatchEvent.Kind<T> {
/libcore/ojluni/src/main/java/com/sun/nio/file/
DExtendedWatchEventModifier.java28 import java.nio.file.WatchEvent.Modifier;
DSensitivityWatchEventModifier.java28 import java.nio.file.WatchEvent.Modifier;
/libcore/ojluni/annotations/hiddenapi/com/sun/nio/file/
DExtendedWatchEventModifier.java29 public enum ExtendedWatchEventModifier implements java.nio.file.WatchEvent.Modifier {
/libcore/
Dopenjdk_java_files.bp488 "ojluni/src/main/java/java/nio/file/WatchEvent.java",