Searched refs:swBitmap (Results 1 – 5 of 5) sorted by relevance
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/utils/ |
H A D | RotationAnimationUtilsTest.java | 43 Bitmap swBitmap = createBitmap(0); in blackLuma() local 44 HardwareBuffer hb = swBitmapToHardwareBuffer(swBitmap); in blackLuma() 52 Bitmap swBitmap = createBitmap(1); in whiteLuma() local 53 HardwareBuffer hb = swBitmapToHardwareBuffer(swBitmap); in whiteLuma() 68 Bitmap swBitmap = createBitmap(1); in whiteImageBlackBorderLuma() local 69 setBorderLuma(swBitmap, 0); in whiteImageBlackBorderLuma() 77 Bitmap swBitmap = createBitmap(0); in blackImageWhiteBorderLuma() local 78 setBorderLuma(swBitmap, 1); in blackImageWhiteBorderLuma() 103 private void setBorderLuma(Bitmap swBitmap, float luma) { in setBorderLuma() argument 105 int width = swBitmap.getWidth(); in setBorderLuma() [all …]
|
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | ScreenshotTests.java | 129 Bitmap swBitmap = screenshot.copy(Bitmap.Config.ARGB_8888, false); in testScreenshotSecureLayers() local 133 Rect bounds = new Rect(0, 0, swBitmap.getWidth(), swBitmap.getHeight()); in testScreenshotSecureLayers() 134 int numMatchingPixels = bitmapPixelChecker.getNumMatchingPixels(swBitmap, bounds); in testScreenshotSecureLayers() 137 swBitmap.recycle(); in testScreenshotSecureLayers() 179 Bitmap swBitmap = screenshot.copy(Bitmap.Config.ARGB_8888, false); in testCaptureDisplay() local 184 int numMatchingPixels = bitmapPixelChecker.getNumMatchingPixels(swBitmap, bounds); in testCaptureDisplay() 189 SaveBitmapHelper.saveBitmap(swBitmap, getClass(), mTestName, "failedImage"); in testCaptureDisplay() 191 swBitmap.recycle(); in testCaptureDisplay()
|
H A D | SurfaceSyncGroupTests.java | 175 Bitmap swBitmap = screenshot.copy(Bitmap.Config.ARGB_8888, false); in validateScreenshot() local 179 int halfWidth = swBitmap.getWidth() / 2; in validateScreenshot() 180 int halfHeight = swBitmap.getHeight() / 2; in validateScreenshot() 184 int numMatchingPixels = pixelChecker.getNumMatchingPixels(swBitmap, bounds); in validateScreenshot() 188 swBitmap.recycle(); in validateScreenshot()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | SnapshotPersistQueue.java | 320 final Bitmap swBitmap = bitmap.copy(Bitmap.Config.ARGB_8888, false /* isMutable */); in writeBuffer() local 321 if (swBitmap == null) { in writeBuffer() 330 swBitmap.compress(JPEG, COMPRESS_QUALITY, fos); in writeBuffer() 338 swBitmap.recycle(); in writeBuffer() 342 final Bitmap lowResBitmap = Bitmap.createScaledBitmap(swBitmap, in writeBuffer() 346 swBitmap.recycle(); in writeBuffer()
|
/aosp14/frameworks/base/core/java/android/app/ |
H A D | UiAutomation.java | 1187 Bitmap swBitmap; in takeScreenshot() local 1189 swBitmap = screenShot.copy(Bitmap.Config.ARGB_8888, false); in takeScreenshot() 1194 swBitmap.setHasAlpha(false); in takeScreenshot() 1195 return swBitmap; in takeScreenshot() 1246 Bitmap swBitmap; in takeScreenshot() local 1248 swBitmap = screenShot.copy(Bitmap.Config.ARGB_8888, false); in takeScreenshot() 1252 return swBitmap; in takeScreenshot()
|