Searched refs:tv_nsec (Results 1 – 5 of 5) sorted by relevance
/libcore/luni/src/main/java/android/system/ |
D | StructTimespec.java | 29 public final long tv_nsec; field in StructTimespec 31 public StructTimespec(long tv_sec, long tv_nsec) { in StructTimespec() argument 33 this.tv_nsec = tv_nsec; in StructTimespec() 34 if (tv_nsec < 0 || tv_nsec > 999_999_999) { in StructTimespec() 36 "tv_nsec value " + tv_nsec + " is not in [0, 999999999]"); in StructTimespec() 48 if (tv_nsec > other.tv_nsec) { in compareTo() 51 if (tv_nsec < other.tv_nsec) { in compareTo() 65 return tv_nsec == that.tv_nsec; in equals() 71 result = 31 * result + (int) (tv_nsec ^ (tv_nsec >>> 32)); in hashCode()
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | StructTimespecTest.java | 30 assertEquals(0, val.tv_nsec); in testConstructor() 34 assertEquals(23, val.tv_nsec); in testConstructor() 38 assertEquals(42, val.tv_nsec); in testConstructor() 42 assertEquals(91, val.tv_nsec); in testConstructor() 46 assertEquals(999_999_999, val.tv_nsec); in testConstructor()
|
/libcore/ojluni/src/main/native/ |
D | System.c | 257 return now.tv_sec * 1000000000LL + now.tv_nsec; in System_nanoTime()
|
D | UnixNativeDispatcher.c | 481 (*env)->SetLongField(env, attrs, attrs_st_atime_nsec, (jlong)buf->st_atim.tv_nsec); in prepAttributes() 482 (*env)->SetLongField(env, attrs, attrs_st_mtime_nsec, (jlong)buf->st_mtim.tv_nsec); in prepAttributes() 483 (*env)->SetLongField(env, attrs, attrs_st_ctime_nsec, (jlong)buf->st_ctim.tv_nsec); in prepAttributes()
|
/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() 2003 diff.tv_nsec = now.tv_nsec - before.tv_nsec; in Linux_poll() 2004 if (diff.tv_nsec < 0) { in Linux_poll() 2006 diff.tv_nsec += 1000000000; in Linux_poll() 2009 jint diffMs = diff.tv_sec * 1000 + diff.tv_nsec / 1000000; in Linux_poll()
|