Home
last modified time | relevance | path

Searched refs:tv_usec (Results 1 – 8 of 8) sorted by relevance

/libcore/luni/src/main/java/android/system/
DStructTimeval.java30 public final long tv_usec; field in StructTimeval
32 private StructTimeval(long tv_sec, long tv_usec) { in StructTimeval() argument
34 this.tv_usec = tv_usec; in StructTimeval()
35 if (tv_usec < 0 || tv_usec > 999_999) { in StructTimeval()
37 "tv_usec value " + tv_usec + " is not in [0, 999999]"); in StructTimeval()
46 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis() local
49 tv_usec += 1_000_000; in fromMillis()
51 return new StructTimeval(tv_sec, tv_usec); in fromMillis()
55 return (tv_sec * 1000) + (tv_usec / 1000); in toMillis()
73 tv_usec == that.tv_usec; in equals()
[all …]
/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.c436 tv[0].tv_usec = 0; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
440 tv[1].tv_usec = (time % 1000) * 1000; in Java_java_io_UnixFileSystem_setLastModifiedTime0()
DUnixNativeDispatcher.c625 times[0].tv_usec = accessTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
628 times[1].tv_usec = modificationTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_utimes0()
644 times[0].tv_usec = accessTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
647 times[1].tv_usec = modificationTime % 1000000; in Java_sun_nio_fs_UnixNativeDispatcher_futimes()
Dnet_util_md.c1382 t.tv_usec = (timeout % 1000) * 1000;
/libcore/luni/src/test/java/libcore/android/system/
DStructTimevalTest.java74 assertEquals(expectedMicros, val.tv_usec); in fromToMillis()
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp544 static_cast<jlong>(tv.tv_sec), static_cast<jlong>(tv.tv_usec)); in makeStructTimeval()
2364 value.tv_usec = env->GetLongField(javaTimeval, tvUsecFid); in Linux_setsockoptTimeval()