Searched refs:deltaT (Results 1 – 7 of 7) sorted by relevance
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/ |
D | SpringForce.java | 278 double deltaT = timeElapsed / 1000d; // unit: seconds in updateValues() local 288 displacement = coeffA * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues() 289 + coeffB * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues() 290 currentVelocity = coeffA * mGammaMinus * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues() 291 + coeffB * mGammaPlus * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues() 296 displacement = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues() 297 currentVelocity = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT) in updateValues() 298 * (-mNaturalFreq) + coeffB * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues() 304 displacement = Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues() 305 * (cosCoeff * Math.cos(mDampedFreq * deltaT) in updateValues() [all …]
|
D | FlingAnimation.java | 155 boolean updateValueAndVelocity(long deltaT) { in updateValueAndVelocity() argument 157 MassState state = mFlingForce.updateValueAndVelocity(mValue, mVelocity, deltaT); in updateValueAndVelocity() 216 MassState updateValueAndVelocity(float value, float velocity, long deltaT) { in updateValueAndVelocity() argument 217 mMassState.mVelocity = (float) (velocity * Math.exp((deltaT / 1000f) * mFriction)); in updateValueAndVelocity() 219 + velocity / mFriction * Math.exp(mFriction * deltaT / 1000f)); in updateValueAndVelocity()
|
D | SpringAnimation.java | 212 boolean updateValueAndVelocity(long deltaT) { in updateValueAndVelocity() argument 230 MassState massState = mSpring.updateValues(mValue, mVelocity, deltaT / 2); in updateValueAndVelocity() 234 massState = mSpring.updateValues(massState.mValue, massState.mVelocity, deltaT / 2); in updateValueAndVelocity() 239 MassState massState = mSpring.updateValues(mValue, mVelocity, deltaT); in updateValueAndVelocity()
|
D | DynamicAnimation.java | 645 long deltaT = frameTime - mLastFrameTime; in doAnimationFrame() local 647 boolean finished = updateValueAndVelocity(deltaT); in doAnimationFrame() 668 abstract boolean updateValueAndVelocity(long deltaT); in updateValueAndVelocity() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
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() 157 assertThat(steps.get(4), allOf(numTouchPointsIs(1), isAtTime(start + deltaT * 4))); in testPathsWithOverlappingTiming_produceCorrectSteps() 164 assertThat(steps.get(6), allOf(numTouchPointsIs(3), isAtTime(start + deltaT * 1))); in testPathsWithOverlappingTiming_produceCorrectSteps() 165 assertThat(steps.get(7), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 2))); in testPathsWithOverlappingTiming_produceCorrectSteps() 166 assertThat(steps.get(8), allOf(numTouchPointsIs(3), isAtTime(start + deltaT * 3))); in testPathsWithOverlappingTiming_produceCorrectSteps() 167 assertThat(steps.get(9), allOf(noStartsOrEnds(), isAtTime(start + deltaT * 4))); in testPathsWithOverlappingTiming_produceCorrectSteps() [all …]
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
D | GL2CameraEye.java | 347 float deltaT = (timestamp - mLastTime)/1000000000.f; // To seconds in doPhysics() local 354 if (deltaT > 0.030f) { in doPhysics() 368 mVel[0] = mVel[0] + accel[0]*deltaT; in doPhysics() 369 mVel[1] = mVel[1] + accel[1]*deltaT; in doPhysics() 370 mVel[2] = mVel[2] + accel[2]*deltaT; in doPhysics() 372 mPos[0] = mPos[0] + mVel[0]*deltaT; in doPhysics() 373 mPos[1] = mPos[1] + mVel[1]*deltaT; in doPhysics() 374 mPos[2] = mPos[2] + mVel[2]*deltaT; in doPhysics()
|
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/ui/automation/ |
D | Interaction.java | 127 long deltaT = Math.round(j * stepT); in createInterpolatedEventList() local 130 MotionEvent moveEvent = MotionEvent.obtain(startTime, startTime + deltaT, in createInterpolatedEventList()
|