@@ -61,6 +61,9 @@ public final class DisplayManager {
61
61
* {@link #EXTRA_WIFI_DISPLAY_STATUS} extra.
62
62
* </p><p>
63
63
* This broadcast is only sent to registered receivers and can only be sent by the system.
64
+ * </p><p>
65
+ * {@link android.Manifest.permission#ACCESS_FINE_LOCATION} permission is required to
66
+ * receive this broadcast.
64
67
* </p>
65
68
* @hide
66
69
*/
@@ -875,37 +878,76 @@ public interface DisplayListener {
875
878
public interface DeviceConfig {
876
879
877
880
/**
878
- * Key for refresh rate in the zone defined by thresholds.
881
+ * Key for refresh rate in the low zone defined by thresholds.
879
882
*
883
+ * Note that the name and value don't match because they were added before we had a high
884
+ * zone to consider.
880
885
* @see android.provider.DeviceConfig#NAMESPACE_DISPLAY_MANAGER
881
886
* @see android.R.integer#config_defaultZoneBehavior
882
887
*/
883
- String KEY_REFRESH_RATE_IN_ZONE = "refresh_rate_in_zone" ;
888
+ String KEY_REFRESH_RATE_IN_LOW_ZONE = "refresh_rate_in_zone" ;
884
889
885
890
/**
886
- * Key for accessing the display brightness thresholds for the configured refresh rate zone.
891
+ * Key for accessing the low display brightness thresholds for the configured refresh
892
+ * rate zone.
887
893
* The value will be a pair of comma separated integers representing the minimum and maximum
888
894
* thresholds of the zone, respectively, in display backlight units (i.e. [0, 255]).
895
+ *
896
+ * Note that the name and value don't match because they were added before we had a high
897
+ * zone to consider.
889
898
*
890
899
* @see android.provider.DeviceConfig#NAMESPACE_DISPLAY_MANAGER
891
900
* @see android.R.array#config_brightnessThresholdsOfPeakRefreshRate
892
901
* @hide
893
902
*/
894
- String KEY_PEAK_REFRESH_RATE_DISPLAY_BRIGHTNESS_THRESHOLDS =
903
+ String KEY_FIXED_REFRESH_RATE_LOW_DISPLAY_BRIGHTNESS_THRESHOLDS =
895
904
"peak_refresh_rate_brightness_thresholds" ;
896
905
897
906
/**
898
- * Key for accessing the ambient brightness thresholds for the configured refresh rate zone.
899
- * The value will be a pair of comma separated integers representing the minimum and maximum
900
- * thresholds of the zone, respectively, in lux.
907
+ * Key for accessing the low ambient brightness thresholds for the configured refresh
908
+ * rate zone. The value will be a pair of comma separated integers representing the minimum
909
+ * and maximum thresholds of the zone, respectively, in lux.
901
910
*
911
+ * Note that the name and value don't match because they were added before we had a high
912
+ * zone to consider.
913
+ *
902
914
* @see android.provider.DeviceConfig#NAMESPACE_DISPLAY_MANAGER
903
915
* @see android.R.array#config_ambientThresholdsOfPeakRefreshRate
904
916
* @hide
905
917
*/
906
- String KEY_PEAK_REFRESH_RATE_AMBIENT_BRIGHTNESS_THRESHOLDS =
918
+ String KEY_FIXED_REFRESH_RATE_LOW_AMBIENT_BRIGHTNESS_THRESHOLDS =
907
919
"peak_refresh_rate_ambient_thresholds" ;
920
+ /**
921
+ * Key for refresh rate in the high zone defined by thresholds.
922
+ *
923
+ * @see android.provider.DeviceConfig#NAMESPACE_DISPLAY_MANAGER
924
+ * @see android.R.integer#config_fixedRefreshRateInHighZone
925
+ */
926
+ String KEY_REFRESH_RATE_IN_HIGH_ZONE = "refresh_rate_in_high_zone" ;
927
+
928
+ /**
929
+ * Key for accessing the display brightness thresholds for the configured refresh rate zone.
930
+ * The value will be a pair of comma separated integers representing the minimum and maximum
931
+ * thresholds of the zone, respectively, in display backlight units (i.e. [0, 255]).
932
+ *
933
+ * @see android.provider.DeviceConfig#NAMESPACE_DISPLAY_MANAGER
934
+ * @see android.R.array#config_brightnessHighThresholdsOfFixedRefreshRate
935
+ * @hide
936
+ */
937
+ String KEY_FIXED_REFRESH_RATE_HIGH_DISPLAY_BRIGHTNESS_THRESHOLDS =
938
+ "fixed_refresh_rate_high_display_brightness_thresholds" ;
908
939
940
+ /**
941
+ * Key for accessing the ambient brightness thresholds for the configured refresh rate zone.
942
+ * The value will be a pair of comma separated integers representing the minimum and maximum
943
+ * thresholds of the zone, respectively, in lux.
944
+ *
945
+ * @see android.provider.DeviceConfig#NAMESPACE_DISPLAY_MANAGER
946
+ * @see android.R.array#config_ambientHighThresholdsOfFixedRefreshRate
947
+ * @hide
948
+ */
949
+ String KEY_FIXED_REFRESH_RATE_HIGH_AMBIENT_BRIGHTNESS_THRESHOLDS =
950
+ "fixed_refresh_rate_high_ambient_brightness_thresholds" ;
909
951
/**
910
952
* Key for default peak refresh rate
911
953
*
0 commit comments