Home
last modified time | relevance | path

Searched refs:getAlpha (Results 1 – 25 of 29) sorted by relevance

12

/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java137 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 …]
DAlphaAnimationTest.java53 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()
DLayoutAnimationControllerTest.java100 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 …]
DDecelerateInterpolatorTest.java91 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()
DTransformationTest.java43 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()
DAccelerateInterpolatorTest.java88 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()
DCycleInterpolatorTest.java81 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 …]
DAnimationTest.java125 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 …]
DLinearInterpolatorTest.java86 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()
DAccelerateDecelerateInterpolatorTest.java82 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()
DAnimationSetTest.java318 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); in assertTransformationEquals()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DRotateDrawableTest.java72 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 …]
DAnimatedVectorDrawableTest.java170 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()
DColorDrawableTest.java48 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()
DVectorDrawableTest.java274 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()
DBitmapDrawableTest.java230 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 …]
DScaleDrawableTest.java452 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()
DLayerDrawableTest.java80 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 …]
DStateListDrawableTest.java236 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()
DNinePatchDrawableTest.java159 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()
DClipDrawableTest.java288 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
DInsetDrawableTest.java328 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/
DAbsSeekBarTest.java106 assertEquals(0, drawable.getAlpha()); in testDrawableStateChanged()
110 assertEquals(0xFF, drawable.getAlpha()); in testDrawableStateChanged()
301 public int getAlpha() { in getAlpha() method in AbsSeekBarTest.MockDrawable
DGalleryTest.java156 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); in checkUnselectedAlpha()
158 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()
DImageViewTest.java387 assertEquals(0, drawable.getAlpha()); in testSetAlpha()
390 assertEquals(255, drawable.getAlpha()); in testSetAlpha()
571 public int getAlpha() { in getAlpha() method in ImageViewTest.MockDrawable

12