Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/jni/
Dandroid_graphics_cts_BitmapTest.cpp48 void* pixels = nullptr; in validateNdkAccessFails() local
49 int err = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in validateNdkAccessFails()
108 void* pixels = nullptr; in testNullBitmap() local
109 err = AndroidBitmap_lockPixels(env, nullptr, &pixels); in testNullBitmap()
115 err = AndroidBitmap_lockPixels(nullptr, jbitmap, &pixels); in testNullBitmap()
176 void* pixels = nullptr; in testInfo() local
177 err = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in testInfo()
265 void* pixels = nullptr; in compress() local
266 err = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in compress()
270 err = AndroidBitmap_compress(&info, AndroidBitmap_getDataSpace(env, jbitmap), pixels, format, in compress()
[all …]
Dandroid_graphics_cts_AImageDecoderTest.cpp543 void* pixels = malloc(size); in testDecode() local
553 result = AImageDecoder_decodeImage(decoder, pixels, minStride - 1, size); in testDecode()
556 result = AImageDecoder_decodeImage(decoder, pixels, minStride, size - minStride); in testDecode()
559 result = AImageDecoder_decodeImage(decoder, pixels, 0, size); in testDecode()
563 result = AImageDecoder_decodeImage(decoder, pixels, minStride, size); in testDecode()
568 width, height, alphaFlags, minStride, pixels, minStride)); in testDecode()
595 if (!bitmapsEqual(minStride, height, pixels, minStride, otherPixels, minStride)) { in testDecode()
620 free(pixels); in testDecode()
654 void* pixels = nullptr; in testDecodeStride() local
675 if (pixels == nullptr) { in testDecodeStride()
[all …]
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DWatermark.java46 BitmapImage(@NonNull int[] pixels, int width, int height) { in BitmapImage() argument
49 mPixels = pixels; in BitmapImage()
62 final int[] pixels = new int[width * height]; in createFromBitmap() local
63 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in createFromBitmap()
64 return new BitmapImage(pixels, width, height); in createFromBitmap()
208 final int[] pixels = new int[size * size];
211 pixels[y * size + x] =
215 sImage = new BitmapImage(pixels, size, size);
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DBitmapImage.java42 BitmapImage(@NonNull int[] pixels, int width, int height) { in BitmapImage() argument
45 mPixels = pixels; in BitmapImage()
58 final int[] pixels = new int[width * height]; in createFromBitmap() local
59 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in createFromBitmap()
60 return new BitmapImage(pixels, width, height); in createFromBitmap()
DWatermark.java179 final int[] pixels = new int[size * size]; in Watermark() local
182 pixels[y * size + x] = in Watermark()
186 mImage = new BitmapImage(pixels, size, size); in Watermark()
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapShaderTest.java116 int[] pixels = new int[4]; in testClamp() local
117 dstBitmap.getPixels(pixels, 0, 4, 0, 0, 4, 1); in testClamp()
119 pixels); in testClamp()
138 int[] pixels = new int[4]; in testRepeat() local
139 dstBitmap.getPixels(pixels, 0, 4, 0, 0, 4, 1); in testRepeat()
141 pixels); in testRepeat()
160 int[] pixels = new int[4]; in testMirror() local
161 dstBitmap.getPixels(pixels, 0, 4, 0, 0, 4, 1); in testMirror()
163 pixels); in testMirror()
/cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/
DBitmapVerifier.java33 int[] pixels = new int[width * height]; in verify() local
34 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in verify()
35 return verify(pixels, 0, width, width, height); in verify()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DBitmapVerifier.java33 int[] pixels = new int[width * height]; in verify() local
34 bitmap.getPixels(pixels, 0, width, 0, 0, width, height); in verify()
35 return verify(pixels, 0, width, width, height); in verify()
/cts/tests/tests/systemui/src/android/systemui/cts/
DLightBarTestBase.java100 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in checkNavigationBarDivider() local
101 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in checkNavigationBarDivider()
106 for (int i = 0; i < pixels.length; i++) { in checkNavigationBarDivider()
110 if (pixels[i] == backgroundColor in checkNavigationBarDivider()
115 assumeNavigationBarChangesColor(backgroundColorPixelCount, pixels.length); in checkNavigationBarDivider()
123 if (!isColorSame(dividerColor, pixels[col])) { in checkNavigationBarDivider()
DLightBarTests.java375 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in evaluateBarBitmap() local
376 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in evaluateBarBitmap()
384 for (int c : pixels) { in evaluateBarBitmap()
/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_fast_d1new.rscript10 // for invalid pixels, e.g., padded pixels around image boundary.
110 // Marks active pixels that are on the target layer.
111 // Initializes the matte of active pixels to be the dilation_radius+1, which is
113 // Initializes dilated_depth of active pixels and pixels that are close to
114 // active pixels to be actual depths.
133 // between active and inactive pixels
156 // Marks pixels near the boundary of active pixels to compute matte later.
192 // between active and inactive pixels
216 // Marks pixels near the boundary of active pixels to compute matte later.
255 // pixels.
[all …]
Dlayered_filter_fast_f32.rscript10 // for invalid pixels, e.g., padded pixels around image boundary.
125 // Marks active pixels that are on the target layer.
126 // Initializes the matte of active pixels to be the dilation_radius+1, which is
128 // Initializes dilated_depth of active pixels and pixels that are close to
129 // active pixels to be actual depths.
147 // between active and inactive pixels
175 // Marks pixels near the boundary of active pixels to compute matte later.
215 // pixels.
218 // because these pixels will be over-written later and hence we don't need
239 // pixels.
[all …]
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).
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0689/
Dpoc.cpp61 std::vector<uint8_t> pixels(pixelSize); in main() local
64 int32_t result = AImageDecoder_decodeImage(decoder.get(), pixels.data(), stride, pixelSize); in main()
/cts/tests/tests/view/src/android/view/cts/
DTextureViewTest.java375 int[] pixels = new int[texturePos.width() * texturePos.height()]; in testSamplingWithTransform() local
376 screenshot.getPixels(pixels, 0, texturePos.width(), texturePos.left, texturePos.top, in testSamplingWithTransform()
383 for (int j = 0; j < pixels.length; j++) { in testSamplingWithTransform()
384 if (pixels[j] != Color.BLACK && pixels[j] != Color.WHITE) { in testSamplingWithTransform()
394 for (int j = 0; j < pixels.length; j++) { in testSamplingWithTransform()
395 if (pixels[j] != Color.BLACK && pixels[j] != Color.WHITE) { in testSamplingWithTransform()
401 if (nonBlackWhitePixels < pixels.length / 3) { in testSamplingWithTransform()
406 + Integer.toHexString(pixels[failPosition]) + " " + transform.toString(), in testSamplingWithTransform()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DLightNavigationBarVerifier.java133 final int[] pixels = new int[width * height]; in getPixels() local
134 bitmap.getPixels(pixels, 0 /* offset */, width /* stride */, 0 /* x */, 0 /* y */, in getPixels()
136 return pixels; in getPixels()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0477/
Dpoc.c32 const unsigned char* pixels; member
/cts/tests/tests/nativehardware/jni/
DAHardwareBufferGLTest.cpp254 std::unique_ptr<uint8_t[]> pixels(new uint8_t[size]); in UploadRedPixels() local
256 pixels[i] = use_srgb ? 188 : 255; in UploadRedPixels()
257 pixels[i + 1] = 0; in UploadRedPixels()
258 pixels[i + 2] = 0; in UploadRedPixels()
260 UploadData(desc, GL_RGB, GL_UNSIGNED_BYTE, pixels.get()); in UploadRedPixels()
267 std::unique_ptr<uint8_t[]> pixels(new uint8_t[size]); in UploadRedPixels() local
269 pixels[i] = use_srgb ? 188 : 255; in UploadRedPixels()
270 pixels[i + 1] = 0; in UploadRedPixels()
271 pixels[i + 2] = 0; in UploadRedPixels()
272 pixels[i + 3] = use_srgb ? 128 : 255; in UploadRedPixels()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowInsetsAnimationSynchronicityTests.java135 int[] pixels = new int[bitmap.getHeight()]; in lowestPixelWithColor() local
136 bitmap.getPixels(pixels, 0, 1, x, 0, 1, bitmap.getHeight()); in lowestPixelWithColor()
137 for (int y = pixels.length - 1; y >= 0; y--) { in lowestPixelWithColor()
138 if (pixels[y] == color) { in lowestPixelWithColor()
DEnsureBarContrastTest.java189 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()];
190 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight());
191 return pixels;
/cts/tests/tests/assist/service/src/android/assist/service/
DMainInteractionSession.java215 int[] pixels = new int[size.x * size.y]; in compareScreenshot() local
216 screenshot.getPixels(pixels, 0, size.x, 0, 0, size.x, size.y); in compareScreenshot()
219 for (int pixel : pixels) { in compareScreenshot()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DAccessibilityTakeScreenshotTest.java243 final int[] pixels = new int[displaySize.x * displaySize.y]; in doesBitmapDisplaySecureContent() local
245 bitmap.getPixels(pixels, 0, displaySize.x, 0, 0, displaySize.x, in doesBitmapDisplaySecureContent()
247 for (int pixel : pixels) { in doesBitmapDisplaySecureContent()
/cts/tests/tests/uirendering/jni/
Dandroid_uirendering_cts_AImageDecoderTest.cpp137 void* pixels; in decode() local
138 if (AndroidBitmap_lockPixels(env, jBitmap, &pixels) != ANDROID_BITMAP_RESULT_SUCCESS) { in decode()
143 const int result = AImageDecoder_decodeImage(decoder, pixels, info.stride, in decode()

12