/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_BitmapTest.cpp | 48 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 …]
|
D | android_graphics_cts_AImageDecoderTest.cpp | 543 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/ |
D | Watermark.java | 46 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/ |
D | BitmapImage.java | 42 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()
|
D | Watermark.java | 179 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/ |
D | BitmapShaderTest.java | 116 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/ |
D | BitmapVerifier.java | 33 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/ |
D | BitmapVerifier.java | 33 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/ |
D | LightBarTestBase.java | 100 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()
|
D | LightBarTests.java | 375 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/ |
D | pixel_format_f32.rsh | 11 // 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).
|
D | layered_filter_fast_d1new.rscript | 10 // 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 …]
|
D | layered_filter_fast_f32.rscript | 10 // 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 …]
|
D | layered_filter_f32_helper.rsh | 15 // 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).
|
D | layered_filter_d1new_helper.rsh | 32 // 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/ |
D | poc.cpp | 61 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/ |
D | TextureViewTest.java | 375 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/ |
D | LightNavigationBarVerifier.java | 133 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/ |
D | poc.c | 32 const unsigned char* pixels; member
|
/cts/tests/tests/nativehardware/jni/ |
D | AHardwareBufferGLTest.cpp | 254 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/ |
D | WindowInsetsAnimationSynchronicityTests.java | 135 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()
|
D | EnsureBarContrastTest.java | 189 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/ |
D | MainInteractionSession.java | 215 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/ |
D | AccessibilityTakeScreenshotTest.java | 243 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/ |
D | android_uirendering_cts_AImageDecoderTest.cpp | 137 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()
|