/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 | 55 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in verifySame() argument 64 int start = indexFromXAndY(currentWindowX, currentWindowY, stride, offset); in verifySame() 65 if (isWindowWhite(ideal, start, stride, windowWidth, windowHeight) in verifySame() 66 && isWindowWhite(given, start, stride, windowWidth, windowHeight)) { in verifySame() 70 double[] means = getMeans(ideal, given, start, stride, windowWidth, windowHeight); in verifySame() 73 double[] variances = getVariances(ideal, given, meanX, meanY, start, stride, in verifySame() 94 private boolean isWindowWhite(int[] colors, int start, int stride, in isWindowWhite() argument 98 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in isWindowWhite() 120 private double[] getMeans(int[] pixels0, int[] pixels1, int start, int stride, in getMeans() argument 126 int index = indexFromXAndY(x, y, stride, start); in getMeans() [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 | 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 | ColorCountVerifier.java | 37 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 42 bitmap[indexFromXAndY(x, y, stride, offset)], mColor, mThreshold)) { in verify()
|
D | GoldenImageVerifier.java | 52 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 53 boolean success = mBitmapComparer.verifySame(mGoldenBitmapArray, bitmap, offset, stride, in verify()
|
D | BlurPixelVerifier.java | 39 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument 69 int pixelColor = bitmap[indexFromXAndY(x, y, stride, offset)]; in verify()
|
D | SamplePointWideGamutVerifier.java | 66 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in verify() argument
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapcomparers/ |
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()
|
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/ |
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 | 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()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | YuvImageTest.java | 196 int stride = width; in testGetYuvData() local 197 int[] argb = new int[stride * height]; in testGetYuvData() 198 mTestBitmaps[0].getPixels(argb, 0, stride, 0, 0, width, height); in testGetYuvData() 199 byte[] yuv = convertArgbsToYuvs(argb, stride, height, ImageFormat.NV21); in testGetYuvData() 201 stride, stride in testGetYuvData() 231 int stride = width + paddings; in generateYuvImage() local 234 int[] argb = new int [stride * height]; in generateYuvImage() 235 bitmap.getPixels(argb, 0, stride, 0, 0, width, height); in generateYuvImage() 236 byte[] yuv = convertArgbsToYuvs(argb, stride, height, format); in generateYuvImage() 240 strides = new int[] {stride, stride}; in generateYuvImage() [all …]
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0689/ |
D | poc.cpp | 59 size_t stride = AImageDecoder_getMinimumStride(decoder.get()); in main() local 60 size_t pixelSize = height * stride; in main() 64 int32_t result = AImageDecoder_decodeImage(decoder.get(), pixels.data(), stride, pixelSize); in main()
|
/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/graphics/jni/ |
D | android_graphics_cts_AImageDecoderTest.cpp | 125 auto stride = AImageDecoder_getMinimumStride(nullptr); in testNullDecoder() local 126 ASSERT_EQ(0, stride); in testNullDecoder() 406 size_t stride = AImageDecoder_getMinimumStride(decoder); in testGetMinimumStride() local 409 ASSERT_EQ(bytesPerPixel(ANDROID_BITMAP_FORMAT_RGBA_F16) * width, stride); in testGetMinimumStride() 411 ASSERT_EQ(bytesPerPixel(ANDROID_BITMAP_FORMAT_RGBA_8888) * width, stride); in testGetMinimumStride() 414 auto setFormatAndCheckStride = [env, decoder, width, &stride](AndroidBitmapFormat format) { in testGetMinimumStride() 418 stride = AImageDecoder_getMinimumStride(decoder); in testGetMinimumStride() 419 ASSERT_EQ(bytesPerPixel(format) * width, stride); in testGetMinimumStride() 440 ASSERT_EQ(stride, AImageDecoder_getMinimumStride(decoder)); in testGetMinimumStride() 492 EXPECT_GE("Stride too small", jInfo.stride, minStride); in bitmapsEqual() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BitmapTests.java | 163 public boolean verify(int[] bitmap, int offset, int stride, int width, int height) { in testChangeDuringUiAnimation() argument 165 int[] red = new int[offset + height * stride]; in testChangeDuringUiAnimation() 167 int[] blue = new int[offset + height * stride]; in testChangeDuringUiAnimation() 169 boolean isRed = comparer.verifySame(red, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation() 170 boolean isBlue = comparer.verifySame(blue, bitmap, offset, stride, width, height); in testChangeDuringUiAnimation()
|
D | InfrastructureTests.java | 52 public boolean verifySame(int[] ideal, int[] given, int offset, int stride, int width, in testRenderSpecIsolation() 58 return !(new MSSIMComparer(threshold)).verifySame(ideal, given, offset, stride, in testRenderSpecIsolation()
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_ASurfaceControlTest.cpp | 72 int32_t bottom, uint32_t color, uint32_t stride) { in fillRegion() argument 75 ptr += stride * top; in fillRegion() 81 ptr += stride; in fillRegion() 104 fillRegion(data, 0, 0, width, height, color, desc.stride); in getSolidBuffer() 133 fillRegion(data, 0, 0, width / 2, height / 2, colorTopLeft, desc.stride); in getQuadrantBuffer() 134 fillRegion(data, width / 2, 0, width, height / 2, colorTopRight, desc.stride); in getQuadrantBuffer() 136 desc.stride); in getQuadrantBuffer() 138 desc.stride); in getQuadrantBuffer()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferGLTest.cpp | 99 if (info.param.stride & kUseSrgb) { in GetTestName() 102 if (info.param.stride & kExplicitYuvSampling) { in GetTestName() 244 const bool use_srgb = desc.stride & kUseSrgb; in UploadRedPixels() 550 ptrdiff_t row_offset = golden.y * desc.stride; in CheckCpuGoldenPixelsRgba() 723 ptrdiff_t row_offset = golden.y * desc.stride; in WriteGoldenPixelsRgba() 1138 if (GetParam().stride & kGlFormat) return; in MakeCurrent() 1262 const bool use_srgb = desc.stride & kUseSrgb; in SetUpBuffer() 1343 if (desc.stride & kGlFormat) { in SetUpBuffer() 1490 if (desc.stride & kGlFormat) { in SetUpTexture() 1631 bool isGlFormat = GetParam().stride & kGlFormat; in SetUpFramebuffer() [all …]
|
/cts/tests/media/jni/ |
D | NativeCodecTestBase.cpp | 211 uint8_t* buf, AMediaCodecBufferInfo* info, int width, int height, int stride) { in updateChecksum() argument 214 if (width <= 0 || height <= 0 || stride <= 0) { in updateChecksum() 221 if (width > 0 && height > 0 && stride > 0) { in updateChecksum() 227 offset += stride; in updateChecksum()
|