/platform_testing/libraries/motion/tests/src/platform/test/motion/filmstrip/ |
D | FilmstripTest.kt | 21 import android.graphics.Color 54 Filmstrip(listOf(MotionScreenshot(TimestampFrameId(10), mockScreenshot(Color.RED)))) in horizontalSingleFrame() 62 Filmstrip(listOf(MotionScreenshot(TimestampFrameId(10), mockScreenshot(Color.RED)))) in verticalSingleFrame() 74 MotionScreenshot(TimestampFrameId(10), mockScreenshot(Color.RED, w, h)), in horizontalFilmstrip() 75 MotionScreenshot(TimestampFrameId(20), mockScreenshot(Color.GREEN, w, h)), in horizontalFilmstrip() 76 MotionScreenshot(SupplementalFrameId("after"), mockScreenshot(Color.BLUE, w, h)), in horizontalFilmstrip() 93 mockScreenshot(Color.RED, w, h) in horizontalFilmstrip_labelsWiderThanScreenshot() 97 mockScreenshot(Color.BLUE, w, h) in horizontalFilmstrip_labelsWiderThanScreenshot() 110 MotionScreenshot(TimestampFrameId(1), mockScreenshot(Color.RED, 100, 200)), in horizontalFilmstrip_variableSize_tileMatchesLargestDimensions() 111 MotionScreenshot(TimestampFrameId(2), mockScreenshot(Color.GREEN, 150, 75)), in horizontalFilmstrip_variableSize_tileMatchesLargestDimensions() [all …]
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ |
D | ColorUtils.kt | 20 import android.graphics.Color in <lambda>() 33 data class ScreenBorderColors(val leftColumn: List<Color>, val rightColumn: List<Color>) { 39 fun Bitmap.columnColor(x: Int): List<Color> = (0 until height).map { y -> getColor(x, y) } in darkerThan() 42 fun List<Color>.middle(): Color? = getOrNull(size / 2) in middle() 45 infix fun List<Color>.darkerThan(other: List<Color>): Boolean = in middle() 49 infix fun Color.darkerThan(other: Color): Boolean = luminance() < other.luminance() in darkerThan() 59 if (getColor(i, j).toArgb() != Color.BLACK) { in darkerThan()
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/ |
D | HumanEyeMatcher.kt | 4 import android.graphics.Color in <lambda>() 58 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>() 62 diffArray.value[index] = Color.MAGENTA in <lambda>() 89 val diffArray = lazy { IntArray(colorDiffSqArray.size) { Color.TRANSPARENT } } in <lambda>() 113 diffArray.value[index] = Color.MAGENTA in <lambda>() 131 blendWithBackground(referenceColor, Color.WHITE), in <lambda>() 132 blendWithBackground(testColor, Color.WHITE) in <lambda>() 136 blendWithBackground(referenceColor, Color.BLACK), in <lambda>() 137 blendWithBackground(testColor, Color.BLACK) in <lambda>() 147 val green = Color.green(referenceColor) - Color.green(testColor) in <lambda>() [all …]
|
D | AlmostPerfectMatcher.kt | 19 import android.graphics.Color in <lambda>() 52 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>() 58 else -> diffArray.value[index] = Color.MAGENTA.also { different++ } in <lambda>() 99 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>() 109 diffArray.value[i * width + j] = Color.MAGENTA in <lambda>() 141 val green = Color.green(referenceColor) - Color.green(testColor) in <lambda>() 142 val blue = Color.blue(referenceColor) - Color.blue(testColor) in <lambda>() 143 val red = Color.red(referenceColor) - Color.red(testColor) in <lambda>() 144 val redMean = (Color.red(referenceColor) + Color.red(testColor)) / 2 in <lambda>()
|
D | PixelPerfectMatcher.kt | 20 import android.graphics.Color in <lambda>() 42 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>() 48 else -> diffArray.value[index] = Color.MAGENTA.also { different++ } in <lambda>()
|
D | BitmapMatcher.kt | 21 import android.graphics.Color in <lambda>() 74 val diffArray = lazy { IntArray(width * height) { Color.TRANSPARENT } } in <lambda>() 84 diffArray.value[i * width + j] = Color.MAGENTA in <lambda>()
|
D | MSSIMMatcher.kt | 19 import android.graphics.Color 193 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in shouldIgnoreWindow() 322 l += 0.21f * (Color.red(pixel) / 255f.toDouble()).pow(gamma) in getIntensity() 323 l += 0.72f * (Color.green(pixel) / 255f.toDouble()).pow(gamma) in getIntensity() 324 l += 0.07f * (Color.blue(pixel) / 255f.toDouble()).pow(gamma) in getIntensity()
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/report/ |
D | ScubaExportStrategyTest.kt | 21 import android.graphics.Color 139 actual = createBitmap(Color.GREEN), in reportResult_withoutOptionalArgs_writesActualAndProto() 157 actual = createBitmap(Color.GREEN), in reportResult_withDiff_writesDiff() 158 diff = createBitmap(Color.YELLOW), in reportResult_withDiff_writesDiff() 176 actual = createBitmap(Color.GREEN), in reportResult_withExpected_writesExpected() 177 expected = createBitmap(Color.RED), in reportResult_withExpected_writesExpected() 195 actual = createBitmap(Color.GREEN), in reportResult_passed_writesStatus() 209 actual = createBitmap(Color.GREEN), in reportResult_failed_writesStatus() 223 actual = createBitmap(Color.RED), in reportResult_writesCorrectImageContents() 224 diff = createBitmap(Color.GREEN), in reportResult_writesCorrectImageContents() [all …]
|
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/matchers/ |
D | HumanEyeMatcherTest.kt | 3 import android.graphics.Color in <lambda>() 4 import android.graphics.Color.argb in <lambda>() 5 import android.graphics.Color.rgb in <lambda>() 101 val first = IntArray(6) { Color.BLACK } in <lambda>() 102 val second = IntArray(6) { Color.WHITE } in <lambda>() 128 val first = IntArray(9) { Color.BLACK } in <lambda>() 129 val second = IntArray(9) { Color.BLACK } in <lambda>() 159 val first = IntArray(9) { Color.BLACK } in <lambda>() 160 val second = IntArray(9) { Color.BLACK } in <lambda>() 177 val first = IntArray(12) { Color.BLACK } in <lambda>() [all …]
|
D | AlmostPerfectMatcherTest.kt | 19 import android.graphics.Color.rgb
|
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
D | ThemeHelper.java | 25 import android.graphics.Color; 115 public Color getMostColor(@NonNull Bitmap bitmap) { in getMostColor() 126 return Color.valueOf(mostColorCountEntry.getKey()); in getMostColor() 145 public Color getScreenshotMostColorAsRect(@NonNull Rect rect) throws IOException { in getScreenshotMostColorAsRect() 171 public Color getSysuiActivatedThemeColor() { in getSysuiActivatedThemeColor() 172 return Color.valueOf(mContext.getColor(android.R.color.system_accent1_100)); in getSysuiActivatedThemeColor() 182 public boolean isSimilarColor(@NonNull Color color1, @NonNull Color color2) { in isSimilarColor()
|
/platform_testing/libraries/flicker/utils/src/android/tools/datatypes/ |
D | Utils.kt | 19 import android.graphics.Color 27 fun emptyColor(): Color = Color.valueOf(/*r */ -1f, /*g */ -1f, /*b */ -1f, /*a */ 0f) in emptyColor() 29 fun defaultColor(): Color = Color.valueOf(/*r */ 0f, /* g */ 0f, /* b */ 0f, /* a */ 1f) in emptyColor() 31 fun Color.isEmpty(): Boolean = in emptyColor() method 34 fun Color.isNotEmpty(): Boolean = !isEmpty() in emptyColor() method
|
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/ |
D | ExternalViewScreenshotTestRule.kt | 20 import android.graphics.Color 93 window.statusBarColor = Color.TRANSPARENT in <lambda>() 94 window.navigationBarColor = Color.TRANSPARENT in <lambda>()
|
D | ScreenshotTestRule.kt | 23 import android.graphics.Color in <lambda>() 288 drawRectOnBitmap(outputBitmap, regionToDraw, Color.RED) in <lambda>()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/ |
D | MotionTestRuleTest.kt | 21 import android.graphics.Color 147 mockScreenshot(Color.RED, w, h), in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 148 mockScreenshot(Color.GREEN, w, h), in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata() 149 mockScreenshot(Color.BLUE, w, h) in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata()
|
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/rules/ |
D | TemporaryMediaNotification.kt | 24 import android.graphics.Color 60 Canvas(bitmap).drawColor(Color.YELLOW) in before() 95 .setColor(Color.BLUE) in before()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/ |
D | ILayerProperties.kt | 19 import android.graphics.Color 36 val color: Color
|
D | LayerProperties.kt | 19 import android.graphics.Color 33 override val color: Color = emptyColor(), 127 color: Color, in from()
|
D | Layer.kt | 19 import android.graphics.Color 325 color: Color, in from()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/test/widgets/ |
D | HookWidget.java | 21 import android.graphics.Color; 92 paint.setColor(Color.BLUE); in onDraw()
|
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/ |
D | RecordedMotionSubjectTest.kt | 21 import android.graphics.Color in <lambda>() 160 Canvas(it).drawColor(if (index % 2 == 0) Color.RED else Color.GREEN) in <lambda>()
|
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/ |
D | ComposeToolkitTest.kt | 45 import androidx.compose.ui.graphics.Color in <lambda>() 91 .background(Color.Red) in <lambda>() 116 .background(Color.Red) in <lambda>() 142 .background(Color.Red) in <lambda>() 171 .background(Color.Red) in <lambda>() 180 .background(Color.Blue) in <lambda>() 256 drawCircle(Color.Red, radius = 5.dp.toPx(), center = pointerPosition) in <lambda>()
|
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/ |
D | Filmstrip.kt | 21 import android.graphics.Color 113 color = Color.WHITE in <lambda>() 120 color = Color.BLACK in <lambda>()
|
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/layoutlib/bridge/intensive/util/ |
D | ImageUtils.java | 21 import java.awt.Color; 165 g.setColor(Color.RED); in assertImageSimilar()
|
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/ |
D | LayersTraceParser.kt | 19 import android.graphics.Color in <lambda>() 229 private fun newColor(color: Args?): Color { in <lambda>() 234 Color.valueOf( in <lambda>()
|