Settings: add a new developer menu entry to show hdr/sdr ratio overlay.

- The hdr/sdr ratio overlay will be shown on screen if the option is
  selected from the developer option.
- This option is hidden on non-HDR-supported devices.
- Add flags: com.android.settings.flags.development_hdr_sdr_ratio

Test: enable show hdr/sdr ratio from developer menu; com.android.settings.development.ShowHdrSdrRatioPreferenceControllerTest
Bug: 291863102
Change-Id: Idd72f95c67c95cd8127f9b94e031b3d87b18e307
This commit is contained in:
Sally Qi
2023-06-26 16:11:53 -07:00
parent c7c82de77e
commit fbb088ffdb
8 changed files with 345 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ aconfig_declarations {
srcs: [
"settings_accessibility_flag_declarations.aconfig",
"settings_connecteddevice_flag_declarations.aconfig",
"settings_development_flag_declarations.aconfig",
"settings_globalintl_flag_declarations.aconfig",
"settings_experience_flag_declarations.aconfig",
"settings_onboarding_experience_flag_declarations.aconfig",

View File

@@ -0,0 +1,13 @@
package: "com.android.settings.flags"
# NOTE: Keep alphabetized to help limit merge conflicts from multiple simultaneous editors.
# NOTE: All Settings flags share the same Flags class, so prefix our
# flags with 'development' to prevent naming collision.
flag {
name: "development_hdr_sdr_ratio"
namespace: "core_graphics"
description: "Shows hdr/sdr dev opton on the development options page from aconfig"
bug: "291863102"
}