Home
last modified time | relevance | path

Searched refs:ideal (Results 1 – 18 of 18) sorted by relevance

/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/
DPSNRComparer.java40 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
47 if (inspectRegion(ideal, index)) { in verifySame()
60 if (ideal[index] == given[index]) { in verifySame()
63 MSE += (Color.red(ideal[index]) - Color.red(given[index])) * in verifySame()
64 (Color.red(ideal[index]) - Color.red(given[index])); in verifySame()
65 MSE += (Color.blue(ideal[index]) - Color.blue(given[index])) * in verifySame()
66 (Color.blue(ideal[index]) - Color.blue(given[index])); in verifySame()
67 MSE += (Color.green(ideal[index]) - Color.green(given[index])) * in verifySame()
68 (Color.green(ideal[index]) - Color.green(given[index])); in verifySame()
82 private boolean inspectRegion(int[] ideal, int index) { in inspectRegion() argument
[all …]
DNearPixelComparer.java31 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
45 if (!pixelsAreSame(ideal[index], given[index])) { in verifySame()
60 private boolean pixelsAreSame(int ideal, int given) { in pixelsAreSame() argument
61 int error = Math.abs(Color.red(ideal) - Color.red(given)); in pixelsAreSame()
62 error += Math.abs(Color.green(ideal) - Color.green(given)); in pixelsAreSame()
63 error += Math.abs(Color.blue(ideal) - Color.blue(given)); in pixelsAreSame()
DThresholdDifferenceComparer.java46 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
52 int error = Math.abs(Color.red(ideal[index]) - Color.red(given[index])); in verifySame()
53 error += Math.abs(Color.blue(ideal[index]) - Color.blue(given[index])); in verifySame()
54 error += Math.abs(Color.green(ideal[index]) - Color.green(given[index])); in verifySame()
57 Log.d(TAG, "Expected color " + Integer.toHexString(ideal[index]) + in verifySame()
68 public boolean verifySameRowsRS(Resources resources, Allocation ideal, in verifySameRowsRS() argument
79 mScript.set_ideal(ideal); in verifySameRowsRS()
DWeightedPixelDifference.java41 private static boolean inspectRegions(int[] ideal, int start, int stride, int regionSize) { in inspectRegions() argument
42 int regionColor = ideal[start]; in inspectRegions()
46 if (ideal[index] != regionColor) { in inspectRegions()
71 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
79 if (inspectRegions(ideal, index, stride, regionSize)) { in verifySame()
92 int idealColor = ideal[index]; in verifySame()
DMeanSquaredComparer.java44 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
46 float totalError = getMSE(ideal, given, offset, stride, width, height); in verifySame()
52 public boolean verifySameRowsRS(Resources resources, Allocation ideal, in verifySameRowsRS() argument
61 mScript.set_ideal(ideal); in verifySameRowsRS()
78 public static float getMSE(int[] ideal, int[] given, int offset, int stride, int width, in getMSE() argument
85 float idealSum = getColorSum(ideal[index]); in getMSE()
DExactComparer.java36 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
43 if (ideal[index] != given[index]) { in verifySame()
46 Log.d(TAG, "Expected color : " + Integer.toHexString(ideal[index]) + in verifySame()
59 public boolean verifySameRowsRS(Resources resources, Allocation ideal, in verifySameRowsRS() argument
69 mScript.set_ideal(ideal); in verifySameRowsRS()
DBaseRenderScriptComparer.java16 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
23 public abstract boolean verifySameRowsRS(Resources resources, Allocation ideal, in verifySameRowsRS() argument
27 public boolean verifySameRS(Resources resources, Allocation ideal, in verifySameRS() argument
35 return verifySameRowsRS(resources, ideal, given, offset, stride, width, height, in verifySameRS()
DMSSIMComparer.java50 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
58 if (isWindowWhite(ideal, start, stride) && isWindowWhite(given, start, stride)) { in verifySame()
62 double[] means = getMeans(ideal, given, start, stride); in verifySame()
65 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride); in verifySame()
86 public boolean verifySameRowsRS(Resources resources, Allocation ideal, in verifySameRowsRS() argument
96 mScript.set_ideal(ideal); in verifySameRowsRS()
DBitmapComparer.java34 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
42 public boolean verifySameRS(Resources resources, Allocation ideal, in verifySameRS() argument
DExactComparer.rs7 rs_allocation ideal;
17 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i + OFFSET, y);
DMSSIMComparer.rs7 rs_allocation ideal;
31 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i, y);
45 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i, y);
DMeanSquaredComparer.rs7 rs_allocation ideal;
15 float4 idealFloats = rsUnpackColor8888(rsGetElementAt_uchar4(ideal, x, y));
DThresholdDifferenceComparer.rs7 rs_allocation ideal;
16 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i, y);
DPassComparer.java23 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
/cts/tests/tests/uirendering/src/android/uirendering/cts/differencevisualizers/
DPassFailVisualizer.java30 public int[] getDifferences(int[] ideal, int[] given) { in getDifferences() argument
31 int[] output = new int[ideal.length]; in getDifferences()
33 if (ideal[y] == given[y]) { in getDifferences()
DDifferenceVisualizer.java22 public abstract int[] getDifferences(int[] ideal, int[] given); in getDifferences() argument
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DInfrastructureTests.java56 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in testRenderSpecIsolation()
62 return !(new MSSIMComparer(threshold)).verifySame(ideal, given, offset, stride, in testRenderSpecIsolation()
/cts/tests/tests/view/src/android/view/cts/
DPixelCopyTests.java227 private boolean pixelsAreSame(int ideal, int given, int threshold) { in pixelsAreSame() argument
228 int error = Math.abs(Color.red(ideal) - Color.red(given)); in pixelsAreSame()
229 error += Math.abs(Color.green(ideal) - Color.green(given)); in pixelsAreSame()
230 error += Math.abs(Color.blue(ideal) - Color.blue(given)); in pixelsAreSame()