Home
last modified time | relevance | path

Searched refs:expectedColor (Results 1 – 18 of 18) sorted by relevance

/compose/material/material-ripple/src/androidInstrumentedTest/kotlin/androidx/compose/material/ripple/
DRippleModifierNodeTest.kt139 val expectedColor = in pressed() constant
149 expectedColor in pressed()
179 val expectedColor = in pressed_rippleCreatedBeforeDraw() constant
190 expectedColor in pressed_rippleCreatedBeforeDraw()
256 val expectedColor = in pressed_rippleLazilyDelegatedTo() constant
271 expectedColor in pressed_rippleLazilyDelegatedTo()
288 val expectedColor = in hovered() constant
294 assertRippleMatches(scope!!, interactionSource, HoverInteraction.Enter(), expectedColor) in hovered()
310 val expectedColor = in focused() constant
316 assertRippleMatches(scope!!, interactionSource, FocusInteraction.Focus(), expectedColor) in focused()
[all …]
DRememberRippleTest.kt122 val expectedColor = in defaultColor() constant
132 expectedColor in defaultColor()
151 val expectedColor = in hovered() constant
157 assertRippleMatches(scope!!, interactionSource, HoverInteraction.Enter(), expectedColor) in hovered()
175 val expectedColor = in focused() constant
181 assertRippleMatches(scope!!, interactionSource, FocusInteraction.Focus(), expectedColor) in focused()
199 val expectedColor = in dragged() constant
205 assertRippleMatches(scope!!, interactionSource, DragInteraction.Start(), expectedColor) in dragged()
255 val expectedColor = in themeChangeDuringRipple_dragged() constant
258 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in themeChangeDuringRipple_dragged()
[all …]
/compose/material3/material3/src/androidInstrumentedTest/kotlin/androidx/compose/material3/
DRippleTest.kt296 val expectedColor = calculateResultingRippleColor(initialColor, rippleOpacity = 0.16f) in contentColorChangeDuringRipple_dragged() constant
298 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in contentColorChangeDuringRipple_dragged()
309 val expectedColor = calculateResultingRippleColor(newColor, rippleOpacity = 0.16f) in contentColorChangeDuringRipple_dragged() constant
311 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in contentColorChangeDuringRipple_dragged()
345 val expectedColor = in rippleConfiguration_color_dragged() constant
353 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in rippleConfiguration_color_dragged()
393 val expectedColor = in rippleConfiguration_color_explicitColorSet_dragged() constant
401 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in rippleConfiguration_color_explicitColorSet_dragged()
438 val expectedColor = in rippleConfiguration_alpha_dragged() constant
446 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in rippleConfiguration_alpha_dragged()
[all …]
DTextTest.kt167 val expectedColor = Color.Green in settingParametersExplicitly() constant
178 color = expectedColor, in settingParametersExplicitly()
197 assertThat(textColor).isEqualTo(expectedColor) in settingParametersExplicitly()
213 val expectedColor = Color.Green in settingColorAndTextStyle() constant
224 color = expectedColor, in settingColorAndTextStyle()
244 assertThat(textColor).isEqualTo(expectedColor) in settingColorAndTextStyle()
328 val expectedColor = Color(0.7f, 0.13f, 1.0f, 0.323f) in semantics_hasColor_providedByParameter() constant
329 rule.setContent { Text("Test", color = expectedColor) } in semantics_hasColor_providedByParameter()
341 color == expectedColor in semantics_hasColor_providedByParameter()
DMaterialTest.kt129 expectedColor: @Composable () -> Color, in ComposeContentTestRule()
139 expectedColorValue = expectedColor() in <lambda>()
DSurfaceTest.kt281 val expectedColor = Color.Blue in contentColorSetBeforeModifier() constant
290 contentColor = expectedColor, in contentColorSetBeforeModifier()
296 rule.runOnIdle { Truth.assertThat(contentColor).isEqualTo(expectedColor) } in contentColorSetBeforeModifier()
/compose/material/material/src/androidInstrumentedTest/kotlin/androidx/compose/material/
DRippleTest.kt832 val expectedColor = calculateResultingRippleColor(initialColor, rippleOpacity = 0.08f) in contentColorChangeDuringRipple_dragged() constant
834 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in contentColorChangeDuringRipple_dragged()
845 val expectedColor = calculateResultingRippleColor(newColor, rippleOpacity = 0.08f) in contentColorChangeDuringRipple_dragged() constant
847 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in contentColorChangeDuringRipple_dragged()
881 val expectedColor = in rippleConfiguration_color_dragged() constant
889 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in rippleConfiguration_color_dragged()
929 val expectedColor = in rippleConfiguration_color_explicitColorSet_dragged() constant
937 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in rippleConfiguration_color_explicitColorSet_dragged()
974 val expectedColor = in rippleConfiguration_alpha_dragged() constant
982 Truth.assertThat(Color(centerPixel)).isEqualTo(expectedColor) in rippleConfiguration_alpha_dragged()
[all …]
DTextTest.kt183 val expectedColor = Color.Green in settingParametersExplicitly() constant
194 color = expectedColor, in settingParametersExplicitly()
226 val expectedColor = Color.Green in settingColorAndTextStyle() constant
237 color = expectedColor, in settingColorAndTextStyle()
284 val expectedColor = Color(0.7f, 0.13f, 1.0f, 0.323f) in semantics_hasColor_providedByParameter() constant
285 rule.setContent { Text("Test", color = expectedColor) } in semantics_hasColor_providedByParameter()
297 color == expectedColor in semantics_hasColor_providedByParameter()
DSurfaceTest.kt169 val expectedColor = Color.Blue in contentColorSetBeforeModifier() constant
178 contentColor = expectedColor, in contentColorSetBeforeModifier()
184 rule.runOnIdle { Truth.assertThat(contentColor).isEqualTo(expectedColor) } in contentColorSetBeforeModifier()
/compose/material/material/src/androidInstrumentedTest/kotlin/androidx/compose/material/pullrefresh/
DPullRefreshIndicatorTransformTest.kt126 val expectedColor = in indicatorPartiallyClippedWhenPartiallyDisplayed() constant
132 pixel.assertPixelColor(expectedColor, x, y) in indicatorPartiallyClippedWhenPartiallyDisplayed()
185 val expectedColor = in indicatorNotClippedWhenFullyDisplayed() constant
191 pixel.assertPixelColor(expectedColor, x, y) in indicatorNotClippedWhenFullyDisplayed()
/compose/test-utils/src/androidMain/kotlin/androidx/compose/testutils/
DImageAssertions.android.kt97 fun ImageBitmap.assertContainsColor(expectedColor: Color): ImageBitmap { in assertContainsColor()
98 if (!containsColor(expectedColor)) { in assertContainsColor()
99 throw AssertionError("The given color $expectedColor was not found in the bitmap.") in assertContainsColor()
111 private fun ImageBitmap.containsColor(expectedColor: Color): Boolean { in containsColor()
116 if (color == expectedColor) { in containsColor()
/compose/animation/animation-core/src/androidInstrumentedTest/kotlin/androidx/compose/animation/core/
DInfiniteTransitionTest.kt93 val expectedColor = in transitionTest() constant
96 assertEquals(expectedColor, animColor.value) in transitionTest()
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/platform/
DAndroidViewCompatTest.kt179 var expectedColor = Color.Blue in <lambda>() variable
197 expectedColor in <lambda>()
211 expectedColor = Color.Green in <lambda>()
225 expectedColor = Color.Red in <lambda>()
656 var expectedColor = Color.Blue in <lambda>() variable
659 it.color = expectedColor in <lambda>()
670 expectedColor = Color.Green in <lambda>()
/compose/ui/ui-graphics/src/androidInstrumentedTest/kotlin/androidx/compose/ui/graphics/drawscope/
DDrawScopeTest.kt301 val expectedColor = in <lambda>() constant
307 assertEquals("Coordinate: " + i + ", " + j, expectedColor, pixelMap[i, j]) in <lambda>()
326 val expectedColor = in <lambda>() constant
337 assertEquals("Coordinate: " + i + ", " + j, expectedColor, pixelMap[i, j]) in <lambda>()
356 val expectedColor = in <lambda>() constant
367 assertEquals("Coordinate: " + i + ", " + j, expectedColor, pixelMap[i, j]) in <lambda>()
383 val expectedColor = in <lambda>() constant
394 assertEquals("Coordinate: " + i + ", " + j, expectedColor, pixelMap[i, j]) in <lambda>()
/compose/foundation/foundation/src/androidInstrumentedTest/kotlin/androidx/compose/foundation/
DAndroidEmbeddedExternalSurfaceTest.kt343 val expectedColor = Color(ColorUtils.compositeColors(translucentRed, Color.White.toArgb())) in <lambda>() constant
346 expectedColor in <lambda>()
DAndroidExternalSurfaceTest.kt431 val expectedColor = Color(ColorUtils.compositeColors(translucentRed, Color.White.toArgb())) in <lambda>() constant
433 rule.onNodeWithTag("GraphicSurface").screenshotToImage()!!.assertPixels { expectedColor } in <lambda>()
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/draw/
DClipDrawTest.kt773 fun Bitmap.assertColor(expectedColor: Color, x: Int, y: Int) { in Bitmap()
775 assertColorsEqual(expectedColor, pixel) { in Bitmap()
776 "Pixel [$x, $y] is expected to be $expectedColor," + " " + "but was $pixel" in Bitmap()
/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/layout/
DSubcomposeLayoutTest.kt3975 fun ImageBitmap.assertCenterPixelColor(expectedColor: Color) { in assertCenterPixelColor()
3976 asAndroidBitmap().assertColor(expectedColor, width / 2, height / 2) in assertCenterPixelColor()