/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/animation/ |
D | AnimatorTestRule.kt | 40 Consumer<Long> { timeDelta -> androidxRule.advanceTimeBy(timeDelta) } in <lambda>() method 66 fun advanceTimeBy(timeDelta: Long) { in <lambda>() 70 platformRule.advanceTimeBy(timeDelta, advanceAndroidXTimeBy) in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/utils/src/android/animation/ |
D | AnimatorTestRule.java | 241 public void advanceTimeBy(long timeDelta) { 242 advanceTimeBy(timeDelta, null); 257 public void advanceTimeBy(long timeDelta, @Nullable Consumer<Long> preFrameAction) { 258 Preconditions.checkArgumentNonnegative(timeDelta, "timeDelta must not be negative"); 261 if (timeDelta == 0) { 270 mTotalTimeDelta += timeDelta; 274 preFrameAction.accept(timeDelta);
|
/frameworks/base/services/core/java/com/android/server/location/eventlog/ |
D | LocalEventLog.java | 66 private static int createEntry(boolean isFiller, int timeDelta) { in createEntry() argument 67 Preconditions.checkArgument(timeDelta >= 0 && timeDelta <= MAX_TIME_DELTA); in createEntry() 69 | ((timeDelta << TIME_DELTA_OFFSET) & TIME_DELTA_MASK); in createEntry() 154 private void addLogEventInternal(boolean isFiller, int timeDelta, @Nullable T logEvent) { in addLogEventInternal() argument 168 mEntries[mLogEndIndex] = createEntry(isFiller, timeDelta); in addLogEventInternal() 171 mLastLogTime = mLastLogTime + timeDelta; in addLogEventInternal()
|
/frameworks/base/core/java/android/view/ |
D | HdrRenderState.java | 77 long timeDelta = Math.max(Math.min(32, frameTimeMillis - mLastUpdateMillis), 8); in updateForFrame() local 78 final float maxStep = timeDelta * TRANSITION_PER_MS; in updateForFrame()
|
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/rotaryinput/ |
D | Rotary.kt | 937 val timeDelta = timestamp - previousScrollEventTime in isOppositeValueAfterScroll() constant 938 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isOppositeValueAfterScroll() 1005 val timeDelta = timestamp - previousScrollEventTime in isNewScrollEvent() constant 1006 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isNewScrollEvent() 1149 val timeDelta = timestamp - previousScrollEventTime in isOppositeValueAfterScroll() constant 1150 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isOppositeValueAfterScroll() 1227 val timeDelta = timestamp - previousScrollEventTime in isNewScrollEvent() constant 1228 return previousScrollEventTime == 0L || timeDelta > gestureThresholdTime in isNewScrollEvent()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | RampAnimator.java | 171 final float timeDelta = (frameTimeNanos - mLastFrameTimeNanos) * 0.000000001f; in performNextAnimationStep() local 183 final float amount = timeDelta * mRate / scale; in performNextAnimationStep()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | Swipe.java | 160 final long timeDelta = time - mBaseTime; in onMove() local 191 if (timeDelta > MAX_TIME_TO_START_SWIPE_MS) { in onMove() 197 if (timeDelta > MAX_TIME_TO_CONTINUE_SWIPE_MS) { in onMove()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ThermalManagerService.java | 1739 long timeDelta = sample.time - meanTime; in getSlopeOf() local 1741 sampleVariance += timeDelta * timeDelta; in getSlopeOf() 1742 sampleCovariance += timeDelta * temperatureDelta; in getSlopeOf()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationControllerWindowlessMagnifierTest.java | 1517 private void advanceTimeBy(long timeDelta) { 1518 advanceTimeBy(timeDelta, /* runnableOnEachRefresh= */ null); 1522 private void advanceTimeBy(long timeDelta, @Nullable Runnable runnableOnEachRefresh) { 1525 int round = (int) Math.ceil((double) timeDelta / timeSlot);
|
D | WindowMagnificationControllerTest.java | 1496 private void advanceTimeBy(long timeDelta) { 1497 advanceTimeBy(timeDelta, /* runnableOnEachRefresh= */ null); 1501 private void advanceTimeBy(long timeDelta, @Nullable Runnable runnableOnEachRefresh) { 1504 int round = (int) Math.ceil((double) timeDelta / timeSlot);
|
D | WindowMagnificationAnimationControllerTest.java | 929 private void advanceTimeBy(long timeDelta) { in advanceTimeBy() argument 930 mAnimatorTestRule.advanceTimeBy(timeDelta); in advanceTimeBy()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/ |
D | AlarmManagerServiceTest.java | 761 final long timeDelta = -123; 762 mNowRtcTest += timeDelta; 766 triggerElapsed1 - timeDelta);
|