Home
last modified time | relevance | path

Searched refs:alpha (Results 1 – 25 of 61) 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/
DColor_ColorLongTest.java26 import static android.graphics.Color.alpha;
74 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f)), 0.01f); in testAlpha()
75 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f, p3)), 0.01f); in testAlpha()
130 assertEquals(0.5f, color1.alpha(), 0.01f); in testValueOf()
137 assertEquals(1.0f, color2.alpha(), 0.01f); in testValueOf()
144 assertEquals(0.25f, color3.alpha(), 0.01f); in testValueOf()
151 assertEquals(0.25f, color4.alpha(), 0.01f); in testValueOf()
159 assertEquals(0.25f, color5.alpha(), 0.01f); in testValueOf()
167 assertEquals(0.25f, color6.alpha(), 0.01f); in testValueOf()
174 assertEquals(0.25f, color7.alpha(), 0.01f); in testValueOf()
[all …]
DSweepGradientTest.java122 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + in verifyColors() local
123 delta * Color.alpha(colors[i2])); in verifyColors()
130 color = Color.argb(alpha, red, green, blue); in verifyColors()
136 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in verifyColors()
DNinePatchTest.java134 final int alpha = 128; in testDraw() local
136 p.setAlpha(alpha); in testDraw()
138 verifyBitmapWithAlpha(expected, bitmap, alpha); in testDraw()
146 verifyBitmapWithAlpha(expected, bitmap, alpha); in testDraw()
149 private void verifyBitmapWithAlpha(Bitmap expected, Bitmap bitmap, int alpha) { in verifyBitmapWithAlpha() argument
159 int expectedAlpha = Color.alpha(expectedPixel); in verifyBitmapWithAlpha()
160 int actualAlpha = Color.alpha(actualPixel); in verifyBitmapWithAlpha()
164 assertEquals(expectedAlpha * alpha / ALPHA_OPAQUE, actualAlpha, 1); in verifyBitmapWithAlpha()
DBlurMaskFilterTest.java82 assertEquals(Color.alpha(expected), Color.alpha(actual), alphaTolerance); in verifyColor()
DColorTest.java32 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha()
33 assertEquals(0xff, Color.alpha(Color.YELLOW)); in testAlpha()
DBitmapFactoryTest.java432 decodeResourceWithReuse(bitmap, R.drawable.alpha, true); in testDecodeReuseHasAlpha()
442 decodeResourceWithReuse(bitmap, R.drawable.alpha, true); in testDecodeReuseHasAlpha()
673 decodeConfigs(R.drawable.alpha, 31, 31, true, false, false); in testConfigs()
686 BitmapFactory.decodeResource(mRes, R.drawable.alpha, options); in testMutableHardwareInDecodeResource()
883 int grayByte = Color.alpha(gray.getPixel(x, y)); in grayToARGB()
986 private static int multiplyAlpha(int color, int alpha) { in multiplyAlpha() argument
987 return (color * alpha + 127) / 255; in multiplyAlpha()
994 final int a1 = Color.alpha(actual); in distance()
995 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.java99 int aSTART = Color.alpha(START); in testArgbEvaluator()
103 int aEND = Color.alpha(END); in testArgbEvaluator()
111 int aResult = Color.alpha(result); in testArgbEvaluator()
121 aResult = Color.alpha(result); in testArgbEvaluator()
139 aResult = Color.alpha(result); in testArgbEvaluator()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java36 assertEquals(s, Color.alpha(expected), Color.alpha(observed), tolerance); in verifyColor()
/cts/tests/tests/view/src/android/view/animation/cts/
DAnimationTest.java97 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.alpha); in testConstructor()
162 float alpha = transformation.getAlpha(); in testAccessFill() local
163 assertEquals(0.1f, alpha, COMPARISON_DELTA); // issue 1698355 in testAccessFill()
169 alpha = transformation.getAlpha(); in testAccessFill()
170 assertEquals(0.9f, alpha, COMPARISON_DELTA); // issue 1698355 in testAccessFill()
182 alpha = transformation.getAlpha(); in testAccessFill()
183 assertEquals(1.0f, alpha, COMPARISON_DELTA); in testAccessFill()
188 alpha = transformation.getAlpha(); in testAccessFill()
189 assertEquals(1.0f, alpha, COMPARISON_DELTA); in testAccessFill()
201 alpha = transformation.getAlpha(); in testAccessFill()
[all …]
/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/view/src/android/view/cts/util/
DDrawingUtils.java82 + Color.alpha(expectedPixelColor) + "," in assertAllPixelsOfColor()
87 + Color.alpha(actualPixelColor) + "," in assertAllPixelsOfColor()
/cts/hostsidetests/theme/src/android/theme/cts/
DColorUtils.java62 public static int argb(int alpha, int red, int green, int blue) { in argb() argument
63 return (alpha << 24) | (red << 16) | (green << 8) | blue; in argb()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/
DCanvasClientDrawable.java38 public void setAlpha(int alpha) {} in setAlpha() argument
/cts/tests/tests/media/src/android/media/cts/
DDecoderTestAacDrc.java216 protected float alpha = 0.95f; field in DecoderTestAacDrc.Biquad
230 a[1] = -2.0f * alpha * (float)Math.cos(omega); in Biquad()
231 a[2] = alpha * alpha; in Biquad()
/cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
DSurfaceTraceReceiver.java53 default void setAlpha(String windowName, float alpha) {} in setAlpha() argument
110 float alpha = d.readFloat(); in parseAlpha() local
111 mObserver.setAlpha(mCurrentWindowName, alpha); in parseAlpha()
/cts/tests/tests/view/src/android/view/cts/
DWindowManager_LayoutParamsTest.java130 params.alpha = ALPHA - 0.5f; in testCopyFrom()
141 assertEquals(params.alpha, mLayoutParams.alpha, 0.0f); in testCopyFrom()
/cts/tests/tests/widget/src/android/widget/cts/util/
DTestUtils.java290 int sourceAlpha = Color.alpha(actualColor); in areColorsTheSameWithTolerance()
295 int expectedAlpha = Color.alpha(expectedColor); in areColorsTheSameWithTolerance()
317 int bgAlpha = Color.alpha(background); in compositeColors()
318 int fgAlpha = Color.alpha(foreground); in compositeColors()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java254 int bgAlpha = Color.alpha(background); in mixSrcOver()
259 int fgAlpha = Color.alpha(foreground); in mixSrcOver()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DCustomDrawableTest.java84 public void setAlpha(int alpha) { in setAlpha() argument
/cts/tests/tests/widget/src/android/widget/cts/
DGalleryTest.java137 private void checkUnselectedAlpha(float alpha) { in checkUnselectedAlpha() argument
142 mGallery.setUnselectedAlpha(alpha); in checkUnselectedAlpha()
148 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()

123