/cts/tests/tests/rscpp/src/android/cts/rscpp/ |
D | RSUtils.java | 37 int stride, int skip) { in genRandom() argument 39 for (int i = 0; i < array.length / stride; i++) { in genRandom() 40 for (int j = 0; j < stride; j++) { in genRandom() 41 if (j >= stride - skip) in genRandom() 42 array[i * stride + j] = 0; in genRandom() 44 array[i * stride + j] = r.nextFloat() * factor + offset; in genRandom() 57 int stride, int skip) { in genRandom() argument 59 for (int i = 0; i < array.length / stride; i++) { in genRandom() 60 for (int j = 0; j < stride; j++) { in genRandom() 61 if (j >= stride - skip) in genRandom() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapcomparers/ |
D | MSSIMComparer.java | 50 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 57 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame() 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 110 private boolean isWindowWhite(int[] colors, int start, int stride) { in isWindowWhite() argument 113 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite() 135 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride) { in getMeans() argument 140 int index = indexFromXAndY(x, y, stride, start); in getMeans() [all …]
|
D | BitmapComparer.java | 34 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 51 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument 52 return x + (y * stride) + offset; in indexFromXAndY()
|
D | WeightedPixelDifference.java | 41 private static boolean inspectRegions(int[] ideal, int start, int stride, int regionSize) { in inspectRegions() argument 45 int index = indexFromXAndY(x, y, stride, start); in inspectRegions() 71 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 78 int index = indexFromXAndY(x, y,stride, offset); in verifySame() 79 if (inspectRegions(ideal, index, stride, regionSize)) { in verifySame() 91 int index = indexFromXAndY(x, y, stride, offset); 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() 53 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument 78 public static float getMSE(int[] ideal, int[] given, int offset, int stride, int width, in getMSE() argument 84 int index = indexFromXAndY(x, y, stride, offset); in getMSE()
|
D | BaseRenderScriptComparer.java | 16 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()
|
D | ExactComparer.java | 36 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 42 int index = indexFromXAndY(x, y, stride, offset); in verifySame() 60 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
|
D | PSNRComparer.java | 40 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 46 int index = indexFromXAndY(x, y, stride, offset); in verifySame() 59 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
|
D | ThresholdDifferenceComparer.java | 46 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 51 int index = indexFromXAndY(x, y, stride, offset); in verifySame() 69 Allocation given, int offset, int stride, int width, int height, in verifySameRowsRS() argument
|
D | NearPixelComparer.java | 31 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 44 int index = indexFromXAndY(x + dx, y + dy, stride, offset); in verifySame()
|
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/bitmapverifiers/ |
D | BitmapVerifier.java | 33 public abstract boolean verify(int[] bitmap, int offset, int stride, int width, int height); in verify() argument 38 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument 39 return x + (y * stride) + offset; in indexFromXAndY()
|
D | InvertVerifier.java | 29 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 30 boolean success = mBitmapVerifier.verify(bitmap, offset, stride, width, height); in verify()
|
D | SamplePointVerifier.java | 47 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 54 int index = indexFromXAndY(x, y, stride, offset); in verify() 68 mDifferenceBitmap.setPixels(differenceMap, offset, stride, 0, 0, in verify()
|
D | PerPixelBitmapVerifier.java | 56 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 61 int index = indexFromXAndY(x, y, stride, offset); in verify() 82 mDifferenceBitmap.setPixels(differenceMap, offset, stride, 0, 0, in verify()
|
D | GoldenImageVerifier.java | 35 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 36 boolean success = mBitmapComparer.verifySame(mGoldenBitmapArray, bitmap, offset, stride, in verify()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | YuvImageTest.java | 202 int stride = width; in testGetYuvData() local 203 int[] argb = new int[stride * height]; in testGetYuvData() 204 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData() 205 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData() 207 stride, stride in testGetYuvData() 236 int stride = width + paddings; in generateYuvImage() local 239 int[] argb = new int [stride * height]; in generateYuvImage() 240 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage() 241 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage() 245 strides = new int[] {stride, stride}; in generateYuvImage() [all …]
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | AllocationByteBufferTest.java | 60 int stride = (int)alloc.getStride(); in testByteBufferHelper() local 65 byte byteInBuffer = bb.get(posY * stride + posX * vecWidth * byteSize); in testByteBufferHelper() 113 int stride = (int)alloc.getStride(); in test2DWrite() local 114 byte[] dataIn = new byte[stride * dimY]; in test2DWrite() 121 assertEquals(dataIn[j*stride + i], dataOut[j*dimX*vecWidth + i]); in test2DWrite()
|
D | ScriptGroupTest.java | 390 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2GatherScatterAcrossKernelsViaGlobals() 392 stride); in testBuilder2GatherScatterAcrossKernelsViaGlobals() 394 Type.createX(mRS, Element.I32_4(mRS), stride), in testBuilder2GatherScatterAcrossKernelsViaGlobals() 447 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2KernelOutputToGlobal() 449 stride); in testBuilder2KernelOutputToGlobal() 451 Type.createX(mRS, Element.I32_4(mRS), stride), in testBuilder2KernelOutputToGlobal()
|
D | RSBaseCompute.java | 236 int stride = element.getVectorSize(); in enforceOrdering() local 237 if (stride == 3) { in enforceOrdering() 238 stride = 4; in enforceOrdering() 240 int size = INPUTSIZE * stride; in enforceOrdering()
|
/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/media/libmediandkjni/ |
D | native-media-jni.cpp | 200 int width, stride, height; in checksum() local 204 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_STRIDE, &stride)) { in checksum() 205 stride = width; in checksum() 212 memcpy(bb + i * width, in + i * stride, width); in checksum()
|
/cts/tests/tests/graphics/src/android/opengl/cts/ |
D | CompressedTextureLoader.java | 183 int pixelSize, int stride){ in compressTexture() argument 187 ETC1.encodeImage(input, width, height, pixelSize, stride, compressedImage); in compressTexture()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | Vp8CodecTestBase.java | 337 int stride, int sliceHeight, byte[] nv12) { in NV12ToYUV420() argument 342 System.arraycopy(nv12, i * stride, yuv, i * width, width); in NV12ToYUV420() 350 nv_offset = stride * (sliceHeight + i); in NV12ToYUV420() 364 int stride, int sliceHeight, byte[] src) { in PackYUV420() argument 368 System.arraycopy(src, i * stride, dst, i * width, width); in PackYUV420() 371 int u_src_offset = stride * sliceHeight; in PackYUV420() 376 System.arraycopy(src, u_src_offset + i * (stride / 2), in PackYUV420() 378 System.arraycopy(src, v_src_offset + i * (stride / 2), in PackYUV420()
|
D | DecoderTest.java | 1069 int stride = mMasterBuffer.length / signal.length; 1070 assertEquals("wrong data size", mMasterBuffer.length, signal.length * stride); 1074 short mastersample = mMasterBuffer[i * stride]; 2421 private static long checksum(ByteBuffer buf, int width, int height, int stride) { 2424 + width + " x " + height + " , " + stride + " cap = " + cap, 2425 width > 0 && width <= stride && height > 0 && height * stride <= cap); 2438 crc.update(b, i * stride + offs, width); 2445 buf.position(pos + i * stride); 2451 buf.position(pos + i * stride);
|