Home
last modified time | relevance | path

Searched refs:fromMillis (Results 1 – 11 of 11) sorted by relevance

/libcore/luni/src/test/java/libcore/android/system/
DStructTimevalTest.java71 StructTimeval val = StructTimeval.fromMillis(millisValue); in fromToMillis()
86 StructTimeval value1 = StructTimeval.fromMillis(millisValue); in testEqualsAndHashcode()
87 StructTimeval value2 = StructTimeval.fromMillis(millisValue); in testEqualsAndHashcode()
DOsTest.java683 StructTimeval tv = StructTimeval.fromMillis(20); in checkSendToSocketAddress()
816 StructTimeval tv = StructTimeval.fromMillis(4000); in test_recvfrom_concurrentShutdown()
1090 StructTimeval newValue = StructTimeval.fromMillis(3000); in test_socket_sockoptTimeval_readWrite()
1111 StructTimeval tv = StructTimeval.fromMillis(timeoutValueMillis); in test_socket_setSockoptTimeval_effective()
1127 StructTimeval tv = StructTimeval.fromMillis(500);
1138 StructTimeval tv = StructTimeval.fromMillis(500); in test_socket_setSockoptTimeval_fileFd()
1146 StructTimeval tv = StructTimeval.fromMillis(500); in test_socket_setSockoptTimeval_badFd()
1156 StructTimeval tv = StructTimeval.fromMillis(500); in test_socket_setSockoptTimeval_invalidLevel()
1169 StructTimeval tv = StructTimeval.fromMillis(500); in test_socket_setSockoptTimeval_invalidOpt()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DZipEntryTest.java403 zentry.setLastModifiedTime(FileTime.fromMillis(0)); in test_setLastModifiedTime()
408 zentry.setLastModifiedTime(FileTime.fromMillis(someTimestampValue)); in test_setLastModifiedTime()
417 zentry.setCreationTime(FileTime.fromMillis(0)); in test_setCreationTime()
421 zentry.setCreationTime(FileTime.fromMillis(someTimestampValue)); in test_setCreationTime()
429 zentry.setLastAccessTime(FileTime.fromMillis(0)); in test_setLastAccessTime()
433 zentry.setLastAccessTime(FileTime.fromMillis(someTimestampValue)); in test_setLastAccessTime()
DZipOutputStreamTest.java308 zipEntry.setLastModifiedTime(FileTime.fromMillis(someTimestamp)); in test_timeSerializationRounding()
367 zipEntry.setLastModifiedTime(FileTime.fromMillis(1000)); in test_exttSupport()
375 zipEntry.setCreationTime(FileTime.fromMillis(1000)); in test_exttSupport()
383 zipEntry.setLastAccessTime(FileTime.fromMillis(3000)); in test_exttSupport()
/libcore/luni/src/main/java/android/system/
DStructTimeval.java41 public static @NonNull StructTimeval fromMillis(long millis) { in fromMillis() method in StructTimeval
/libcore/luni/src/test/java/libcore/java/nio/file/
DDefaultFileSystemProvider2Test.java123 FileTime fileTime = FileTime.fromMillis(System.currentTimeMillis() - 10000); in test_move_CopyOption()
339 FileTime fileTime = FileTime.fromMillis(System.currentTimeMillis() - 10000); in test_readAttributes()
373 FileTime fileTime = FileTime.fromMillis(System.currentTimeMillis()); in test_setAttribute()
529 FileTime fileTime = FileTime.fromMillis(System.currentTimeMillis()); in test_newFileChannel_withFileAttributes()
DFiles2Test.java390 FileTime.fromMillis(timeInMillisToBeSet)); in test_setLastModifiedTime()
397 FileTime.fromMillis(timeInMillisToBeSet)); in test_setLastModifiedTime()
405 Files.setLastModifiedTime(null, FileTime.fromMillis(System.currentTimeMillis())); in test_setLastModifiedTime_NPE()
DDefaultFileSystemProviderTest.java673 FileTime fileTime = FileTime.fromMillis(System.currentTimeMillis() - 10000); in test_copy_CopyOption()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java109 public static FileTime fromMillis(long value) { in fromMillis() method in FileTime
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java223 FileTime time = FileTime.fromMillis(now); in main()
/libcore/luni/src/main/java/libcore/io/
DIoBridge.java449 StructTimeval tv = StructTimeval.fromMillis(millis); in setSocketOptionErrno()