/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | AbstractWatchKey.java | 63 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 …]
|
D | AbstractPoller.java | 79 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()
|
D | PollingWatchService.java | 72 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) {
|
D | LinuxWatchService.java | 88 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()
|
D | AbstractPath.java | 101 WatchEvent.Kind<?>... events) in register() 104 return register(watcher, events, new WatchEvent.Modifier[0]); in register()
|
D | AbstractWatchService.java | 66 WatchEvent.Kind<?>[] events, in register() 67 WatchEvent.Modifier... modifers) in register()
|
D | UnixPath.java | 888 WatchEvent.Kind<?>[] events, in register() 889 WatchEvent.Modifier... modifiers) in register()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | StandardWatchEventKinds.java | 47 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> {
|
D | Watchable.java | 90 WatchEvent.Kind<?>[] events, in register() 91 WatchEvent.Modifier... modifiers) in register() 125 WatchKey register(WatchService watcher, WatchEvent.Kind<?>... events) in register()
|
D | Path.java | 662 WatchEvent.Kind<?>[] events, in register() 663 WatchEvent.Modifier... modifiers) in register() 710 WatchEvent.Kind<?>... events) in register()
|
D | WatchKey.java | 104 List<WatchEvent<?>> pollEvents(); in pollEvents()
|
D | WatchEvent.java | 47 public interface WatchEvent<T> { interface
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | WatchServiceTest.java | 27 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()
|
D | LinuxPathTest.java | 21 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/ |
D | ExtendedWatchEventModifier.java | 28 import java.nio.file.WatchEvent.Modifier;
|
D | SensitivityWatchEventModifier.java | 28 import java.nio.file.WatchEvent.Modifier;
|
/libcore/ojluni/annotations/hiddenapi/com/sun/nio/file/ |
D | ExtendedWatchEventModifier.java | 29 public enum ExtendedWatchEventModifier implements java.nio.file.WatchEvent.Modifier {
|
/libcore/ |
D | openjdk_java_files.bp | 488 "ojluni/src/main/java/java/nio/file/WatchEvent.java",
|