/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/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/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 …]
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelColor.java | 71 final float alpha = Color.alpha(color); in matchesColor() local 73 return alpha <= mMaxAlpha in matchesColor() 74 && alpha >= mMinAlpha in matchesColor()
|
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()
|
D | PixelChecker.java | 81 final int alpha = scanline[offset + 3] & 0xFF; in matchesColor() local 83 return alpha <= expectedColor.mMaxAlpha in matchesColor() 84 && alpha >= expectedColor.mMinAlpha in matchesColor()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/pseudorange/ |
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()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/view/ |
D | AlphaTestView.java | 62 protected boolean onSetAlpha(int alpha) { in onSetAlpha() argument 63 mPaint.setColor(blendColor(mStartColor, mEndColor, 1.0f - alpha / 255.0f)); in onSetAlpha() 78 float a = (float) Color.alpha(color1) * inverseRatio + (float) Color.alpha(color2) * ratio; in blendColor()
|
/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 | 145 final int alpha = 128; in testDraw() local 147 p.setAlpha(alpha); in testDraw() 149 verifyBitmapWithAlpha(expected, bitmap, alpha); in testDraw() 157 verifyBitmapWithAlpha(expected, bitmap, alpha); in testDraw() 160 private void verifyBitmapWithAlpha(Bitmap expected, Bitmap bitmap, int alpha) { in verifyBitmapWithAlpha() argument 170 int expectedAlpha = Color.alpha(expectedPixel); in verifyBitmapWithAlpha() 171 int actualAlpha = Color.alpha(actualPixel); in verifyBitmapWithAlpha() 175 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()
|
/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()
|
/cts/tests/surfacecontrol/src/android/view/cts/util/ |
D | ASurfaceControlTestUtils.java | 80 public static void setBufferAlpha(long surfaceControl, double alpha) { in setBufferAlpha() argument 82 nSurfaceTransaction_setBufferAlpha(surfaceControl, surfaceTransaction, alpha); in setBufferAlpha() 87 float alpha) { in setColor() argument 89 nSurfaceTransaction_setColor(surfaceControl, surfaceTransaction, red, green, blue, alpha); in setColor() 180 long surfaceTransaction, double alpha); in nSurfaceTransaction_setBufferAlpha() argument 184 long surfaceTransaction, float r, float g, float b, float alpha); in nSurfaceTransaction_setColor() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/analyzers/ |
D | TapLatencyAnalyzer.java | 72 final float alpha = 0.05f; in highPassFilter() local 75 float yn = alpha * yn1 + ((1.0f - alpha) * (xn - xn1)); in highPassFilter()
|
/cts/apps/CameraITS/tests/scene1_2/ |
D | test_yuv_jpeg_all.py | 181 '-ro', alpha=_PLOT_ALPHA, markersize=_PLOT_MARKER_SIZE) 183 '-go', alpha=_PLOT_ALPHA, markersize=_PLOT_MARKER_SIZE) 185 '-bo', alpha=_PLOT_ALPHA, markersize=_PLOT_MARKER_SIZE) 187 '-r^', alpha=_PLOT_ALPHA, markersize=_PLOT_MARKER_SIZE) 189 '-g^', alpha=_PLOT_ALPHA, markersize=_PLOT_MARKER_SIZE) 191 '-b^', alpha=_PLOT_ALPHA, markersize=_PLOT_MARKER_SIZE)
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | DrawableTestUtils.java | 188 if (Color.alpha(idealColor) + Color.alpha(givenColor) == 0) { in compareImages() 192 float idealAlpha = Color.alpha(idealColor) / 255.0f; in compareImages() 193 float givenAlpha = Color.alpha(givenColor) / 255.0f; in compareImages() 203 pixelError += Math.abs(Color.alpha(idealColor) - Color.alpha(givenColor)); in compareImages()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | WindowInsetsAnimationTestBase.java | 131 assertEquals(1f, steps.get(steps.size() - 1).alpha, 0f); in assertAnimationSteps() 133 assertEquals(1f, steps.get(0).alpha, 0f); in assertAnimationSteps() 140 assertListElements(steps, step -> step.alpha, alpha -> alpha >= 0f); in assertAnimationSteps() 184 float alpha) { in AnimationStep() argument 188 this.alpha = alpha; in AnimationStep() 194 public float alpha; field in WindowInsetsAnimationTestBase.AnimCallback.AnimationStep
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/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/ |
D | intrinsic_lut.rscript | 22 short alpha[256]; 29 tmp.a = alpha[in.a];
|
/cts/tests/surfacecontrol/src/android/view/surfacecontrol/cts/ |
D | TrustedPresentationListenerTest.java | 253 float alpha = 0.5f; in testTrustedPresentationThresholdGetters() local 256 TrustedPresentationThresholds thresholds = new TrustedPresentationThresholds(alpha, in testTrustedPresentationThresholdGetters() 258 Assert.assertEquals(alpha, thresholds.getMinAlpha()); in testTrustedPresentationThresholdGetters() 266 float alpha = 0.5f; in testEquals() local 269 TrustedPresentationThresholds thresholdsA = new TrustedPresentationThresholds(alpha, in testEquals() 271 TrustedPresentationThresholds thresholdsB = new TrustedPresentationThresholds(alpha, in testEquals()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | AnimationTest.java | 108 XmlResourceParser parser = mActivity.getResources().getAnimation(R.anim.alpha); in testConstructor() 173 float alpha = transformation.getAlpha(); in testAccessFill() local 174 assertEquals(0.1f, alpha, COMPARISON_DELTA); // issue 1698355 in testAccessFill() 180 alpha = transformation.getAlpha(); in testAccessFill() 181 assertEquals(0.9f, alpha, COMPARISON_DELTA); // issue 1698355 in testAccessFill() 193 alpha = transformation.getAlpha(); in testAccessFill() 194 assertEquals(1.0f, alpha, COMPARISON_DELTA); in testAccessFill() 199 alpha = transformation.getAlpha(); in testAccessFill() 200 assertEquals(1.0f, alpha, COMPARISON_DELTA); in testAccessFill() 212 alpha = transformation.getAlpha(); in testAccessFill() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/utils/ |
D | Cam.java | 205 float alpha = in fromIntInFrame() local 209 float c = alpha * (float) Math.sqrt(j / 100.0); in fromIntInFrame() 211 float s = 50.0f * (float) Math.sqrt((alpha * frame.getC()) / (frame.getAw() + 4.0f)); in fromIntInFrame() 242 float alpha = c / (float) Math.sqrt(j / 100.0); in fromJchInFrame() local 243 float s = 50.0f * (float) Math.sqrt((alpha * frame.getC()) / (frame.getAw() + 4.0f)); in fromJchInFrame() 275 float alpha = in viewed() local 281 (float) Math.pow(alpha / Math.pow(1.64 - Math.pow(0.29, frame.getN()), 0.73), in viewed()
|
/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/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 | 108 final int alpha = 36; in testWithAlpha() local 109 final ColorStateList c1 = c.withAlpha(alpha); in testWithAlpha() 111 assertEquals(alpha, c1.getDefaultColor() >>> 24); in testWithAlpha() 148 assertEquals(alphaInXml, Color.alpha(defaultColor)); in testCreateFromXmlWithLStar()
|