Home
last modified time | relevance | path

Searched refs:toDuration (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/coretests/src/android/net/sntp/
DDuration64Test.java53 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/
DDuration64.java73 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/
DLowLightDreamManager.kt34 import kotlin.time.toDuration
68 lowLightTransitionTimeoutMs.toDuration(DurationUnit.MILLISECONDS)
/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/
DLowLightTransitionCoordinatorTest.kt42 import kotlin.time.toDuration
162 private val TIMEOUT = 1.toDuration(DurationUnit.SECONDS)
/frameworks/base/services/core/java/com/android/server/am/
DServiceRecord.java553 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()
DAppTimeTracker.java136 ProtoUtils.toDuration(proto, AppTimeTrackerProto.STARTED_TIME, in dumpDebug()
DUidRecord.java457 ProtoUtils.toDuration(proto, UidRecordProto.LAST_BACKGROUND_TIME, in dumpDebug()
/frameworks/base/core/java/android/util/proto/
DProtoUtils.java58 public static void toDuration(ProtoOutputStream proto, long fieldId, long startMs, long endMs) { in toDuration() method in ProtoUtils
/frameworks/base/core/java/android/net/
DSntpClient.java192 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration().toMillis(); in requestTime()
/frameworks/base/core/tests/coretests/src/android/net/
DSntpClientTest.java506 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration(); in calculateIdealServerTime()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt57595 Landroid/util/proto/ProtoUtils;->toDuration(Landroid/util/proto/ProtoOutputStream;JJJ)V