Home
last modified time | relevance | path

Searched refs:tv_sec (Results 1 – 12 of 12) sorted by relevance

/libcore/luni/src/main/java/android/system/
DStructTimeval.java27 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 …]
DStructTimespec.java26 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()
DStructStat.java108 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/
DStructTimespecTest.java29 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()
DStructTimevalTest.java75 assertEquals(expectedSeconds, val.tv_sec); in fromToMillis()
DOsTest.java1722 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/
DPollArrayWrapper.c50 start = t.tv_sec * 1000 + t.tv_usec / 1000; in ipoll()
57 now = t.tv_sec * 1000 + t.tv_usec / 1000; in ipoll()
Dlinux_close.cpp210 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()
DUnixFileSystem_md.c435 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()
DUnixNativeDispatcher.c624 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()
DSystem.c257 return now.tv_sec * 1000000000LL + now.tv_nsec; in System_nanoTime()
Dnet_util_md.c1381 t.tv_sec = timeout / 1000;