Home
last modified time | relevance | path

Searched refs:setAlpha (Results 1 – 25 of 38) sorted by relevance

12

/cts/tests/tests/view/src/android/view/animation/cts/
DTransformationTest.java32 t1.setAlpha(0.5f); in testCompose()
33 t2.setAlpha(0.4f); in testCompose()
62 t2.setAlpha(0.0f); in testClear()
105 t1.setAlpha(0.0f); in testSet()
114 transformation.setAlpha(0.0f); in testAccessAlpha()
117 transformation.setAlpha(0.5f); in testAccessAlpha()
120 transformation.setAlpha(1.0f); in testAccessAlpha()
/cts/tests/tests/graphics/src/android/graphics/cts/
DOutlineTest.java46 outline.setAlpha(1.0f);
49 outline.setAlpha(0.0f);
52 outline.setAlpha(0.45f);
56 outline.setAlpha(4f);
58 outline.setAlpha(-30f);
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java84 public void setAlpha(float alpha) { in setAlpha() method in ShapeHolder
86 mShape.setAlpha((int)((alpha * 255f) + .5f)); in setAlpha()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DShapeDrawableTest.java127 shapeDrawable.getPaint().setAlpha(0); in testGetOpacity()
130 shapeDrawable.getPaint().setAlpha(128); in testGetOpacity()
301 shapeDrawable.setAlpha(0); in testSetAlpha()
302 shapeDrawable.setAlpha(255); in testSetAlpha()
303 shapeDrawable.setAlpha(-1); in testSetAlpha()
304 shapeDrawable.setAlpha(256); in testSetAlpha()
DInsetDrawableTest.java203 insetDrawable.setAlpha(1); in testSetAlpha()
204 insetDrawable.setAlpha(-1); in testSetAlpha()
206 insetDrawable.setAlpha(0); in testSetAlpha()
207 insetDrawable.setAlpha(Integer.MAX_VALUE); in testSetAlpha()
208 insetDrawable.setAlpha(Integer.MIN_VALUE); in testSetAlpha()
226 insetDrawable.setAlpha(255); in testGetOpacity()
229 insetDrawable.setAlpha(100); in testGetOpacity()
350 first.mutate().setAlpha(128); in testMutate()
DColorDrawableTest.java50 colorDrawable.setAlpha(128); in testAccessAlpha()
56 colorDrawable.setAlpha(128); in testAccessAlpha()
59 colorDrawable.setAlpha(255); in testAccessAlpha()
DRotateDrawableTest.java125 mRotateDrawable.setAlpha(100); in testSetAlpha()
128 mRotateDrawable.setAlpha(255); in testSetAlpha()
271 d1.setAlpha(100); in testMutate()
277 d1.setAlpha(200); in testMutate()
282 d2.setAlpha(50); in testMutate()
DVectorDrawableTest.java385 d1.setAlpha(0x80); in testMutate()
391 d1.setAlpha(0x40); in testMutate()
396 d2.setAlpha(0x00); in testMutate()
401 d2.setAlpha(0x20); in testMutate()
406 d3.setAlpha(originalAlpha); in testMutate()
437 vectorDrawable.setAlpha(0); in testGetOpacity()
DScaleDrawableTest.java236 scaleDrawable.setAlpha(100); in testSetAlpha()
240 scaleDrawable.setAlpha(Integer.MAX_VALUE); in testSetAlpha()
244 scaleDrawable.setAlpha(-1); in testSetAlpha()
474 d1.setAlpha(100); in testMutate()
480 d1.setAlpha(200); in testMutate()
485 d2.setAlpha(50); in testMutate()
516 public void setAlpha(int alpha) { in setAlpha() method in ScaleDrawableTest.MockDrawable
DBitmapDrawableTest.java259 bitmapDrawable.setAlpha(0); in testSetAlpha()
262 bitmapDrawable.setAlpha(100); in testSetAlpha()
266 bitmapDrawable.setAlpha(-1); in testSetAlpha()
269 bitmapDrawable.setAlpha(256); in testSetAlpha()
315 bitmapDrawable.setAlpha(120); in testGetOpacity()
488 d1.setAlpha(100); in testMutate()
494 d1.setAlpha(200); in testMutate()
498 d2.setAlpha(50); in testMutate()
DDrawableWrapperTest.java241 wrapper.setAlpha(100); in testSetAlpha()
245 wrapper.setAlpha(Integer.MAX_VALUE); in testSetAlpha()
249 wrapper.setAlpha(-1); in testSetAlpha()
403 public void setAlpha(int alpha) { in setAlpha() method in DrawableWrapperTest.MockDrawable
DAnimatedVectorDrawableTest.java218 d1.setAlpha(newAlpha); in testMutate()
224 d1.setAlpha(0x40); in testMutate()
229 d2.setAlpha(0x20); in testMutate()
239 d1.setAlpha(0); in testGetOpacity()
DClipDrawableTest.java287 clipDrawable.setAlpha(0); in testSetAlpha()
290 clipDrawable.setAlpha(128); in testSetAlpha()
293 clipDrawable.setAlpha(255); in testSetAlpha()
373 public void setAlpha(int alpha) { in setAlpha() method in ClipDrawableTest.MockDrawable
DCustomDrawableTest.java75 public void setAlpha(int alpha) { in setAlpha() method in CustomDrawableTest.CustomDrawable
DPictureDrawableTest.java81 pictureDrawable.setAlpha(0); in testSetAlpha()
DStateListDrawableTest.java311 d1.getCurrent().setAlpha(100); in testMutate()
364 public void setAlpha(int alpha) { in setAlpha() method in StateListDrawableTest.MockDrawable
DDrawableContainerTest.java185 dr.setAlpha(0); in testSetAlpha()
193 dr.setAlpha(1); in testSetAlpha()
198 dr.setAlpha(1); in testSetAlpha()
1035 public void setAlpha(int alpha) { in setAlpha() method in DrawableContainerTest.MockDrawable
DNinePatchDrawableTest.java177 mNinePatchDrawable.setAlpha(0); in testSetAlpha()
180 mNinePatchDrawable.setAlpha(-1); in testSetAlpha()
183 mNinePatchDrawable.setAlpha(0xfffe); in testSetAlpha()
DLevelListDrawableTest.java227 public void setAlpha(int alpha) { in setAlpha() method in LevelListDrawableTest.MockDrawable
DLayerDrawableTest.java562 layerDrawable.setAlpha(0); in testSetAlpha()
568 layerDrawable.setAlpha(Integer.MAX_VALUE); in testSetAlpha()
1518 public void setAlpha(int alpha) { in setAlpha() method in LayerDrawableTest.MockDrawable
1664 d1.setAlpha(100); in testMutate()
1673 d1.setAlpha(200); in testMutate()
1681 d2.setAlpha(50); in testMutate()
1862 public void setAlpha(int alpha) { in setAlpha() method in LayerDrawableTest.IntrinsicSizeDrawable
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DLayerTests.java49 paint.setAlpha(128); in testLayerPaintAlpha()
53 view.setAlpha(0.5f); in testLayerPaintAlpha()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/fov/
DCameraPreviewView.java51 mPaint.setAlpha(GRID_ALPHA); in onDraw()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DIntrinsicLut.java47 mIntrinsic.setAlpha(ct, mAlpha[ct]); in createTest()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/presenter/
DIconHeaderItemPresenter.java70 holder.view.setAlpha(mUnselectedAlpha + holder.getSelectLevel() * in onSelectLevelChanged()
/cts/tests/tests/widget/src/android/widget/cts/
DImageViewTest.java567 mImageView.setAlpha(128); in testAlpha()
571 mImageView.setAlpha(0); in testAlpha()
575 mImageView.setAlpha(255); in testAlpha()

12