Home
last modified time | relevance | path

Searched refs:pixels (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapShaderTest.java115 int[] pixels = new int[4]; in testClamp() local
116 dstBitmap.getPixels(pixels, 0, 4, 0, 0, 4, 1); in testClamp()
118 pixels); in testClamp()
137 int[] pixels = new int[4]; in testRepeat() local
138 dstBitmap.getPixels(pixels, 0, 4, 0, 0, 4, 1); in testRepeat()
140 pixels); in testRepeat()
159 int[] pixels = new int[4]; in testMirror() local
160 dstBitmap.getPixels(pixels, 0, 4, 0, 0, 4, 1); in testMirror()
162 pixels); in testMirror()
DBitmapColorSpaceTest.java329 int[] pixels = new int[b.getWidth() * b.getHeight()]; in verifyGetPixels() local
330 b.getPixels(pixels, 0, b.getWidth(), 0, 0, b.getWidth(), b.getHeight()); in verifyGetPixels()
332 for (int i = 0; i < pixels.length; i++) { in verifyGetPixels()
333 int pixel = pixels[i]; in verifyGetPixels()
409 int[] pixels = new int[b.getWidth() * b.getHeight()]; in verifySetPixels() local
410 Arrays.fill(pixels, newColor); in verifySetPixels()
411 b.setPixels(pixels, 0, b.getWidth(), 0, 0, b.getWidth(), b.getHeight()); in verifySetPixels()
419 for (int i = 0; i < pixels.length; i++) { in verifySetPixels()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dpixel_format_f32.rsh11 // whether or not a pixel is on the current target layer. For pixels that are
42 // For active pixels, dilated_depth is the same as actual depth;
43 // For inactive pixels with non-zero matte, dilated_depth is the depth of the
44 // closest active pixels;
45 // For other pixels, 0 (invalid depth).
Dlayered_filter_f32_helper.rsh15 // A function that visits neighboring pixels around (x,y) and finds the closest
29 // Initializes the minimum distance from this pixel to the active pixels on
89 // Filters only using pixels on or behind this layer to avoid color
174 // Filters only using pixels with valid depth values (i.e. excluding
175 // padded pixels).
Dlayered_filter_d1new_helper.rsh32 // A function that visits neighboring pixels around (x,y) and finds the closest
48 // Initializes the minimum distance from this pixel to the active pixels on
89 // Initializes the minimum distance from this pixel to the active pixels on
149 // Filters only using pixels on or behind this layer to avoid color
234 // Filters only using pixels with valid depth values (i.e. excluding
235 // padded pixels).
Dluts_for_speedup_f32.rsh6 // Depth Range: [1,g_kMaxDepthValue]; 0 is reserved for invalid pixels.
/cts/tests/tests/uirendering/src/android/uirendering/cts/util/
DBitmapAsserter.java86 int[] pixels = new int[width * height]; in assertBitmapIsVerified() local
87 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in assertBitmapIsVerified()
88 boolean success = bitmapVerifier.verify(pixels, 0, width, width, height); in assertBitmapIsVerified()
/cts/tests/dram/src/android/dram/cts/
DBandwidthTest.java185 double pixels = size.x * size.y; in doRunMemcpy() local
187 double screensPerSecAverage = stat.mAverage / pixels * 1024.0 * 1024.0 / 4.0; in doRunMemcpy()
220 double pixels = size.x * size.y; in doRunMemset() local
222 double screensPerSecAverage = stat.mAverage / pixels * 1024.0 * 1024.0 / 4.0; in doRunMemset()
/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp77 void* pixels = nullptr; in validateNdkAccessAfterRecycle() local
78 int err = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in validateNdkAccessAfterRecycle()
/cts/tests/tests/assist/service/src/android/voiceinteraction/service/
DMainInteractionSession.java177 int[] pixels = new int[size.x * size.y]; in compareScreenshot() local
178 screenshot.getPixels(pixels, 0, size.x, 0, 0, size.x, size.y); in compareScreenshot()
182 for (int pixel : pixels) { in compareScreenshot()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTests.java197 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in evaluateLightBarBitmap() local
198 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in evaluateLightBarBitmap()
203 for (int c : pixels) { in evaluateLightBarBitmap()
/cts/tests/tests/media/src/android/media/cts/
DDecodeAccuracyTestBase.java1750 final int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in convertRgbToCieLab() local
1751 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in convertRgbToCieLab()
1752 for (int i = 0; i < pixels.length; i++) { in convertRgbToCieLab()
1753 final double[] transformedColor = pixelTransformCache.get(pixels[i]); in convertRgbToCieLab()
1757 result[i] = convertXyzToCieLab(convertRgbToXyz(pixels[i])); in convertRgbToCieLab()
1758 pixelTransformCache.put(pixels[i], result[i]); in convertRgbToCieLab()
DEncodeVirtualDisplayWithCompositionTest.java847 final IntBuffer pixels = IntBuffer.allocate(1); in doGlRendering() local
849 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in doGlRendering()
850 Log.i(TAG, "glReadPixels returned 0x" + Integer.toHexString(pixels.get(0))); in doGlRendering()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewTest.java7809 private void setMaxWidth(final int pixels) throws Throwable { in setMaxWidth() argument
7810 mActivityRule.runOnUiThread(() -> mTextView.setMaxWidth(pixels)); in setMaxWidth()
7814 private void setMinWidth(final int pixels) throws Throwable { in setMinWidth() argument
7815 mActivityRule.runOnUiThread(() -> mTextView.setMinWidth(pixels)); in setMinWidth()
7819 private void setMaxHeight(final int pixels) throws Throwable { in setMaxHeight() argument
7820 mActivityRule.runOnUiThread(() -> mTextView.setMaxHeight(pixels)); in setMaxHeight()
7824 private void setMinHeight(final int pixels) throws Throwable { in setMinHeight() argument
7825 mActivityRule.runOnUiThread(() -> mTextView.setMinHeight(pixels)); in setMinHeight()
7856 private void setWidth(final int pixels) throws Throwable { in setWidth() argument
7857 mActivityRule.runOnUiThread(() -> mTextView.setWidth(pixels)); in setWidth()
[all …]