Home
last modified time | relevance | path

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

/aosp14/frameworks/base/core/tests/coretests/src/android/net/sntp/
H A 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 …]
/aosp14/frameworks/base/core/java/android/net/sntp/
H A 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()
/aosp14/frameworks/base/libs/dream/lowlight/src/com/android/dream/lowlight/
H A DLowLightDreamManager.kt34 import kotlin.time.toDuration
68 lowLightTransitionTimeoutMs.toDuration(DurationUnit.MILLISECONDS)
/aosp14/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/
H A DLowLightTransitionCoordinatorTest.kt42 import kotlin.time.toDuration
162 private val TIMEOUT = 1.toDuration(DurationUnit.SECONDS)
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DServiceRecord.java410 ProtoUtils.toDuration(proto, in dumpDebug()
606 ProtoUtils.toDuration(proto, ServiceRecordProto.CREATE_REAL_TIME, createRealTime, nowReal); in dumpDebug()
607 ProtoUtils.toDuration(proto, in dumpDebug()
609 ProtoUtils.toDuration(proto, ServiceRecordProto.LAST_ACTIVITY_TIME, lastActivity, now); in dumpDebug()
610 ProtoUtils.toDuration(proto, ServiceRecordProto.RESTART_TIME, restartTime, now); in dumpDebug()
629 ProtoUtils.toDuration(proto, in dumpDebug()
634 ProtoUtils.toDuration(proto, ServiceRecordProto.DESTORY_TIME, destroyTime, now); in dumpDebug()
640 ProtoUtils.toDuration(proto, ServiceRecordProto.Crash.RESTART_DELAY, in dumpDebug()
642 ProtoUtils.toDuration(proto, in dumpDebug()
H A DAppTimeTracker.java136 ProtoUtils.toDuration(proto, AppTimeTrackerProto.STARTED_TIME, in dumpDebug()
H A DUidRecord.java418 ProtoUtils.toDuration(proto, UidRecordProto.LAST_BACKGROUND_TIME, in dumpDebug()
H A DActivityManagerService.java10991 …ProtoUtils.toDuration(proto, ActivityManagerServiceDumpProcessesProto.LAST_IDLE_TIME, mLastIdleTim… in writeOtherProcessesInfoToProtoLSP()
/aosp14/frameworks/base/core/java/android/util/proto/
H A DProtoUtils.java57 public static void toDuration(ProtoOutputStream proto, long fieldId, long startMs, long endMs) { in toDuration() method in ProtoUtils
/aosp14/frameworks/base/core/java/android/net/
H A DSntpClient.java192 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration().toMillis(); in requestTime()
/aosp14/frameworks/base/core/tests/coretests/src/android/net/
H A DSntpClientTest.java506 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration(); in calculateIdealServerTime()
/aosp14/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt58238 Landroid/util/proto/ProtoUtils;->toDuration(Landroid/util/proto/ProtoOutputStream;JJJ)V