Home
last modified time | relevance | path

Searched refs:getInstant (Results 1 – 7 of 7) sorted by relevance

/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/
DObexTimeTest.java83 assertThat(timestamp.getInstant()).isEqualTo(VALID_INSTANT_LOCAL_TZ); in createWithValidDateTimeString_TimestampCorrect()
90 assertThat(timestamp.getInstant()).isEqualTo(VALID_INSTANT_WITH_OFFSET_POS); in createWithValidDateTimeStringWithPosOffset_TimestampCorrect()
97 assertThat(timestamp.getInstant()).isEqualTo(VALID_INSTANT_WITH_OFFSET_NEG); in createWithValidDateTimeStringWithNegOffset_TimestampCorrect()
104 assertThat(timestamp.getInstant()).isEqualTo(VALID_INSTANT_LOCAL_TZ); in createWithValidDate_TimestampCorrect()
112 assertThat(timestamp.getInstant()).isEqualTo(VALID_INSTANT); in createWithValidInstant_TimestampCorrect()
DEventReportTest.java107 .isEqualTo(new ObexTime(dateTime).getInstant().toEpochMilli()); in fromStreamWithDateTime()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DTimeZoneInfoPreferenceController.java96 final boolean toDst = getDSTSavings(timeZone, nextDstTransition.getInstant()) != 0; in formatInfo()
107 transitionTime.setTimeInMillis(nextDstTransition.getInstant().toEpochMilli()); in formatInfo()
141 Instant to = transition.getInstant(); in findNextDstTransition()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utiltests/
DTimeExtensionsTest.kt20 import com.android.healthconnect.controller.utils.getInstant
51 assertThat(getInstant(2022, 10, 23).toEpochMilli()).isEqualTo(1666483200000) in getInstant_returnsCorrectInstant()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DObexTime.java123 public Instant getInstant() { in getInstant() method in ObexTime
DEventReport.java206 return obexTime.getInstant().toEpochMilli(); in getTimestamp()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DTimeExtensions.kt36 fun getInstant(year: Int, month: Int, day: Int): Instant { in getInstant() method