Home
last modified time | relevance | path

Searched refs:instant (Results 1 – 25 of 29) 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.uptimeMillisClock().instant(), ZoneOffset.UTC); in setUp()
122 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DJobStatusTest.java83 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
85 Clock.fixed(SystemClock.uptimeMillisClock().instant(), ZoneOffset.UTC); in setUp()
87 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DConnectivityControllerTest.java110 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
112 Clock.fixed(SystemClock.uptimeMillisClock().instant(), ZoneOffset.UTC); in setUp()
114 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DTimeControllerTest.java106 Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
108 Clock.fixed(SystemClock.uptimeMillisClock().instant(), ZoneOffset.UTC); in setUp()
110 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
DQuotaControllerTest.java170 getAdvancedClock(Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC), in setUp()
173 Clock.fixed(SystemClock.uptimeMillisClock().instant(), ZoneOffset.UTC), in setUp()
176 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.java139 Instant instant = time.atZone(ZoneId.systemDefault()).toInstant(); in getEpochTime() local
140 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.uptimeMillisClock().instant(), ZoneOffset.UTC); in setUp()
90 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
/frameworks/base/core/java/android/text/format/
DTimeFormatter.java111 Instant instant = Instant.ofEpochMilli(timeMillis); in formatMillisWithFixedFormat() local
114 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/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java132 JobSchedulerService.sSystemClock = Clock.fixed(Clock.systemUTC().instant(), ZoneOffset.UTC); in setUp()
134 Clock.fixed(SystemClock.elapsedRealtimeClock().instant(), ZoneOffset.UTC); in setUp()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java108 private void setClock(Instant instant) { in setClock() argument
109 RecurrenceRule.sClock = Clock.fixed(instant, ZoneId.systemDefault()); in setClock()
/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/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.java322 Instant instant = in toMillis() local
324 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/core/proto/android/app/
Dsettings_enums.proto308 // ACTION: Logs pressing the "Clear app" button in the app info settings page for an instant
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java2008 final Instant now = mClock.instant();
/frameworks/base/cmds/statsd/src/
Datoms.proto3200 // Whether the app is an instant app.

12