Home
last modified time | relevance | path

Searched refs:timeDelta (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/animation/
DAnimatorTestRule.kt40 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/
DAnimatorTestRule.java241 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/
DLocalEventLog.java66 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/
DHdrRenderState.java77 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/
DRotary.kt937 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/
DRampAnimator.java171 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/
DSwipe.java160 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/
DThermalManagerService.java1739 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/
DWindowMagnificationControllerWindowlessMagnifierTest.java1517 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);
DWindowMagnificationControllerTest.java1496 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);
DWindowMagnificationAnimationControllerTest.java929 private void advanceTimeBy(long timeDelta) { in advanceTimeBy() argument
930 mAnimatorTestRule.advanceTimeBy(timeDelta); in advanceTimeBy()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm/
DAlarmManagerServiceTest.java761 final long timeDelta = -123;
762 mNowRtcTest += timeDelta;
766 triggerElapsed1 - timeDelta);