/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 148 assertIsRunningAnimation(transformation1.getAlpha()); in assertChildrenDelay() 149 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 150 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 156 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 157 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 158 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 164 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 165 assertIsRunningAnimation(transformation2.getAlpha()); in assertChildrenDelay() 166 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 172 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() [all …]
|
D | LayoutAnimationControllerTest.java | 108 assertIsRunningAnimation(transformation1.getAlpha()); in testAccessOrder() 109 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 110 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 116 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 117 assertIsRunningAnimation(transformation2.getAlpha()); in testAccessOrder() 118 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 124 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 125 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 126 assertIsRunningAnimation(transformation3.getAlpha()); in testAccessOrder() 149 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() [all …]
|
D | AlphaAnimationTest.java | 76 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 79 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 82 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 85 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 89 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 92 assertEquals(0.2f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 95 assertEquals(0.55f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 98 assertEquals(0.9f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
|
D | TransformationTest.java | 58 assertEquals(0.4f * 0.5f, t2.getAlpha(), COMPARISON_DELTA); in testCompose() 66 assertEquals(0.4f * 0.5f * 0.5f, t2.getAlpha(), COMPARISON_DELTA); in testCompose() 89 assertNotSame(expected.getAlpha(), actual.getAlpha()); in assertTransformationNotSame() 95 assertEquals(expected.getAlpha(), actual.getAlpha(), COMPARISON_DELTA); in assertTransformationEquals() 134 assertEquals(0.0f, transformation.getAlpha(), 0.0f); in testAccessAlpha() 137 assertEquals(0.5f, transformation.getAlpha(), 0.0f); in testAccessAlpha() 140 assertEquals(1.0f, transformation.getAlpha(), 0.0f); in testAccessAlpha()
|
D | DecelerateInterpolatorTest.java | 107 float alpha1 = transformation.getAlpha(); in testDecelerateInterpolator() 111 float alpha2 = transformation.getAlpha(); in testDecelerateInterpolator() 114 float alpha3 = transformation.getAlpha(); in testDecelerateInterpolator() 117 float alpha4 = transformation.getAlpha(); in testDecelerateInterpolator() 120 float alpha5 = transformation.getAlpha(); in testDecelerateInterpolator() 141 float alpha6 = transformation.getAlpha(); in testDecelerateInterpolator() 145 float alpha7 = transformation.getAlpha(); in testDecelerateInterpolator() 148 float alpha8 = transformation.getAlpha(); in testDecelerateInterpolator() 151 float alpha9 = transformation.getAlpha(); in testDecelerateInterpolator() 154 float alpha10 = transformation.getAlpha(); in testDecelerateInterpolator()
|
D | CycleInterpolatorTest.java | 96 final float alpha1 = transformation.getAlpha(); in testCycleInterpolator() 100 final float alpha2 = transformation.getAlpha(); in testCycleInterpolator() 104 final float alpha3 = transformation.getAlpha(); in testCycleInterpolator() 107 final float alpha4 = transformation.getAlpha(); in testCycleInterpolator() 111 final float alpha5 = transformation.getAlpha(); in testCycleInterpolator() 135 final float alpha6 = transformation.getAlpha(); in testCycleInterpolator() 139 final float alpha7 = transformation.getAlpha(); in testCycleInterpolator() 143 final float alpha8 = transformation.getAlpha(); in testCycleInterpolator() 146 final float alpha9 = transformation.getAlpha(); in testCycleInterpolator() 150 final float alpha10 = transformation.getAlpha(); in testCycleInterpolator() [all …]
|
D | AccelerateInterpolatorTest.java | 104 float alpha1 = transformation.getAlpha(); in testAccelerateInterpolator() 108 float alpha2 = transformation.getAlpha(); in testAccelerateInterpolator() 111 float alpha3 = transformation.getAlpha(); in testAccelerateInterpolator() 114 float alpha4 = transformation.getAlpha(); in testAccelerateInterpolator() 117 float alpha5 = transformation.getAlpha(); in testAccelerateInterpolator() 138 float alpha6 = transformation.getAlpha(); in testAccelerateInterpolator() 142 float alpha7 = transformation.getAlpha(); in testAccelerateInterpolator() 145 float alpha8 = transformation.getAlpha(); in testAccelerateInterpolator() 148 float alpha9 = transformation.getAlpha(); in testAccelerateInterpolator() 151 float alpha10 = transformation.getAlpha(); in testAccelerateInterpolator()
|
D | AnimationTest.java | 163 float alpha = transformation.getAlpha(); in testAccessFill() 170 alpha = transformation.getAlpha(); in testAccessFill() 183 alpha = transformation.getAlpha(); in testAccessFill() 189 alpha = transformation.getAlpha(); in testAccessFill() 202 alpha = transformation.getAlpha(); in testAccessFill() 208 alpha = transformation.getAlpha(); in testAccessFill() 262 float alpha1 = transformation.getAlpha(); in testRepeatAnimation() 266 float alpha2 = transformation.getAlpha(); in testRepeatAnimation() 269 float alpha3 = transformation.getAlpha(); in testRepeatAnimation() 279 float alpha4 = transformation.getAlpha(); in testRepeatAnimation() [all …]
|
D | LinearInterpolatorTest.java | 104 final float alpha1 = transformation.getAlpha(); in testLinearInterpolator() 108 final float alpha2 = transformation.getAlpha(); in testLinearInterpolator() 111 final float alpha3 = transformation.getAlpha(); in testLinearInterpolator() 114 final float alpha4 = transformation.getAlpha(); in testLinearInterpolator() 117 final float alpha5 = transformation.getAlpha(); in testLinearInterpolator() 120 final float alpha6 = transformation.getAlpha(); in testLinearInterpolator()
|
D | AccelerateDecelerateInterpolatorTest.java | 98 float alpha1 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 102 float alpha2 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 105 float alpha3 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 108 float alpha4 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 111 float alpha5 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewOutlineProviderTest.java | 70 assertEquals(0f, outline.getAlpha(), 0f); in testBackground() 83 assertEquals(0.123f, outline.getAlpha(), 0f); in testBackground() 99 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testBounds() 105 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testBounds() 122 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testPaddedBounds() 128 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testPaddedBounds()
|
/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 | AnimatedVectorDrawableTest.java | 166 int restoreAlpha = d1.getAlpha(); in testMutate() 169 int originalAlpha = d2.getAlpha(); in testMutate() 176 assertEquals(newAlpha, d1.getAlpha()); in testMutate() 177 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 178 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 182 assertEquals(0x40, d1.getAlpha()); in testMutate() 183 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 184 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 187 assertEquals(0x40, d1.getAlpha()); in testMutate() 188 assertEquals(0x20, d2.getAlpha()); in testMutate() [all …]
|
D | VectorDrawableTest.java | 353 int restoreAlpha = d1.getAlpha(); in testMutate() 358 assertEquals(0x80, d1.getAlpha()); in testMutate() 359 assertEquals(0x80, d2.getAlpha()); in testMutate() 360 assertEquals(0x80, d3.getAlpha()); in testMutate() 364 assertEquals(0x40, d1.getAlpha()); in testMutate() 365 assertEquals(0x80, d2.getAlpha()); in testMutate() 366 assertEquals(0x80, d3.getAlpha()); in testMutate() 371 assertEquals(0x00, d2.getAlpha()); in testMutate() 374 assertEquals(0x40, d1.getAlpha()); in testMutate() 375 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 | 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 | 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 | StateListDrawableTest.java | 407 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate() 408 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate() 409 assertEquals(255, ((BitmapDrawable) d3.getCurrent()).getPaint().getAlpha()); in testMutate()
|
/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/transition/src/android/transition/cts/ |
D | ActivityTransitionTest.java | 165 assertEquals(1, targetActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsNotStripped() 166 assertEquals(1, targetActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsNotStripped() 167 assertEquals(1, targetActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsNotStripped() 199 assertEquals(1, mActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsNotStripped() 200 assertEquals(1, mActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsNotStripped() 201 assertEquals(1, mActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsNotStripped() 238 assertEquals(1, targetActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsStripped() 239 assertEquals(1, targetActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsStripped() 240 assertEquals(1, targetActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsStripped() 270 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/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | EdgeEffectTests.java | 215 int oldAlpha = captor.getValue().getAlpha(); in verifyAlpha() 221 int newAlpha = captor.getValue().getAlpha(); in verifyAlpha()
|