Home
last modified time | relevance | path

Searched refs:ntpEraSeconds (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/java/android/net/sntp/
DTimestamp64.java82 long ntpEraSeconds = instant.getEpochSecond() + OFFSET_1900_TO_1970; in fromInstant() local
83 if (ntpEraSeconds < 0) { in fromInstant()
84 ntpEraSeconds = SECONDS_IN_ERA - (-ntpEraSeconds % SECONDS_IN_ERA); in fromInstant()
86 ntpEraSeconds %= SECONDS_IN_ERA; in fromInstant()
91 return new Timestamp64(ntpEraSeconds, fractionBits); in fromInstant()
/frameworks/base/core/tests/coretests/src/android/net/sntp/
DTimestamp64Test.java54 private static void assertComponentCreation(long ntpEraSeconds, int fractionBits) { in assertComponentCreation() argument
55 Timestamp64 value = Timestamp64.fromComponents(ntpEraSeconds, fractionBits); in assertComponentCreation()
56 assertEquals(ntpEraSeconds, value.getEraSeconds()); in assertComponentCreation()