/frameworks/base/packages/SettingsLib/Spa/testutils/src/com/android/settingslib/spa/testutils/ |
D | ImageAssertions.kt | 28 fun ImageBitmap.assertContainsColor(expectedColor: Color) { in assertContainsColor() 29 assert(containsColor(expectedColor)) { in assertContainsColor() 30 "The given color $expectedColor was not found in the bitmap." in assertContainsColor() 34 private fun ImageBitmap.containsColor(expectedColor: Color): Boolean { in containsColor() 38 if (pixels[x, y] == expectedColor) return true in containsColor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/ |
D | TileColorPickerTest.java | 51 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateUnavailable_ReturnUnavailableColor() local 54 assertEquals(expectedColor, color); in testGetColor_StateUnavailable_ReturnUnavailableColor() 60 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateInactive_ReturnInactiveColor() local 63 assertEquals(expectedColor, color); in testGetColor_StateInactive_ReturnInactiveColor() 69 final int expectedColor = mTintColorStateList.getColorForState( in testGetColor_StateActive_ReturnActiveColor() local 72 assertEquals(expectedColor, color); in testGetColor_StateActive_ReturnActiveColor()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/animation/ |
D | ColorSchemeTransitionTest.kt | 124 val expectedColor = DEFAULT_COLOR in <lambda>() constant 129 assertEquals(expectedColor, colorTransition.currentColor) in <lambda>() 130 assertEquals(expectedColor, colorTransition.sourceColor) in <lambda>() 131 verify(applyColor, times(2)).invoke(expectedColor) // applied once in constructor in <lambda>() 136 val expectedColor = TARGET_COLOR in <lambda>() constant 141 assertEquals(expectedColor, colorTransition.currentColor) in <lambda>() 142 assertEquals(expectedColor, colorTransition.targetColor) in <lambda>() 143 verify(applyColor).invoke(expectedColor) in <lambda>() 148 val expectedColor = Color.rgb(186, 0, 186) in <lambda>() constant 153 assertEquals(expectedColor, colorTransition.currentColor) in <lambda>() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/ |
D | UnfoldBackgroundController.java | 52 float[] expectedColor = getCurrentBackgroundColor(); in ensureBackground() local 54 if (mBackgroundColorSet != expectedColor) { in ensureBackground() 55 transaction.setColor(mBackgroundLayer, expectedColor); in ensureBackground() 56 mBackgroundColorSet = expectedColor; in ensureBackground() 68 .setColor(mBackgroundLayer, expectedColor) in ensureBackground() 71 mBackgroundColorSet = expectedColor; in ensureBackground()
|
/frameworks/libs/systemui/weathereffects/graphics/tests/src/com/google/android/wallpaper/weathereffects/graphics/ |
D | FrameBufferTest.kt | 39 val expectedColor = Color.RED in onImageReady_invokesCallback() constant 42 buffer.beginDrawing().drawColor(expectedColor) in onImageReady_invokesCallback() 66 assertThat(softwareBitmap.getPixel(0, 0)).isEqualTo(expectedColor) in onImageReady_invokesCallback()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/ripple/ |
D | MultiRippleControllerTest.kt | 52 val expectedColor = Color.RED in updateColor_updatesColor() constant 60 updateColor(expectedColor) in updateColor_updatesColor() 63 assertThat(rippleAnimationConfig.color).isEqualTo(expectedColor) in updateColor_updatesColor()
|
D | RippleAnimationTest.kt | 83 val expectedColor = Color.RED in updateColor_updatesColorCorrectly() constant 90 updateColor(expectedColor) in updateColor_updatesColorCorrectly() 93 assertThat(config.color).isEqualTo(expectedColor) in updateColor_updatesColorCorrectly()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/ |
D | DefaultClockProviderTest.kt | 109 val expectedColor = 0 in createClock() constant 110 verify(mockSmallClockView).setColors(DOZE_COLOR, expectedColor) in createClock() 111 verify(mockLargeClockView).setColors(DOZE_COLOR, expectedColor) in createClock() 167 val expectedColor = 0 in createClock() constant 175 verify(mockSmallClockView).setColors(DOZE_COLOR, expectedColor) in createClock() 176 verify(mockLargeClockView).setColors(DOZE_COLOR, expectedColor) in createClock()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/surfaceeffects/turbulencenoise/ |
D | TurbulenceNoiseControllerTest.kt | 155 val expectedColor = Color.RED in updateColor_updatesCorrectColor() constant 162 turbulenceNoiseController.updateNoiseColor(expectedColor) in updateColor_updatesCorrectColor() 166 assertThat(config.color).isEqualTo(expectedColor) in updateColor_updatesCorrectColor()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | ScreenCapture_test.cpp | 967 uint8_t expectedColor = luminance.r * 255; in TEST_F() local 969 Color{expectedColor, expectedColor, expectedColor, 255}, tolerance); in TEST_F() 974 expectedColor = luminance.b * 255; in TEST_F() 976 Color{expectedColor, expectedColor, expectedColor, 255}, tolerance); in TEST_F()
|
D | LayerRenderTypeTransaction_test.cpp | 482 Color expectedColor = Color::BLACK; in setBackgroundColorHelper() local 490 expectedColor = fillColor; in setBackgroundColorHelper() 496 expectedColor = fillColor; in setBackgroundColorHelper() 504 expectedColor = fillColor; in setBackgroundColorHelper() 518 expectedColor = priorBgColor; in setBackgroundColorHelper() 524 screenshot()->expectColor(Rect(0, 0, width, height), expectedColor); in setBackgroundColorHelper() 1472 const Color expectedColor = {uint8_t(expected.r * 255), uint8_t(expected.g * 255), in TEST_P() local 1482 getScreenCapture()->expectColor(Rect(0, 0, 32, 32), expectedColor, tolerance); in TEST_P() 1526 const Color expectedColor = {uint8_t(expected.r * 255), uint8_t(expected.g * 255), in TEST_P() local 1539 getScreenCapture()->expectColor(Rect(0, 0, 32, 32), expectedColor, tolerance); in TEST_P() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/sensorprivacy/ |
D | CameraPrivacyLightControllerTest.java | 326 int expectedColor = mDefaultColors[i]; in testAlsThresholds() local 337 assertEquals(expectedColor, lightState.getColor()); in testAlsThresholds()
|