/frameworks/base/core/java/com/android/internal/dynamicanimation/animation/ |
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() 281 currentVelocity = coeffA * mGammaMinus * Math.pow(Math.E, mGammaMinus * 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() 289 * -mNaturalFreq + coeffB * Math.pow(Math.E, -mNaturalFreq * deltaT); in updateValues() 295 displacement = Math.pow(Math.E, -mDampingRatio * mNaturalFreq * deltaT) in updateValues() 296 * (cosCoeff * Math.cos(mDampedFreq * deltaT) in updateValues() [all …]
|
D | FlingAnimation.java | 133 boolean updateValueAndVelocity(long deltaT) { in updateValueAndVelocity() argument 134 MassState state = mFlingForce.updateValueAndVelocity(mValue, mVelocity, deltaT); in updateValueAndVelocity() 181 MassState updateValueAndVelocity(float value, float velocity, long deltaT) { in updateValueAndVelocity() argument 182 mMassState.mVelocity = (float) (velocity * Math.exp((deltaT / 1000f) * mFriction)); in updateValueAndVelocity() 184 + velocity / mFriction * Math.exp(mFriction * deltaT / 1000f)); in updateValueAndVelocity()
|
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()
|
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
|
/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/core/java/android/widget/ |
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()
|
/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()
|