Home
last modified time | relevance | path

Searched refs:duration (Results 1 – 25 of 58) sorted by relevance

123

/cts/libs/vogar-expect/src/vogar/util/
DTimeUtilities.java27 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/
DLayoutAnimationTest.java76 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 …]
DAnimationActivity.java82 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()
DAnimatorTest.java67 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/
DCodecTest.java89 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/
DAnimationTestUtils.java61 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()
DAnimationUtilsTest.java54 int duration = 500; in testLoad() local
56 assertEquals(duration, animation.getDuration()); in testLoad()
73 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
DLayoutAnimationControllerTest.java236 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/
DThroughputEmulatorActivity.java50 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()
DProtocolParamsEmulatorActivity.java30 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
DBaseEmulatorActivity.java62 abstract void onApduSequenceComplete(ComponentName component, long duration); in onApduSequenceComplete() argument
116 long duration = intent.getLongExtra(HceUtils.EXTRA_DURATION, 0);
118 onApduSequenceComplete(component, duration);
DDefaultRouteEmulatorActivity.java47 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
DSingleNonPaymentEmulatorActivity.java43 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
DOffHostEmulatorActivity.java44 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
DConflictingNonPaymentEmulatorActivity.java44 void onApduSequenceComplete(ComponentName component, long duration) { in onApduSequenceComplete() argument
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java144 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/
DTransitionDrawableTest.java212 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/
DScrollerTest.java213 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/
DSensorOperationTest.java55 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);
DTestSensorOperation.java336 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/
DBurstCaptureTest.java341 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/
DCallLogBackupTest.java83 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/
DUtil.java17 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/
DCamcorderProfileTest.java84 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/
DSensorCtsHelper.java147 public static void sleep(long duration, TimeUnit timeUnit) throws InterruptedException { in sleep() argument
148 long durationNs = TimeUnit.NANOSECONDS.convert(duration, timeUnit); in sleep()

123