Home
last modified time | relevance | path

Searched full:brightness (Results 1 – 25 of 28) sorted by relevance

12

/cts/apps/CameraITS/utils/
Dscene_change_utils.py22 _FRAME_SHIFT_SMALL = 5 # Num of frames to shift if scene or brightness change.
35 bright_change_flag: Boolean for if image brightness changes.
41 Truth table for 3A frame, Change flag, Bright flag, Last frame brightness
43 1, 1, 1, X --> PASS: 3A settled, scene and brightness change
44 1, 1, 0, X --> FAIL: 3A settled, scene change, but no brightness change
56 if bright_change_flag: # scene_change_flag & brightness change --> PASS
57 logging.debug('Scene & brightness change: PASS.')
59 else: # scene_change_flag & no brightness change --> FAIL
61 logging.error('Scene change, but no brightness change.')
65 logging.debug('No scene change flag, but brightness change.')
[all …]
Dits_session_utils.py1298 def _generate_test_image(self, brightness): argument
1299 """Creates a Y plane array with pixel values of brightness.
1302 brightness: float between [0.0, 1.0]
1305 Y plane array with elements of value brightness
1309 test_image.fill(brightness)
1315 for brightness in self._BRIGHTNESS_CHECKS:
1316 logging.debug('Testing validate_lighting with brightness %.1f',
1317 brightness)
1318 test_image = self._generate_test_image(brightness)
1319 print(f'Testing brightness: {brightness}')
[all …]
/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()
88 * Calculate the cumulative brightness of all pixels in the given rectangle.
91 private long brightness(Bitmap b, Rect rect) { in brightness() method in EmbossMaskFilterTest
/cts/tests/tests/hardware/res/raw/
Dsony_dualshock4_bluetooth_lighttests.json6 "capabilities": "RGB | BRIGHTNESS",
12 "ledsHidOutput": // RGB leds brightness
22 "capabilities": "RGB | BRIGHTNESS",
28 "ledsHidOutput": // RGB leds brightness
38 "capabilities": "RGB | BRIGHTNESS",
44 "ledsHidOutput": // RGB leds brightness
/cts/tests/tests/display/src/android/display/cts/
DBrightnessTest.java115 // Update brightness in testBrightnessSliderTracking()
124 // Update brightness again in testBrightnessSliderTracking()
132 assertEquals(secondEvent.lastBrightness, firstEvent.brightness, 1.0f); in testBrightnessSliderTracking()
134 assertTrue("failed " + secondEvent.brightness + " not greater than " + in testBrightnessSliderTracking()
135 firstEvent.brightness, secondEvent.brightness > firstEvent.brightness); in testBrightnessSliderTracking()
164 // Then change the brightness in testNoTrackingForManualBrightness()
197 // Set brightness config to not sample color. in testNoColorSampleData()
360 // Update brightness while we have a custom curve.
371 // Update brightness again now with default curve.
454 // Keep changing brightness until we get an event to handle devices with sensors in waitForFirstSliderEvent()
[all …]
DDisplayTest.java951 // brightness.
1105 * Sets the brightness via the shell cmd.
1108 Process process = Runtime.getRuntime().exec("cmd display set-brightness " + value);
/cts/tests/tests/display/
DAndroidManifest.xml24 <!-- For testing brightness slider tracking. -->
27 <!-- For testing pushing brightness curves. -->
29 <!-- For querying to see if packages exist with the brightness permissions. -->
/cts/apps/CameraITS/tests/
Dits_base_test.py100 self.tablet_screen_brightness = self.user_params['brightness']
147 # Turn off the adaptive brightness on tablet.
151 # Set the screen brightness
155 logging.debug('Tablet brightness set to: %s',
/cts/apps/CameraITS/tests/scene_change/
Dtest_scene_change.py71 and the second is for whether brightness in images changed.
175 Depending on scene brightness changes and scene change flag assertions during
202 logging.debug('Tablet brightness: %d', tablet_level)
215 # Find frame where 3A converges and final brightness.
/cts/apps/CameraITS/
Dconfig.yml28 brightness: 96
/cts/tests/tests/graphics/src/android/graphics/cts/utils/
DCam.java66 * Brightness in CAM16.
68 * <p>Prefer lightness, brightness is an absolute quantity. For example, a sheet of white paper
89 * <p>Colorfulness in proportion to brightness. Prefer chroma, saturation measures colorfulness
90 * relative to the color's own brightness, where chroma is colorfulness relative to white.
191 // CAM16 lightness and brightness in fromIntInFrame()
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java24 public static float brightness(int argb) { in brightness() method in ColorUtils
DLightBarTests.java410 if (ColorUtils.brightness(c) > ColorUtils.brightness(background)) { in evaluateBarBitmap()
/cts/tests/tests/media/
DAndroidTest.xml26 <option name="screen-adaptive-brightness" value="off" />
/cts/apps/CameraITS/tests/scene1_1/
Dtest_locked_burst.py97 # Assert center patch brightness & similarity
Dtest_auto_vs_manual.py64 however there can be variations in brightness/contrast due to different
Dtest_ev_compensation_advanced.py49 # Use linear tonemap to avoid brightness being impacted by tone curves.
Dtest_param_flash_mode.py126 logging.debug('Brightness means: %s', str(means))
Dtest_exposure.py155 each other; result should be the same brightness, but over the sequence
/cts/hostsidetests/incident/src/com/android/server/cts/
DPowerIncidentTest.java74 …assertTrue("Brightness limit max setting (" + settingMax + ") is less than min setting (" + settin… in verifyPowerManagerServiceDumpProto()
/cts/apps/CameraITS/tests/scene1_2/
Dtest_yuv_jpeg_all.py14 """Verifies YUV & JPEG image captures have similar brightness."""
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DUidAtomTests.java644 // Restore initial screen brightness in testScreenBrightness()
919 private void setScreenBrightness(int brightness) throws Exception { in setScreenBrightness() argument
920 getDevice().executeShellCommand("settings put system screen_brightness " + brightness); in setScreenBrightness()
/cts/apps/CameraITS/tests/scene2_b/
Dtest_auto_per_frame_control.py167 pylab.plot(range(len(lumas)), lumas, '-g.', label='Center patch brightness')
/cts/hostsidetests/statsdatom/apps/statsdapp/src/com/android/server/cts/device/statsdatom/
DAtomTests.java1094 private static void setScreenBrightness(int brightness) { in setScreenBrightness() argument
1095 runShellCommand("settings put system screen_brightness " + brightness); in setScreenBrightness()
/cts/tests/tests/text/src/android/text/cts/
DEmojiConstants.java772 0x1F505, // LOW BRIGHTNESS SYMBOL
773 0x1F506, // HIGH BRIGHTNESS SYMBOL

12