/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()
|
D | BitmapColorSpaceTest.java | 455 int[] pixels = new int[b.getWidth() * b.getHeight()]; in verifyGetPixels() local 456 b.getPixels(pixels, 0, b.getWidth(), 0, 0, b.getWidth(), b.getHeight()); in verifyGetPixels() 458 for (int i = 0; i < pixels.length; i++) { in verifyGetPixels() 459 int pixel = pixels[i]; in verifyGetPixels() 542 int[] pixels = new int[b.getWidth() * b.getHeight()]; in verifySetPixels() local 543 Arrays.fill(pixels, newColor); in verifySetPixels() 544 b.setPixels(pixels, 0, b.getWidth(), 0, 0, b.getWidth(), b.getHeight()); in verifySetPixels() 552 for (int i = 0; i < pixels.length; i++) { in verifySetPixels()
|
/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 | 231 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in evaluateLightBarBitmap() local 232 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in evaluateLightBarBitmap() 240 for (int c : pixels) { in evaluateLightBarBitmap()
|
/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/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).
|
D | luts_for_speedup_f32.rsh | 6 // Depth Range: [1,g_kMaxDepthValue]; 0 is reserved for invalid pixels.
|
/cts/tests/tests/view/src/android/view/cts/ |
D | TextureViewTest.java | 354 int[] pixels = new int[texturePos.width() * texturePos.height()]; in testSamplingWithTransform() local 355 screenshot.getPixels(pixels, 0, texturePos.width(), texturePos.left, texturePos.top, in testSamplingWithTransform() 362 for (int j = 0; j < pixels.length; j++) { in testSamplingWithTransform() 363 if (pixels[j] != Color.BLACK && pixels[j] != Color.WHITE) { in testSamplingWithTransform() 372 for (int j = 0; j < pixels.length; j++) { in testSamplingWithTransform() 373 if (pixels[j] == Color.BLACK || pixels[j] == Color.WHITE) { in testSamplingWithTransform() 381 + Integer.toHexString(pixels[failPosition]) + " " + transform.toString(), in testSamplingWithTransform()
|
/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/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/tests/tests/graphics/jni/ |
D | android_graphics_cts_BitmapTest.cpp | 41 void* pixels = nullptr; in validateNdkAccessAfterRecycle() local 42 int err = AndroidBitmap_lockPixels(env, jbitmap, &pixels); in validateNdkAccessAfterRecycle()
|
/cts/tests/tests/assist/service/src/android/assist/service/ |
D | MainInteractionSession.java | 187 int[] pixels = new int[size.x * size.y]; in compareScreenshot() local 188 screenshot.getPixels(pixels, 0, size.x, 0, 0, size.x, size.y); in compareScreenshot() 191 for (int pixel : pixels) { in compareScreenshot()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | EnsureBarContrastTest.java | 188 int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; 189 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); 190 return pixels;
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0477/ |
D | poc.c | 32 const unsigned char* pixels; member
|
/cts/tests/vr/jni/ |
D | VrExtensionsJni.cpp | 457 uint32_t* pixels = nullptr; in testLinearMagnification() local 459 reinterpret_cast<void**>(&pixels)); in testLinearMagnification() 461 ASSERT_TRUE(pixels); in testLinearMagnification() 462 memcpy(pixels, kTextureData, sizeof(kTextureData)); in testLinearMagnification()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | HardwareRendererTests.kt | 94 val pixels = IntArray(channels.size / 4) in <lambda>() constant 103 pixels[pixelIndex++] = Color.argb(alpha, red, green, blue) in <lambda>() 105 val result = CaptureResult(pixels, 0, plane.rowStride / plane.pixelStride, in <lambda>()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DecodeAccuracyTestBase.java | 1807 final int[] pixels = new int[bitmap.getHeight() * bitmap.getWidth()]; in convertRgbToCieLab() local 1808 bitmap.getPixels(pixels, 0, bitmap.getWidth(), 0, 0, bitmap.getWidth(), bitmap.getHeight()); in convertRgbToCieLab() 1809 for (int i = 0; i < pixels.length; i++) { in convertRgbToCieLab() 1810 final double[] transformedColor = pixelTransformCache.get(pixels[i]); in convertRgbToCieLab() 1814 result[i] = convertXyzToCieLab(convertRgbToXyz(pixels[i])); in convertRgbToCieLab() 1815 pixelTransformCache.put(pixels[i], result[i]); in convertRgbToCieLab()
|
D | EncodeVirtualDisplayWithCompositionTest.java | 948 final IntBuffer pixels = IntBuffer.allocate(1); in doGlRendering() local 950 GLES20.GL_RGBA, GLES20.GL_UNSIGNED_BYTE, pixels); in doGlRendering() 951 Log.i(TAG, "glReadPixels returned 0x" + Integer.toHexString(pixels.get(0))); in doGlRendering()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebSettingsTest.java | 1181 int[] pixels = new int[width * height]; in getBitmapPixels() local 1182 bitmap.getPixels(pixels, 0, width, x, y, width, height); in getBitmapPixels() 1183 return pixels; in getBitmapPixels()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | single_source_alloc.rscript | 330 // These data types are only for pixels and a particular data_kind
|