Home
last modified time | relevance | path

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

1234

/cts/tests/tests/mediastress/src/android/mediastress/cts/
DCodecTest.java90 int duration = mp.getDuration(); in getDuration() local
91 Log.v(TAG, "Duration " + duration); in getDuration()
94 return duration; in getDuration()
153 int duration = 0; in setLooping() local
161 duration = mp.getDuration(); in setLooping()
162 Log.v(TAG, "setLooping duration " + duration); in setLooping()
166 mp.seekTo(duration - 5000); in setLooping()
198 int duration = mp.getDuration(); in pause() local
321 int duration = 0; in videoSeekTo() local
330 duration = mp.getDuration(); in videoSeekTo()
[all …]
/cts/tests/tests/animation/src/android/animation/cts/
DLayoutAnimationTest.java105 long duration = 5000L; in testIsChangingLayout() local
107 mLayoutTransition.setDuration(duration); in testIsChangingLayout()
118 long duration = 1000l; in testSetDuration() local
119 mLayoutTransition.setDuration(duration); in testSetDuration()
121 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDuration()
122 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.CHANGE_APPEARING)); in testSetDuration()
123 assertEquals(duration, in testSetDuration()
125 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.DISAPPEARING)); in testSetDuration()
130 long duration = 1000l; in testSetDurationForTransitionType() local
131 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()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2021_0339.java74 int duration = callbackReturn.get(15, TimeUnit.SECONDS); in testPocCVE_2021_0339() local
77 assumeThat(duration, not(equals(-1))); in testPocCVE_2021_0339()
81 assertThat(duration, in testPocCVE_2021_0339()
116 int duration = data.getIntExtra("duration", -1); // get result from secondactivity in onActivityResult() local
117 Log.d(TAG,this.getLocalClassName()+" onActivityResult() duration=" + duration); in onActivityResult()
119 res.putInt(RESULT_KEY, duration); in onActivityResult()
139 int duration = (int)(completedTs - startedTs); in onEnterAnimationComplete() local
141 + " onEnterAnimationComplete() duration=" + Long.toString(duration)); in onEnterAnimationComplete()
143 durationIntent.putExtra("duration", duration); in onEnterAnimationComplete()
/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.java66 abstract void onApduSequenceComplete(ComponentName component, long duration); in onApduSequenceComplete() argument
128 long duration = intent.getLongExtra(HceUtils.EXTRA_DURATION, 0);
130 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()
DAnimationUtilsTest.java64 int duration = 500; in testLoad() local
66 assertEquals(duration, animation.getDuration()); in testLoad()
83 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
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 …]
/cts/tests/tests/nativemedia/mediametrics/src/
DMediaMetricsTest.cpp85 int64_t duration; in TEST_F() local
87 EXPECT_TRUE(mediametrics_getRate(handle_, "attr4", &count, &duration, &rate)); in TEST_F()
89 EXPECT_EQ(1000, duration); in TEST_F()
93 EXPECT_TRUE(mediametrics_getRate(handle_, "attr4", &count, &duration, &rate)); in TEST_F()
95 EXPECT_EQ(2000, duration); in TEST_F()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotificationListener.java63 public @Nullable StatusBarNotification poll(Duration duration) { in poll() argument
64 return query().poll(duration); in poll()
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java186 private void move(long duration, long step) { in move() argument
188 while (duration > 0) { in move()
189 duration -= step; in move()
199 private void pause(long duration) { in pause() argument
200 mTime += duration; in pause()
/cts/tools/incremental-cts/testdata/
Dlog_1.qpa11 …<Number Name="TestDuration" Description="Test case duration in microseconds" Tag="Time" Unit="us">…
27 …<Number Name="TestDuration" Description="Test case duration in microseconds" Tag="Time" Unit="us">…
39 …<Number Name="TestDuration" Description="Test case duration in microseconds" Tag="Time" Unit="us">…
Dlog_2.qpa11 …<Number Name="TestDuration" Description="Test case duration in microseconds" Tag="Time" Unit="us">…
27 …<Number Name="TestDuration" Description="Test case duration in microseconds" Tag="Time" Unit="us">…
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DDisableAutofillTest.java222 final long duration = 2 * ACTIVITY_RESURRECTION.ms() + 500; in testDisableAppThenWaitToReenableIt() local
225 sReplier.addResponse(new CannedFillResponse.Builder().disableAutofill(duration).build()); in testDisableAppThenWaitToReenableIt()
234 sleep(passedTime, duration); in testDisableAppThenWaitToReenableIt()
293 final long duration = 2 * ACTIVITY_RESURRECTION.ms() + 500; in testDisableActivityThenWaitToReenableIt() local
297 .disableAutofill(duration) in testDisableActivityThenWaitToReenableIt()
311 sleep(passedTime, duration); in testDisableActivityThenWaitToReenableIt()
/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/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/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);
/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/camera/src/android/hardware/camera2/cts/
DBurstCaptureTest.java402 for (Long duration : frameDurations) { in burstTestByCamera()
403 meanFrameSum += duration; in burstTestByCamera()
408 for (Long duration : frameDurations) { in burstTestByCamera()
409 stddevSum += (duration - meanFrameDuration) * (duration - meanFrameDuration); in burstTestByCamera()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DGestureDescriptionTest.java216 int duration = 100; in testStrokeDescriptionGetters_workAsExpected() local
220 StrokeDescription strokeDescription = new StrokeDescription(path, start, duration); in testStrokeDescriptionGetters_workAsExpected()
229 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()

1234