/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 137 assertIsRunningAnimation(transformation1.getAlpha()); in assertChildrenDelay() 138 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 139 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 145 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 146 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 147 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 153 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 154 assertIsRunningAnimation(transformation2.getAlpha()); in assertChildrenDelay() 155 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 161 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() [all …]
|
D | AlphaAnimationTest.java | 53 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 56 assertEquals(0.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 59 assertEquals(0.5f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 62 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 66 assertEquals(1.0f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 69 assertEquals(0.2f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 72 assertEquals(0.55f, transformation.getAlpha(), 0.0001f); in testApplyTransformation() 75 assertEquals(0.9f, transformation.getAlpha(), 0.0001f); in testApplyTransformation()
|
D | LayoutAnimationControllerTest.java | 100 assertIsRunningAnimation(transformation1.getAlpha()); in testAccessOrder() 101 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 102 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 108 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 109 assertIsRunningAnimation(transformation2.getAlpha()); in testAccessOrder() 110 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 116 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 117 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 118 assertIsRunningAnimation(transformation3.getAlpha()); in testAccessOrder() 141 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() [all …]
|
D | DecelerateInterpolatorTest.java | 91 float alpha1 = transformation.getAlpha(); in testDecelerateInterpolator() 95 float alpha2 = transformation.getAlpha(); in testDecelerateInterpolator() 98 float alpha3 = transformation.getAlpha(); in testDecelerateInterpolator() 101 float alpha4 = transformation.getAlpha(); in testDecelerateInterpolator() 104 float alpha5 = transformation.getAlpha(); in testDecelerateInterpolator() 125 float alpha6 = transformation.getAlpha(); in testDecelerateInterpolator() 129 float alpha7 = transformation.getAlpha(); in testDecelerateInterpolator() 132 float alpha8 = transformation.getAlpha(); in testDecelerateInterpolator() 135 float alpha9 = transformation.getAlpha(); in testDecelerateInterpolator() 138 float alpha10 = transformation.getAlpha(); in testDecelerateInterpolator()
|
D | TransformationTest.java | 43 assertEquals(0.4f * 0.5f, t2.getAlpha()); in testCompose() 51 assertEquals(0.4f * 0.5f * 0.5f, t2.getAlpha()); in testCompose() 73 assertNotSame(expected.getAlpha(), actual.getAlpha()); in assertTransformationNotSame() 79 assertEquals(expected.getAlpha(), actual.getAlpha()); in assertTransformationEquals() 115 assertEquals(0.0f, transformation.getAlpha()); in testAccessAlpha() 118 assertEquals(0.5f, transformation.getAlpha()); in testAccessAlpha() 121 assertEquals(1.0f, transformation.getAlpha()); in testAccessAlpha()
|
D | AccelerateInterpolatorTest.java | 88 float alpha1 = transformation.getAlpha(); in testAccelerateInterpolator() 92 float alpha2 = transformation.getAlpha(); in testAccelerateInterpolator() 95 float alpha3 = transformation.getAlpha(); in testAccelerateInterpolator() 98 float alpha4 = transformation.getAlpha(); in testAccelerateInterpolator() 101 float alpha5 = transformation.getAlpha(); in testAccelerateInterpolator() 122 float alpha6 = transformation.getAlpha(); in testAccelerateInterpolator() 126 float alpha7 = transformation.getAlpha(); in testAccelerateInterpolator() 129 float alpha8 = transformation.getAlpha(); in testAccelerateInterpolator() 132 float alpha9 = transformation.getAlpha(); in testAccelerateInterpolator() 135 float alpha10 = transformation.getAlpha(); in testAccelerateInterpolator()
|
D | CycleInterpolatorTest.java | 81 final float alpha1 = transformation.getAlpha(); in testCycyleInterpolator() 85 final float alpha2 = transformation.getAlpha(); in testCycyleInterpolator() 89 final float alpha3 = transformation.getAlpha(); in testCycyleInterpolator() 92 final float alpha4 = transformation.getAlpha(); in testCycyleInterpolator() 96 final float alpha5 = transformation.getAlpha(); in testCycyleInterpolator() 120 final float alpha6 = transformation.getAlpha(); in testCycyleInterpolator() 124 final float alpha7 = transformation.getAlpha(); in testCycyleInterpolator() 128 final float alpha8 = transformation.getAlpha(); in testCycyleInterpolator() 131 final float alpha9 = transformation.getAlpha(); in testCycyleInterpolator() 135 final float alpha10 = transformation.getAlpha(); in testCycyleInterpolator() [all …]
|
D | AnimationTest.java | 125 float alpha = transformation.getAlpha(); in testAccessFill() 132 alpha = transformation.getAlpha(); in testAccessFill() 144 alpha = transformation.getAlpha(); in testAccessFill() 150 alpha = transformation.getAlpha(); in testAccessFill() 162 alpha = transformation.getAlpha(); in testAccessFill() 168 alpha = transformation.getAlpha(); in testAccessFill() 229 float alpha1 = transformation.getAlpha(); in testRepeatAnimation() 233 float alpha2 = transformation.getAlpha(); in testRepeatAnimation() 236 float alpha3 = transformation.getAlpha(); in testRepeatAnimation() 251 float alpha4 = transformation.getAlpha(); in testRepeatAnimation() [all …]
|
D | LinearInterpolatorTest.java | 86 final float alpha1 = transformation.getAlpha(); in testLinearInterpolator() 90 final float alpha2 = transformation.getAlpha(); in testLinearInterpolator() 93 final float alpha3 = transformation.getAlpha(); in testLinearInterpolator() 96 final float alpha4 = transformation.getAlpha(); in testLinearInterpolator() 99 final float alpha5 = transformation.getAlpha(); in testLinearInterpolator() 102 final float alpha6 = transformation.getAlpha(); in testLinearInterpolator()
|
D | AccelerateDecelerateInterpolatorTest.java | 82 float alpha1 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 86 float alpha2 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 89 float alpha3 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 92 float alpha4 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator() 95 float alpha5 = transformation.getAlpha(); in testAccelerateDecelerateInterpolator()
|
D | AnimationSetTest.java | 318 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); in assertTransformationEquals()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | RotateDrawableTest.java | 72 assertEquals(100, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 75 assertEquals(255, ((BitmapDrawable) mRotateDrawable.getDrawable()).getPaint().getAlpha()); in testSetAlpha() 218 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 219 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 220 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 224 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 225 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 226 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 229 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 230 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() [all …]
|
D | AnimatedVectorDrawableTest.java | 170 int originalAlpha = d2.getAlpha(); in testMutate() 177 assertEquals(newAlpha, d1.getAlpha()); in testMutate() 178 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 179 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 183 assertEquals(0x40, d1.getAlpha()); in testMutate() 184 assertEquals(originalAlpha, d2.getAlpha()); in testMutate() 185 assertEquals(originalAlpha, d3.getAlpha()); in testMutate() 188 assertEquals(0x40, d1.getAlpha()); in testMutate() 189 assertEquals(0x20, d2.getAlpha()); in testMutate() 190 assertEquals(originalAlpha, d3.getAlpha()); in testMutate()
|
D | ColorDrawableTest.java | 48 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 51 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 54 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() 57 assertEquals(0, colorDrawable.getAlpha()); in testAccessAlpha() 60 assertEquals(1, colorDrawable.getAlpha()); in testAccessAlpha() 115 assertEquals(2, colorDrawable.getAlpha()); in testInflate()
|
D | VectorDrawableTest.java | 274 int originalAlpha = d2.getAlpha(); in testMutate() 277 assertEquals(0x80, d1.getAlpha()); in testMutate() 278 assertEquals(0x80, d2.getAlpha()); in testMutate() 279 assertEquals(0x80, d3.getAlpha()); in testMutate() 283 assertEquals(0x40, d1.getAlpha()); in testMutate() 284 assertEquals(0x80, d2.getAlpha()); in testMutate() 285 assertEquals(0x80, d3.getAlpha()); in testMutate() 288 assertEquals(0x40, d1.getAlpha()); in testMutate() 289 assertEquals(0x20, d2.getAlpha()); in testMutate() 290 assertEquals(0x20, d3.getAlpha()); in testMutate()
|
D | BitmapDrawableTest.java | 230 assertEquals(255, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 233 assertEquals(0, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 236 assertEquals(100, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 240 assertEquals(255, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 243 assertEquals(0, bitmapDrawable.getPaint().getAlpha()); in testSetAlpha() 429 assertEquals(100, d1.getPaint().getAlpha()); in testMutate() 430 assertEquals(100, d2.getPaint().getAlpha()); in testMutate() 431 assertEquals(100, d3.getPaint().getAlpha()); in testMutate() 435 assertEquals(200, d1.getPaint().getAlpha()); in testMutate() 436 assertEquals(100, d2.getPaint().getAlpha()); in testMutate() [all …]
|
D | ScaleDrawableTest.java | 452 assertEquals(100, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 453 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 454 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 458 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 459 assertEquals(100, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 460 assertEquals(100, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate() 463 assertEquals(200, ((BitmapDrawable) d1.getDrawable()).getPaint().getAlpha()); in testMutate() 464 assertEquals(50, ((BitmapDrawable) d2.getDrawable()).getPaint().getAlpha()); in testMutate() 465 assertEquals(50, ((BitmapDrawable) d3.getDrawable()).getPaint().getAlpha()); in testMutate()
|
D | LayerDrawableTest.java | 80 assertEquals(0x88, layerDrawable.getDrawable(0).getAlpha()); in testInflate() 1562 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1563 assertEquals(100, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1564 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1565 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1566 assertEquals(100, ((BitmapDrawable) d3.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1567 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1571 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1572 assertEquals(200, ((BitmapDrawable) d1.getDrawable(0)).getPaint().getAlpha()); in testMutate() 1573 assertEquals(100, ((BitmapDrawable) d2.getDrawable(0)).getPaint().getAlpha()); in testMutate() [all …]
|
D | StateListDrawableTest.java | 236 assertEquals(100, ((BitmapDrawable) d1.getCurrent()).getPaint().getAlpha()); in testMutate() 237 assertEquals(255, ((BitmapDrawable) d2.getCurrent()).getPaint().getAlpha()); in testMutate() 238 assertEquals(255, ((BitmapDrawable) d3.getCurrent()).getPaint().getAlpha()); in testMutate()
|
D | NinePatchDrawableTest.java | 159 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha() 162 assertEquals(0, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha() 165 assertEquals(0xff, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha() 168 assertEquals(0xfe, mNinePatchDrawable.getPaint().getAlpha()); in testSetAlpha()
|
D | ClipDrawableTest.java | 288 assertEquals(0, mockDrawable.getAlpha()); in testSetAlpha() 291 assertEquals(128, mockDrawable.getAlpha()); in testSetAlpha() 294 assertEquals(255, mockDrawable.getAlpha()); in testSetAlpha() 377 public int getAlpha() { in getAlpha() method in ClipDrawableTest.MockDrawable
|
D | InsetDrawableTest.java | 328 assertEquals("Modified first loaded instance", 128, first.getDrawable().getAlpha()); in testMutate() 329 assertEquals("Did not modify pre-mutate() instance", 255, pre.getDrawable().getAlpha()); in testMutate() 333 assertEquals("Did not modify post-mutate() instance", 255, post.getDrawable().getAlpha()); in testMutate()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | AbsSeekBarTest.java | 106 assertEquals(0, drawable.getAlpha()); in testDrawableStateChanged() 110 assertEquals(0xFF, drawable.getAlpha()); in testDrawableStateChanged() 301 public int getAlpha() { in getAlpha() method in AbsSeekBarTest.MockDrawable
|
D | GalleryTest.java | 156 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); in checkUnselectedAlpha() 158 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()
|
D | ImageViewTest.java | 387 assertEquals(0, drawable.getAlpha()); in testSetAlpha() 390 assertEquals(255, drawable.getAlpha()); in testSetAlpha() 571 public int getAlpha() { in getAlpha() method in ImageViewTest.MockDrawable
|