Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DStateControllerTest.java118 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
120 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC); in setUp()
122 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DJobStatusTest.java100 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
102 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC); in setUp()
104 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DConnectivityControllerTest.java115 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
117 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC); in setUp()
119 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DTimeControllerTest.java106 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
108 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC); in setUp()
110 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DQuotaControllerTest.java171 getAdvancedClock(Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC), in setUp()
174 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC), in setUp()
177 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC), in setUp()
/frameworks/base/core/tests/coretests/src/android/util/
DRecurrenceRuleTest.java47 private void setClock(Instant instant) { in setClock() argument
48 RecurrenceRule.sClock = Clock.fixed(instant, ZoneId.systemDefault()); in setClock()
/frameworks/base/core/java/android/os/
DSimpleClock.java50 public Instant instant() {
/frameworks/base/core/java/android/widget/
DDateTimeView.java532 Instant instant = Instant.ofEpochMilli(timeMillis); in toLocalDateTime() local
533 return LocalDateTime.ofInstant(instant, zoneId); in toLocalDateTime()
537 Instant instant = time.toInstant(zoneId.getRules().getOffset(time)); in toEpochMillis() local
538 return instant.toEpochMilli(); in toEpochMillis()
DAnalogClock.java284 Instant instant = Instant.ofEpochMilli(timeMillis); in toLocalDateTime() local
285 return LocalDateTime.ofInstant(instant, zoneId); in toLocalDateTime()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DMissedIncomingCallSmsFilter.java143 Instant instant = time.atZone(ZoneId.systemDefault()).toInstant(); in getEpochTime() local
144 return instant.toEpochMilli(); in getEpochTime()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/
DJobStoreTest.java86 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
88 Clock.fixed(SystemClock.uptimeClock().instant(), ZoneOffset.UTC); in setUp()
90 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
/frameworks/base/core/java/android/text/format/
DTimeFormatter.java106 Instant instant = Instant.ofEpochMilli(timeMillis); in formatMillisWithFixedFormat() local
109 LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, ZoneId.systemDefault()); in formatMillisWithFixedFormat()
/frameworks/base/core/proto/android/content/
Dpackage_item_info.proto80 // user's configuration. For example, when an instant app is installed for a
/frameworks/base/core/proto/android/media/
Daudioattributes.proto77 // Usage value to use when the usage is notification for an "instant"
/frameworks/base/core/java/android/hardware/camera2/legacy/
DSurfaceTextureRenderer.java650 Instant instant = Instant.ofEpochMilli(timeMillis); in formatTimestamp() local
652 LocalDateTime localDateTime = LocalDateTime.ofInstant(instant, zoneId); in formatTimestamp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java107 private void setClock(Instant instant) { in setClock() argument
108 RecurrenceRule.sClock = Clock.fixed(instant, ZoneId.systemDefault()); in setClock()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java146 JobSchedulerService.sSystemClock = Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
148 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java181 when(mClock.instant()).thenReturn(now.toInstant()); in testGetMultipathPreference()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java244 ZonedDateTime.ofInstant(mClock.instant(), ZoneId.systemDefault()); in getDailyNonDefaultDataUsage()
/frameworks/base/proto/src/
Dsystem_messages.proto58 // Notify the user that instant app is running.
/frameworks/base/core/proto/android/app/
Dtvsettings_enums.proto372 // real instant messages
376 // write instant messages
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DPackageTrackerTest.java1505 public Instant instant() { in instant() method in PackageTrackerTest.FakeClock
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/sms/
DBearerData.java318 Instant instant = localDateTime.toInstant(mZoneId.getRules().getOffset(localDateTime)); in toMillis() local
319 return instant.toEpochMilli(); in toMillis()
/frameworks/base/proto/src/metrics_constants/
Dmetrics_constants.proto4033 // ACTION: Phase 1 of instant application resolution occurred
4037 // ACTION: Phase 2 of instant application resolution occurred
4051 // FIELD - A token to identify all events that are part of the same instant application launch
4059 // FIELD - Whether or not the launched activity is part of an instant application
4209 // ACTION: Logs pressing the "Clear app" button in the app info settings page for an instant
/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
DJobSchedulerService.java185 public Instant instant() { in instant() method

12