/cts/tests/tests/rsblas/assets/ |
D | blas_gen.py | 323 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/ |
D | SweepGradientTest.java | 110 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()
|
D | NinePatchTest.java | 99 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()
|
D | BlurMaskFilterTest.java | 80 assertEquals(Color.alpha(expected), Color.alpha(actual), alphaTolerance); in checkColor()
|
D | ColorMatrixColorFilterTest.java | 102 assertEquals(Color.alpha(expected), Color.alpha(actual), tolerance); in assertColor()
|
D | ColorTest.java | 24 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha() 25 assertEquals(0xff, Color.alpha(Color.YELLOW)); in testAlpha()
|
D | LightingColorFilterTest.java | 84 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); in assertColor()
|
D | BitmapFactoryTest.java | 398 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/ |
D | intrinsic_lut.rs | 22 short alpha[256]; 29 tmp.a = alpha[in.a];
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ShapeHolder.java | 84 public void setAlpha(float alpha) { in setAlpha() argument 85 this.mAlpha = alpha; in setAlpha() 86 mShape.setAlpha((int)((alpha * 255f) + .5f)); in setAlpha()
|
D | EvaluatorTest.java | 74 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/ |
D | AnimationTest.java | 67 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 …]
|
D | AlphaAnimationTest.java | 33 XmlResourceParser parser = mContext.getResources().getAnimation(R.anim.alpha); in testConstructor()
|
D | AnimationSetTest.java | 363 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/ |
D | layered_filter_f32_helper.rsh | 98 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;
|
D | layered_filter_fast_f32.rs | 241 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/ |
D | ColorStateListTest.java | 91 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/ |
D | WeightedPixelDifference.java | 62 error += Math.abs(Color.alpha(color1) - Color.alpha(color2)); in errorBetweenPixels()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 81 + Color.alpha(expectedPixelColor) + "," in assertAllPixelsOfColor() 86 + Color.alpha(actualPixelColor) + "," in assertAllPixelsOfColor()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | WindowManager_LayoutParamsTest.java | 117 params.alpha = ALPHA - 0.5f; in testCopyFrom() 128 assertEquals(params.alpha, mLayoutParams.alpha); in testCopyFrom()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightStatusBarTests.java | 214 int bgAlpha = Color.alpha(background); in mixSrcOver() 219 int fgAlpha = Color.alpha(foreground); in mixSrcOver()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTestUtils.java | 166 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
|
D | CustomDrawableTest.java | 75 public void setAlpha(int alpha) { in setAlpha() argument
|
/cts/tests/tests/widget/src/android/widget/cts/util/ |
D | TestUtils.java | 174 int sourceAlpha = Color.alpha(rowPixels[column]); in assertAllPixelsOfColor() 179 int expectedAlpha = Color.alpha(color); in assertAllPixelsOfColor()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | GalleryTest.java | 147 private void checkUnselectedAlpha(MyGallery gallery, float alpha) { in checkUnselectedAlpha() argument 152 gallery.setUnselectedAlpha(alpha); in checkUnselectedAlpha() 158 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()
|