Home
last modified time | relevance | path

Searched refs:brightness (Results 1 – 6 of 6) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DEmbossMaskFilterTest.java73 assertTrue(brightness(bitmap, top) > brightness(bitmap, bottom)); in testEmbossMaskFilter()
74 assertTrue(brightness(bitmap, left) > brightness(bitmap, right)); in testEmbossMaskFilter()
78 assertEquals(0, brightness(bitmap, top)); in testEmbossMaskFilter()
80 assertEquals(0, brightness(bitmap, bottom)); in testEmbossMaskFilter()
82 assertEquals(0, brightness(bitmap, left)); in testEmbossMaskFilter()
84 assertEquals(0, brightness(bitmap, right)); in testEmbossMaskFilter()
91 private long brightness(Bitmap b, Rect rect) { in brightness() method in EmbossMaskFilterTest
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java130 assertEquals(secondEvent.lastBrightness, firstEvent.brightness, 1.0f); in testBrightnessSliderTracking()
132 assertTrue("failed " + secondEvent.brightness + " not greater than " + in testBrightnessSliderTracking()
133 firstEvent.brightness, secondEvent.brightness > firstEvent.brightness); in testBrightnessSliderTracking()
392 int brightness = 25; in waitForFirstSliderEvent() local
394 setSystemSetting(Settings.System.SCREEN_BRIGHTNESS, brightness); in waitForFirstSliderEvent()
395 brightness = brightness == 25 ? 80 : 25; in waitForFirstSliderEvent()
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java24 public static float brightness(int argb) { in brightness() method in ColorUtils
DLightBarTests.java266 if (ColorUtils.brightness(c) > ColorUtils.brightness(background)) { in evaluateLightBarBitmap()
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java532 private static void setScreenBrightness(int brightness) { in setScreenBrightness() argument
533 runShellCommand("settings put system screen_brightness " + brightness); in setScreenBrightness()
/cts/hostsidetests/statsd/src/android/cts/statsd/atom/
DAtomTestCase.java839 protected void setScreenBrightness(int brightness) throws Exception { in setScreenBrightness() argument
840 getDevice().executeShellCommand("settings put system screen_brightness " + brightness); in setScreenBrightness()