/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 147 assertIsRunningAnimation(transformation1.getAlpha()); in assertChildrenDelay() 148 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 149 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 155 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 156 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 157 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 163 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 164 assertIsRunningAnimation(transformation2.getAlpha()); in assertChildrenDelay() 165 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 171 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() [all …]
|
D | AlphaAnimationTest.java | 75 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 78 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 81 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 84 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 88 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 91 assertEquals(0.2f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 94 assertEquals(0.55f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 97 assertEquals(0.9f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
|
D | LayoutAnimationControllerTest.java | 107 assertIsRunningAnimation(transformation1.getAlpha()); in testAccessOrder() 108 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 109 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 115 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 116 assertIsRunningAnimation(transformation2.getAlpha()); in testAccessOrder() 117 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 123 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 124 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 125 assertIsRunningAnimation(transformation3.getAlpha()); in testAccessOrder() 148 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() [all …]
|
D | TransformationTest.java | 57 assertEquals(0.4f * 0.5f, t2.getAlpha(), COMPARISON_DELTA); in testCompose() 65 assertEquals(0.4f * 0.5f * 0.5f, t2.getAlpha(), COMPARISON_DELTA); in testCompose() 88 assertNotSame(expected.getAlpha(), actual.getAlpha()); in assertTransformationNotSame() 94 assertEquals(expected.getAlpha(), actual.getAlpha(), COMPARISON_DELTA); in assertTransformationEquals() 133 assertEquals(0.0f, transformation.getAlpha(), 0.0f); in testAccessAlpha() 136 assertEquals(0.5f, transformation.getAlpha(), 0.0f); in testAccessAlpha() 139 assertEquals(1.0f, transformation.getAlpha(), 0.0f); in testAccessAlpha()
|
D | DecelerateInterpolatorTest.java | 106 float alpha1 = transformation.getAlpha(); in testDecelerateInterpolator() 110 float alpha2 = transformation.getAlpha(); in testDecelerateInterpolator() 113 float alpha3 = transformation.getAlpha(); in testDecelerateInterpolator() 116 float alpha4 = transformation.getAlpha(); in testDecelerateInterpolator() 119 float alpha5 = transformation.getAlpha(); in testDecelerateInterpolator() 140 float alpha6 = transformation.getAlpha(); in testDecelerateInterpolator() 144 float alpha7 = transformation.getAlpha(); in testDecelerateInterpolator() 147 float alpha8 = transformation.getAlpha(); in testDecelerateInterpolator() 150 float alpha9 = transformation.getAlpha(); in testDecelerateInterpolator() 153 float alpha10 = transformation.getAlpha(); in testDecelerateInterpolator()
|
D | AccelerateInterpolatorTest.java | 103 float alpha1 = transformation.getAlpha(); in testAccelerateInterpolator() 107 float alpha2 = transformation.getAlpha(); in testAccelerateInterpolator() 110 float alpha3 = transformation.getAlpha(); in testAccelerateInterpolator() 113 float alpha4 = transformation.getAlpha(); in testAccelerateInterpolator() 116 float alpha5 = transformation.getAlpha(); in testAccelerateInterpolator() 137 float alpha6 = transformation.getAlpha(); in testAccelerateInterpolator() 141 float alpha7 = transformation.getAlpha(); in testAccelerateInterpolator() 144 float alpha8 = transformation.getAlpha(); in testAccelerateInterpolator() 147 float alpha9 = transformation.getAlpha(); in testAccelerateInterpolator() 150 float alpha10 = transformation.getAlpha(); in testAccelerateInterpolator()
|
D | CycleInterpolatorTest.java | 95 final float alpha1 = transformation.getAlpha(); in testCycleInterpolator() 99 final float alpha2 = transformation.getAlpha(); in testCycleInterpolator() 103 final float alpha3 = transformation.getAlpha(); in testCycleInterpolator() 106 final float alpha4 = transformation.getAlpha(); in testCycleInterpolator() 110 final float alpha5 = transformation.getAlpha(); in testCycleInterpolator() 134 final float alpha6 = transformation.getAlpha(); in testCycleInterpolator() 138 final float alpha7 = transformation.getAlpha(); in testCycleInterpolator() 142 final float alpha8 = transformation.getAlpha(); in testCycleInterpolator() 145 final float alpha9 = transformation.getAlpha(); in testCycleInterpolator() 149 final float alpha10 = transformation.getAlpha(); in testCycleInterpolator() [all …]
|
D | LinearInterpolatorTest.java | 103 final float alpha1 = transformation.getAlpha(); in testLinearInterpolator() 107 final float alpha2 = transformation.getAlpha(); in testLinearInterpolator() 110 final float alpha3 = transformation.getAlpha(); in testLinearInterpolator() 113 final float alpha4 = transformation.getAlpha(); in testLinearInterpolator() 116 final float alpha5 = transformation.getAlpha(); in testLinearInterpolator() 119 final float alpha6 = transformation.getAlpha(); in testLinearInterpolator()
|
D | AnimationTest.java | 162 float alpha = transformation.getAlpha(); in testAccessFill() 169 alpha = transformation.getAlpha(); in testAccessFill() 182 alpha = transformation.getAlpha(); in testAccessFill() 188 alpha = transformation.getAlpha(); in testAccessFill() 201 alpha = transformation.getAlpha(); in testAccessFill() 207 alpha = transformation.getAlpha(); in testAccessFill() 261 float alpha1 = transformation.getAlpha(); in testRepeatAnimation() 265 float alpha2 = transformation.getAlpha(); in testRepeatAnimation() 268 float alpha3 = transformation.getAlpha(); in testRepeatAnimation() 278 float alpha4 = transformation.getAlpha(); in testRepeatAnimation() [all …]
|
D | AccelerateDecelerateInterpolatorTest.java | 97 float alpha1 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 101 float alpha2 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 104 float alpha3 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 107 float alpha4 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 110 float alpha5 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | ViewOutlineProviderTest.java | 69 assertEquals(0f, outline.getAlpha(), 0f); in testBackground() 82 assertEquals(0.123f, outline.getAlpha(), 0f); in testBackground() 98 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testBounds() 104 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testBounds() 121 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testPaddedBounds() 127 assertEquals(0.123f, outline.getAlpha(), 0f); // alpha not changed in testPaddedBounds()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | OutlineTest.java | 39 assertEquals(0.0f, outline.getAlpha(), 0.0f); in testDefaults() 53 assertEquals(0.5f, copy.getAlpha(), 0.0f); 65 assertEquals(1.0f, outline.getAlpha(), 0.0f); 68 assertEquals(0.0f, outline.getAlpha(), 0.0f); 71 assertEquals(0.45f, outline.getAlpha(), 0.0f); 75 assertEquals(4f, outline.getAlpha(), 0.0f); 77 assertEquals(-30f, outline.getAlpha(), 0.0f); 88 assertEquals(0.5f, copy.getAlpha(), 0.0f);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RotateDrawableTest.java | 154 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 157 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 295 int restoreAlpha = d1.getAlpha(); in testMutate() 300 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 301 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 302 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 306 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 307 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 308 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 311 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() [all …]
|
D | AnimatedVectorDrawableTest.java | 154 int restoreAlpha = d1.getAlpha(); in testMutate() 157 int originalAlpha = d2.getAlpha(); in testMutate() 164 assertEquals(newAlpha, d1.getAlpha()); in testMutate() 165 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 166 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 170 assertEquals(0x40, d1.getAlpha()); in testMutate() 171 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 172 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 175 assertEquals(0x40, d1.getAlpha()); in testMutate() 176 assertEquals(0x20, d2.getAlpha()); in testMutate() [all …]
|
D | ColorDrawableTest.java | 60 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 63 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 66 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() 69 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 72 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() 132 assertEquals(2, colorDrawable.getAlpha()); in testInflate()
|
D | VectorDrawableTest.java | 354 int restoreAlpha = d1.getAlpha(); in testMutate() 359 assertEquals(0x80, d1.getAlpha()); in testMutate() 360 assertEquals(0x80, d2.getAlpha()); in testMutate() 361 assertEquals(0x80, d3.getAlpha()); in testMutate() 365 assertEquals(0x40, d1.getAlpha()); in testMutate() 366 assertEquals(0x80, d2.getAlpha()); in testMutate() 367 assertEquals(0x80, d3.getAlpha()); in testMutate() 372 assertEquals(0x00, d2.getAlpha()); in testMutate() 375 assertEquals(0x40, d1.getAlpha()); in testMutate() 376 assertEquals(0x20, d2.getAlpha()); in testMutate() [all …]
|
D | BitmapDrawableTest.java | 277 assertEquals(255, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 280 assertEquals(0, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 283 assertEquals(100, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 287 assertEquals(255, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 290 assertEquals(0, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 516 int restoreAlpha = d1.getAlpha(); in testMutate() 521 assertEquals(100, d1.getPaint().getAlpha()); in testMutate() 522 assertEquals(100, d2.getPaint().getAlpha()); in testMutate() 523 assertEquals(100, d3.getPaint().getAlpha()); in testMutate() 527 assertEquals(200, d1.getPaint().getAlpha()); in testMutate() [all …]
|
D | ScaleDrawableTest.java | 481 int restoreAlpha = d1.getAlpha(); in testMutate() 486 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 487 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 488 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 492 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 493 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 494 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 497 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 498 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 499 assertEquals(50, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | LayerDrawableTest.java | 126 assertEquals(0x88, layerDrawable.getDrawable(0).getAlpha()); in testInflate() 1639 int restoreAlpha = d1.getAlpha(); in testMutate() 1644 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1645 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1646 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1647 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1648 assertEquals(100, ((BitmapDrawable) d3.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1649 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1653 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1654 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() [all …]
|
D | StateListDrawableTest.java | 345 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate() 346 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate() 347 assertEquals(255, ((BitmapDrawable) d3.getCurrent()).getPaint().getAlpha()); in testMutate()
|
D | ClipDrawableTest.java | 326 assertEquals(0, colorDrawable.getAlpha()); in testSetAlpha() 329 assertEquals(128, colorDrawable.getAlpha()); in testSetAlpha() 332 assertEquals(255, colorDrawable.getAlpha()); in testSetAlpha()
|
D | InsetDrawableTest.java | 429 assertEquals("Modified first loaded instance", 128, first.getDrawable().getAlpha()); in testMutate() 430 assertEquals("Did not modify pre-mutate() instance", 255, pre.getDrawable().getAlpha()); in testMutate() 434 assertEquals("Did not modify post-mutate() instance", 255, post.getDrawable().getAlpha()); in testMutate()
|
/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/transition/src/android/transition/cts/ |
D | ActivityTransitionTest.java | 161 assertEquals(1, targetActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsNotStripped() 162 assertEquals(1, targetActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsNotStripped() 163 assertEquals(1, targetActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsNotStripped() 192 assertEquals(1, mActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsNotStripped() 193 assertEquals(1, mActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsNotStripped() 194 assertEquals(1, mActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsNotStripped() 232 assertEquals(1, targetActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsStripped() 233 assertEquals(1, targetActivity.findViewById(R.id.greenSquare).getAlpha(), 0.01f); in viewsStripped() 234 assertEquals(1, targetActivity.findViewById(R.id.holder).getAlpha(), 0.01f); in viewsStripped() 261 assertEquals(1, mActivity.findViewById(R.id.redSquare).getAlpha(), 0.01f); in viewsStripped() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | EdgeEffectTests.java | 201 int oldAlpha = captor.getValue().getAlpha(); in verifyAlpha() 207 int newAlpha = captor.getValue().getAlpha(); in verifyAlpha()
|