Home
last modified time | relevance | path

Searched refs:colors (Results 1 – 4 of 4) sorted by relevance

/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/
DMaterialYouColorsRule.kt36 class MaterialYouColorsRule(private val colors: MaterialYouColors = MaterialYouColors.GreenBlue) : in <lambda>() constant in platform.test.screenshot.MaterialYouColorsRule
41 colors.apply(InstrumentationRegistry.getInstrumentation().targetContext) in <lambda>()
55 @get:VisibleForTesting val colors: SparseIntArray, constant in platform.test.screenshot.MaterialYouColors
63 RemoteViews.ColorResources.create(context, colors)?.apply(context) in apply()
84 private fun fromColors(colors: IntArray): MaterialYouColors { in fromColors()
86 if (colors.size != expectedSize) { in fromColors()
94 colors.forEachIndexed { i, color -> in fromColors()
/platform_testing/libraries/screenshot/src/androidTest/java/platform/test/screenshot/
DMaterialYouColorsRuleTest.kt12 private val colors = MaterialYouColors.GreenBlue constant
14 @get:Rule val colorsRule = MaterialYouColorsRule(colors)
26 val expectedColors = resourceIds.map { colors.colors[it] }.toTypedArray() in testApplyMaterialYouColors()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DThemeHelper.java116 HashMap<Integer, Integer> colors = new HashMap<>(); in getMostColor() local
120 colors.put(color, colors.containsKey(color) ? colors.get(color) + 1 : 1); in getMostColor()
123 List<Map.Entry<Integer, Integer>> colorList = new ArrayList<>(colors.entrySet()); in getMostColor()
/platform_testing/libraries/screenshot/src/main/java/platform/test/screenshot/matchers/
DMSSIMMatcher.kt181 colors: IntArray, in shouldIgnoreWindow()
193 if (colors[indexFromXAndY(x, y, stride, start)] != Color.WHITE) { in shouldIgnoreWindow()