Home
last modified time | relevance | path

Searched refs:testColorLong (Results 1 – 2 of 2) sorted by relevance

/ink/ink-brush/src/androidInstrumentedTest/kotlin/androidx/ink/brush/
DBrushExtensionsTest.kt38 @ColorLong private val testColorLong = testColor.pack() constant in androidx.ink.brush.BrushExtensionsTest
44 val brush = Brush.createWithColorLong(testFamily, testColorLong, 1f, 1f) in brushCreateAndroidColor_getsCorrectColor()
51 val expectedColor = AndroidColor.valueOf(testColorLong) in brushCreateAndroidColor_getsCorrectColor()
62 assertThat(newBrush.colorLong).isEqualTo(testColorLong) in brushCopyWithAndroidColor_setsColor()
81 assertThat(newBrush.colorLong).isEqualTo(testColorLong) in brushCopyWithAndroidColor_andOtherChangedValues_createsBrushWithColor()
108 assertThat(brush.colorLong).isEqualTo(testColorLong) in brushBuilderSetAndroidColor_setsColor()
130 assertThat(brush.colorLong).isEqualTo(testColorLong) in brushCreateWithAndroidColor_createsBrushWithColor()
149 assertThat(newBrush.colorLong).isEqualTo(testColorLong) in brushToBuilderWithAndroidColor_setsColor()
181 assertThat(brush.colorLong).isEqualTo(testColorLong) in createBrushBuilderWithAndroidColor_setsColor()
/ink/ink-brush/src/jvmAndroidTest/kotlin/androidx/ink/brush/
DBrushTest.kt318 val testColorLong = Color(0.9f, 0.45f, 0.55f, 0.15f, ColorSpaces.DisplayP3).value.toLong() in brushBuilderBuild_withColorLong_createsExpectedBrush() constant
323 .setColorLong(testColorLong) in brushBuilderBuild_withColorLong_createsExpectedBrush()
329 assertThat(builtBrush.colorLong).isEqualTo(testColorLong) in brushBuilderBuild_withColorLong_createsExpectedBrush()
337 val testColorLong = Color(0.9f, 0.45f, 0.55f, 0.15f, ColorSpaces.AdobeRgb).value.toLong() in brushBuilderBuild_withUnsupportedColorSpace_createsBrushWithConvertedColor() constant
342 .setColorLong(testColorLong) in brushBuilderBuild_withUnsupportedColorSpace_createsBrushWithConvertedColor()
347 val expectedColor = Color(testColorLong.toULong()).convert(ColorSpaces.DisplayP3) in brushBuilderBuild_withUnsupportedColorSpace_createsBrushWithConvertedColor()