Searched refs:fromComponents (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/sntp/ |
D | Duration64Test.java | 44 Timestamp64 zeroNoFrac = Timestamp64.fromComponents(0, 0); in testBetween_rangeChecks() 48 Timestamp64 ceilNoFrac = Timestamp64.fromComponents(maxDuration64Seconds, 0); in testBetween_rangeChecks() 63 .fromComponents(maxDuration64Seconds, fractionBits); in testBetween_rangeChecks() 82 Duration64.between(Timestamp64.fromComponents(5, 0), in testBetween_smallSecondsOnly() 83 Timestamp64.fromComponents(10, 0)) in testBetween_smallSecondsOnly() 86 Duration64.between(Timestamp64.fromComponents(10, 0), in testBetween_smallSecondsOnly() 87 Timestamp64.fromComponents(5, 0)) in testBetween_smallSecondsOnly() 100 Timestamp64.fromComponents(5, 0), in testBetween_smallSecondsAndFraction() 101 Timestamp64.fromComponents(10, fractionHalfSecond)).toDuration()); in testBetween_smallSecondsAndFraction() 104 Timestamp64.fromComponents(10, fractionHalfSecond), in testBetween_smallSecondsAndFraction() [all …]
|
D | Timestamp64Test.java | 45 expectIllegalArgumentException(() -> Timestamp64.fromComponents(minNtpEraSeconds - 1, 0)); in testFromComponents() 46 expectIllegalArgumentException(() -> Timestamp64.fromComponents(maxNtpEraSeconds + 1, 0)); in testFromComponents() 55 Timestamp64 value = Timestamp64.fromComponents(ntpEraSeconds, fractionBits); in assertComponentCreation() 68 Timestamp64 one = Timestamp64.fromComponents(eraSeconds, fractionBits); in assertEqualsAndHashcode() 69 Timestamp64 two = Timestamp64.fromComponents(eraSeconds, fractionBits); in assertEqualsAndHashcode() 204 Timestamp64 timestamp64 = Timestamp64.fromComponents(0, fractionBits); in assertInstantCreationOnlyFractionExact() 244 long smallLowNanos = Timestamp64.fromComponents( in testMillisRandomizationConstant() 246 long smallHighNanos = Timestamp64.fromComponents( in testMillisRandomizationConstant() 252 long largeLowNanos = Timestamp64.fromComponents( in testMillisRandomizationConstant() 254 long largeHighNanos = Timestamp64.fromComponents( in testMillisRandomizationConstant() [all …]
|
/frameworks/base/core/java/android/net/sntp/ |
D | Timestamp64.java | 41 public static final Timestamp64 ZERO = fromComponents(0, 0); 53 public static Timestamp64 fromComponents(long eraSeconds, int fractionBits) { in fromComponents() method in Timestamp64
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 347 return Timestamp64.fromComponents(seconds, fractionBits); in readTimeStamp()
|