Home
last modified time | relevance | path

Searched refs:FileTime (Results 1 – 23 of 23) sorted by relevance

/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/
DBasicAttributeProvider.java25 import java.nio.file.attribute.FileTime;
75 return FileTime.fromMillis(file.getCreationTime()); in get()
77 return FileTime.fromMillis(file.getLastAccessTime()); in get()
79 return FileTime.fromMillis(file.getLastModifiedTime()); in get()
90 file.setCreationTime(checkType(view, attribute, value, FileTime.class).toMillis()); in set()
94 file.setLastAccessTime(checkType(view, attribute, value, FileTime.class).toMillis()); in set()
98 file.setLastModifiedTime(checkType(view, attribute, value, FileTime.class).toMillis()); in set()
151 @NullableDecl FileTime lastModifiedTime, in setTimes()
152 @NullableDecl FileTime lastAccessTime, in setTimes()
153 @NullableDecl FileTime createTime) in setTimes()
[all …]
DDosAttributeProvider.java28 import java.nio.file.attribute.FileTime;
138 public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) in setTimes()
DPosixAttributeProvider.java29 import java.nio.file.attribute.FileTime;
213 public void setTimes(FileTime lastModifiedTime, FileTime lastAccessTime, FileTime createTime) in setTimes()
DUnixAttributeProvider.java24 import java.nio.file.attribute.FileTime;
112 return FileTime.fromMillis(file.getCreationTime()); in get()
DPathURLConnection.java38 import java.nio.file.attribute.FileTime;
95 FileTime lastModified = Files.getLastModifiedTime(path); in connect()
/external/jimfs/jimfs/src/test/java/com/google/common/jimfs/
DBasicAttributeProviderTest.java26 import java.nio.file.attribute.FileTime;
86 FileTime time = FileTime.fromMillis(0L); in testSet()
107 FileTime time = FileTime.fromMillis(0L); in testSetOnCreate()
124 FileTime time = attrs.creationTime(); in testView()
135 view.setTimes(FileTime.fromMillis(0L), null, null); in testView()
140 assertThat(attrs.lastModifiedTime()).isEqualTo(FileTime.fromMillis(0L)); in testView()
DAbstractJimfsIntegrationTest.java29 import java.nio.file.attribute.FileTime;
78 private FileTime accessTime;
79 private FileTime modifiedTime;
94 FileTime t = attrs().lastAccessTime(); in assertAccessTimeChanged()
100 FileTime t = attrs().lastAccessTime(); in assertAccessTimeDidNotChange()
105 FileTime t = attrs().lastModifiedTime(); in assertModifiedTimeChanged()
111 FileTime t = attrs().lastModifiedTime(); in assertModifiedTimeDidNotChange()
DTestAttributeProvider.java26 import java.nio.file.attribute.FileTime;
136 @NullableDecl FileTime lastModifiedTime, in setTimes()
137 @NullableDecl FileTime lastAccessTime, in setTimes()
138 @NullableDecl FileTime createTime) in setTimes()
183 public FileTime lastModifiedTime() { in lastModifiedTime()
188 public FileTime lastAccessTime() { in lastAccessTime()
193 public FileTime creationTime() { in creationTime()
DAttributeServiceTest.java28 import java.nio.file.attribute.FileTime;
77 assertThat(service.getAttribute(file, "basic:lastModifiedTime")).isInstanceOf(FileTime.class); in testSetInitialAttributes()
132 service.setAttribute(file, "test:lastModifiedTime", FileTime.fromMillis(0), false); in testSetAttribute_forInheritedProvider()
135 .isEqualTo(FileTime.fromMillis(0)); in testSetAttribute_forInheritedProvider()
277 FileTime time = (FileTime) service.getAttribute(file, "basic:creationTime"); in testReadAttributes_asMap()
DDosAttributeProviderTest.java29 import java.nio.file.attribute.FileTime;
103 view.setTimes(FileTime.fromMillis(0L), null, null); in testView()
104 assertThat(view.readAttributes().lastModifiedTime()).isEqualTo(FileTime.fromMillis(0L)); in testView()
DJimfsUnixLikeFileSystemTest.java86 import java.nio.file.attribute.FileTime;
690 new BasicFileAttribute<>("basic:lastModifiedTime", FileTime.fromMillis(0L))); in testCreateFile_withInitialAttributes_illegalInitialAttribute()
1573 .setTimes(FileTime.fromMillis(100), FileTime.fromMillis(1000), FileTime.fromMillis(10000)); in testCopy_withCopyAttributes()
1575 assertThat(Files.getAttribute(foo, "lastModifiedTime")).isEqualTo(FileTime.fromMillis(100)); in testCopy_withCopyAttributes()
1584 assertThat(attributes.lastModifiedTime()).isEqualTo(FileTime.fromMillis(100)); in testCopy_withCopyAttributes()
1585 assertThat(attributes.lastAccessTime()).isEqualTo(FileTime.fromMillis(1000)); in testCopy_withCopyAttributes()
1586 assertThat(attributes.creationTime()).isEqualTo(FileTime.fromMillis(10000)); in testCopy_withCopyAttributes()
1594 assertThat(attributes.lastModifiedTime()).isNotEqualTo(FileTime.fromMillis(100)); in testCopy_withCopyAttributes()
1595 assertThat(attributes.lastAccessTime()).isNotEqualTo(FileTime.fromMillis(1000)); in testCopy_withCopyAttributes()
1596 assertThat(attributes.creationTime()).isNotEqualTo(FileTime.fromMillis(10000)); in testCopy_withCopyAttributes()
[all …]
DUnixAttributeProviderTest.java24 import java.nio.file.attribute.FileTime;
70 assertThat(provider.get(file, "ctime")).isEqualTo(FileTime.fromMillis(file.getCreationTime())); in testInitialAttributes()
DUrlTest.java33 import java.nio.file.attribute.FileTime;
79 FileTime lastModified = Files.getLastModifiedTime(path); in headers()
DJimfsFileSystemCloseTest.java52 import java.nio.file.attribute.FileTime;
397 Files.setAttribute(file, "lastModifiedTime", FileTime.fromMillis(0)); in testFilesMethodsThrow()
/external/turbine/javatests/com/google/turbine/zip/
DZipTest.java33 import java.nio.file.attribute.FileTime;
136 Files.setLastModifiedTime(entry, FileTime.fromMillis(0)); in attributes()
/external/llvm-project/llvm/include/llvm/DebugInfo/PDB/Native/
DRawTypes.h324 uint64_t FileTime; // Time stamp (Windows FILETIME format). member
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/PDB/Native/
DRawTypes.h324 uint64_t FileTime; // Time stamp (Windows FILETIME format). member
/external/guava/guava/src/com/google/common/io/
DMoreFiles.java51 import java.nio.file.attribute.FileTime;
399 Files.setLastModifiedTime(path, FileTime.fromMillis(System.currentTimeMillis()));
/external/guava/guava-tests/test/com/google/common/io/
DMoreFilesTest.java40 import java.nio.file.attribute.FileTime;
256 Files.setLastModifiedTime(temp, FileTime.fromMillis(0)); in testTouchTime()
/external/python/pyfakefs/pyfakefs/tests/
Dfake_stat_time_test.py20 FileTime = namedtuple('FileTime', 'st_ctime, st_atime, st_mtime') variable
40 return FileTime(st_ctime=stat.st_ctime,
/external/lzma/CPP/7zip/UI/Common/
DOpenArchive.cpp123 FILETIME FileTime; member
354 case kpidMTime: if (item.FileTime_Defined) prop = item.FileTime; break; in GetProperty()
1359 pi.FileTime = prop.filetime; in ReadParseItemProps()
1370 pi.FileTime = prop.filetime; in ReadParseItemProps()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/Windows/
DPath.inc1156 FILETIME FileTime;
1159 if (SystemTimeToFileTime(&SystemTime, &FileTime) == 0 ||
1160 SetFileTime(Result, NULL, &FileTime, NULL) == 0) {
/external/llvm-project/llvm/lib/Support/Windows/
DPath.inc1176 FILETIME FileTime;
1179 if (SystemTimeToFileTime(&SystemTime, &FileTime) == 0 ||
1180 SetFileTime(Result, NULL, &FileTime, NULL) == 0) {