/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | PSNRComparer.java | 40 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 …]
|
D | NearPixelComparer.java | 31 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()
|
D | ThresholdDifferenceComparer.java | 46 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()
|
D | WeightedPixelDifference.java | 41 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()
|
D | MeanSquaredComparer.java | 44 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()
|
D | ExactComparer.java | 36 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()
|
D | BaseRenderScriptComparer.java | 16 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()
|
D | MSSIMComparer.java | 50 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()
|
D | BitmapComparer.java | 34 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
|
D | ExactComparer.rs | 7 rs_allocation ideal; 17 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i + OFFSET, y);
|
D | MSSIMComparer.rs | 7 rs_allocation ideal; 31 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i, y); 45 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i, y);
|
D | MeanSquaredComparer.rs | 7 rs_allocation ideal; 15 float4 idealFloats = rsUnpackColor8888(rsGetElementAt_uchar4(ideal, x, y));
|
D | ThresholdDifferenceComparer.rs | 7 rs_allocation ideal; 16 uchar4 idealPixel = rsGetElementAt_uchar4(ideal, i, y);
|
D | PassComparer.java | 23 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/ |
D | PassFailVisualizer.java | 30 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()
|
D | DifferenceVisualizer.java | 22 public abstract int[] getDifferences(int[] ideal, int[] given); in getDifferences() argument
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | InfrastructureTests.java | 56 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/ |
D | PixelCopyTests.java | 227 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()
|