Loading services/core/java/com/android/server/power/ThermalManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1806,7 +1806,7 @@ public class ThermalManagerService extends SystemService { continue; } float currentTemperature = samples.get(0).temperature; float currentTemperature = samples.get(samples.size() - 1).temperature; if (samples.size() < MINIMUM_SAMPLE_COUNT) { // Don't try to forecast, just use the latest one we have Loading services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -551,7 +551,7 @@ public class ThermalManagerServiceTest { // Add some time-series data for (int i = 1; i < 20; ++i) { samples.add(0, watcher.createSampleForTesting(1000 * i, 25.0f + 0.5f * i)); samples.add(watcher.createSampleForTesting(1000 * i, 25.0f + 0.5f * i)); } // Now the forecast should vary depending on how far ahead we are trying to predict Loading Loading
services/core/java/com/android/server/power/ThermalManagerService.java +1 −1 Original line number Diff line number Diff line Loading @@ -1806,7 +1806,7 @@ public class ThermalManagerService extends SystemService { continue; } float currentTemperature = samples.get(0).temperature; float currentTemperature = samples.get(samples.size() - 1).temperature; if (samples.size() < MINIMUM_SAMPLE_COUNT) { // Don't try to forecast, just use the latest one we have Loading
services/tests/servicestests/src/com/android/server/power/ThermalManagerServiceTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -551,7 +551,7 @@ public class ThermalManagerServiceTest { // Add some time-series data for (int i = 1; i < 20; ++i) { samples.add(0, watcher.createSampleForTesting(1000 * i, 25.0f + 0.5f * i)); samples.add(watcher.createSampleForTesting(1000 * i, 25.0f + 0.5f * i)); } // Now the forecast should vary depending on how far ahead we are trying to predict Loading