Home
last modified time | relevance | path

Searched refs:bitmap (Results 1 – 19 of 19) sorted by relevance

/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java68 final Bitmap bitmap = in setWallpaper() local
73 bitmap.eraseColor(color); in setWallpaper()
79 bitmap.compress(Bitmap.CompressFormat.PNG, 100, outStream); in setWallpaper()
87 bitmap.recycle(); in setWallpaper()
115 public Color getMostColor(@NonNull Bitmap bitmap) { in getMostColor() argument
117 for (int x = 0; x < bitmap.getWidth(); ++x) { in getMostColor()
118 for (int y = 0; y < bitmap.getHeight(); ++y) { in getMostColor()
119 @ColorInt int color = bitmap.getColor(x, y).toArgb(); in getMostColor()
147 Bitmap bitmap = null; in getScreenshotMostColorAsRect() local
152 bitmap = bitmapRegionDecoder.decodeRegion(rect, null); in getScreenshotMostColorAsRect()
[all …]
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/android/
DSampleRenderTest.java54 Bitmap bitmap = ImageDecoder.decodeBitmap(source); in testLoadImage() local
55 BufferedImage image = new BufferedImage(bitmap.getWidth(), bitmap.getHeight(), in testLoadImage()
58 bitmap.getPixels(imageData, 0, image.getWidth(), 0, 0, image.getWidth(), in testLoadImage()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt39 private var screenshotWidth = screenshots.maxOf { it.bitmap.width } in <lambda>()
40 private var screenshotHeight = screenshots.maxOf { it.bitmap.height } in <lambda>()
77 val scaleX = screenshotWidth.toFloat() / screenshots.maxOf { it.bitmap.width } in <lambda>()
78 val scaleY = screenshotHeight.toFloat() / screenshots.maxOf { it.bitmap.height } in <lambda>()
98 data class MotionScreenshot(val frameId: FrameId, val bitmap: Bitmap) constant in platform.test.motion.filmstrip.MotionScreenshot
106 val bitmapConfig = checkNotNull(screenshots.first().bitmap.config)
169 /* bitmap = */ screenshot.bitmap, in render()
219 /* bitmap = */ screenshot.bitmap, in render()
DVideoRenderer.kt32 private var screenshotWidth = screenshots.maxOf { it.bitmap.width } in <lambda>()
33 private var screenshotHeight = screenshots.maxOf { it.bitmap.height } in <lambda>()
107 canvas.drawBitmap(screenshot.bitmap, 0.0f, 0.0f, null) in <lambda>()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DScreenshotTestRuleTest.kt240 val bitmap = loadBitmap("round_rect_green") in goldenIdentifierResolver() constant
245 .setScreenshotProvider { bitmap } in goldenIdentifierResolver()
259 val bitmap = loadBitmap("round_rect_green") in goldenIdentifierResolver() constant
267 .setScreenshotProvider { bitmap } in goldenIdentifierResolver()
283 val bitmap = loadBitmap("round_rect_green") in goldenIdentifierResolver() constant
284 val asserter = ScreenshotRuleAsserter.Builder(rule).setScreenshotProvider { bitmap }.build() in goldenIdentifierResolver()
300 val bitmap = loadBitmap("round_rect_green") in goldenIdentifierResolver() constant
301 val asserter = ScreenshotRuleAsserter.Builder(rule).setScreenshotProvider { bitmap }.build() in goldenIdentifierResolver()
311 val bitmap = loadBitmap("round_rect_green") in goldenIdentifierResolver() constant
318 bitmap in goldenIdentifierResolver()
/platform_testing/libraries/motion/src/platform/test/motion/
DRecordedMotion.kt46 timeSeries.frameIds.zip(screenshots) { frameId, bitmap -> in <lambda>() method
47 MotionScreenshot(frameId, bitmap) in <lambda>()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DWindowCapture.kt32 var bitmap: Bitmap? = null in <lambda>() variable
38 bitmap = generateBitmap(boundsInWindow) in <lambda>()
43 return bitmap!! in <lambda>()
DDialogScreenshotTest.kt60 val bitmap = dialog?.toBitmap() ?: error("dialog is null") constant
63 bitmap,
DScreenshotTestRule.kt296 private fun drawRectOnBitmap(bitmap: Bitmap, rect: Rect, @ColorInt color: Int) { in <lambda>()
299 bitmap.setPixel(x, rect.top, color) in <lambda>()
300 bitmap.setPixel(x, rect.bottom - 1, color) in <lambda>()
304 bitmap.setPixel(rect.left, y, color) in <lambda>()
305 bitmap.setPixel(rect.right - 1, y, color) in <lambda>()
321 private var screenShotter: BitmapSupplier = { Screenshot.capture().bitmap } in <lambda>()
DScreenshotAsserter.kt55 val captureStrategy: BitmapSupplier = { Screenshot.capture().bitmap } in <lambda>()
DFragmentScreenshotTestRule.kt121 val bitmap = takeScreenshotFragment(mode, beforeScreenshot, fragment) in <lambda>() constant
123 bitmap, in <lambda>()
DViewCapture.kt85 var bitmap: Bitmap? = null in <lambda>() variable
97 bitmap = generateBitmap(rect) in <lambda>()
104 return bitmap!! in <lambda>()
346 cont.resume(result.bitmap) in generateBitmapFromPixelCopy()
DViewScreenshotTestRule.kt158 val bitmap = takeScreenshot(mode, viewProvider, checkView, subviewId) in <lambda>() constant
159 screenshotRule.assertBitmapAgainstGolden(bitmap, goldenIdentifier, matcher) in <lambda>()
/platform_testing/libraries/media-helper/src/android/test/mediahelper/
DMediaValidationHelper.java111 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fileDescriptor); in validateImage() local
112 int height = bitmap.getHeight(); in validateImage()
113 int width = bitmap.getWidth(); in validateImage()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/rules/
DTemporaryMediaNotification.kt59 val bitmap: Bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888) in before() constant
60 Canvas(bitmap).drawColor(Color.YELLOW) in before()
67 .putBitmap(MediaMetadata.METADATA_KEY_ALBUM_ART, bitmap) in before()
/platform_testing/libraries/motion/tests/src/platform/test/motion/filmstrip/
DFilmstripTest.kt179 val bitmap = in automaticOrientation_tallScreenshots_filmstripIsHorizontal() constant
184 assertThat(bitmap.width).isEqualTo(w * 3) in automaticOrientation_tallScreenshots_filmstripIsHorizontal()
185 assertThat(bitmap.height).isLessThan(h * 3) in automaticOrientation_tallScreenshots_filmstripIsHorizontal()
200 val bitmap = in automaticOrientation_wideScreenshots_filmstripIsVertical() constant
205 assertThat(bitmap.width).isLessThan(w * 3) in automaticOrientation_wideScreenshots_filmstripIsVertical()
206 assertThat(bitmap.height).isEqualTo(h * 3) in automaticOrientation_wideScreenshots_filmstripIsVertical()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DColorUtils.kt25 val screenshot: Bitmap = Screenshot.capture().bitmap in <lambda>()
54 fun UiDevice.hasBlackScreen(): Boolean = Screenshot.capture().bitmap.isBlack() in darkerThan()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DDevicelessDevMachineExportStrategy.kt86 fun html(bitmap: Bitmap?, image: Path, name: String, alt: String): String { in <lambda>()
87 return if (bitmap == null) { in <lambda>()
/platform_testing/libraries/screenshot/utils/compose/src/platform/test/screenshot/utils/compose/
DComposeScreenshotTestRule.kt138 val bitmap = view.captureToBitmapAsync().get(10, TimeUnit.SECONDS) constant
139 screenshotRule.assertBitmapAgainstGolden(bitmap, goldenIdentifier, matcher)