/cts/libs/vogar-expect/src/vogar/util/ |
D | TimeUtilities.java | 27 public static String msToIsoString(long duration) { in msToIsoString() argument 28 long milliseconds = duration % 1000; in msToIsoString() 29 duration /= 1000; in msToIsoString() 30 long seconds = duration % 60; in msToIsoString() 31 duration /= 60; in msToIsoString() 32 long minutes = duration % 60; in msToIsoString() 33 duration /= 60; in msToIsoString() 34 long hours = duration; in msToIsoString() 74 long duration = ns; in nsToString() local 75 long nanoseconds = duration % 1000; in nsToString() [all …]
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationTest.java | 76 long duration = 2000l; in testIsChangingLayout() local 78 mLayoutTransition.setDuration(duration); in testIsChangingLayout() 88 long duration = 1000l; in testSetDuration() local 89 mLayoutTransition.setDuration(duration); in testSetDuration() 91 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDuration() 92 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.CHANGE_APPEARING)); in testSetDuration() 93 assertEquals(duration, in testSetDuration() 95 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.DISAPPEARING)); in testSetDuration() 99 long duration = 1000l; in testSetDurationForTransitionType() local 100 mLayoutTransition.setDuration(LayoutTransition.APPEARING, duration); in testSetDurationForTransitionType() [all …]
|
D | AnimationActivity.java | 82 public ValueAnimator createAnimator(Object object,String propertyName, long duration, in createAnimator() argument 86 valueAnimator.setDuration(duration); in createAnimator() 103 public ValueAnimator createAnimatorWithDuration(long duration) { in createAnimatorWithDuration() argument 104 return createAnimator(view.newBall, "y", duration ,ValueAnimator.INFINITE, in createAnimatorWithDuration() 114 long duration, int repeatCount, int repeatMode, TimeInterpolator timeInterpolator, in createObjectAnimatorForInt() argument 117 objAnimator.setDuration(duration); in createObjectAnimatorForInt() 136 public void startAnimation(long duration){ in startAnimation() argument 139 bounceAnimator.setDuration(duration); in startAnimation()
|
D | AnimatorTest.java | 67 final long duration = 2000; in testGetDuration() local 68 Animator animatorLocal = mActivity.createAnimatorWithDuration(duration); in testGetDuration() 70 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 89 int duration = mp.getDuration(); in getDuration() local 90 Log.v(TAG, "Duration " + duration); in getDuration() 93 return duration; in getDuration() 152 int duration = 0; in setLooping() local 160 duration = mp.getDuration(); in setLooping() 161 Log.v(TAG, "setLooping duration " + duration); in setLooping() 165 mp.seekTo(duration - 5000); in setLooping() 197 int duration = mp.getDuration(); in pause() local 320 int duration = 0; in videoSeekTo() local 329 duration = mp.getDuration(); in videoSeekTo() [all …]
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTestUtils.java | 61 final View view, final Animation animation, final long duration) { in assertRunAnimation() argument 78 new PollingCheck(duration + TIMEOUT_DELTA) { in assertRunAnimation() 98 final long duration) throws InterruptedException { in assertRunController() argument 109 Thread.sleep(duration + TIMEOUT_DELTA); in assertRunController()
|
D | AnimationUtilsTest.java | 54 int duration = 500; in testLoad() local 56 assertEquals(duration, animation.getDuration()); in testLoad() 73 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
|
D | LayoutAnimationControllerTest.java | 236 long duration = 2000; 239 long maxDuration = (long) (DEFAULT_DELAY * INDEX_OF_CHILD3 * duration + duration); 246 assertAnimation(childAnimation1, false, duration); 247 assertAnimation(childAnimation2, false, duration); 248 assertAnimation(childAnimation3, false, duration); 272 private void assertAnimation(Animation animation, boolean isAccelerate, long duration) { 276 long step = duration / 4; 436 long duration = 2000; 437 assertAnimation(childAnimation1, false, duration); 438 assertAnimation(childAnimation2, false, duration); [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/ |
D | ThroughputEmulatorActivity.java | 50 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument 52 long timePerApdu = duration / ThroughputService.APDU_COMMAND_SEQUENCE.length; in onApduSequenceComplete() 53 if (duration < 1000) { in onApduSequenceComplete() 54 mTextView.setText("PASS. Total duration: " + Long.toString(duration) + " ms " + in onApduSequenceComplete() 58 mTextView.setText("FAIL. Total duration: " + Long.toString(duration) + " ms " + in onApduSequenceComplete()
|
D | ProtocolParamsEmulatorActivity.java | 30 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
|
D | BaseEmulatorActivity.java | 62 abstract void onApduSequenceComplete(ComponentName component, long duration); in onApduSequenceComplete() argument 116 long duration = intent.getLongExtra(HceUtils.EXTRA_DURATION, 0); 118 onApduSequenceComplete(component, duration);
|
D | DefaultRouteEmulatorActivity.java | 47 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
|
D | SingleNonPaymentEmulatorActivity.java | 43 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
|
D | OffHostEmulatorActivity.java | 44 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
|
D | ConflictingNonPaymentEmulatorActivity.java | 44 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
|
/cts/tests/tests/view/src/android/view/cts/ |
D | VelocityTrackerTest.java | 144 private void move(long duration, long step) { in move() argument 146 while (duration > 0) { in move() 147 duration -= step; in move() 157 private void pause(long duration) { in pause() argument 158 mTime += duration; in pause()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | TransitionDrawableTest.java | 212 private void makeReverseTransitionInProgress(int duration, int delay) { in makeReverseTransitionInProgress() argument 216 mTransitionDrawable.reverseTransition(duration); in makeReverseTransitionInProgress() 221 private void makeTransitionInProgress(int duration, int delay) { in makeTransitionInProgress() argument 223 mTransitionDrawable.startTransition(duration); in makeTransitionInProgress()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollerTest.java | 213 int duration = mScroller.getDuration(); in testFlingMode() local 216 assertTrue(duration > 0); in testFlingMode() 220 Thread.sleep(duration / 3); in testFlingMode() 238 Thread.sleep(duration / 3); in testFlingMode() 262 Thread.sleep(duration); in testFlingMode()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/sensoroperations/ |
D | SensorOperationTest.java | 55 long duration = System.currentTimeMillis() - start; in testFakeSensorOperation() local 56 assertTrue(Math.abs(opDurationMs - duration) < TEST_DURATION_THRESHOLD_MS); in testFakeSensorOperation() 216 long duration = System.currentTimeMillis() - start; 217 assertTrue(Math.abs(subOpDurationMs * iterations - duration) < TEST_DURATION_THRESHOLD_MS); 305 long duration = System.currentTimeMillis() - start; 306 assertTrue(Math.abs(subOpDurationMs * subOpCount - duration) < TEST_DURATION_THRESHOLD_MS);
|
D | TestSensorOperation.java | 336 final long duration, in createOperation() argument 344 listener.waitForEvents(duration, timeUnit); in createOperation() 363 final long duration, in createFlushOperation() argument 371 SensorCtsHelper.sleep(duration, timeUnit); in createFlushOperation()
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
D | BurstCaptureTest.java | 341 for (Long duration : frameDurations) { in yuvBurstTestByCamera() 342 meanFrameSum += duration; in yuvBurstTestByCamera() 347 for (Long duration : frameDurations) { in yuvBurstTestByCamera() 348 stddevSum += (duration - meanFrameDuration) * (duration - meanFrameDuration); in yuvBurstTestByCamera()
|
/cts/tests/tests/calllog/src/android/calllog/cts/ |
D | CallLogBackupTest.java | 83 long duration; field in CallLogBackupTest.Call 156 assertEquals(CALL_DURATION, call.duration); in verifyCall() 243 call.duration = cursor.getLong(cursor.getColumnIndex(Calls.DURATION)); in getCalls()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | Util.java | 17 public static int toLength(double duration, int sampleRate) { in toLength() argument 18 return (int) Math.round(duration * sampleRate); in toLength()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CamcorderProfileTest.java | 84 profile.duration, in checkProfile() 96 assertTrue(profile.duration > 0); in checkProfile() 112 assertEquals(expectedProfile.duration, actualProfile.duration); in assertProfileEquals()
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
D | SensorCtsHelper.java | 147 public static void sleep(long duration, TimeUnit timeUnit) throws InterruptedException { in sleep() argument 148 long durationNs = TimeUnit.NANOSECONDS.convert(duration, timeUnit); in sleep()
|