Searched refs:toDuration (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/core/tests/coretests/src/android/net/sntp/ |
D | Duration64Test.java | 53 Duration64.between(zeroNoFrac, ceilNoFrac).toDuration()); in testBetween_rangeChecks() 55 Duration64.between(ceilNoFrac, zeroNoFrac).toDuration()); in testBetween_rangeChecks() 69 Duration64.between(zeroNoFrac, ceilWithFrac).toDuration()); in testBetween_rangeChecks() 74 Duration64.between(ceilWithFrac, zeroNoFrac).toDuration()); in testBetween_rangeChecks() 84 .toDuration()); in testBetween_smallSecondsOnly() 88 .toDuration()); in testBetween_smallSecondsOnly() 101 Timestamp64.fromComponents(10, fractionHalfSecond)).toDuration()); in testBetween_smallSecondsAndFraction() 105 Timestamp64.fromComponents(5, 0)).toDuration()); in testBetween_smallSecondsAndFraction() 116 Timestamp64.fromComponents(10, fractionHalfSecond)).toDuration()); in testBetween_smallSecondsAndFraction() 120 Timestamp64.fromComponents(5, fractionQuarterSecond)).toDuration()); in testBetween_smallSecondsAndFraction() [all …]
|
/frameworks/base/core/java/android/net/sntp/ |
D | Duration64.java | 73 return this.toDuration().plus(other.toDuration()); in plus() 98 public Duration toDuration() { in toDuration() method in Duration64 123 Duration duration = toDuration(); in toString()
|
/frameworks/base/libs/dream/lowlight/src/com/android/dream/lowlight/ |
D | LowLightDreamManager.kt | 34 import kotlin.time.toDuration 68 lowLightTransitionTimeoutMs.toDuration(DurationUnit.MILLISECONDS)
|
/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/ |
D | LowLightTransitionCoordinatorTest.kt | 42 import kotlin.time.toDuration 162 private val TIMEOUT = 1.toDuration(DurationUnit.SECONDS)
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ServiceRecord.java | 553 ProtoUtils.toDuration(proto, in dumpDebug() 830 ProtoUtils.toDuration(proto, ServiceRecordProto.CREATE_REAL_TIME, createRealTime, nowReal); in dumpDebug() 831 ProtoUtils.toDuration(proto, in dumpDebug() 833 ProtoUtils.toDuration(proto, ServiceRecordProto.LAST_ACTIVITY_TIME, lastActivity, now); in dumpDebug() 834 ProtoUtils.toDuration(proto, ServiceRecordProto.RESTART_TIME, restartTime, now); in dumpDebug() 855 ProtoUtils.toDuration(proto, in dumpDebug() 860 ProtoUtils.toDuration(proto, ServiceRecordProto.DESTORY_TIME, destroyTime, now); in dumpDebug() 866 ProtoUtils.toDuration(proto, ServiceRecordProto.Crash.RESTART_DELAY, in dumpDebug() 868 ProtoUtils.toDuration(proto, in dumpDebug()
|
D | AppTimeTracker.java | 136 ProtoUtils.toDuration(proto, AppTimeTrackerProto.STARTED_TIME, in dumpDebug()
|
D | UidRecord.java | 457 ProtoUtils.toDuration(proto, UidRecordProto.LAST_BACKGROUND_TIME, in dumpDebug()
|
/frameworks/base/core/java/android/util/proto/ |
D | ProtoUtils.java | 58 public static void toDuration(ProtoOutputStream proto, long fieldId, long startMs, long endMs) { in toDuration() method in ProtoUtils
|
/frameworks/base/core/java/android/net/ |
D | SntpClient.java | 192 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration().toMillis(); in requestTime()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | SntpClientTest.java | 506 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration(); in calculateIdealServerTime()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 57595 Landroid/util/proto/ProtoUtils;->toDuration(Landroid/util/proto/ProtoOutputStream;JJJ)V
|