Home
last modified time | relevance | path

Searched refs:ThrottlingLevel (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DBrightnessThrottlerTest.java45 …ort com.android.server.display.DisplayDeviceConfig.ThermalBrightnessThrottlingData.ThrottlingLevel;
99 List<ThrottlingLevel> singleLevel = new ArrayList<>(); in testThermalBrightnessThrottlingData()
100 singleLevel.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.25f)); in testThermalBrightnessThrottlingData()
102 List<ThrottlingLevel> validLevels = new ArrayList<>(); in testThermalBrightnessThrottlingData()
103 validLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.62f)); in testThermalBrightnessThrottlingData()
104 validLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.25f)); in testThermalBrightnessThrottlingData()
106 List<ThrottlingLevel> unsortedThermalLevels = new ArrayList<>(); in testThermalBrightnessThrottlingData()
107 unsortedThermalLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.62f)); in testThermalBrightnessThrottlingData()
108 unsortedThermalLevels.add(new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.25f)); in testThermalBrightnessThrottlingData()
110 List<ThrottlingLevel> unsortedBrightnessLevels = new ArrayList<>(); in testThermalBrightnessThrottlingData()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/
DBrightnessThermalClamperTest.java39 …ort com.android.server.display.DisplayDeviceConfig.ThermalBrightnessThrottlingData.ThrottlingLevel;
99 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
100 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.1f)), in testThrottlingData()
104 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
105 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.1f)), in testThrottlingData()
109 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
110 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.1f)), in testThrottlingData()
114 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
115 new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 0.1f)), in testThrottlingData()
119 new ThrottlingLevel(PowerManager.THERMAL_STATUS_MODERATE, 0.5f), in testThrottlingData()
[all …]
DBrightnessPowerClamperTest.java34 import com.android.server.display.DisplayDeviceConfig.PowerThrottlingData.ThrottlingLevel;
90 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_SEVERE, 100f)))); in testPowerThrottlingNoOngoingAnimation()
102 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 50f)))); in testPowerThrottlingNoOngoingAnimation()
118 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_SEVERE, 100f)))); in testPowerThrottlingWithOngoingAnimation()
130 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_CRITICAL, 50f)))); in testPowerThrottlingWithOngoingAnimation()
147 List.of(new ThrottlingLevel(PowerManager.THERMAL_STATUS_LIGHT, 100f)))); in testPowerThrottlingRemoveBrightnessCap()
211 private TestPowerData(List<ThrottlingLevel> data) { in TestPowerData()
215 private TestPowerData(String uniqueDisplayId, String dataId, List<ThrottlingLevel> data) { in TestPowerData()
/frameworks/base/services/core/java/com/android/server/display/brightness/clamper/
DBrightnessPowerClamper.java33 import com.android.server.display.DisplayDeviceConfig.PowerThrottlingData.ThrottlingLevel;
76 private final BiFunction<String, String, ThrottlingLevel> mDataPointMapper = (key, value) -> {
80 return new ThrottlingLevel(status, powerQuota);
86 private final Function<List<ThrottlingLevel>, PowerThrottlingData>
223 for (ThrottlingLevel level : mPowerThrottlingDataActive.throttlingLevels) { in getPowerQuotaForThermalStatus()
DBrightnessThermalClamper.java37 …ort com.android.server.display.DisplayDeviceConfig.ThermalBrightnessThrottlingData.ThrottlingLevel;
77 private final BiFunction<String, String, ThrottlingLevel> mDataPointMapper = (key, value) -> {
81 return new ThrottlingLevel(status, brightnessPoint);
87 private final Function<List<ThrottlingLevel>, ThermalBrightnessThrottlingData>
183 for (ThrottlingLevel level : mThermalThrottlingDataActive.throttlingLevels) { in recalculateBrightnessCap()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayDeviceConfig.java1995 List<ThermalBrightnessThrottlingData.ThrottlingLevel> throttlingLevels = in loadThermalBrightnessThrottlingMaps()
2006 throttlingLevels.add(new ThermalBrightnessThrottlingData.ThrottlingLevel( in loadThermalBrightnessThrottlingMaps()
2084 List<PowerThrottlingData.ThrottlingLevel> throttlingLevels = in loadPowerThrottlingMaps()
2095 throttlingLevels.add(new PowerThrottlingData.ThrottlingLevel( in loadPowerThrottlingMaps()
3020 public List<ThrottlingLevel> throttlingLevels;
3025 public static class ThrottlingLevel { class in DisplayDeviceConfig.PowerThrottlingData
3029 public ThrottlingLevel( in ThrottlingLevel() method in DisplayDeviceConfig.PowerThrottlingData.ThrottlingLevel
3042 if (!(obj instanceof ThrottlingLevel)) { in equals()
3045 ThrottlingLevel otherThrottlingLevel = (ThrottlingLevel) obj; in equals()
3065 List<ThrottlingLevel> throttlingLevels) { in create()
[all …]
DBrightnessThrottler.java39 …ort com.android.server.display.DisplayDeviceConfig.ThermalBrightnessThrottlingData.ThrottlingLevel;
115 private final BiFunction<String, String, ThrottlingLevel> mDataPointMapper = (key, value) -> {
119 return new ThrottlingLevel(status, brightnessPoint);
125 private final Function<List<ThrottlingLevel>, ThermalBrightnessThrottlingData>
235 for (ThrottlingLevel level : mThermalThrottlingData.throttlingLevels) { in updateThermalThrottling()