Home
last modified time | relevance | path

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

1234

/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/animation/src/android/animation/cts/
DLayoutAnimationTest.java93 long duration = 2000l; in testIsChangingLayout() local
95 mLayoutTransition.setDuration(duration); in testIsChangingLayout()
106 long duration = 1000l; in testSetDuration() local
107 mLayoutTransition.setDuration(duration); in testSetDuration()
109 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDuration()
110 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.CHANGE_APPEARING)); in testSetDuration()
111 assertEquals(duration, in testSetDuration()
113 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.DISAPPEARING)); in testSetDuration()
118 long duration = 1000l; in testSetDurationForTransitionType() local
119 mLayoutTransition.setDuration(LayoutTransition.APPEARING, duration); in testSetDurationForTransitionType()
[all …]
DAnimationActivity.java81 public ValueAnimator createAnimator(Object object,String propertyName, long duration, in createAnimator() argument
85 valueAnimator.setDuration(duration); in createAnimator()
102 public ValueAnimator createAnimatorWithDuration(long duration) { in createAnimatorWithDuration() argument
103 return createAnimator(view.newBall, "y", duration ,ValueAnimator.INFINITE, in createAnimatorWithDuration()
113 long duration, int repeatCount, int repeatMode, TimeInterpolator timeInterpolator, in createObjectAnimatorForInt() argument
116 objAnimator.setDuration(duration); in createObjectAnimatorForInt()
135 public void startAnimation(long duration){ in startAnimation() argument
138 bounceAnimator.setDuration(duration); in startAnimation()
DAnimatorTest.java91 final long duration = 2000; in testGetDuration() local
92 Animator animatorLocal = mActivity.createAnimatorWithDuration(duration); in testGetDuration()
94 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
/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()
DBaseEmulatorActivity.java64 abstract void onApduSequenceComplete(ComponentName component, long duration); in onApduSequenceComplete() argument
126 long duration = intent.getLongExtra(HceUtils.EXTRA_DURATION, 0);
128 onApduSequenceComplete(component, duration);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTimerProgressBar.java86 public void start(long duration, long stepSize) { in start() argument
87 start(duration, stepSize, null); in start()
97 public void start(long duration, long stepSize, TimerExpiredCallback callback) { in start() argument
98 mDuration = duration; in start()
103 this.setMax((int) (duration / stepSize)); in start()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTestUtils.java72 final long duration) throws Throwable { in assertRunAnimation() argument
80 PollingCheck.waitFor(duration + TIMEOUT_DELTA, animation::hasEnded); in assertRunAnimation()
91 final long duration) throws Throwable { in assertRunController() argument
100 SystemClock.sleep(duration + TIMEOUT_DELTA); in assertRunController()
DLayoutAnimationControllerTest.java246 long duration = 2000;
249 long maxDuration = (long) (DEFAULT_DELAY * INDEX_OF_CHILD3 * duration + duration);
256 assertAnimation(childAnimation1, false, duration);
257 assertAnimation(childAnimation2, false, duration);
258 assertAnimation(childAnimation3, false, duration);
282 private void assertAnimation(Animation animation, boolean isAccelerate, long duration) {
286 long step = duration / 4;
451 long duration = 2000; in testGetAnimationForView() local
452 assertAnimation(childAnimation1, false, duration); in testGetAnimationForView()
453 assertAnimation(childAnimation2, false, duration); in testGetAnimationForView()
[all …]
DAnimationUtilsTest.java64 int duration = 500; in testLoad() local
66 assertEquals(duration, animation.getDuration()); in testLoad()
83 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java183 private void move(long duration, long step) { in move() argument
185 while (duration > 0) { in move()
186 duration -= step; in move()
196 private void pause(long duration) { in pause() argument
197 mTime += duration; in pause()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DDisableAutofillTest.java199 final long duration = 2 * ACTIVITY_RESURRECTION.ms() + 500; in testDisableAppThenWaitToReenableIt() local
202 sReplier.addResponse(new CannedFillResponse.Builder().disableAutofill(duration).build()); in testDisableAppThenWaitToReenableIt()
211 sleep(passedTime, duration); in testDisableAppThenWaitToReenableIt()
269 final long duration = 2 * ACTIVITY_RESURRECTION.ms() + 500; in testDisableActivityThenWaitToReenableIt() local
273 .disableAutofill(duration) in testDisableActivityThenWaitToReenableIt()
287 sleep(passedTime, duration); in testDisableActivityThenWaitToReenableIt()
/cts/tests/tests/media/libmediandkjni/
Dnative_media_utils.cpp97 int64_t duration = (*std::max_element(from, to, comparePTS)).presentationTimeUs in getBitrateAverage() local
99 if (duration <= 0) { in getBitrateAverage()
103 int64_t avg = (sum * 1e6) / duration; in getBitrateAverage()
122 int64_t duration = mInfos[frameNumTo].presentationTimeUs - in getBitratePeak() local
124 if (duration <= 0) { in getBitratePeak()
128 int64_t peak = (maxSum * 1e6) / duration; in getBitratePeak()
/cts/tests/tests/transition/src/android/transition/cts/
DTransitionSetTest.java154 int duration = 100; in testSetTransferValuesDuringAdd() local
164 transitionSet.setDuration(duration); in testSetTransferValuesDuringAdd()
171 assertEquals(duration, fade.getDuration()); in testSetTransferValuesDuringAdd()
210 int duration = 100; in testSetNoTransferValuesDuringAdd() local
220 fade.setDuration(duration); in testSetNoTransferValuesDuringAdd()
229 assertEquals(duration, fade.getDuration()); in testSetNoTransferValuesDuringAdd()
/cts/tests/sensor/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.java351 final long duration, in createOperation() argument
359 listener.waitForEvents(duration, timeUnit); in createOperation()
378 final long duration, in createFlushOperation() argument
381 return createFlushOperation(environment, new int[] {(int)timeUnit.toMillis(duration)}, -1); in createFlushOperation()
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DRegexUtils.java65 long duration = System.currentTimeMillis() - start; in assertFind() local
67 if (duration > WARNING_THRESHOLD) { in assertFind()
69 CLog.logAndDisplay(LogLevel.WARN, "regex match took " + duration + "ms."); in assertFind()
/cts/tests/camera/src/android/hardware/camera2/cts/
DBurstCaptureTest.java362 for (Long duration : frameDurations) { in burstTestByCamera()
363 meanFrameSum += duration; in burstTestByCamera()
368 for (Long duration : frameDurations) { in burstTestByCamera()
369 stddevSum += (duration - meanFrameDuration) * (duration - meanFrameDuration); in burstTestByCamera()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollerTest.java221 int duration = mScroller.getDuration(); in testFlingMode() local
224 assertTrue(duration > 0); in testFlingMode()
227 SystemClock.sleep(duration / 3); in testFlingMode()
241 SystemClock.sleep(duration / 3); in testFlingMode()
261 SystemClock.sleep(duration); in testFlingMode()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DTransitionDrawableTest.java228 private void makeReverseTransitionInProgress(int duration, int delay) { in makeReverseTransitionInProgress() argument
232 mTransitionDrawable.reverseTransition(duration); in makeReverseTransitionInProgress()
237 private void makeTransitionInProgress(int duration, int delay) { in makeTransitionInProgress() argument
239 mTransitionDrawable.startTransition(duration); in makeTransitionInProgress()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRenderScriptTask.java119 float duration = (endTime - startTime); in applyRefocusFilter() local
120 Log.d(TAG, "applyRefocusFilter is finished in " + (duration / 1000.0f) in applyRefocusFilter()
/cts/tests/tests/util/src/android/util/cts/
DTimeUtilsTest.java151 private static void assertFormatDuration(String expected, long duration) { in assertFormatDuration() argument
153 TimeUtils.formatDuration(duration, sb); in assertFormatDuration()
154 assertEquals("formatDuration(" + duration + ")", expected, sb.toString()); in assertFormatDuration()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java186 int duration = 100; in testStrokeDescriptionGetters_workAsExpected() local
190 StrokeDescription strokeDescription = new StrokeDescription(path, start, duration); in testStrokeDescriptionGetters_workAsExpected()
199 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()
/cts/tests/tests/media/src/android/media/cts/
DCamcorderProfileTest.java85 profile.duration, in checkProfile()
97 assertTrue(profile.duration > 0); in checkProfile()
113 assertEquals(expectedProfile.duration, actualProfile.duration); in assertProfileEquals()
/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()

1234