Lines Matching full:brightness
41 DEFAULT_TABLET_BRIGHTNESS = 192 # 8-bit tablet 75% brightness
47 BRIGHTNESS_ERROR_MSG = ('Tablet brightness not set as per '
62 def validate_tablet_brightness(tablet_name, brightness): argument
63 """Ensures tablet brightness is set according to documentation.
68 brightness: brightness specified by config file.
76 if brightness != name_to_brightness[tablet_name]:
79 if brightness != DEFAULT_TABLET_BRIGHTNESS:
1742 def _generate_test_image(self, brightness): argument
1743 """Creates a Y plane array with pixel values of brightness.
1746 brightness: float between [0.0, 1.0]
1749 Y plane array with elements of value brightness
1753 test_image.fill(brightness)
1759 for brightness in self._BRIGHTNESS_CHECKS:
1760 logging.debug('Testing validate_lighting with brightness %.1f',
1761 brightness)
1762 test_image = self._generate_test_image(brightness)
1763 print(f'Testing brightness: {brightness}')
1764 if brightness <= _VALIDATE_LIGHTING_THRESH:
1769 f'image value {brightness} should PASS')