Searched refs:tv_sec (Results 1 – 12 of 12) sorted by relevance
/libcore/luni/src/main/java/android/system/ |
D | StructTimeval.java | 27 public final long tv_sec; field in StructTimeval 32 private StructTimeval(long tv_sec, long tv_usec) { in StructTimeval() argument 33 this.tv_sec = tv_sec; in StructTimeval() 45 long tv_sec = millis / 1000; in fromMillis() local 46 if (tv_sec * 1000 > millis) { in fromMillis() 47 --tv_sec; in fromMillis() 49 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis() 50 return new StructTimeval(tv_sec, tv_usec); in fromMillis() 54 return (tv_sec * 1000) + (tv_usec / 1000); in toMillis() 71 return tv_sec == that.tv_sec && in equals() [all …]
|
D | StructTimespec.java | 26 public final long tv_sec; /*time_t*/ field in StructTimespec 31 public StructTimespec(long tv_sec, long tv_nsec) { in StructTimespec() argument 32 this.tv_sec = tv_sec; in StructTimespec() 42 if (tv_sec > other.tv_sec) { in compareTo() 45 if (tv_sec < other.tv_sec) { in compareTo() 64 if (tv_sec != that.tv_sec) return false; in equals() 70 int result = (int) (tv_sec ^ (tv_sec >>> 32)); in hashCode()
|
D | StructStat.java | 108 this.st_atime = st_atim.tv_sec; in StructStat() 109 this.st_mtime = st_mtim.tv_sec; in StructStat() 110 this.st_ctime = st_ctim.tv_sec; in StructStat()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | StructTimespecTest.java | 29 assertEquals(Long.MIN_VALUE, val.tv_sec); in testConstructor() 33 assertEquals(-23, val.tv_sec); in testConstructor() 37 assertEquals(0, val.tv_sec); in testConstructor() 41 assertEquals(23, val.tv_sec); in testConstructor() 45 assertEquals(Long.MAX_VALUE, val.tv_sec); in testConstructor()
|
D | StructTimevalTest.java | 75 assertEquals(expectedSeconds, val.tv_sec); in fromToMillis()
|
D | OsTest.java | 1722 assertEquals(structStat1.st_mtim.tv_sec, structStat1.st_mtime); 1723 assertEquals(structStat1.st_ctim.tv_sec, structStat1.st_ctime); 1724 assertEquals(structStat1.st_atim.tv_sec, structStat1.st_atime);
|
/libcore/ojluni/src/main/native/ |
D | PollArrayWrapper.c | 50 start = t.tv_sec * 1000 + t.tv_usec / 1000; in ipoll() 57 now = t.tv_sec * 1000 + t.tv_usec / 1000; in ipoll()
|
D | linux_close.cpp | 210 prevtime = t.tv_sec * 1000 + t.tv_usec / 1000; in NET_Timeout() 241 newtime = t.tv_sec * 1000 + t.tv_usec / 1000; in NET_Timeout()
|
D | UnixFileSystem_md.c | 435 tv[0].tv_sec = sb.st_atime; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 439 tv[1].tv_sec = time / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
|
D | UnixNativeDispatcher.c | 624 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0() 627 times[1].tv_sec = modificationTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0() 643 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes() 646 times[1].tv_sec = modificationTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
|
D | System.c | 257 return now.tv_sec * 1000000000LL + now.tv_nsec; in System_nanoTime()
|
D | net_util_md.c | 1381 t.tv_sec = timeout / 1000;
|