Home
last modified time | relevance | path

Searched refs:deltaT (Results 1 – 6 of 6) sorted by relevance

/frameworks/support/dynamic-animation/src/android/support/animation/
DSpringForce.java275 double deltaT = timeElapsed / 1000d; // unit: seconds in updateValues() local
285 displacement = coeffA * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues()
286 + coeffB * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues()
287 currentVelocity = coeffA * mGammaMinus * Math.pow(Math.E, mGammaMinus * deltaT) in updateValues()
288 + coeffB * mGammaPlus * Math.pow(Math.E, mGammaPlus * deltaT); in updateValues()
293 displacement = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues()
294 currentVelocity = (coeffA + coeffB * deltaT) * Math.pow(Math.E, -mNaturalFreq * deltaT) in updateValues()
295 * (-mNaturalFreq) + coeffB * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues()
301 displacement = Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues()
302 * (cosCoeff * Math.cos(mDampedFreq * deltaT) in updateValues()
[all …]
DFlingAnimation.java155 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()
DSpringAnimation.java212 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()
DDynamicAnimation.java641 long deltaT = frameTime - mLastFrameTime; in doAnimationFrame() local
643 boolean finished = updateValueAndVelocity(deltaT); in doAnimationFrame()
664 abstract boolean updateValueAndVelocity(long deltaT); in updateValueAndVelocity() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DGestureDescriptionTest.java141 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/
DGL2CameraEye.java347 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()