Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 60) sorted by relevance

123

/cts/tests/tests/rsblas/assets/
Dblas_gen.py323 def L3_xGEMM(fo, alpha, beta, m, n, k): argument
334 d = alpha * a * b + beta * c;
342 d = alpha * a.T * b.T + beta * c;
344 d = alpha * a.H * b.H + beta * c;
347 def L3_xSYMM(fo, alpha, beta, m, n): argument
360 d = alpha * a * b + beta * c;
366 d = alpha * b * a + beta * c;
369 def L3_xHEMM(fo, alpha, beta, m, n): argument
382 d = alpha * a * b + beta * c;
388 d = alpha * b * a + beta * c;
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java110 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + in checkColors() local
111 delta * Color.alpha(colors[i2])); in checkColors()
118 color = Color.argb(alpha, red, green, blue); in checkColors()
124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in checkColors()
DNinePatchTest.java99 final int alpha = 128; in testDraw() local
101 p.setAlpha(alpha); in testDraw()
103 checkBitmapWithAlpha(expected, bitmap, alpha); in testDraw()
111 checkBitmapWithAlpha(expected, bitmap, alpha); in testDraw()
114 private void checkBitmapWithAlpha(Bitmap expected, Bitmap bitmap, int alpha) { in checkBitmapWithAlpha() argument
124 int expectedAlpha = Color.alpha(expectedPixel); in checkBitmapWithAlpha()
125 int actualAlpha = Color.alpha(actualPixel); in checkBitmapWithAlpha()
129 assertEquals(expectedAlpha * alpha / ALPHA_OPAQUE, actualAlpha, 1); in checkBitmapWithAlpha()
DBlurMaskFilterTest.java80 assertEquals(Color.alpha(expected), Color.alpha(actual), alphaTolerance); in checkColor()
DColorMatrixColorFilterTest.java102 assertEquals(Color.alpha(expected), Color.alpha(actual), tolerance); in assertColor()
DColorTest.java24 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha()
25 assertEquals(0xff, Color.alpha(Color.YELLOW)); in testAlpha()
DLightingColorFilterTest.java84 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); in assertColor()
DBitmapFactoryTest.java398 decodeResourceWithReuse(bitmap, R.drawable.alpha, true); in testDecodeReuseHasAlpha()
408 decodeResourceWithReuse(bitmap, R.drawable.alpha, true); in testDecodeReuseHasAlpha()
628 decodeConfigs(R.drawable.alpha, 31, 31, true, false, false); in testConfigs()
704 int grayByte = Color.alpha(gray.getPixel(x, y)); in grayToARGB()
809 private int multiplyAlpha(int color, int alpha) { in multiplyAlpha() argument
810 return (color * alpha + 127) / 255; in multiplyAlpha()
817 final int a1 = Color.alpha(actual); in distance()
818 final int a2 = Color.alpha(expect); in distance()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dintrinsic_lut.rs22 short alpha[256];
29 tmp.a = alpha[in.a];
/cts/tests/tests/animation/src/android/animation/cts/
DShapeHolder.java84 public void setAlpha(float alpha) { in setAlpha() argument
85 this.mAlpha = alpha; in setAlpha()
86 mShape.setAlpha((int)((alpha * 255f) + .5f)); in setAlpha()
DEvaluatorTest.java74 int aRED = Color.alpha(RED); in testArgbEvaluator()
78 int aBLUE = Color.alpha(BLUE); in testArgbEvaluator()
86 int aResult = Color.alpha(result); in testArgbEvaluator()
96 aResult = Color.alpha(result); in testArgbEvaluator()
106 aResult = Color.alpha(result); in testArgbEvaluator()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTest.java67 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.alpha); in testConstructor()
128 float alpha = transformation.getAlpha(); in testAccessFill() local
129 assertEquals(0.1f, alpha, ALPHA_DELTA); // issue 1698355 in testAccessFill()
135 alpha = transformation.getAlpha(); in testAccessFill()
136 assertEquals(0.9f, alpha, ALPHA_DELTA); // issue 1698355 in testAccessFill()
147 alpha = transformation.getAlpha(); in testAccessFill()
148 assertEquals(1.0f, alpha, ALPHA_DELTA); in testAccessFill()
153 alpha = transformation.getAlpha(); in testAccessFill()
154 assertEquals(1.0f, alpha, ALPHA_DELTA); in testAccessFill()
165 alpha = transformation.getAlpha(); in testAccessFill()
[all …]
DAlphaAnimationTest.java33 XmlResourceParser parser = mContext.getResources().getAnimation(R.anim.alpha); in testConstructor()
DAnimationSetTest.java363 final Animation alpha = new AlphaAnimation(0.0f, 1.0f); in testClone() local
364 alpha.setInterpolator(new AccelerateInterpolator()); in testClone()
365 alpha.initialize(INITIAL_SIZE, INITIAL_SIZE, INITIAL_SIZE, INITIAL_SIZE); in testClone()
368 animationSet.addAnimation(alpha); in testClone()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayered_filter_f32_helper.rsh98 result.alpha += weight;
106 float factor = 1.0f / result.alpha;
110 result.alpha = 1.0f;
146 fuzzy.alpha = 1.0f;
182 result.alpha += weight;
190 float fac = 1.0f / result.alpha;
194 result.alpha = 1.0f;
224 p->alpha = 0;
Dlayered_filter_fast_f32.rs241 if (fuzzy->alpha < g_kAlmostOne) {
384 const float capacity = 1.0f - fuzzy->alpha;
389 fuzzy->alpha += factor;
439 fuzzy->alpha = 0;
461 float capacity = 1.0f - fuzzy->alpha;
465 fuzzy->alpha = 1.0f;
486 result.a = fuzzy->alpha;
529 result.a = fuzzy->alpha;
/cts/tests/tests/content/src/android/content/res/cts/
DColorStateListTest.java91 final int alpha = 36; in testWithAlpha() local
92 final ColorStateList c1 = c.withAlpha(alpha); in testWithAlpha()
94 assertEquals(alpha, c1.getDefaultColor() >>> 24); in testWithAlpha()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DWeightedPixelDifference.java62 error += Math.abs(Color.alpha(color1) - Color.alpha(color2)); in errorBetweenPixels()
/cts/tests/tests/view/src/android/view/cts/util/
DDrawingUtils.java81 + Color.alpha(expectedPixelColor) + "," in assertAllPixelsOfColor()
86 + Color.alpha(actualPixelColor) + "," in assertAllPixelsOfColor()
/cts/tests/tests/view/src/android/view/cts/
DWindowManager_LayoutParamsTest.java117 params.alpha = ALPHA - 0.5f; in testCopyFrom()
128 assertEquals(params.alpha, mLayoutParams.alpha); in testCopyFrom()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightStatusBarTests.java214 int bgAlpha = Color.alpha(background); in mixSrcOver()
219 int fgAlpha = Color.alpha(foreground); in mixSrcOver()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java166 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
DCustomDrawableTest.java75 public void setAlpha(int alpha) { in setAlpha() argument
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java174 int sourceAlpha = Color.alpha(rowPixels[column]); in assertAllPixelsOfColor()
179 int expectedAlpha = Color.alpha(color); in assertAllPixelsOfColor()
/cts/tests/tests/widget/src/android/widget/cts/
DGalleryTest.java147 private void checkUnselectedAlpha(MyGallery gallery, float alpha) { in checkUnselectedAlpha() argument
152 gallery.setUnselectedAlpha(alpha); in checkUnselectedAlpha()
158 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()

123