Searched refs:deltaT (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
H A D | SpringForce.java | 269 double deltaT = timeElapsed / 1000d; // unit: seconds in updateValues() local 279 displacement = coeffA * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues() 280 + coeffB * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues() 282 + coeffB * mGammaPlus * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues() 287 displacement = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues() 288 currentVelocity = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT) in updateValues() 296 * (cosCoeff * Math.cos(mDampedFreq * deltaT) in updateValues() 297 + sinCoeff * Math.sin(mDampedFreq * deltaT)); in updateValues() 299 + Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues() 300 * (-mDampedFreq * cosCoeff * Math.sin(mDampedFreq * deltaT) in updateValues() [all …]
|
H A D | SpringAnimation.java | 259 boolean updateValueAndVelocity(long deltaT) { in updateValueAndVelocity() argument 276 MassState massState = mSpring.updateValues(mValue, mVelocity, deltaT / 2); in updateValueAndVelocity() 280 massState = mSpring.updateValues(massState.mValue, massState.mVelocity, deltaT / 2); in updateValueAndVelocity() 285 MassState massState = mSpring.updateValues(mValue, mVelocity, deltaT); in updateValueAndVelocity()
|
H A D | DynamicAnimation.java | 678 long deltaT = frameTime - mLastFrameTime; in doAnimationFrame() local 681 deltaT = durationScale == 0.0f ? Integer.MAX_VALUE : (long) (deltaT / durationScale); in doAnimationFrame() 682 boolean finished = updateValueAndVelocity(deltaT); in doAnimationFrame() 708 abstract boolean updateValueAndVelocity(long deltaT); in updateValueAndVelocity() argument
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | GestureDescriptionTest.java | 141 int deltaT = 12; // Force samples to happen on extra boundaries in testPathsWithOverlappingTiming_produceCorrectSteps() local 148 .getGestureStepsFromGestureDescription(builder.build(), deltaT); in testPathsWithOverlappingTiming_produceCorrectSteps() 154 isAtTime(start + deltaT))); in testPathsWithOverlappingTiming_produceCorrectSteps() 155 assertThat(steps.get(2), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps() 156 assertThat(steps.get(3), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 3))); in testPathsWithOverlappingTiming_produceCorrectSteps() 165 assertThat(steps.get(7), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps() 167 assertThat(steps.get(9), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 4))); in testPathsWithOverlappingTiming_produceCorrectSteps() 175 assertThat(steps.get(12), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps() 177 assertThat(steps.get(14), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 4))); in testPathsWithOverlappingTiming_produceCorrectSteps() 185 assertThat(steps.get(17), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps() [all …]
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | EdgeEffect.java | 751 final float deltaT = (time - mStartTime) / 1000f; // Convert from millis to seconds in updateSpring() local 752 if (deltaT < 0.001f) { in updateSpring() 765 float targetDistance = mDistance + (mVelocity * deltaT / mHeight); in updateSpring() 781 double distance = Math.pow(Math.E, -DAMPING_RATIO * NATURAL_FREQUENCY * deltaT) in updateSpring() 782 * (cosCoeff * Math.cos(mDampedFreq * deltaT) in updateSpring() 783 + sinCoeff * Math.sin(mDampedFreq * deltaT)); in updateSpring() 785 + Math.pow(Math.E, -DAMPING_RATIO * NATURAL_FREQUENCY * deltaT) in updateSpring() 786 * (-mDampedFreq * cosCoeff * Math.sin(mDampedFreq * deltaT) in updateSpring() 787 + mDampedFreq * sinCoeff * Math.cos(mDampedFreq * deltaT)); in updateSpring()
|
/aosp14/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
H A D | Interaction.java | 127 long deltaT = Math.round(j * stepT); in createInterpolatedEventList() local 130 MotionEvent moveEvent = MotionEvent.obtain(startTime, startTime + deltaT, in createInterpolatedEventList()
|