Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1d2e8a19 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix...

Merge "Fix CtsOsTestCases.android.os.cts.PowerManager_ThermalTest#testGetThermalHeadroomThresholds errors" into main am: 2c880275

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3244081



Change-Id: Ic4346462c8fcaad2cb79e1142aca814b7381471f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e13e4f31 2c880275
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1644,8 +1644,7 @@ public class ThermalManagerService extends SystemService {
                        if (Flags.allowThermalHeadroomThresholds()) {
                            for (int severity = ThrottlingSeverity.LIGHT;
                                    severity <= ThrottlingSeverity.SHUTDOWN; severity++) {
                                if (severity != ThrottlingSeverity.SEVERE
                                        && threshold.hotThrottlingThresholds.length > severity) {
                                if (threshold.hotThrottlingThresholds.length > severity) {
                                    updateHeadroomThreshold(severity,
                                            threshold.hotThrottlingThresholds[severity],
                                            severeThreshold);