/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 90 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/ |
D | LayoutAnimationTest.java | 105 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 …]
|
D | AnimationActivity.java | 81 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/ |
D | CVE_2021_0339.java | 74 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/ |
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 | 66 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/ |
D | TimerProgressBar.java | 86 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/ |
D | AnimationTestUtils.java | 72 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()
|
D | AnimationUtilsTest.java | 64 int duration = 500; in testLoad() local 66 assertEquals(duration, animation.getDuration()); in testLoad() 83 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
|
D | LayoutAnimationControllerTest.java | 246 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/ |
D | MediaMetricsTest.cpp | 85 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/ |
D | NotificationListener.java | 63 public @Nullable StatusBarNotification poll(Duration duration) { in poll() argument 64 return query().poll(duration); in poll()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | VelocityTrackerTest.java | 186 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/ |
D | log_1.qpa | 11 …<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">…
|
D | log_2.qpa | 11 …<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/ |
D | DisableAutofillTest.java | 222 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/ |
D | RenderScriptTask.java | 119 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/ |
D | RegexUtils.java | 65 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/ |
D | TransitionSetTest.java | 154 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/ |
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);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollerTest.java | 221 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/ |
D | TransitionDrawableTest.java | 228 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/ |
D | BurstCaptureTest.java | 402 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/ |
D | GestureDescriptionTest.java | 216 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()
|