/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/uirendering/src/android/uirendering/cts/testclasses/ |
D | BlendModeTest.java | 180 int alpha = (Color.alpha(DST_COLOR) * Color.alpha(Color.BLUE)) / 255; in testBlendMode_MODULATE() local 184 int resultColor = Color.argb(alpha, red, green, blue); in testBlendMode_MODULATE() 195 int alphaDst = Color.alpha(DST_COLOR); in testBlendMode_OVERLAY() 196 int alphaSrc = Color.alpha(SRC_COLOR); in testBlendMode_OVERLAY() 207 int alpha = (alphaSrc + alphaDst) - (alphaSrc * alphaDst) / 255; in testBlendMode_OVERLAY() local 211 int result = Color.argb(alpha, red, green, blue); in testBlendMode_OVERLAY() 226 int alphaDst = Color.alpha(DST_COLOR); in testBlendMode_DARKEN() 227 int alphaSrc = Color.alpha(SRC_COLOR); in testBlendMode_DARKEN() 253 int alphaDst = Color.alpha(DST_COLOR); in testBlendMode_LIGHTEN() 254 int alphaSrc = Color.alpha(SRC_COLOR); in testBlendMode_LIGHTEN() [all …]
|
D | HardwareRendererTests.kt | 102 val alpha = channels[channelIndex++].toInt() and 0xFF in <lambda>() constant 103 pixels[pixelIndex++] = Color.argb(alpha, red, green, blue) in <lambda>() 184 val alpha = buffer.get() in testBasicDrawCpuConsumer() constant 188 assertEquals(0xFF.toByte(), alpha, "alpha") in testBasicDrawCpuConsumer() 390 outline.alpha = 1f in testSpotShadowSetup() 466 val alpha = buffer.get().toInt() and 0xFF in testLotsOfBuffers() constant 473 assertEquals(255, alpha, "alpha") in testLotsOfBuffers()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 53 String alpha = verifyChannel("alpha", expected, observed, tolerance, (i) -> Color.alpha(i)); in verifyColor() local 55 buildErrorString(s, red, green, blue, alpha); in verifyColor() 59 @Nullable String green, @Nullable String blue, @Nullable String alpha) { in buildErrorString() argument 61 for (String channel : new String[]{red, green, blue, alpha}) { in buildErrorString() 101 String alpha = verifyChannel("alpha", expected, observed, tolerance, (c) -> c.alpha()); in verifyColor() local 103 buildErrorString(msg, red, green, blue, alpha); in verifyColor()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ColorUtils.java | 53 String alpha = verifyChannel("alpha", expected, observed, tolerance, (i) -> Color.alpha(i)); in verifyColor() local 55 buildErrorString(s, red, green, blue, alpha); in verifyColor() 59 @Nullable String green, @Nullable String blue, @Nullable String alpha) { in buildErrorString() argument 61 for (String channel : new String[]{red, green, blue, alpha}) { in buildErrorString() 101 String alpha = verifyChannel("alpha", expected, observed, tolerance, (c) -> c.alpha()); in verifyColor() local 103 buildErrorString(msg, red, green, blue, alpha); in verifyColor()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Color_ColorLongTest.java | 18 import static android.graphics.Color.alpha; 77 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f)), 0.01f); in testAlpha() 78 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f, p3)), 0.01f); in testAlpha() 138 assertEquals(0.5f, color1.alpha(), 0.01f); in testValueOf() 145 assertEquals(1.0f, color2.alpha(), 0.01f); in testValueOf() 152 assertEquals(0.25f, color3.alpha(), 0.01f); in testValueOf() 159 assertEquals(0.25f, color4.alpha(), 0.01f); in testValueOf() 167 assertEquals(0.25f, color5.alpha(), 0.01f); in testValueOf() 175 assertEquals(0.25f, color6.alpha(), 0.01f); in testValueOf() 182 assertEquals(0.25f, color7.alpha(), 0.01f); in testValueOf() [all …]
|
D | NinePatchTest.java | 135 final int alpha = 128; in testDraw() local 137 p.setAlpha(alpha); in testDraw() 139 verifyBitmapWithAlpha(expected, bitmap, alpha); in testDraw() 147 verifyBitmapWithAlpha(expected, bitmap, alpha); in testDraw() 150 private void verifyBitmapWithAlpha(Bitmap expected, Bitmap bitmap, int alpha) { in verifyBitmapWithAlpha() argument 160 int expectedAlpha = Color.alpha(expectedPixel); in verifyBitmapWithAlpha() 161 int actualAlpha = Color.alpha(actualPixel); in verifyBitmapWithAlpha() 165 assertEquals(expectedAlpha * alpha / ALPHA_OPAQUE, actualAlpha, 1); in verifyBitmapWithAlpha()
|
D | SweepGradientTest.java | 127 int alpha = (int) ((1d - delta) * Color.alpha(colors[i1]) + in verifyColors() local 128 delta * Color.alpha(colors[i2])); in verifyColors() 135 color = Color.argb(alpha, red, green, blue); in verifyColors() 141 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in verifyColors()
|
D | BlurMaskFilterTest.java | 84 assertEquals(Color.alpha(expected), Color.alpha(actual), alphaTolerance); in verifyColor()
|
/cts/tests/tests/location/src/android/location/cts/psedorange/ |
D | IonosphericModel.java | 59 double[] alpha, in ionoKloboucharCorrectionSeconds() argument 101 double amplitudeOfDelaySeconds = alpha[IONO_0_IDX] + alpha[IONO_1_IDX] * geomLatIPPSemiCircle in ionoKloboucharCorrectionSeconds() 102 + alpha[IONO_2_IDX] * geomLatIPPSemiCircle * geomLatIPPSemiCircle + alpha[IONO_3_IDX] in ionoKloboucharCorrectionSeconds()
|
D | UserPositionVelocityWeightedLeastSquare.java | 527 double[] alpha = in calculateSatPosAndPseudorangeResidual() local 528 {navMeassageProto.iono.alpha[0], navMeassageProto.iono.alpha[1], in calculateSatPosAndPseudorangeResidual() 529 navMeassageProto.iono.alpha[2], navMeassageProto.iono.alpha[3]}; in calculateSatPosAndPseudorangeResidual() 546 alpha, in calculateSatPosAndPseudorangeResidual() 573 double[] alpha, in calculateSatPosAndResiduals() argument 622 alpha, in calculateSatPosAndResiduals()
|
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelColor.java | 42 short alpha = (short) ((color >> 24) & 0xFF); in PixelColor() local 47 mMinAlpha = (short) getMinValue(alpha); in PixelColor() 48 mMaxAlpha = (short) getMaxValue(alpha); in PixelColor()
|
D | PixelChecker.java | 69 final int alpha = scanline[i + 3] & 0xFF; in validatePlane() local 71 if (alpha <= maxAlpha in validatePlane() 72 && alpha >= minAlpha in validatePlane()
|
D | RectChecker.java | 91 final int alpha = scanline[i + 3] & 0xFF; in validatePlaneForTarget() local 93 if (alpha <= maxAlpha in validatePlaneForTarget() 94 && alpha >= minAlpha in validatePlaneForTarget()
|
/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 | 100 int aSTART = Color.alpha(START); in testArgbEvaluator() 104 int aEND = Color.alpha(END); in testArgbEvaluator() 112 int aResult = Color.alpha(result); in testArgbEvaluator() 122 aResult = Color.alpha(result); in testArgbEvaluator() 140 aResult = Color.alpha(result); in testArgbEvaluator()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTestUtils.java | 177 if (Color.alpha(idealColor) + Color.alpha(givenColor) == 0) { in compareImages() 181 float idealAlpha = Color.alpha(idealColor) / 255.0f; in compareImages() 182 float givenAlpha = Color.alpha(givenColor) / 255.0f; in compareImages() 192 totalError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTest.java | 98 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.alpha); in testConstructor() 163 float alpha = transformation.getAlpha(); in testAccessFill() local 164 assertEquals(0.1f, alpha, COMPARISON_DELTA); // issue 1698355 in testAccessFill() 170 alpha = transformation.getAlpha(); in testAccessFill() 171 assertEquals(0.9f, alpha, COMPARISON_DELTA); // issue 1698355 in testAccessFill() 183 alpha = transformation.getAlpha(); in testAccessFill() 184 assertEquals(1.0f, alpha, COMPARISON_DELTA); in testAccessFill() 189 alpha = transformation.getAlpha(); in testAccessFill() 190 assertEquals(1.0f, alpha, COMPARISON_DELTA); in testAccessFill() 202 alpha = transformation.getAlpha(); in testAccessFill() [all …]
|
/cts/tests/tests/location/src/android/location/cts/suplClient/ |
D | SuplRrlpController.java | 165 double[] alpha = new double[4]; in buildNavMessageProto() local 166 alpha[0] = ionoModel.getAlfa0().getInteger().byteValue() * IONOSPHERIC_ALFA_0_SCALE_FACTOR; in buildNavMessageProto() 167 alpha[1] = ionoModel.getAlfa1().getInteger().byteValue() * IONOSPHERIC_ALFA_1_SCALE_FACTOR; in buildNavMessageProto() 168 alpha[2] = ionoModel.getAlfa2().getInteger().byteValue() * IONOSPHERIC_ALFA_2_SCALE_FACTOR; in buildNavMessageProto() 169 alpha[3] = ionoModel.getAlfa3().getInteger().byteValue() * IONOSPHERIC_ALFA_3_SCALE_FACTOR; in buildNavMessageProto() 170 ionosphericModelProto.alpha = alpha; in buildNavMessageProto()
|
/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;
|
/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/renderscript/src/android/renderscript/cts/ |
D | intrinsic_lut.rscript | 22 short alpha[256]; 29 tmp.a = alpha[in.a];
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointWideGamutVerifier.java | 55 if (!floatCompare(expected.alpha(), actual.alpha(), mEps)) localSuccess = false; in verify()
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 82 + Color.alpha(expectedPixelColor) + "," in assertAllPixelsOfColor() 87 + Color.alpha(actualPixelColor) + "," in assertAllPixelsOfColor()
|
/cts/tests/tests/systemui/src/android/systemui/cts/ |
D | LightBarTests.java | 281 int bgAlpha = Color.alpha(background); in mixSrcOver() 286 int fgAlpha = Color.alpha(foreground); in mixSrcOver() 302 return Math.abs(Color.alpha(c1) - Color.alpha(c2)) < COLOR_COMPONENT_ERROR_MARGIN in isColorSame()
|