Home
last modified time | relevance | path

Searched refs:Bitmap (Results 1 – 25 of 31) sorted by relevance

12

/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/report/
DDiffResultExportStrategy.kt19 import android.graphics.Bitmap
38 actual: Bitmap, in reportResult()
41 expected: Bitmap? = null, in reportResult()
42 diff: Bitmap? = null in reportResult()
72 actual: Bitmap, in reportResult()
75 expected: Bitmap?, in reportResult()
76 diff: Bitmap? in reportResult()
DDevicelessDevMachineExportStrategy.kt19 import android.graphics.Bitmap in <lambda>()
44 actual: Bitmap, in <lambda>()
47 expected: Bitmap?, in <lambda>()
48 diff: Bitmap? in <lambda>()
86 fun html(bitmap: Bitmap?, image: Path, name: String, alt: String): String { in <lambda>()
114 private fun Bitmap.writeTo(path: Path) { in <lambda>() method
123 this@writeTo.compress(Bitmap.CompressFormat.PNG, 0, stream) in <lambda>()
DScubaExportStrategy.kt19 import android.graphics.Bitmap
51 actual: Bitmap, in reportResult()
54 expected: Bitmap?, in reportResult()
55 diff: Bitmap? in reportResult()
154 private fun Bitmap.writeToDevice( in Bitmap() method
160 compress(Bitmap.CompressFormat.PNG, 0 /*ignored for png*/, it) in Bitmap()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/utils/
DBitmapUtils.kt19 import android.graphics.Bitmap
24 internal fun loadBitmap(imageName: String): Bitmap { in loadBitmap()
35 bitmapConfig: Bitmap.Config = Bitmap.Config.ARGB_8888 in createBitmap()
36 ) = Bitmap.createBitmap(width, height, bitmapConfig).also { Canvas(it).drawColor(color) } in createBitmap()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DWindowCapture.kt3 import android.graphics.Bitmap in <lambda>()
31 suspend fun Window.captureRegionToBitmap(boundsInWindow: Rect? = null): Bitmap { in <lambda>()
32 var bitmap: Bitmap? = null in <lambda>()
47 fun Window.captureRegionToBitmapAsync(boundsInWindow: Rect? = null): ListenableFuture<Bitmap> { in Window()
53 internal suspend fun Window.generateBitmap(boundsInWindow: Rect? = null): Bitmap { in generateBitmap()
55 Bitmap.createBitmap( in generateBitmap()
58 Bitmap.Config.ARGB_8888, in generateBitmap()
73 destBitmap: Bitmap, in generateBitmapFromPixelCopy()
DViewCapture.kt21 import android.graphics.Bitmap in <lambda>()
83 suspend fun View.captureToBitmap(rect: Rect? = null): Bitmap { in <lambda>()
85 var bitmap: Bitmap? = null in <lambda>()
114 fun View.captureToBitmapAsync(rect: Rect? = null): ListenableFuture<Bitmap> { in View()
161 private suspend fun View.generateBitmap(rect: Rect? = null): Bitmap { in generateBitmap()
185 val destBitmap = Bitmap.createBitmap(rectWidth, rectHeight, Bitmap.Config.ARGB_8888) in generateBitmap()
197 destBitmap: Bitmap, in generateBitmapFromSurfaceViewPixelCopy()
199 ): Bitmap { in generateBitmapFromSurfaceViewPixelCopy()
200 return suspendCancellableCoroutine<Bitmap> { cont -> in generateBitmapFromSurfaceViewPixelCopy()
215 internal fun View.generateBitmapFromDraw(destBitmap: Bitmap, rect: Rect?): Bitmap { in generateBitmapFromDraw()
[all …]
DBitmapDiffer.kt18 import android.graphics.Bitmap
47 actual: Bitmap,
DScreenshotTestRule.kt21 import android.graphics.Bitmap in <lambda>()
95 private fun fetchExpectedImage(goldenIdentifier: String): Bitmap? { in <lambda>()
131 actual: Bitmap, in <lambda>()
166 actual: Bitmap, in <lambda>()
274 private fun highlightedBitmap(original: Bitmap, regions: List<Rect>): Bitmap { in <lambda>()
296 private fun drawRectOnBitmap(bitmap: Bitmap, rect: Rect, @ColorInt color: Int) { in <lambda>()
310 typealias BitmapSupplier = () -> Bitmap
340 var actual: Bitmap? = null in assertGoldenImage()
353 var actual: Bitmap? = null in assertGoldenImage()
403 internal fun Bitmap.toIntArray(): IntArray { in toIntArray()
[all …]
DMaterialYouColorsSimulationUtils.kt18 import android.graphics.Bitmap
97 originalBitmap: Bitmap, in bitmapWithMaterialYouColorsSimulation()
100 ): Bitmap { in bitmapWithMaterialYouColorsSimulation()
149 return Bitmap.createBitmap( in bitmapWithMaterialYouColorsSimulation()
DDialogScreenshotTest.kt21 import android.graphics.Bitmap in <lambda>()
72 private fun Dialog.toBitmap(): Bitmap { in toBitmap()
DScreenshotAsserter.kt19 import android.graphics.Bitmap
DFragmentScreenshotTestRule.kt19 import android.graphics.Bitmap in <lambda>()
67 ): Bitmap { in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/
DRecordedMotion.kt19 import android.graphics.Bitmap in <lambda>()
36 screenshots: List<Bitmap>?, in <lambda>()
58 fun MotionTestRule<*>.create(timeSeries: TimeSeries, screenshots: List<Bitmap>?) = in <lambda>()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/
DColorUtils.kt19 import android.graphics.Bitmap in <lambda>()
25 val screenshot: Bitmap = Screenshot.capture().bitmap in <lambda>()
39 fun Bitmap.columnColor(x: Int): List<Color> = (0 until height).map { y -> getColor(x, y) } in darkerThan() method
56 private fun Bitmap.isBlack(): Boolean { in darkerThan() method
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java23 import android.graphics.Bitmap;
68 final Bitmap bitmap = in setWallpaper()
69 Bitmap.createBitmap( in setWallpaper()
72 Bitmap.Config.ARGB_8888); in setWallpaper()
79 bitmap.compress(Bitmap.CompressFormat.PNG, 100, outStream); in setWallpaper()
115 public Color getMostColor(@NonNull Bitmap bitmap) { in getMostColor()
147 Bitmap bitmap = null; in getScreenshotMostColorAsRect()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt19 import android.graphics.Bitmap
63 fun renderFilmstrip(): Bitmap { in renderFilmstrip()
98 data class MotionScreenshot(val frameId: FrameId, val bitmap: Bitmap)
127 abstract fun render(): Bitmap in render()
141 override fun render(): Bitmap { in render()
147 val filmstrip = Bitmap.createBitmap(width, height, bitmapConfig) in render()
193 override fun render(): Bitmap { in render()
199 val filmstrip = Bitmap.createBitmap(width, height, bitmapConfig) in render()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DPixelPerfectMatcher.kt19 import android.graphics.Bitmap in <lambda>()
61 val diff = Bitmap.createBitmap(diffArray.value, width, height, Bitmap.Config.ARGB_8888) in <lambda>()
DBitmapMatcher.kt20 import android.graphics.Bitmap in <lambda>()
97 val diff = Bitmap.createBitmap(diffArray.value, width, height, Bitmap.Config.ARGB_8888) in <lambda>()
139 val diff: Bitmap?
DAlmostPerfectMatcher.kt18 import android.graphics.Bitmap in <lambda>()
68 else Bitmap.createBitmap(diffArray.value, width, height, Bitmap.Config.ARGB_8888) in <lambda>()
120 else Bitmap.createBitmap(diffArray.value, width, height, Bitmap.Config.ARGB_8888) in <lambda>()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/rules/
DTemporaryMediaNotification.kt22 import android.graphics.Bitmap
59 val bitmap: Bitmap = Bitmap.createBitmap(300, 300, Bitmap.Config.ARGB_8888) in before()
/platform_testing/libraries/motion/tests/src/platform/test/motion/
DMotionTestRuleTest.kt19 import android.graphics.Bitmap
190 bitmapConfig: Bitmap.Config = Bitmap.Config.ARGB_8888 in mockScreenshot()
191 ) = Bitmap.createBitmap(width, height, bitmapConfig).also { Canvas(it).drawColor(color) } in mockScreenshot()
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/android/
DSampleRenderTest.java34 import android.graphics.Bitmap;
54 Bitmap bitmap = ImageDecoder.decodeBitmap(source); in testLoadImage()
/platform_testing/libraries/media-helper/src/android/test/mediahelper/
DMediaValidationHelper.java21 import android.graphics.Bitmap;
111 Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fileDescriptor); in validateImage()
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/
DRecordedMotionSubjectTest.kt19 import android.graphics.Bitmap in <lambda>()
159 Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888).also { in <lambda>()
/platform_testing/libraries/motion/tests/src/platform/test/motion/filmstrip/
DFilmstripTest.kt19 import android.graphics.Bitmap
264 bitmapConfig: Bitmap.Config = Bitmap.Config.ARGB_8888 in mockScreenshot()
265 ) = Bitmap.createBitmap(width, height, bitmapConfig).also { Canvas(it).drawColor(color) } in mockScreenshot()

12