/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | PixelFormatTest.java | 44 assertEquals(4, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 48 assertEquals(4, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 52 assertEquals(3, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 56 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 60 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 64 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 68 assertEquals(1, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 72 assertEquals(1, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 76 assertEquals(2, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo() 80 assertEquals(1, pixelFormat.bytesPerPixel); in testGetPixelFormatInfo()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_FrameRateCtsActivity.cpp | 56 int32_t bytesPerPixel = 0; in Buffer() local 62 &bytesPerPixel, &bytesPerStride); in Buffer() 67 bytesPerPixel = 4; in Buffer() 68 bytesPerStride = width * bytesPerPixel; in Buffer() 82 if (bytesPerStride < width * bytesPerPixel) { in Buffer() 83 bytesPerStride *= bytesPerPixel; in Buffer() 89 for (int col = 0; col < width; col++, ptr += bytesPerPixel) { in Buffer()
|
D | android_graphics_cts_AImageDecoderTest.cpp | 380 static int bytesPerPixel(int32_t format) { in bytesPerPixel() function 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() 419 ASSERT_EQ(bytesPerPixel(format) * width, stride); in testGetMinimumStride() 668 if ((stride - minStride) % bytesPerPixel(format) != 0) { in testDecodeStride() 711 const int bpp = bytesPerPixel(AImageDecoderHeaderInfo_getAndroidBitmapFormat(info)); in testSetTargetSize() 977 size_t expectedStride = bytesPerPixel(format) * (validCrop.right - validCrop.left); in testSetCrop() 992 size_t expectedStride = bytesPerPixel(format) * newWidth; in testSetCrop() 1023 size_t expectedStride = bytesPerPixel(format) * (validCrop.right - validCrop.left); in testSetCrop() 1039 size_t expectedStride = bytesPerPixel(format) * (validCrop.right - validCrop.left); in testSetCrop() [all …]
|
D | VulkanTestHelpers.h | 86 VkFormat format, uint32_t bytesPerPixel);
|
D | VulkanTestHelpers.cpp | 493 VkFormat format, uint32_t bytesPerPixel) in VkImageRenderer() argument 495 mResultBufferSize(width * height * bytesPerPixel) {} in VkImageRenderer()
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferTest.cpp | 332 int32_t bytesPerPixel = std::numeric_limits<int32_t>::min(); in TEST() local 338 (void** _Nonnull)NULL, &bytesPerPixel, &bytesPerStride); in TEST() 346 …_MASK | AHARDWAREBUFFER_USAGE_CPU_READ_MASK), -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStri… in TEST() 349 …uffer, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStri… in TEST() 351 if (bytesPerPixel == -1 || bytesPerStride == -1) { in TEST() 355 EXPECT_LE(0, bytesPerPixel); in TEST()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/ |
D | ItsUtils.java | 249 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local 253 format, i, width, height, rowStride, pixelStride, bytesPerPixel)); in getDataFromImage() 258 if (pixelStride == bytesPerPixel) { in getDataFromImage() 260 int length = w * bytesPerPixel; in getDataFromImage()
|
/cts/tests/tests/opengl/src/android/opengl/cts/ |
D | CompressedTextureLoader.java | 187 int bytesPerPixel = bitmap.getRowBytes() / bitmap.getWidth(); in createFromUncompressedETC1() local 191 bytesPerPixel, in createFromUncompressedETC1()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | ImageReaderDecoderTest.java | 814 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local 816 if (pixelStride == bytesPerPixel) { in getDataFromImage() 818 length = w * bytesPerPixel; in getDataFromImage() 825 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/ |
D | CameraTestUtils.java | 1583 int bytesPerPixel = ImageFormat.getBitsPerPixel(format) / 8; in getDataFromImage() local 1585 if (pixelStride == bytesPerPixel) { in getDataFromImage() 1587 length = w * bytesPerPixel; in getDataFromImage() 1594 length = (w - 1) * pixelStride + bytesPerPixel; in getDataFromImage()
|