Searched refs:SECONDS_IN_ERA (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/sntp/ |
D | Timestamp64Test.java | 121 -Timestamp64.OFFSET_1900_TO_1970 - Timestamp64.SECONDS_IN_ERA, 0, eraNeg1); in testFromInstant_secondsHandling() 123 -Timestamp64.OFFSET_1900_TO_1970 + Timestamp64.SECONDS_IN_ERA, 0, era1); in testFromInstant_secondsHandling() 128 -Timestamp64.OFFSET_1900_TO_1970 - Timestamp64.SECONDS_IN_ERA - 1, in testFromInstant_secondsHandling() 131 -Timestamp64.OFFSET_1900_TO_1970 + Timestamp64.SECONDS_IN_ERA - 1, in testFromInstant_secondsHandling() 136 -Timestamp64.OFFSET_1900_TO_1970 - Timestamp64.SECONDS_IN_ERA + 1, 1, eraNeg1); in testFromInstant_secondsHandling() 138 -Timestamp64.OFFSET_1900_TO_1970 + Timestamp64.SECONDS_IN_ERA + 1, 1, era1); in testFromInstant_secondsHandling() 142 -Timestamp64.SECONDS_IN_ERA, Timestamp64.OFFSET_1900_TO_1970, eraNeg1); in testFromInstant_secondsHandling() 144 Timestamp64.SECONDS_IN_ERA, Timestamp64.OFFSET_1900_TO_1970, era1); in testFromInstant_secondsHandling() 148 -Timestamp64.SECONDS_IN_ERA + 1, Timestamp64.OFFSET_1900_TO_1970 + 1, eraNeg1); in testFromInstant_secondsHandling() 150 Timestamp64.SECONDS_IN_ERA + 1, Timestamp64.OFFSET_1900_TO_1970 + 1, era1); in testFromInstant_secondsHandling() [all …]
|
/frameworks/base/core/java/android/net/sntp/ |
D | Timestamp64.java | 48 static final long SECONDS_IN_ERA = MAX_SECONDS_IN_ERA + 1; field in Timestamp64 84 ntpEraSeconds = SECONDS_IN_ERA - (-ntpEraSeconds % SECONDS_IN_ERA); in fromInstant() 86 ntpEraSeconds %= SECONDS_IN_ERA; in fromInstant() 124 secondsSinceEpoch += ntpEra * SECONDS_IN_ERA; in toInstant()
|