Home
last modified time | relevance | path

Searched refs:BasicFileAttributes (Results 1 – 25 of 28) sorted by relevance

12

/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewTest.java53 BasicFileAttributes attrs = Files.readAttributes(dir, BasicFileAttributes.class); in checkAttributesOfDirectory()
68 BasicFileAttributes attrs = Files.readAttributes(file, BasicFileAttributes.class); in checkAttributesOfFile()
84 BasicFileAttributes dirAttrs = Files.readAttributes(dir, BasicFileAttributes.class); in checkAttributesOfFile()
99 BasicFileAttributes attrs = in checkAttributesOfLink()
100 Files.readAttributes(link, BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS); in checkAttributesOfLink()
DBasicFileAttributeViewCreationTimeTest.java52 return Files.readAttributes(file, BasicFileAttributes.class).creationTime(); in creationTime()
/libcore/ojluni/src/main/java/java/nio/file/
DFileTreeWalker.java28 import java.nio.file.attribute.BasicFileAttributes;
130 private final BasicFileAttributes attrs;
133 private Event(EventType type, Path file, BasicFileAttributes attrs, IOException ioe) { in Event()
140 Event(EventType type, Path file, BasicFileAttributes attrs) { in Event()
156 BasicFileAttributes attributes() { in attributes()
201 private BasicFileAttributes getAttributes(Path file, boolean canUseCached) in getAttributes()
209 BasicFileAttributes cached = ((BasicFileAttributesHolder)file).get(); in getAttributes()
217 BasicFileAttributes attrs; in getAttributes()
219 attrs = Files.readAttributes(file, BasicFileAttributes.class, linkOptions); in getAttributes()
226 BasicFileAttributes.class, in getAttributes()
[all …]
DFileVisitor.java28 import java.nio.file.attribute.BasicFileAttributes;
119 FileVisitResult preVisitDirectory(T dir, BasicFileAttributes attrs) in preVisitDirectory()
135 FileVisitResult visitFile(T file, BasicFileAttributes attrs) in visitFile()
DSimpleFileVisitor.java28 import java.nio.file.attribute.BasicFileAttributes;
57 public FileVisitResult preVisitDirectory(T dir, BasicFileAttributes attrs) in preVisitDirectory()
72 public FileVisitResult visitFile(T file, BasicFileAttributes attrs) in visitFile()
DCopyMoveHelper.java109 BasicFileAttributes attrs = Files.readAttributes(source, in copyToForeignTarget()
110 BasicFileAttributes.class, in copyToForeignTarget()
DFiles.java48 import java.nio.file.attribute.BasicFileAttributes;
1732 public static <A extends BasicFileAttributes> A readAttributes(Path path,
2154 BasicFileAttributes.class,
2192 return readAttributes(path, BasicFileAttributes.class, options).isDirectory();
2229 return readAttributes(path, BasicFileAttributes.class, options).isRegularFile();
2266 return readAttributes(path, BasicFileAttributes.class, options).lastModifiedTime();
2332 return readAttributes(path, BasicFileAttributes.class).size();
2388 readAttributes(path, BasicFileAttributes.class,
2437 readAttributes(path, BasicFileAttributes.class,
3683 BiPredicate<Path, BasicFileAttributes> matcher,
/libcore/luni/src/test/java/libcore/java/nio/file/
DSimpleFileVisitorTest.java25 import java.nio.file.attribute.BasicFileAttributes;
33 BasicFileAttributes stubAttributes = mock(BasicFileAttributes.class); in test_preVisitDirectory()
72 BasicFileAttributes stubAttributes = mock(BasicFileAttributes.class); in test_visitFile()
DDefaultFileSystemProvider2Test.java42 import java.nio.file.attribute.BasicFileAttributes;
341 BasicFileAttributes basicFileAttributes = provider in test_readAttributes()
343 BasicFileAttributes.class); in test_readAttributes()
349 provider.readAttributes(filesSetup.getTestPath(), BasicFileAttributes.class); in test_readAttributes()
358 (Class<BasicFileAttributes>) null); in test_readAttributes_NPE()
363 provider.readAttributes(null, BasicFileAttributes.class); in test_readAttributes_NPE()
DFilesSetup.java36 import java.nio.file.attribute.BasicFileAttributes;
DFiles2Test.java52 import java.nio.file.attribute.BasicFileAttributes;
176 BasicFileAttributes mockBasicFileAttributes = mock(BasicFileAttributes.class); in test_readAttributes()
177 when(mockFileSystemProvider.readAttributes(mockPath, BasicFileAttributes.class, in test_readAttributes()
180 BasicFileAttributes.class, LinkOption.NOFOLLOW_LINKS)); in test_readAttributes()
1845 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) in preVisitDirectory()
1855 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException { in visitFile()
/libcore/ojluni/src/main/java/sun/nio/fs/
DBasicFileAttributesHolder.java28 import java.nio.file.attribute.BasicFileAttributes;
40 BasicFileAttributes get(); in get()
DUnixFileAttributes.java246 BasicFileAttributes asBasicFileAttributes() { in asBasicFileAttributes()
252 static UnixFileAttributes toUnixFileAttributes(BasicFileAttributes attrs) { in toUnixFileAttributes()
262 private static class UnixAsBasicFileAttributes implements BasicFileAttributes {
DLinuxFileSystemProvider.java99 public <A extends BasicFileAttributes> A readAttributes(Path file, in readAttributes()
DPollingWatchService.java147 BasicFileAttributes attrs = Files.readAttributes(path, BasicFileAttributes.class);
DAbstractBasicFileAttributeView.java139 final void addRequestedBasicAttributes(BasicFileAttributes attrs, in addRequestedBasicAttributes()
DUnixFileSystemProvider.java130 public <A extends BasicFileAttributes> A readAttributes(Path file, in readAttributes()
136 if (type == BasicFileAttributes.class) in readAttributes()
/libcore/ojluni/src/test/java/nio/file/
DTestUtil.java28 import java.nio.file.attribute.BasicFileAttributes;
48 public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) { in removeAll()
52 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) { in removeAll()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DDosFileAttributes.java42 extends BasicFileAttributes
DPosixFileAttributes.java43 extends BasicFileAttributes
DBasicFileAttributes.java46 public interface BasicFileAttributes { interface
DBasicFileAttributeView.java124 BasicFileAttributes readAttributes() throws IOException; in readAttributes()
/libcore/luni/src/test/filesystems/src/mypackage/
DMockFileSystemProvider.java30 import java.nio.file.attribute.BasicFileAttributes;
123 public <A extends BasicFileAttributes> A readAttributes(Path path, Class<A> type, in readAttributes()
/libcore/ojluni/src/main/java/java/nio/file/spi/
DFileSystemProvider.java1032 public abstract <A extends BasicFileAttributes> A
/libcore/luni/src/test/java/libcore/util/
DTimeZoneFinderTest.java31 import java.nio.file.attribute.BasicFileAttributes;
82 public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) in tearDown()

12