Home
last modified time | relevance | path

Searched refs:color (Results 1 – 24 of 24) sorted by relevance

/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DColorUtils.kt20 android.R.color.system_neutral1_0,
21 android.R.color.system_neutral1_10,
22 android.R.color.system_neutral1_50,
23 android.R.color.system_neutral1_100,
24 android.R.color.system_neutral1_200,
25 android.R.color.system_neutral1_300,
26 android.R.color.system_neutral1_400,
27 android.R.color.system_neutral1_500,
28 android.R.color.system_neutral1_600,
29 android.R.color.system_neutral1_700,
[all …]
DMaterialYouColorsRule.kt67 private const val FIRST_RESOURCE_COLOR_ID = android.R.color.system_neutral1_0
68 private const val LAST_RESOURCE_COLOR_ID = android.R.color.system_error_1000
94 colors.forEachIndexed { i, color -> in fromColors() method
95 sparseArray.put(FIRST_RESOURCE_COLOR_ID + i, color) in fromColors()
DFontsUtils.kt32 private const val FIRST_RESOURCE_COLOR_ID = android.R.color.system_neutral1_0
33 private const val LAST_RESOURCE_COLOR_ID = android.R.color.system_accent3_1000
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>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/surfaceflinger/
DILayerProperties.kt36 val color: Color constant
91 get() = color.isNotEmpty()
135 return color.alpha() == 0f
145 color != prevLayerState.color in isAnimating()
DLayerProperties.kt33 override val color: Color = emptyColor(), constant in android.tools.traces.surfaceflinger.LayerProperties
49 override val isOpaque: Boolean = if (color.alpha() != 1.0f) false else _isOpaque
56 result = 31 * result + color.hashCode() in hashCode()
78 "flags=$flags, bounds=$bounds, color=$color, _isOpaque=$_isOpaque, " + in toString()
97 if (color != other.color) return false in equals()
127 color: Color, in from()
149 color, in from()
DLayer.kt138 if (color.alpha() == 0.0f) reasons.add("Alpha is 0")
260 if (color != other.color) return false in equals()
284 result = 31 * result + color.hashCode() in hashCode()
325 color: Color, in from()
348 color, in from()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java67 public void setWallpaper(@ColorInt int color) throws IOException { in setWallpaper() argument
73 bitmap.eraseColor(color); in setWallpaper()
119 @ColorInt int color = bitmap.getColor(x, y).toArgb(); in getMostColor() local
120 colors.put(color, colors.containsKey(color) ? colors.get(color) + 1 : 1); in getMostColor()
172 return Color.valueOf(mContext.getColor(android.R.color.system_accent1_100)); in getSysuiActivatedThemeColor()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/utils/
DBitmapUtils.kt32 color: Int, in createBitmap()
36 ) = Bitmap.createBitmap(width, height, bitmapConfig).also { Canvas(it).drawColor(color) } in createBitmap()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DMaterialYouColorsRuleTest.kt20 val firstResourceId = android.R.color.system_neutral1_0 in testApplyMaterialYouColors()
21 val lastResourceId = android.R.color.system_accent3_1000 in testApplyMaterialYouColors()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DHumanEyeMatcher.kt182 private fun blendWithBackground(color: Int, backgroundColor: Int): Int { in <lambda>()
183 val alpha: Float = Color.alpha(color) / 255f in <lambda>()
184 if (alpha == 1f) return color in <lambda>()
187 val outRed = alpha * Color.red(color) + (1 - alpha) * Color.red(backgroundColor) in <lambda>()
188 val outGreen = alpha * Color.green(color) + (1 - alpha) * Color.green(backgroundColor) in <lambda>()
189 val outBlue = alpha * Color.blue(color) + (1 - alpha) * Color.blue(backgroundColor) in <lambda>()
/platform_testing/tests/perf/PerformanceLaunch/src/com/android/performanceLaunch/helper/
DTriangle.java68 float color[] = { field in Triangle
128 GLES20.glUniform4fv(mColorHandle, 1, color, 0); in draw()
DSquare.java73 float color[] = { field in Square
138 GLES20.glUniform4fv(mColorHandle, 1, color, 0); in draw()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/
DConditionsFactory.kt91 it.layerState.getLayerWithBuffer(component)?.color?.alpha() == 1.0f in <lambda>()
113 it.layerState.getLayerWithBuffer(ComponentNameMatcher.NAV_BAR)?.color?.alpha() == 1.0f in <lambda>()
135 it.layerState.getLayerWithBuffer(ComponentNameMatcher.TASK_BAR)?.color?.alpha() == 1.0f in <lambda>()
157 it.layerState.getLayerWithBuffer(ComponentNameMatcher.STATUS_BAR)?.color?.alpha() == in <lambda>()
253 it.layerState.getLayerWithBuffer(componentMatcher)?.color?.alpha() == 1.0f in <lambda>()
260 .any { layer -> layer.color.alpha() == 1.0f } in <lambda>()
266 layer?.color?.alpha() == 1.0f in <lambda>()
/platform_testing/libraries/flicker/utils/src/android/tools/traces/parsers/perfetto/
DLayersTraceParser.kt229 private fun newColor(color: Args?): Color { in <lambda>()
230 if (color == null) { in <lambda>()
235 color.getChild("r")?.getFloat() ?: 0f, in <lambda>()
236 color.getChild("g")?.getFloat() ?: 0f, in <lambda>()
237 color.getChild("b")?.getFloat() ?: 0f, in <lambda>()
238 color.getChild("a")?.getFloat() ?: 0f in <lambda>()
/platform_testing/libraries/flicker/src/android/tools/flicker/subject/layers/
DLayerTraceEntrySubject.kt258 val hasLayerColor = targets.any { it.color.isNotEmpty() } in <lambda>()
266 .setActual(targets.map { Fact(it.name, it.color) }) in <lambda>()
274 val hasNoLayerColor = targets.all { it.color.isEmpty() } in <lambda>()
282 .setActual(targets.map { Fact(it.name, it.color) }) in <lambda>()
/platform_testing/libraries/motion/tests/src/platform/test/motion/
DMotionTestRuleTest.kt187 color: Int, in mockScreenshot()
191 ) = Bitmap.createBitmap(width, height, bitmapConfig).also { Canvas(it).drawColor(color) } in mockScreenshot()
/platform_testing/libraries/motion/src/platform/test/motion/filmstrip/
DFilmstrip.kt113 color = Color.WHITE in <lambda>()
120 color = Color.BLACK in <lambda>()
/platform_testing/libraries/flicker/utils/test/src/android/tools/utils/
DMockLayerBuilder.kt80 color = defaultColor(), in <lambda>()
/platform_testing/libraries/motion/tests/src/platform/test/motion/filmstrip/
DFilmstripTest.kt261 color: Int, in mockScreenshot()
265 ) = Bitmap.createBitmap(width, height, bitmapConfig).also { Canvas(it).drawColor(color) } in mockScreenshot()
/platform_testing/libraries/flicker/utils/test/src/android/tools/traces/surfaceflinger/
DLayerTraceEntryBuilderTest.kt91 color = emptyColor(), in removesLayersFromOffDisplays()
/platform_testing/libraries/screenshot/utils/compose/src/platform/test/screenshot/utils/compose/
DComposeScreenshotTestRule.kt112 color = MaterialTheme.colorScheme.background, in <lambda>()
/platform_testing/libraries/screenshot/proto/src/main/proto/
Dscreenshot_result.proto24 // Given an RGBA color, a failure will trigger if any channel changes beyond
/platform_testing/libraries/flicker/utils/test/src/android/tools/parsers/
DWindowManagerStateHelperTest.kt113 color = defaultColor(), in <lambda>()