Searched refs:OFFSET_1900_TO_1970 (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/sntp/ |
D | Timestamp64Test.java | 119 assertInstantCreationOnlySeconds(-Timestamp64.OFFSET_1900_TO_1970, 0, era0); in testFromInstant_secondsHandling() 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() 126 -Timestamp64.OFFSET_1900_TO_1970 - 1, Timestamp64.MAX_SECONDS_IN_ERA, -1); 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() 134 assertInstantCreationOnlySeconds(-Timestamp64.OFFSET_1900_TO_1970 + 1, 1, era0); 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() 140 assertInstantCreationOnlySeconds(0, Timestamp64.OFFSET_1900_TO_1970, era0); in testFromInstant_secondsHandling() [all …]
|
/frameworks/base/core/java/android/net/sntp/ |
D | Timestamp64.java | 46 static final long OFFSET_1900_TO_1970 = ((365L * 70L) + 17L) * 24L * 60L * 60L; field in Timestamp64 82 long ntpEraSeconds = instant.getEpochSecond() + OFFSET_1900_TO_1970; in fromInstant() 123 long secondsSinceEpoch = mEraSeconds - OFFSET_1900_TO_1970; in toInstant()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 33527 Landroid/net/SntpClient;->OFFSET_1900_TO_1970:J
|