/aosp14/frameworks/base/core/tests/coretests/src/android/net/sntp/ |
H A 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 …]
|
/aosp14/frameworks/base/core/java/android/net/sntp/ |
H A 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()
|
/aosp14/frameworks/base/libs/dream/lowlight/src/com/android/dream/lowlight/ |
H A D | LowLightDreamManager.kt | 34 import kotlin.time.toDuration 68 lowLightTransitionTimeoutMs.toDuration(DurationUnit.MILLISECONDS)
|
/aosp14/frameworks/base/libs/dream/lowlight/tests/src/com.android.dream.lowlight/ |
H A D | LowLightTransitionCoordinatorTest.kt | 42 import kotlin.time.toDuration 162 private val TIMEOUT = 1.toDuration(DurationUnit.SECONDS)
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ServiceRecord.java | 410 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 D | AppTimeTracker.java | 136 ProtoUtils.toDuration(proto, AppTimeTrackerProto.STARTED_TIME, in dumpDebug()
|
H A D | UidRecord.java | 418 ProtoUtils.toDuration(proto, UidRecordProto.LAST_BACKGROUND_TIME, in dumpDebug()
|
H A D | ActivityManagerService.java | 10991 …ProtoUtils.toDuration(proto, ActivityManagerServiceDumpProcessesProto.LAST_IDLE_TIME, mLastIdleTim… in writeOtherProcessesInfoToProtoLSP()
|
/aosp14/frameworks/base/core/java/android/util/proto/ |
H A D | ProtoUtils.java | 57 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 D | SntpClient.java | 192 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration().toMillis(); in requestTime()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | SntpClientTest.java | 506 Duration64.between(receiveTimestamp, transmitTimestamp).toDuration(); in calculateIdealServerTime()
|
/aosp14/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 58238 Landroid/util/proto/ProtoUtils;->toDuration(Landroid/util/proto/ProtoOutputStream;JJJ)V
|