Home
last modified time | relevance | path

Searched refs:bytesPerStride (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_FrameRateCtsActivity.cpp57 int32_t bytesPerStride = 0; in Buffer() local
62 &bytesPerPixel, &bytesPerStride); in Buffer()
68 bytesPerStride = width * bytesPerPixel; in Buffer()
82 if (bytesPerStride < width * bytesPerPixel) { in Buffer()
83 bytesPerStride *= bytesPerPixel; in Buffer()
88 int8_t* ptr = buf + row * bytesPerStride; in Buffer()
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferTest.cpp333 int32_t bytesPerStride = std::numeric_limits<int32_t>::min(); in TEST() local
338 (void** _Nonnull)NULL, &bytesPerPixel, &bytesPerStride); in TEST()
346 …SK | AHARDWAREBUFFER_USAGE_CPU_READ_MASK), -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStride); in TEST()
349 …er, AHARDWAREBUFFER_USAGE_CPU_READ_RARELY, -1, NULL, &bufferData, &bytesPerPixel, &bytesPerStride); in TEST()
351 if (bytesPerPixel == -1 || bytesPerStride == -1) { in TEST()
356 EXPECT_LE(0, bytesPerStride); in TEST()