Home
last modified time | relevance | path

Searched refs:instant (Results 1 – 25 of 69) sorted by relevance

123

/frameworks/base/tests/Internal/src/com/android/internal/util/
DParcellingTests.java63 private void testForInstant(Instant instant) { in testForInstant() argument
65 parcelling.parcel(instant, mParcel, 0); in testForInstant()
70 if (instant == null) { in testForInstant()
73 assertEquals(instant, created); in testForInstant()
/frameworks/base/core/tests/coretests/src/android/net/sntp/
DTimestamp64Test.java162 Instant instant = Instant.ofEpochSecond(epochSeconds, nanosOfSecond); in assertInstantCreationOnlySeconds() local
163 Timestamp64 timestamp = Timestamp64.fromInstant(instant); in assertInstantCreationOnlySeconds()
172 assertEquals(instant, roundTrip); in assertInstantCreationOnlySeconds()
192 Instant instant = Instant.ofEpochSecond(0, i); in testFromInstant_fractionHandling() local
193 Instant roundTripped = Timestamp64.fromInstant(instant).toInstant(0); in testFromInstant_fractionHandling()
207 Instant instant = timestamp64.toInstant(ntpEra); in assertInstantCreationOnlyFractionExact() local
209 assertEquals(expectedNanos, instant.getNano()); in assertInstantCreationOnlyFractionExact()
213 private static void assertNanosWithTruncationAllowed(long expectedNanos, Instant instant) { in assertNanosWithTruncationAllowed() argument
215 long actualNanos = instant.getNano(); in assertNanosWithTruncationAllowed()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DInputMonitorCompat.java46 Trace.instant(Trace.TRACE_TAG_INPUT, "InputMonitorCompat-" + mName + " created"); in InputMonitorCompat()
70 Trace.instant(Trace.TRACE_TAG_INPUT, "InputMonitorCompat-" + mName + " disposed"); in dispose()
79 Trace.instant(Trace.TRACE_TAG_INPUT, "InputMonitorCompat-" + mName + " receiver created"); in getInputReceiver()
DInputChannelCompat.java96 Trace.instant(TRACE_TAG_INPUT, "InputMonitorCompat-" + mName + " receiver disposed"); in dispose()
/frameworks/base/core/java/android/net/sntp/
DTimestamp64.java81 public static Timestamp64 fromInstant(Instant instant) { in fromInstant() argument
82 long ntpEraSeconds = instant.getEpochSecond() + OFFSET_1900_TO_1970; in fromInstant()
88 long nanos = instant.getNano(); in fromInstant()
/frameworks/libs/systemui/tracinglib/core/android/src-platform-api/
DTraceProxy.platform.kt56 internal actual fun instant(eventName: String) { in instant() method
57 Trace.instant(Trace.TRACE_TAG_APP, eventName) in instant()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java117 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
119 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC); in setUp()
121 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
/frameworks/base/services/core/java/com/android/server/media/projection/
DMediaProjectionTimestampStore.java84 Instant now = mInstantSource.instant(); in timeSinceLastActiveSession()
92 Instant now = mInstantSource.instant(); in registerActiveSessionEnded()
/frameworks/base/core/java/android/os/
DSimpleClock.java50 public Instant instant() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/
DNotificationChannels.java74 final NotificationChannel instant = new NotificationChannel( in createAll() local
100 instant, in createAll()
/frameworks/base/core/tests/coretests/src/android/util/
DRecurrenceRuleTest.java54 private void setClock(Instant instant) { in setClock() argument
55 RecurrenceRule.sClock = Clock.fixed(instant, ZoneId.systemDefault()); in setClock()
/frameworks/libs/systemui/tracinglib/core/common/src/
DTraceProxy.kt47 internal expect fun instant(eventName: String) method
/frameworks/av/media/module/id3/
DTEST_MAPPING10 // does run he 32 and 64 bit tests, but not the instant tests
/frameworks/base/telephony/java/android/telephony/ims/
DRcsContactPresenceTuple.java490 private String convertInstantToStringFormat(Instant instant) { in convertInstantToStringFormat() argument
491 if (instant == null) { in convertInstantToStringFormat()
494 return instant.toString(); in convertInstantToStringFormat()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/navigationbar/
DKeyButtonRipple.java317 Trace.instant(Trace.TRACE_TAG_APP, in endAnimations()
536 Trace.instant(Trace.TRACE_TAG_APP, "KeyButtonRipple.start." + mName); in onAnimationStart()
543 Trace.instant(Trace.TRACE_TAG_APP, "KeyButtonRipple.cancel." + mName); in onAnimationCancel()
550 Trace.instant(Trace.TRACE_TAG_APP, "KeyButtonRipple.end." + mName); in onAnimationEnd()
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
DUceRequestDispatcher.java59 public void setExecutingTime(Instant instant) { in setExecutingTime() argument
60 mExecutingTime = Optional.of(instant); in setExecutingTime()
/frameworks/base/core/java/com/android/internal/os/anr/
DAnrLatencyTracker.java313 Trace.instant(TRACE_TAG_ACTIVITY_MANAGER, "dumpStackTracesTempFileCreationFailed"); in dumpStackTracesTempFileCreationFailed()
319 Trace.instant(TRACE_TAG_ACTIVITY_MANAGER, "dumpStackTracesTempFileTimedOut"); in dumpStackTracesTempFileTimedOut()
601 Trace.instant(TRACE_TAG_ACTIVITY_MANAGER, "AnrSkipped@" + method); in anrSkipped()
/frameworks/base/core/java/android/widget/
DDateTimeView.java541 Instant instant = Instant.ofEpochMilli(timeMillis); in toLocalDateTime() local
542 return LocalDateTime.ofInstant(instant, zoneId); in toLocalDateTime()
546 Instant instant = time.toInstant(zoneId.getRules().getOffset(time)); in toEpochMillis() local
547 return instant.toEpochMilli(); in toEpochMillis()
/frameworks/base/core/tests/coretests/src/android/os/
DTraceTest.java86 Trace.instant(Trace.TRACE_TAG_ACTIVITY_MANAGER, TAG); in testInstant()
102 Trace.instant(Trace.TRACE_TAG_ACTIVITY_MANAGER, null); in testNullStrings()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/idle/
DDeviceIdlenessTrackerTest.java117 getAdvancedClock(Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC), in setUp()
120 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC), in setUp()
123 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC), in setUp()
/frameworks/libs/systemui/tracinglib/core/android/src-public-api/src/
DTraceProxy.jetpack.kt63 internal actual fun instant(eventName: String) { in instant() method
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMissedIncomingCallSmsFilter.java145 Instant instant = time.atZone(ZoneId.systemDefault()).toInstant(); in getEpochTime() local
146 return instant.toEpochMilli(); in getEpochTime()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DPanelTaskViewController.kt82 Trace.instant(Trace.TRACE_TAG_APP, "PanelTaskViewController - startActivity") in onInitialized()
/frameworks/libs/systemui/tracinglib/core/host/src-fake/
DTraceProxy.fake.kt119 internal actual fun instant(eventName: String) { in instant() method
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DGracePeriodObserverTest.java73 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()

123