/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 159 assertIsRunningAnimation(transformation1.getAlpha()); in assertChildrenDelay() 160 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 161 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 167 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 168 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 169 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 175 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 176 assertIsRunningAnimation(transformation2.getAlpha()); in assertChildrenDelay() 177 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 183 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() [all …]
|
D | AlphaAnimationTest.java | 78 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 81 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 84 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 87 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 91 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 94 assertEquals(0.2f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 97 assertEquals(0.55f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 100 assertEquals(0.9f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
|
D | LayoutAnimationControllerTest.java | 119 assertIsRunningAnimation(transformation1.getAlpha()); in testAccessOrder() 120 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 121 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 127 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 128 assertIsRunningAnimation(transformation2.getAlpha()); in testAccessOrder() 129 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 135 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 136 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 137 assertIsRunningAnimation(transformation3.getAlpha()); in testAccessOrder() 160 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() [all …]
|
D | TransformationTest.java | 60 assertEquals(0.4f * 0.5f, t2.getAlpha(), COMPARISON_DELTA); in testCompose() 68 assertEquals(0.4f * 0.5f * 0.5f, t2.getAlpha(), COMPARISON_DELTA); in testCompose() 91 assertNotSame(expected.getAlpha(), actual.getAlpha()); in assertTransformationNotSame() 97 assertEquals(expected.getAlpha(), actual.getAlpha(), COMPARISON_DELTA); in assertTransformationEquals() 136 assertEquals(0.0f, transformation.getAlpha(), 0.0f); in testAccessAlpha() 139 assertEquals(0.5f, transformation.getAlpha(), 0.0f); in testAccessAlpha() 142 assertEquals(1.0f, transformation.getAlpha(), 0.0f); in testAccessAlpha()
|
D | DecelerateInterpolatorTest.java | 118 float alpha1 = transformation.getAlpha(); in testDecelerateInterpolator() 122 float alpha2 = transformation.getAlpha(); in testDecelerateInterpolator() 125 float alpha3 = transformation.getAlpha(); in testDecelerateInterpolator() 128 float alpha4 = transformation.getAlpha(); in testDecelerateInterpolator() 131 float alpha5 = transformation.getAlpha(); in testDecelerateInterpolator() 152 float alpha6 = transformation.getAlpha(); in testDecelerateInterpolator() 156 float alpha7 = transformation.getAlpha(); in testDecelerateInterpolator() 159 float alpha8 = transformation.getAlpha(); in testDecelerateInterpolator() 162 float alpha9 = transformation.getAlpha(); in testDecelerateInterpolator() 165 float alpha10 = transformation.getAlpha(); in testDecelerateInterpolator()
|
D | CycleInterpolatorTest.java | 107 final float alpha1 = transformation.getAlpha(); in testCycleInterpolator() 111 final float alpha2 = transformation.getAlpha(); in testCycleInterpolator() 115 final float alpha3 = transformation.getAlpha(); in testCycleInterpolator() 118 final float alpha4 = transformation.getAlpha(); in testCycleInterpolator() 122 final float alpha5 = transformation.getAlpha(); in testCycleInterpolator() 146 final float alpha6 = transformation.getAlpha(); in testCycleInterpolator() 150 final float alpha7 = transformation.getAlpha(); in testCycleInterpolator() 154 final float alpha8 = transformation.getAlpha(); in testCycleInterpolator() 157 final float alpha9 = transformation.getAlpha(); in testCycleInterpolator() 161 final float alpha10 = transformation.getAlpha(); in testCycleInterpolator() [all …]
|
D | AccelerateInterpolatorTest.java | 115 float alpha1 = transformation.getAlpha(); in testAccelerateInterpolator() 119 float alpha2 = transformation.getAlpha(); in testAccelerateInterpolator() 122 float alpha3 = transformation.getAlpha(); in testAccelerateInterpolator() 125 float alpha4 = transformation.getAlpha(); in testAccelerateInterpolator() 128 float alpha5 = transformation.getAlpha(); in testAccelerateInterpolator() 149 float alpha6 = transformation.getAlpha(); in testAccelerateInterpolator() 153 float alpha7 = transformation.getAlpha(); in testAccelerateInterpolator() 156 float alpha8 = transformation.getAlpha(); in testAccelerateInterpolator() 159 float alpha9 = transformation.getAlpha(); in testAccelerateInterpolator() 162 float alpha10 = transformation.getAlpha(); in testAccelerateInterpolator()
|
D | AnimationTest.java | 173 float alpha = transformation.getAlpha(); in testAccessFill() 180 alpha = transformation.getAlpha(); in testAccessFill() 193 alpha = transformation.getAlpha(); in testAccessFill() 199 alpha = transformation.getAlpha(); in testAccessFill() 212 alpha = transformation.getAlpha(); in testAccessFill() 218 alpha = transformation.getAlpha(); in testAccessFill() 272 float alpha1 = transformation.getAlpha(); in testRepeatAnimation() 276 float alpha2 = transformation.getAlpha(); in testRepeatAnimation() 279 float alpha3 = transformation.getAlpha(); in testRepeatAnimation() 289 float alpha4 = transformation.getAlpha(); in testRepeatAnimation() [all …]
|
D | LinearInterpolatorTest.java | 115 final float alpha1 = transformation.getAlpha(); in testLinearInterpolator() 119 final float alpha2 = transformation.getAlpha(); in testLinearInterpolator() 122 final float alpha3 = transformation.getAlpha(); in testLinearInterpolator() 125 final float alpha4 = transformation.getAlpha(); in testLinearInterpolator() 128 final float alpha5 = transformation.getAlpha(); in testLinearInterpolator() 131 final float alpha6 = transformation.getAlpha(); in testLinearInterpolator()
|
D | AccelerateDecelerateInterpolatorTest.java | 109 float alpha1 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 113 float alpha2 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 116 float alpha3 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 119 float alpha4 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 122 float alpha5 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewOutlineProviderTest.java | 72 assertEquals(0f, outline.getAlpha(), 0f); in testBackground() 85 assertEquals(0.123f, outline.getAlpha(), 0f); in testBackground() 101 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testBounds() 107 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testBounds() 124 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testPaddedBounds() 130 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testPaddedBounds()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | OutlineTest.java | 40 assertEquals(0.0f, outline.getAlpha(), 0.0f); in testDefaults() 54 assertEquals(0.5f, copy.getAlpha(), 0.0f); 66 assertEquals(1.0f, outline.getAlpha(), 0.0f); 69 assertEquals(0.0f, outline.getAlpha(), 0.0f); 72 assertEquals(0.45f, outline.getAlpha(), 0.0f); 76 assertEquals(4f, outline.getAlpha(), 0.0f); 78 assertEquals(-30f, outline.getAlpha(), 0.0f); 89 assertEquals(0.5f, copy.getAlpha(), 0.0f);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RotateDrawableTest.java | 155 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 158 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 296 int restoreAlpha = d1.getAlpha(); in testMutate() 301 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 302 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 303 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 307 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 308 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 309 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 312 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() [all …]
|
D | ColorDrawableTest.java | 62 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 65 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 68 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() 71 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 74 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() 134 assertEquals(2, colorDrawable.getAlpha()); in testInflate()
|
D | AnimatedVectorDrawableTest.java | 175 int restoreAlpha = d1.getAlpha(); in testMutate() 178 int originalAlpha = d2.getAlpha(); in testMutate() 185 assertEquals(newAlpha, d1.getAlpha()); in testMutate() 186 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 187 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 191 assertEquals(0x40, d1.getAlpha()); in testMutate() 192 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 193 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 196 assertEquals(0x40, d1.getAlpha()); in testMutate() 197 assertEquals(0x20, d2.getAlpha()); in testMutate() [all …]
|
D | BitmapDrawableTest.java | 289 assertEquals(255, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 292 assertEquals(0, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 295 assertEquals(100, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 299 assertTrue(0 <= bitmapDrawable.getPaint().getAlpha() in testSetAlpha() 300 && bitmapDrawable.getPaint().getAlpha() <= 255); in testSetAlpha() 303 assertTrue(0 <= bitmapDrawable.getPaint().getAlpha() in testSetAlpha() 304 && bitmapDrawable.getPaint().getAlpha() <= 255); in testSetAlpha() 539 int restoreAlpha = d1.getAlpha(); in testMutate() 544 assertEquals(100, d1.getPaint().getAlpha()); in testMutate() 545 assertEquals(100, d2.getPaint().getAlpha()); in testMutate() [all …]
|
D | VectorDrawableTest.java | 364 final int initialAlpha = d1.getAlpha(); in testMutate() 368 assertEquals(0x40, d1.getAlpha()); in testMutate() 369 assertEquals(initialAlpha, d2.getAlpha()); in testMutate() 370 assertEquals(initialAlpha, d3.getAlpha()); in testMutate() 374 assertEquals(0x40, d1.getAlpha()); in testMutate() 375 assertEquals(0x20, d2.getAlpha()); in testMutate() 376 assertEquals(initialAlpha, d3.getAlpha()); in testMutate() 382 final int restoreAlpha = d.getAlpha(); in testMutatePreservesState() 384 assertNotEquals(0x00, d.getAlpha()); in testMutatePreservesState() 388 assertEquals(0x00, d.getAlpha()); in testMutatePreservesState() [all …]
|
D | ScaleDrawableTest.java | 482 int restoreAlpha = d1.getAlpha(); in testMutate() 487 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 488 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 489 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 493 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 494 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 495 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 498 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 499 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 500 assertEquals(50, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | ColorStateListDrawableTest.java | 116 assertEquals(mDrawable.getAlpha(), 127); in testAlpha() 120 assertEquals(mDrawable.getAlpha(), 0); in testAlpha() 125 assertEquals(mDrawable.getAlpha(), 255); in testAlpha() 129 assertEquals(mDrawable.getAlpha(), 127); in testAlpha()
|
D | LayerDrawableTest.java | 127 assertEquals(0x88, layerDrawable.getDrawable(0).getAlpha()); in testInflate() 1650 int restoreAlpha = d1.getAlpha(); in testMutate() 1655 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1656 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1657 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1658 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1659 assertEquals(100, ((BitmapDrawable) d3.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1660 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1664 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1665 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() [all …]
|
D | NinePatchDrawableTest.java | 194 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha() 197 assertEquals(0, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha() 200 assertTrue(0 <= mNinePatchDrawable.getPaint().getAlpha() in testSetAlpha() 201 && mNinePatchDrawable.getPaint().getAlpha() <= 255); in testSetAlpha() 204 assertTrue(0 <= mNinePatchDrawable.getPaint().getAlpha() in testSetAlpha() 205 && mNinePatchDrawable.getPaint().getAlpha() <= 255); in testSetAlpha()
|
D | ClipDrawableTest.java | 327 assertEquals(0, colorDrawable.getAlpha()); in testSetAlpha() 330 assertEquals(128, colorDrawable.getAlpha()); in testSetAlpha() 333 assertEquals(255, colorDrawable.getAlpha()); in testSetAlpha()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | ActivityTransitionTest.java | 167 assertEquals(1, targetActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsNotStripped() 168 assertEquals(1, targetActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsNotStripped() 169 assertEquals(1, targetActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsNotStripped() 201 assertEquals(1, mActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsNotStripped() 202 assertEquals(1, mActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsNotStripped() 203 assertEquals(1, mActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsNotStripped() 240 assertEquals(1, targetActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsStripped() 241 assertEquals(1, targetActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsStripped() 242 assertEquals(1, targetActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsStripped() 272 assertEquals(1, mActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsStripped() [all …]
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 74 return (color & 0x000000FF) * getAlpha(color) / 255; in getAlphaScaledBlue() 78 return ((color & 0x0000FF00) >> 8) * getAlpha(color) / 255; in getAlphaScaledGreen() 82 return ((color & 0x00FF0000) >> 16) * getAlpha(color) / 255; in getAlphaScaledRed() 85 private static int getAlpha(final int color) { in getAlpha() method in ComparisonTask
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowInsetsAnimationTestBase.java | 221 lastAnimation.getInterpolatedFraction(), lastAnimation.getAlpha())); in onProgress() 279 statusBarAnim.getInterpolatedFraction(), statusBarAnim.getAlpha())); in onProgress() 283 navBarAnim.getInterpolatedFraction(), navBarAnim.getAlpha())); in onProgress() 287 imeAnim.getInterpolatedFraction(), imeAnim.getAlpha())); in onProgress()
|