/cts/tests/tests/transition/src/android/transition/cts/ |
D | ChangeClipBoundsTest.java | 54 final View redSquare = mActivity.findViewById(R.id.redSquare); in testChangeClipBounds() local 55 final Rect newClip = new Rect(redSquare.getLeft() + 10, redSquare.getTop() + 10, in testChangeClipBounds() 56 redSquare.getRight() - 10, redSquare.getBottom() - 10); in testChangeClipBounds() 59 assertNull(redSquare.getClipBounds()); in testChangeClipBounds() 61 redSquare.setClipBounds(newClip); in testChangeClipBounds() 64 PollingCheck.waitFor(isMiddleOfClipping(redSquare, newClip)); in testChangeClipBounds() 68 final Rect endRect = redSquare.getClipBounds(); in testChangeClipBounds() 76 redSquare.setClipBounds(null); in testChangeClipBounds() 79 PollingCheck.waitFor(isMiddleOfClipping(redSquare, newClip)); in testChangeClipBounds() 82 mActivityRule.runOnUiThread(() -> assertNull(redSquare.getClipBounds())); in testChangeClipBounds() [all …]
|
D | ChangeTransformTest.java | 58 final View redSquare = mActivity.findViewById(R.id.redSquare); in testTranslation() local 62 redSquare.setTranslationX(500); in testTranslation() 63 redSquare.setTranslationY(600); in testTranslation() 71 assertEquals(500f, redSquare.getTranslationX(), 0.0f); in testTranslation() 72 assertEquals(600f, redSquare.getTranslationY(), 0.0f); in testTranslation() 79 final View redSquare = mActivity.findViewById(R.id.redSquare); in testRotation() local 83 redSquare.setRotation(45); in testRotation() 91 assertEquals(45f, redSquare.getRotation(), 0.0f); in testRotation() 98 final View redSquare = mActivity.findViewById(R.id.redSquare); in testScale() local 102 redSquare.setScaleX(2f); in testScale() [all …]
|
D | ExplodeTest.java | 63 final View redSquare = mActivity.findViewById(R.id.redSquare); in testExplode() local 68 final List<PointF> redPoints = captureTranslations(redSquare); in testExplode() 75 redSquare.setVisibility(View.INVISIBLE); in testExplode() 82 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testExplode() 93 verifyNoTranslation(redSquare); in testExplode() 97 assertEquals(View.INVISIBLE, redSquare.getVisibility()); in testExplode() 106 final View redSquare = mActivity.findViewById(R.id.redSquare); in testImplode() local 111 final List<PointF> redPoints = captureTranslations(redSquare); in testImplode() 117 redSquare.setVisibility(View.INVISIBLE); in testImplode() 126 redSquare.setVisibility(View.VISIBLE); in testImplode() [all …]
|
D | ActivityTransitionTest.java | 151 R.id.redSquare, R.id.greenSquare, R.id.blueSquare, R.id.yellowSquare); in viewsNotStripped() 156 R.id.redSquare, R.id.greenSquare, R.id.blueSquare, R.id.yellowSquare); in viewsNotStripped() 158 assertTargetContains(mExitTransition, R.id.redSquare, R.id.greenSquare, R.id.yellowSquare); in viewsNotStripped() 161 assertEquals(View.VISIBLE, targetActivity.findViewById(R.id.redSquare).getVisibility()); in viewsNotStripped() 165 assertEquals(1, targetActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsNotStripped() 179 R.id.redSquare, R.id.greenSquare, R.id.blueSquare, R.id.yellowSquare); in viewsNotStripped() 183 R.id.redSquare, R.id.greenSquare, R.id.yellowSquare); in viewsNotStripped() 189 R.id.redSquare, R.id.greenSquare, R.id.blueSquare, R.id.yellowSquare); in viewsNotStripped() 193 R.id.redSquare, R.id.greenSquare, R.id.yellowSquare); in viewsNotStripped() 195 assertEquals(View.VISIBLE, mActivity.findViewById(R.id.redSquare).getVisibility()); in viewsNotStripped() [all …]
|
D | SlideEdgeTest.java | 84 final View redSquare = mActivity.findViewById(R.id.redSquare); in testSlideOut() local 88 final List<PointF> redPoints = captureTranslations(redSquare); in testSlideOut() 94 redSquare.setVisibility(View.INVISIBLE); in testSlideOut() 101 assertEquals(View.VISIBLE, redSquare.getVisibility()); in testSlideOut() 118 verifyNoTranslation(redSquare); in testSlideOut() 121 assertEquals(View.INVISIBLE, redSquare.getVisibility()); in testSlideOut() 140 final View redSquare = mActivity.findViewById(R.id.redSquare); in testSlideIn() local 145 final List<PointF> redPoints = captureTranslations(redSquare); in testSlideIn() 150 redSquare.setVisibility(View.INVISIBLE); in testSlideIn() 159 redSquare.setVisibility(View.VISIBLE); in testSlideIn() [all …]
|
D | SceneTest.java | 61 View redSquare = mActivity.findViewById(R.id.redSquare); in testDynamicConstructor() local 62 assertNotNull(redSquare); in testDynamicConstructor() 65 assertNotNull(mSceneRoot.findViewById(R.id.redSquare)); in testDynamicConstructor() 69 assertNull(mSceneRoot.findViewById(R.id.redSquare)); in testDynamicConstructor() 120 View redSquare = mActivity.findViewById(R.id.redSquare); in constructorTest() local 121 assertNotNull(redSquare); in constructorTest() 124 assertNotNull(mSceneRoot.findViewById(R.id.redSquare)); in constructorTest()
|
D | FadeTest.java | 130 final View redSquare = mActivity.findViewById(R.id.redSquare); in testFadeOutTransition() local 131 final Bitmap redSquareBitmap = createViewBitmap(redSquare); in testFadeOutTransition() 135 final int startWidth = redSquare.getWidth(); in testFadeOutTransition() 136 final int startHeight = redSquare.getHeight(); in testFadeOutTransition() 145 assertNotSame(view, redSquare); in testFadeOutTransition() 172 sceneRoot.removeView(redSquare); in testFadeOutTransition() 173 container.addView(redSquare); in testFadeOutTransition() 192 assertNotNull(mActivity.findViewById(R.id.redSquare)); in endVisibilityIsCorrect() 200 assertNotNull(mActivity.findViewById(R.id.redSquare)); in endVisibilityIsCorrect() 204 assertNotNull(mActivity.findViewById(R.id.redSquare)); in endVisibilityIsCorrect()
|
D | TransitionTest.java | 147 mTransition.addTarget(R.id.redSquare); in testRemoveTargetId() 150 mTransition.removeTarget(R.id.redSquare); in testRemoveTargetId() 214 target[2] = mActivity.findViewById(R.id.redSquare); in testRemoveTargetView() 243 assertEquals(R.id.redSquare, mTargets.get(0).getId()); in testAddTargetName() 261 assertEquals(R.id.redSquare, mTargets.get(0).getId()); in testRemoveTargetName() 373 View redSquare1 = layout1.findViewById(R.id.redSquare); in testExcludeTargetView() 388 mTransition.excludeTarget(R.id.redSquare, true); in testExcludeTargetId() 396 mTransition.excludeTarget(R.id.redSquare, false); // remove it in testExcludeTargetId() 473 View redSquare = mActivity.findViewById(R.id.redSquare); in testInterpolator() local 483 Animator animator = transition.animators.get(redSquare); in testInterpolator() [all …]
|
D | VisibilityTest.java | 104 final View redSquare = mActivity.findViewById(R.id.redSquare); in testIsVisible() local 105 TransitionValues visibleValues = new TransitionValues(redSquare); in testIsVisible() 109 mActivityRule.runOnUiThread(() -> redSquare.setVisibility(View.INVISIBLE)); in testIsVisible() 111 TransitionValues invisibleValues = new TransitionValues(redSquare); in testIsVisible() 115 mActivityRule.runOnUiThread(() -> redSquare.setVisibility(View.GONE)); in testIsVisible() 117 TransitionValues goneValues = new TransitionValues(redSquare); in testIsVisible()
|
D | PropagationTest.java | 44 mActivity.findViewById(R.id.redSquare)); in testCircularPropagation() 72 long redDelay = getDelay(R.id.redSquare); in testCircularPropagation() 104 long redDelay = getDelay(R.id.redSquare); 140 long redDelay = getDelay(R.id.redSquare); in testSidePropagationTop() 172 long redDelay = getDelay(R.id.redSquare); in testSidePropagationRight() 204 long redDelay = getDelay(R.id.redSquare); in testSidePropagationLeft()
|
D | TransitionManagerTest.java | 70 assertNotNull(mActivity.findViewById(R.id.redSquare)); in testBeginDelayedTransition() 105 final View viewBeforeTransition = mActivity.findViewById(R.id.redSquare); in watchForRedSquareMoving() 116 final View view = mActivity.findViewById(R.id.redSquare); in watchForRedSquareMoving() 163 assertNotNull(mActivity.findViewById(R.id.redSquare)); in testGo() 213 assertNotNull(mActivity.findViewById(R.id.redSquare)); in testSetTransition1()
|
D | ChangeBoundsTest.java | 296 validateViewPlacement(R.id.redSquare, R.id.greenSquare, SMALL_SQUARE_SIZE_DP); in validateInScene1() 300 validateViewPlacement(R.id.greenSquare, R.id.redSquare, LARGE_SQUARE_SIZE_DP); in validateInScene6() 429 mRedSquare = mActivity.findViewById(R.id.redSquare); in onDraw() 461 View redView = activity.findViewById(R.id.redSquare); in RedAndGreen() 463 View greenView = activity.findViewById(R.id.redSquare); in RedAndGreen()
|
D | CaptureValuesTest.java | 66 set.addTarget(mActivity.findViewById(R.id.redSquare)); in testCaptureValues()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | ActivityTransitionActivity.java | 138 transition.addListener(new VisibilityCheck(R.id.redSquare, visibility)); in createVisibilityTransition() 145 transition.addListener(new VisibilityCheck(R.id.redSquare, propertyName)); in createVisibilityTransition()
|
/cts/tests/fragment/src/android/fragment/cts/ |
D | FragmentTransitionTest.java | 831 return mActivityRule.getActivity().findViewById(R.id.redSquare); in findRed()
|