Searched refs:tv_sec (Results 1 – 14 of 14) 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 | 1773 assertEquals(structStat1.st_mtim.tv_sec, structStat1.st_mtime); 1774 assertEquals(structStat1.st_ctim.tv_sec, structStat1.st_ctime); 1775 assertEquals(structStat1.st_atim.tv_sec, structStat1.st_atime);
|
/libcore/ojluni/src/main/native/ |
D | UnixFileSystem_md.c | 260 rv = (jlong)sb.st_mtimespec.tv_sec * 1000; in Java_java_io_UnixFileSystem_getLastModifiedTime0() 263 rv = (jlong)sb.st_mtim.tv_sec * 1000; in Java_java_io_UnixFileSystem_getLastModifiedTime0() 453 tv[0].tv_sec = sb.st_atime; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 456 tv[0].tv_sec = sb.st_atimespec.tv_sec; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 459 tv[0].tv_sec = sb.st_atim.tv_sec; in Java_java_io_UnixFileSystem_setLastModifiedTime0() 463 tv[1].tv_sec = time / 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
|
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 | 211 prevtime = t.tv_sec * 1000 + t.tv_usec / 1000; in NET_Timeout() 242 newtime = t.tv_sec * 1000 + t.tv_usec / 1000; in NET_Timeout()
|
D | UnixNativeDispatcher.c | 638 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0() 641 times[1].tv_sec = modificationTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0() 657 times[0].tv_sec = accessTime / 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes() 660 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 | 1382 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() 2053 diff.tv_sec = now.tv_sec - before.tv_sec; in Linux_poll() 2056 --diff.tv_sec; in Linux_poll() 2060 jint diffMs = diff.tv_sec * 1000 + diff.tv_nsec / 1000000; in Linux_poll() 2535 value.tv_sec = env->GetLongField(javaTimeval, tvSecFid); in Linux_setsockoptTimeval()
|
/libcore/api/ |
D | current.txt | 737 field public final long tv_sec; 743 field public final long tv_sec;
|