Home
last modified time | relevance | path

Searched refs:given (Results 1 – 24 of 24) 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
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()
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()
58 " given color " + Integer.toHexString(given[index])); in verifySame()
69 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
80 mScript.set_given(given); in verifySameRowsRS()
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()
53 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
62 mScript.set_given(given); in verifySameRowsRS()
78 public static float getMSE(int[] ideal, int[] given, int offset, int stride, int width, in getMSE() argument
86 float givenSum = getColorSum(given[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()
47 " given color : " + Integer.toHexString(given[index])); in verifySame()
60 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
70 mScript.set_given(given); in verifySameRowsRS()
DBaseRenderScriptComparer.java16 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
24 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
28 Allocation given, int offset, int stride, int width, int height, 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()
87 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
97 mScript.set_given(given); in verifySameRowsRS()
DBitmapComparer.java34 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
43 Allocation given, int offset, int stride, int width, int height, in verifySameRS() argument
DExactComparer.rs8 rs_allocation given;
18 uchar4 givenPixel = rsGetElementAt_uchar4(given, i + OFFSET, y);
DMSSIMComparer.rs8 rs_allocation given;
32 uchar4 givenPixel = rsGetElementAt_uchar4(given, i, y);
46 uchar4 givenPixel = rsGetElementAt_uchar4(given, i, y);
DMeanSquaredComparer.rs8 rs_allocation given;
16 float4 givenFloats = rsUnpackColor8888(rsGetElementAt_uchar4(given, x, y));
DThresholdDifferenceComparer.rs8 rs_allocation given;
17 uchar4 givenPixel = rsGetElementAt_uchar4(given, i, y);
DWeightedPixelDifference.java71 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument
93 int givenColor = given[index]; in verifySame()
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
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()
/cts/apps/CameraITS/build/scripts/
Dgpylint_rcfile7 # Disable the message, report, category or checker with the given id(s). You
18 # Enable the message, report, category or checker with the given id(s). You can
296 # Create a graph of external dependencies in the given file (report RP0402 must
301 # given file (report RP0402 must not be disabled)
304 # Create a graph of internal dependencies in the given file (report RP0402 must
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response_fast.rsh15 // given with respect to parameters a,b,c as:
Dcamera_response.rsh15 // given with respect to parameters a,b,c as:
/cts/hostsidetests/theme/
DREADME47 A complete collection of reference images for a given API revision must include
/cts/tools/dasm/src/java_cup/
Dparser.cup71 /** helper routine to clone a new production part adding a given label */
78 /* otherwise build a new one with the given label attached */
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale266 think that since it defeats the intentions given above, it should not