Home
last modified time | relevance | path

Searched refs:watchService (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/test/java/libcore/java/nio/file/
DWatchServiceTest.java76 private static void checkWatchServiceEventMultipleKeys(WatchService watchService, in checkWatchServiceEventMultipleKeys() argument
88 WatchKey watchKey = watchService.poll(2, TimeUnit.SECONDS); in checkWatchServiceEventMultipleKeys()
112 private static void checkWatchServiceEvent(WatchService watchService, in checkWatchServiceEvent() argument
118 checkWatchServiceEventMultipleKeys(watchService, expected, expectedResetResult); in checkWatchServiceEvent()
123 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_singleFile() local
128 WatchKey directoryKey1 = directory.register(watchService, ALL_EVENTS_KINDS); in test_singleFile()
132 checkWatchServiceEvent(watchService, directoryKey1, in test_singleFile()
134 assertNull(watchService.poll()); in test_singleFile()
138 checkWatchServiceEvent(watchService, directoryKey1, in test_singleFile()
146 WatchKey doubleModifyKey = watchService.poll(); in test_singleFile()
[all …]
DLinuxPathTest.java366 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_register$WatchService$WatchEvent_Kind() local
372 WatchKey key = directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind()
401 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_register$WatchService$WatchEvent_Kind_NPE() local
411 directory.register(watchService, (WatchEvent.Kind<?>) null); in test_register$WatchService$WatchEvent_Kind_NPE()
418 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_register$WatchService$WatchEvent_Kind_Exception() local
424 directory.register(watchService, ENTRY_CREATE); in test_register$WatchService$WatchEvent_Kind_Exception()
433 directory.register(watchService, events); in test_register$WatchService$WatchEvent_Kind_Exception()
438 watchService.close(); in test_register$WatchService$WatchEvent_Kind_Exception()
440 directory.register(watchService, ENTRY_CREATE); in test_register$WatchService$WatchEvent_Kind_Exception()
447 WatchService watchService = FileSystems.getDefault().newWatchService(); in test_register$WatchService$WatchEvent_Kind_Exception_NPE() local
[all …]