/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 | 44 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 51 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame() 52 if (isWindowWhite(ideal, start, stride) && isWindowWhite(given, start, stride)) { in verifySame() 56 double[] means = getMeans(ideal, given, start, stride); in verifySame() 59 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride); in verifySame() 79 private boolean isWindowWhite(int[] colors, int start, int stride) { in isWindowWhite() argument 82 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite() 104 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride) { in getMeans() argument 109 int index = indexFromXAndY(x, y, stride, start); in getMeans() 125 int start, int stride) { in getVariances() argument [all …]
|
D | BitmapComparer.java | 30 public abstract boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 36 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument 37 return x + (y * stride) + offset; in indexFromXAndY()
|
D | ExactComparer.java | 29 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 35 int index = indexFromXAndY(x, y, stride, offset); in verifySame()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | RegionVerifier.java | 42 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 48 isVerified &= verifySubRect(bitmap, offset, stride, width, height, in verify() 54 isVerified &= verifySubRect(bitmap, offset, stride, width, height, in verify() 62 private boolean verifySubRect(int[] bitmap, int offset, int stride, int width, int height, in verifySubRect() argument 64 final int newOffset = rect.top * stride + rect.left + offset; in verifySubRect() 65 return subVerifier.verify(bitmap, newOffset, stride, rect.width(), rect.height()); in verifySubRect()
|
D | BitmapVerifier.java | 41 public abstract boolean verify(int[] bitmap, int offset, int stride, int width, int height); in verify() argument 46 protected static int indexFromXAndY(int x, int y, int stride, int offset) { in indexFromXAndY() argument 47 return x + (y * stride) + offset; in indexFromXAndY()
|
D | ColorCountVerifier.java | 30 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 34 if (bitmap[indexFromXAndY(x, y, stride, offset)] == mColor) { in verify()
|
D | WideGamutBitmapVerifier.java | 37 public abstract boolean verify(ByteBuffer bitmap, int offset, int stride, in verify() argument 41 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
|
D | PerPixelBitmapVerifier.java | 55 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 60 int index = indexFromXAndY(x, y, stride, offset); in verify() 80 mDifferenceBitmap.setPixels(differenceMap, offset, stride, 0, 0, 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 | GoldenImageVerifier.java | 41 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 42 boolean success = mBitmapComparer.verifySame(mGoldenBitmapArray, bitmap, offset, stride, in verify()
|
D | SamplePointWideGamutVerifier.java | 43 public boolean verify(ByteBuffer bitmap, int offset, int stride, int width, int height) { in verify() argument 49 int index = p.y * stride + (p.x << 3); in verify()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | YuvImageTest.java | 194 int stride = width; in testGetYuvData() local 195 int[] argb = new int[stride * height]; in testGetYuvData() 196 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData() 197 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData() 199 stride, stride in testGetYuvData() 229 int stride = width + paddings; in generateYuvImage() local 232 int[] argb = new int [stride * height]; in generateYuvImage() 233 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage() 234 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage() 238 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() 114 int stride = (int)alloc.getStride(); in test2DWrite() local 115 byte[] dataIn = new byte[stride * dimY]; in test2DWrite() 122 assertEquals(dataIn[j*stride + i], dataOut[j*dimX*vecWidth + i]); in test2DWrite()
|
D | ScriptGroupTest.java | 437 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2GatherScatterAcrossKernelsViaGlobals() 439 stride); in testBuilder2GatherScatterAcrossKernelsViaGlobals() 441 Type.createX(mRS, Element.I32_4(mRS), stride), in testBuilder2GatherScatterAcrossKernelsViaGlobals() 497 for (int stride = ARRAY_SIZE / 2; stride >= 1; stride >>= 1) { in testBuilder2KernelOutputToGlobal() 499 stride); in testBuilder2KernelOutputToGlobal() 501 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 | BitmapTests.java | 162 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in testChangeDuringUiAnimation() argument 164 int[] red = new int[offset + height * stride]; in testChangeDuringUiAnimation() 166 int[] blue = new int[offset + height * stride]; in testChangeDuringUiAnimation() 168 boolean isRed = comparer.verifySame(red, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation() 169 boolean isBlue = comparer.verifySame(blue, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation()
|
D | InfrastructureTests.java | 60 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in testRenderSpecIsolation() 66 return !(new MSSIMComparer(threshold)).verifySame(ideal, given, offset, stride, in testRenderSpecIsolation()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferGLTest.cpp | 145 const bool use_srgb = desc.stride & kUseSrgb; in UploadRedPixels() 624 if (GetParam().stride & kGlFormat) return; in MakeCurrent() 734 const bool use_srgb = desc.stride & kUseSrgb; in SetUpBuffer() 777 if (desc.stride & kGlFormat) { in SetUpBuffer() 881 if (desc.stride & kGlFormat) { in SetUpTexture() 986 if (GetParam().stride & kGlFormat) { in SetUpFramebuffer() 1180 !IsFormatColorRenderable(desc.format, desc.stride & kUseSrgb)) { in SetUpBuffer() 1227 if ((desc.stride & kGlFormat) || desc.layers > 1) return; in TEST_P() 1252 ptrdiff_t row_offset = golden.y * desc.stride; in TEST_P() 1348 if (desc.stride & kUseSrgb) { in TEST_P() [all …]
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BasicVulkanGpuTest.cpp | 110 uint8_t *target = dst + ((y * hwbDesc.stride * formatDesc.pixelWidth) + in verifyBasicBufferImport()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | CompressedTextureLoader.java | 171 int pixelSize, int stride){ in compressTexture() argument 175 ETC1.encodeImage(input, width, height, pixelSize, stride, compressedImage); in compressTexture()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | VpxCodecTestBase.java | 347 int stride, int sliceHeight, byte[] nv12) { in NV12ToYUV420() argument 352 System.arraycopy(nv12, i * stride, yuv, i * width, width); in NV12ToYUV420() 360 nv_offset = stride * (sliceHeight + i); in NV12ToYUV420() 374 int stride, int sliceHeight, byte[] src) { in PackYUV420() argument 378 System.arraycopy(src, i * stride, dst, i * width, width); in PackYUV420() 381 int u_src_offset = stride * sliceHeight; in PackYUV420() 386 System.arraycopy(src, u_src_offset + i * (stride / 2), in PackYUV420() 388 System.arraycopy(src, v_src_offset + i * (stride / 2), in PackYUV420()
|
D | DecoderTestAacDrc.java | 288 public void apply(short[] signal, int offset, int stride) { in apply() argument 298 for (int sample = offset; sample < signal.length; sample += stride) { in apply()
|
/cts/tests/tests/media/libmediandkjni/ |
D | native-media-jni.cpp | 367 int width, stride, height; in checksum() local 371 if (!AMediaFormat_getInt32(format, AMEDIAFORMAT_KEY_STRIDE, &stride)) { in checksum() 372 stride = width; in checksum() 379 memcpy(bb + i * width, in + i * stride, width); in checksum()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testinfrastructure/ |
D | ActivityTestBase.java | 274 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in runWithoutVerification()
|