/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollerTest.java | 71 assertEquals(0, mScroller.getDuration()); in testGetDuration() 76 assertTrue(mScroller.getDuration() > 0); in testGetDuration() 79 assertEquals(50000, mScroller.getDuration()); in testGetDuration() 82 assertEquals(0, mScroller.getDuration()); in testGetDuration() 86 assertTrue(mScroller.getDuration() > 0); in testGetDuration() 125 assertEquals(0, mScroller.getDuration()); in testScrollMode() 134 assertEquals(5000, mScroller.getDuration()); in testScrollMode() 181 assertEquals(0, mScroller.getDuration()); 190 int defaultDuration = mScroller.getDuration(); 213 assertEquals(0, mScroller.getDuration()); in testFlingMode() [all …]
|
D | ToastTest.java | 292 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testHideTextToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 300 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testHideTextToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 319 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testHideCustomToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 327 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testHideCustomToastAfterExpirationOfFirstShowCall_despiteRepeatedShowCalls() 386 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testAccessDuration_whenCustomToast() 397 assertEquals(Toast.LENGTH_SHORT, mToast.getDuration()); in testAccessDuration_whenCustomToast() 411 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testAccessDuration_whenTextToast() 422 assertEquals(Toast.LENGTH_SHORT, mToast.getDuration()); in testAccessDuration_whenTextToast() 657 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromString() 663 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | CombinedVibrationTest.java | 60 assertEquals(TEST_EFFECT.getDuration(), mono.getDuration()); in testcreateParallel() 71 assertEquals(TEST_EFFECT.getDuration(), stereo.getDuration()); in testStartParallel() 126 assertEquals(-1, sequential.getDuration()); in testCreateSequential() 233 assertEquals(100, effect.getDuration()); in testParallelMonoCombinationDuration() 243 assertEquals(100, effect.getDuration()); in testParallelStereoCombinationDuration() 252 assertEquals(-1, effect.getDuration()); in testParallelCombinationUnknownDuration() 262 assertEquals(Long.MAX_VALUE, effect.getDuration()); in testParallelCombinationRepeatingDuration() 272 assertEquals(33, effect.getDuration()); in testSequentialCombinationDuration() 281 assertEquals(-1, effect.getDuration()); in testSequentialCombinationUnknownDuration() 291 assertEquals(Long.MAX_VALUE, effect.getDuration()); in testSequentialCombinationRepeatingDuration()
|
D | VibrationEffectTest.java | 86 assertEquals(100, e.getDuration()); in testCreateOneShot() 90 assertEquals(1, e.getDuration()); in testCreateOneShot() 94 assertEquals(1000, e.getDuration()); in testCreateOneShot() 156 assertEquals(-1, effect.getDuration()); in testCreatePrebaked() 185 assertEquals(400, effect.getDuration()); in testCreateWaveform() 403 assertEquals(-1, effect.getDuration()); in testComposed() 523 assertEquals(-1, effect.getDuration()); in testComposedDuration() 528 assertEquals(TEST_ONE_SHOT.getDuration(), effect.getDuration()); in testComposedDuration() 534 assertEquals(Long.MAX_VALUE, effect.getDuration()); in testComposedDuration() 697 .mapToLong(VibrationEffectSegment::getDuration) in getTimings()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationSetTest.java | 96 assertEquals(SHORT_CHILD_DURATION, children.get(0).getDuration()); in testInitialize() 97 assertEquals(MEDIUM_CHILD_DURATION, children.get(1).getDuration()); in testInitialize() 98 assertEquals(LONG_CHILD_DURATION, children.get(2).getDuration()); in testInitialize() 105 assertEquals(ANIMATIONSET_DURATION, children.get(0).getDuration()); in testInitialize() 106 assertEquals(ANIMATIONSET_DURATION, children.get(1).getDuration()); in testInitialize() 107 assertEquals(ANIMATIONSET_DURATION, children.get(2).getDuration()); in testInitialize() 167 assertEquals(LONG_CHILD_DURATION, animationSet.getDuration()); in testAccessDuration() 169 assertTrue(animationSet.getDuration() > ANIMATIONSET_DURATION); in testAccessDuration() 172 assertEquals(ANIMATIONSET_DURATION, animationSet.getDuration()); in testAccessDuration() 175 assertEquals(ANIMATIONSET_DURATION, children.get(i).getDuration()); in testAccessDuration() [all …]
|
D | AnimationTest.java | 168 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 187 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 206 animation.getTransformation(animation.getStartTime() + animation.getDuration() + 1, in testAccessFill() 244 long duration = anim.getDuration(); in testRepeatAnimation() 524 assertEquals(0, animation.getDuration()); 530 assertEquals(500, animation.getDuration()); 546 assertEquals(0, animation.getDuration()); 550 assertEquals(20, animation.getDuration()); 554 assertEquals(-10, animation.getDuration()); 650 assertEquals(myAnimation.getDuration(), cloneAnimation.getDuration());
|
D | AnimationUtilsTest.java | 66 assertEquals(duration, animation.getDuration()); in testLoad() 83 assertEquals(duration, controller.getAnimation().getDuration()); in testLoad()
|
D | AnimationTestUtils.java | 57 animation.getDuration()); in assertRunAnimation()
|
D | AccelerateDecelerateInterpolatorTest.java | 89 assertEquals(ALPHA_DURATION, anim.getDuration()); in testAccelerateDecelerateInterpolator()
|
D | LinearInterpolatorTest.java | 92 assertEquals(LINEAR_ALPHA_DURATION, anim.getDuration()); in testLinearInterpolator()
|
D | DecelerateInterpolatorTest.java | 94 assertEquals(DECELERATE_ALPHA_DURATION, anim.getDuration()); in testDecelerateInterpolator()
|
D | AccelerateInterpolatorTest.java | 91 assertEquals(ACCELERATE_ALPHA_DURATION, anim.getDuration()); in testAccelerateInterpolator()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimationDrawableTest.java | 232 assertEquals(FIRST_FRAME_DURATION, mAnimationDrawable.getDuration(FIRST_FRAME_INDEX)); in testGetDuration() 233 assertEquals(SECOND_FRAME_DURATION, mAnimationDrawable.getDuration(SECOND_FRAME_INDEX)); in testGetDuration() 234 assertEquals(THIRD_FRAME_DURATION, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX)); in testGetDuration() 235 assertEquals(0, mAnimationDrawable.getDuration(THIRD_FRAME_INDEX + 1)); in testGetDuration() 240 mAnimationDrawable.getDuration(-1); in testGetDurationTooLow() 245 mAnimationDrawable.getDuration(10); in testGetDurationTooHigh() 293 assertEquals(2000, dr.getDuration(0)); in testInflateCorrect() 294 assertEquals(1000, dr.getDuration(1)); in testInflateCorrect()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | LayoutAnimationTest.java | 121 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDuration() 122 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.CHANGE_APPEARING)); in testSetDuration() 124 mLayoutTransition.getDuration(LayoutTransition.CHANGE_DISAPPEARING)); in testSetDuration() 125 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.DISAPPEARING)); in testSetDuration() 132 assertEquals(duration, mLayoutTransition.getDuration(LayoutTransition.APPEARING)); in testSetDurationForTransitionType()
|
D | AnimatorTest.java | 71 assertEquals(mAnimator.getDuration(), animatorClone.getDuration()); in testClone() 94 assertEquals(duration, animatorLocal.getDuration()); in testGetDuration()
|
D | AnimatorSetTest.java | 409 assertEquals(mAnimatorSet.getDuration(), 1000); in testDuration() 716 assertEquals(animator1.getDuration(), clone1.getDuration()); in testClone() 717 assertEquals(animator2.getDuration(), clone2.getDuration()); in testClone()
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 81 public static int getDuration(String filePath) { in getDuration() method in CodecTest 90 int duration = mp.getDuration(); in getDuration() 161 duration = mp.getDuration(); in setLooping() 198 int duration = mp.getDuration(); in pause() 330 duration = mp.getDuration(); in videoSeekTo() 362 duration = mp.getDuration(); in seekToEnd() 390 duration = mp.getDuration(); in shortMediaStop() 447 duration = mp.getDuration(); in seektoBeforeStart() 485 duration = mp.getDuration(); in mediaRecorderRecord() 553 duration = mp.getDuration(); in resourcesPlayback() [all …]
|
/cts/tests/tests/widget29/src/android/widget/cts29/ |
D | ToastTest.java | 222 assertEquals(Toast.LENGTH_LONG, mToast.getDuration()); in testAccessDuration() 233 assertEquals(Toast.LENGTH_SHORT, mToast.getDuration()); in testAccessDuration() 435 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromString() 441 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString() 447 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromString() 464 assertEquals(Toast.LENGTH_LONG, toast.getDuration()); in testMakeTextFromResource() 470 assertEquals(Toast.LENGTH_SHORT, toast.getDuration()); in testMakeTextFromResource()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | TransitionSetTest.java | 171 assertEquals(duration, fade.getDuration()); in testSetTransferValuesDuringAdd() 200 assertEquals(0, fade.getDuration()); in testSetTransferNullValuesDuringAdd() 229 assertEquals(duration, fade.getDuration()); in testSetNoTransferValuesDuringAdd() 254 assertEquals(overriddenDuration, fade.getDuration()); in testSetAllowsChildrenToOverrideConfigs()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | GestureUtils.java | 126 prototype.getPath(), timeMs, prototype.getDuration(), prototype.willContinue()); in startingAt() 130 return stroke.getStartTime() + stroke.getDuration(); in endTimeOf() 188 time += stroke.getDuration() + STROKE_TIME_GAP_MS; in multiTap() 192 time += stroke.getDuration() + STROKE_TIME_GAP_MS; in multiTap() 307 time += stroke.getDuration();
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaCodecPlayerTestBase.java | 111 if (mMediaCodecPlayer.getCurrentPosition() >= mMediaCodecPlayer.getDuration() ) { in playUntilEnd() 113 ">= duration = " + mMediaCodecPlayer.getDuration()); in playUntilEnd()
|
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/ |
D | Utils.java | 105 public static long getDuration(String videoUrl) { in getDuration() method in Utils
|
/cts/tests/tests/uirendering/jni/ |
D | android_uirendering_cts_AImageDecoderTest.cpp | 235 static jlong getDuration(JNIEnv*, jobject, jlong frameInfo) { in getDuration() function 305 { "nGetDuration", "(J)J", (void*) getDuration },
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/ |
D | poc.cpp | 86 status_t getDuration(int *msec) { return OK; } in getDuration() function in MyMediaPlayer
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | GestureDescriptionTest.java | 229 assertEquals(duration, strokeDescription.getDuration()); in testStrokeDescriptionGetters_workAsExpected()
|