Searched refs:tv_sec (Results 1 – 13 of 13) sorted by relevance
/libcore/luni/src/main/java/android/system/ |
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 | 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 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis() 48 tv_sec -= 1; in fromMillis() 51 return new StructTimeval(tv_sec, tv_usec); in fromMillis() 55 return (tv_sec * 1000) + (tv_usec / 1000); in toMillis() 72 return tv_sec == that.tv_sec && in equals() 78 return java.util.Objects.hash(tv_sec, tv_usec); 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 | 73 assertEquals(expectedSeconds, val.tv_sec); in fromToMillis()
|
D | OsTest.java | 1274 assertEquals(structStat1.st_mtim.tv_sec, structStat1.st_mtime); in test_fstat_times() 1275 assertEquals(structStat1.st_ctim.tv_sec, structStat1.st_ctime); in test_fstat_times() 1276 assertEquals(structStat1.st_atim.tv_sec, structStat1.st_atime); in test_fstat_times()
|
/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;
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 477 static_cast<jlong>(ts.tv_sec), static_cast<jlong>(ts.tv_nsec)); in makeStructTimespec() 544 static_cast<jlong>(tv.tv_sec), static_cast<jlong>(tv.tv_usec)); in makeStructTimeval() 2002 diff.tv_sec = now.tv_sec - before.tv_sec; in Linux_poll() 2005 --diff.tv_sec; in Linux_poll() 2009 jint diffMs = diff.tv_sec * 1000 + diff.tv_nsec / 1000000; in Linux_poll() 2363 value.tv_sec = env->GetLongField(javaTimeval, tvSecFid); in Linux_setsockoptTimeval()
|