Home
last modified time | relevance | path

Searched refs:timeMillis (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/ex/common/tests/src/com/android/common/
DOperationSchedulerTest.java32 public long timeMillis = DEFAULT_TIME; field in OperationSchedulerTest.TimeTravelScheduler
35 protected long currentTimeMillis() { return timeMillis; } in currentTimeMillis()
53 long beforeTrigger = scheduler.timeMillis; in testScheduler()
70 long beforeError = (scheduler.timeMillis += 100); in testScheduler()
80 beforeError = (scheduler.timeMillis += 100); in testScheduler()
101 long beforeSuccess = (scheduler.timeMillis += 100); in testScheduler()
134 long beforeError = (scheduler.timeMillis += 10); in testExponentialBackoff()
141 beforeError = (scheduler.timeMillis += 10); in testExponentialBackoff()
147 beforeError = (scheduler.timeMillis += 10); in testExponentialBackoff()
153 beforeError = (scheduler.timeMillis += 10); in testExponentialBackoff()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/shared/model/
DPackageChangeModel.kt40 @get:CurrentTimeMillisLong val timeMillis: Long constant
54 override val timeMillis: Long constant
67 @CurrentTimeMillisLong override val timeMillis: Long = 0, constant in com.android.systemui.common.shared.model.PackageChangeModel.Uninstalled
79 @CurrentTimeMillisLong override val timeMillis: Long = 0, constant in com.android.systemui.common.shared.model.PackageChangeModel.UpdateStarted
92 @CurrentTimeMillisLong override val timeMillis: Long = 0, constant in com.android.systemui.common.shared.model.PackageChangeModel.UpdateFinished
104 @CurrentTimeMillisLong override val timeMillis: Long = 0, constant in com.android.systemui.common.shared.model.PackageChangeModel.Installed
116 @CurrentTimeMillisLong override val timeMillis: Long = 0, constant in com.android.systemui.common.shared.model.PackageChangeModel.Changed
/frameworks/base/packages/SettingsLib/Spa/testutils/src/com/android/settingslib/spa/testutils/
DFlowTestUtil.kt24 suspend fun <T> Flow<T>.firstWithTimeoutOrNull(timeMillis: Long = 500): T? = in firstWithTimeoutOrNull()
25 withTimeoutOrNull(timeMillis) { in firstWithTimeoutOrNull()
29 suspend fun <T> Flow<T>.toListWithTimeout(timeMillis: Long = 500): List<T> { in toListWithTimeout()
31 return withTimeoutOrNull(timeMillis) { in toListWithTimeout()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardActiveUnlockModel.kt26 @CurrentTimeMillisLong override var timeMillis: Long = 0L, variable in com.android.keyguard.KeyguardActiveUnlockModel
42 DATE_FORMAT.format(timeMillis), in <lambda>()
43 timeMillis.toString(), in <lambda>()
69 timeMillis = model.timeMillis in insert()
DKeyguardFingerprintListenModel.kt26 @CurrentTimeMillisLong override var timeMillis: Long = 0L, variable in com.android.keyguard.KeyguardFingerprintListenModel
57 DATE_FORMAT.format(timeMillis), in <lambda>()
58 timeMillis.toString(), in <lambda>()
99 timeMillis = model.timeMillis in insert()
DKeyguardListenModel.kt25 abstract var timeMillis: Long variable in com.android.keyguard.KeyguardListenModel
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/gesture/
DConsecutiveTapsGestureDetectorTest.java109 private void tap(int timeMillis, float x, float y) { in tap() argument
111 MotionEvent.obtain(timeMillis, timeMillis, MotionEvent.ACTION_DOWN, x, y, 0)); in tap()
113 MotionEvent.obtain(timeMillis, timeMillis + 10, MotionEvent.ACTION_UP, x, y, 0)); in tap()
/frameworks/base/core/tests/coretests/src/android/text/format/
DTimeMigrationUtilsTest.java107 for (long timeMillis : timesMillis) { in formatMillisAsDateTime_matchesOldBehavior()
109 time.set(timeMillis); in formatMillisAsDateTime_matchesOldBehavior()
111 String newResult = TimeMigrationUtils.formatMillisWithFixedFormat(timeMillis); in formatMillisAsDateTime_matchesOldBehavior()
114 + ", timeMillis=" + timeMillis, in formatMillisAsDateTime_matchesOldBehavior()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/data/repository/
DPackageUpdateMonitor.kt97 timeMillis = systemClock.currentTimeMillis() in <lambda>()
108 timeMillis = systemClock.currentTimeMillis() in <lambda>()
123 timeMillis = systemClock.currentTimeMillis() in <lambda>()
135 timeMillis = systemClock.currentTimeMillis() in <lambda>()
146 timeMillis = systemClock.currentTimeMillis() in <lambda>()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/common/data/repository/
DFakePackageChangeRepository.kt60 timeMillis = systemClock.currentTimeMillis(), in notifyInstall()
74 timeMillis = systemClock.currentTimeMillis(), in notifyUpdateStarted()
88 timeMillis = systemClock.currentTimeMillis(), in notifyUpdateFinished()
102 timeMillis = systemClock.currentTimeMillis(), in notifyUninstall()
/frameworks/base/core/java/android/text/format/
DTimeMigrationUtils.java35 public static String formatMillisWithFixedFormat(long timeMillis) { in formatMillisWithFixedFormat() argument
38 return new TimeFormatter().formatMillisWithFixedFormat(timeMillis); in formatMillisWithFixedFormat()
/frameworks/base/core/java/android/view/displayhash/
DVerifiedDisplayHash.java111 @CurrentTimeMillisLong long timeMillis, in VerifiedDisplayHash()
115 this.mTimeMillis = timeMillis; in VerifiedDisplayHash()
201 long timeMillis = in.readLong(); in VerifiedDisplayHash() local
206 this.mTimeMillis = timeMillis; in VerifiedDisplayHash()
DDisplayHash.java78 public DisplayHash(@CurrentTimeMillisLong long timeMillis, @NonNull Rect boundsInWindow, in DisplayHash() argument
80 mTimeMillis = timeMillis; in DisplayHash()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/
DPackageUpdateMonitorTest.kt111 timeMillis = 100, in packageAdded()
132 timeMillis = 200, in packageRemoved()
153 timeMillis = 100, in packageChanged()
174 timeMillis = 100, in packageUpdateStarted()
195 timeMillis = 100, in packageUpdateFinished()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZonePickerDialog.java60 long timeMillis = 0; in onCreateView() local
64 timeMillis = b.getLong(BUNDLE_START_TIME_MILLIS); in onCreateView()
72 mView = new TimeZonePickerView(getActivity(), null, timeZone, timeMillis, this, in onCreateView()
DTimeZonePickerUtils.java82 private CharSequence buildGmtDisplayName(TimeZone tz, long timeMillis, boolean grayGmt) { in buildGmtDisplayName() argument
84 time.set(timeMillis); in buildGmtDisplayName()
92 final int gmtOffset = tz.getOffset(timeMillis); in buildGmtDisplayName()
DTimeZoneData.java66 public TimeZoneData(Context context, String defaultTimeZoneId, long timeMillis) { in TimeZoneData() argument
72 if (timeMillis == 0) { in TimeZoneData()
75 mTimeMillis = timeMillis; in TimeZoneData()
90 public void setTime(long timeMillis) { in setTime() argument
91 mTimeMillis = timeMillis; in setTime()
DTimeZonePickerView.java56 String timeZone, long timeMillis, OnTimeZoneSetListener l, in TimeZonePickerView() argument
66 TimeZoneData tzd = new TimeZoneData(mContext, timeZone, timeMillis); in TimeZonePickerView()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DTimeZoneLookupHelperTest.java367 long timeMillis = createUnixEpochTime(2015, 6, 20, 1, 2, 3); in testDefaultBoostBehavior() local
378 mTimeZoneLookupHelper.lookupByCountry(countryIsoCode, timeMillis)); in testDefaultBoostBehavior()
383 majorityWinterOffset, 0, timeMillis, null /* emulatorTimeZone */); in testDefaultBoostBehavior()
394 chathamWinterOffset, 0, timeMillis, null /* emulatorTimeZone */); in testDefaultBoostBehavior()
403 nonsenseOffset, 0, timeMillis, null /* emulatorTimeZone */); in testDefaultBoostBehavior()
411 long timeMillis = createUnixEpochTime(2015, 6, 20, 1, 2, 3); in testNoDefaultBoostBehavior() local
420 mTimeZoneLookupHelper.lookupByCountry(countryIsoCode, timeMillis)); in testNoDefaultBoostBehavior()
425 chuukWinterOffset, 0, timeMillis, null /* emulatorTimeZone */); in testNoDefaultBoostBehavior()
434 nonsenseOffset, 0, timeMillis, null /* emulatorTimeZone */); in testNoDefaultBoostBehavior()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneLookupHelper.java169 long timeMillis = nitzData.getCurrentTimeInMillis(); in lookupByNitz() local
178 OffsetResult match = lookupByInstantOffsetDst(timeMillis, utcOffsetMillis, isDst); in lookupByNitz()
185 match = lookupByInstantOffsetDst(timeMillis, utcOffsetMillis, null /* isDst */); in lookupByNitz()
259 private static OffsetResult lookupByInstantOffsetDst(long timeMillis, int utcOffsetMillis, in lookupByInstantOffsetDst() argument
271 if (offsetMatchesAtTime(tz, utcOffsetMillis, isDst, timeMillis)) { in lookupByInstantOffsetDst()
/frameworks/base/services/core/java/com/android/server/twilight/
DTwilightService.java279 private static TwilightState calculateTwilightState(Location location, long timeMillis) { in calculateTwilightState() argument
288 noon.setTimeInMillis(timeMillis); in calculateTwilightState()
298 if (sunsetTimeMillis < timeMillis) { in calculateTwilightState()
302 } else if (sunriseTimeMillis > timeMillis) { in calculateTwilightState()
/frameworks/base/core/java/android/app/
DIActivityController.aidl48 long timeMillis, String stackTrace); in appCrashed() argument
/frameworks/base/core/java/android/metrics/
DMetricsReader.java162 public Event(long timeMillis, int pid, int uid, Object data) { in Event() argument
163 mTimeMillis = timeMillis; in Event()
/frameworks/base/core/java/android/widget/
DDateTimeView.java139 public void setTime(long timeMillis) { in setTime() argument
140 mTimeMillis = timeMillis; in setTime()
141 LocalDateTime dateTime = toLocalDateTime(timeMillis, ZoneId.systemDefault()); in setTime()
537 private static LocalDateTime toLocalDateTime(long timeMillis, ZoneId zoneId) { in toLocalDateTime() argument
541 Instant instant = Instant.ofEpochMilli(timeMillis); in toLocalDateTime()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DKernelWakelockReaderTest.java56 public ProcFileBuilder addLine(String name, int count, long timeMillis) { in addLine() argument
57 return addLine(name, count, timeMillis, 0); in addLine()
60 public ProcFileBuilder addLine(String name, int count, long timeMillis, long activeTimeMs) { in addLine() argument
64 .append(timeMillis).append("\t0\t0\t0\n"); in addLine()

123