Home
last modified time | relevance | path

Searched refs:Temperature (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DThermalManagerServiceTest.java38 import android.os.Temperature;
87 private static final int INIT_STATUS = Temperature.THROTTLING_NONE;
88 private ArrayList<Temperature> mTemperatureList = new ArrayList<>();
91 private Temperature mSkin1 = new Temperature(0, Temperature.TYPE_SKIN, "skin1",
93 private Temperature mSkin2 = new Temperature(0, Temperature.TYPE_SKIN, "skin2",
95 private Temperature mBattery = new Temperature(0, Temperature.TYPE_BATTERY, "batt",
97 private Temperature mUsbPort = new Temperature(0, Temperature.TYPE_USB_PORT, "usbport",
112 protected List<Temperature> getCurrentTemperatures(boolean shouldFilter, int type) { in getCurrentTemperatures()
113 List<Temperature> ret = new ArrayList<>(); in getCurrentTemperatures()
114 for (Temperature temperature : mTemperatureList) { in getCurrentTemperatures()
[all …]
/frameworks/base/services/core/java/com/android/server/power/
DThermalManagerService.java39 import android.os.Temperature;
93 private ArrayMap<String, Temperature> mTemperatureMap = new ArrayMap<>();
148 List<Temperature> temperatures = mHalWrapper.getCurrentTemperatures(false, in onActivityManagerReady()
173 if (!Temperature.isValidStatus(mStatus)) { in notifyStatusListenersLocked()
192 Temperature t = mTemperatureMap.valueAt(i); in onTemperatureMapChangedLocked()
221 private void postEventListener(Temperature temperature, in postEventListener()
240 private void notifyEventListenersLocked(Temperature temperature) { in notifyEventListenersLocked()
255 private void shutdownIfNeeded(Temperature temperature) { in shutdownIfNeeded()
256 if (temperature.getStatus() != Temperature.THROTTLING_SHUTDOWN) { in shutdownIfNeeded()
261 case Temperature.TYPE_CPU: in shutdownIfNeeded()
[all …]
/frameworks/base/core/java/android/os/
DTemperature.java34 public final class Temperature implements Parcelable { class
112 public Temperature(float value, @Type int type, in Temperature() method in Temperature
175 if (!(o instanceof Temperature)) { in equals()
178 Temperature other = (Temperature) o; in equals()
191 public static final @android.annotation.NonNull Parcelable.Creator<Temperature> CREATOR =
192 new Parcelable.Creator<Temperature>() {
194 public Temperature createFromParcel(Parcel p) {
199 return new Temperature(value, type, name, status);
203 public Temperature[] newArray(int size) {
204 return new Temperature[size];
DIThermalService.aidl22 import android.os.Temperature;
59 List<Temperature> getCurrentTemperatures(); in getCurrentTemperatures()
67 List<Temperature> getCurrentTemperaturesWithType(in int type); in getCurrentTemperaturesWithType()
DIThermalEventListener.aidl19 import android.os.Temperature;
30 void notifyThrottling(in Temperature temperature); in notifyThrottling()
DTemperature.aidl19 parcelable Temperature;
DPowerManager.java1729 public static final int THERMAL_STATUS_NONE = Temperature.THROTTLING_NONE;
1734 public static final int THERMAL_STATUS_LIGHT = Temperature.THROTTLING_LIGHT;
1739 public static final int THERMAL_STATUS_MODERATE = Temperature.THROTTLING_MODERATE;
1744 public static final int THERMAL_STATUS_SEVERE = Temperature.THROTTLING_SEVERE;
1749 public static final int THERMAL_STATUS_CRITICAL = Temperature.THROTTLING_CRITICAL;
1755 public static final int THERMAL_STATUS_EMERGENCY = Temperature.THROTTLING_EMERGENCY;
1760 public static final int THERMAL_STATUS_SHUTDOWN = Temperature.THROTTLING_SHUTDOWN;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/
DPowerUITest.java35 import android.os.Temperature;
102 final Temperature temp = getCriticalStatusTemp(Temperature.TYPE_SKIN, "skin1"); in testSkinWarning_throttlingCritical()
115 final Temperature temp = getEmergencyStatusTemp(Temperature.TYPE_SKIN, "skin2"); in testSkinWarning_throttlingEmergency()
128 final Temperature temp = getCriticalStatusTemp(Temperature.TYPE_USB_PORT, "usb1"); in testUsbAlarm_throttlingCritical()
140 final Temperature temp = getEmergencyStatusTemp(Temperature.TYPE_USB_PORT, "usb2"); in testUsbAlarm_throttlingEmergency()
158 .registerThermalEventListenerWithType(anyObject(), eq(Temperature.TYPE_SKIN)); in testSettingOverrideConfig_enableSkinTemperatureWarning()
171 .registerThermalEventListenerWithType(anyObject(), eq(Temperature.TYPE_USB_PORT)); in testSettingOverrideConfig_enableUsbTemperatureAlarm()
184 .registerThermalEventListenerWithType(anyObject(), eq(Temperature.TYPE_SKIN)); in testSettingOverrideConfig_disableSkinTemperatureWarning()
197 .registerThermalEventListenerWithType(anyObject(), eq(Temperature.TYPE_USB_PORT)); in testSettingOverrideConfig_disableUsbTemperatureAlarm()
207 anyObject(), eq(Temperature.TYPE_SKIN))).thenReturn(true); in testThermalEventListenerRegistration_success_skinType()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityMetricsLaunchObserver.java87 @interface Temperature {} annotation
147 @Temperature int temperature); in onActivityLaunched()
DLaunchObserverRegistryImpl.java137 @Temperature int temperature) { in handleOnActivityLaunched()
DActivityMetricsLogger.java1041 @ActivityMetricsLaunchObserver.Temperature int temperature = in launchObserverNotifyActivityLaunched()
1102 private static @ActivityMetricsLaunchObserver.Temperature int
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java35 import android.os.Temperature;
495 mSkinThermalEventListener, Temperature.TYPE_SKIN); in doSkinThermalEventListenerRegistration()
530 mUsbThermalEventListener, Temperature.TYPE_USB_PORT); in doUsbThermalEventListenerRegistration()
637 @Override public void notifyThrottling(Temperature temp) { in notifyThrottling()
640 if (status >= Temperature.THROTTLING_EMERGENCY) { in notifyThrottling()
657 @Override public void notifyThrottling(Temperature temp) { in notifyThrottling()
660 if (status >= Temperature.THROTTLING_EMERGENCY) { in notifyThrottling()
/frameworks/base/services/core/jni/
Dcom_android_server_HardwarePropertiesManagerService.cpp39 using hardware::thermal::V1_0::Temperature;
160 hidl_vec<Temperature> list; in nativeGetDeviceTemperatures()
162 [&list](ThermalStatus status, hidl_vec<Temperature> temperatures) { in nativeGetDeviceTemperatures()
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DAppLaunchEvent.java31 import com.android.server.wm.ActivityMetricsLaunchObserver.Temperature;
182 public final @ActivityMetricsLaunchObserver.Temperature
187 @ActivityMetricsLaunchObserver.Temperature int temperature) { in ActivityLaunched()
DIorapForwardingService.java41 import com.android.server.wm.ActivityMetricsLaunchObserver.Temperature;
300 @Temperature int temperature) {
/frameworks/hardware/interfaces/stats/1.0/
Dtypes.hal125 /* Temperature Temperature, in 1/10ths of degree C. */
171 /* Temperature of USB port at USB plug event, in 1/10ths of degree C. */
DIStats.hal60 * Resistance, Voltage, Open Circuit Voltage, Temperature, and Charge Level
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java97 import android.os.Temperature;
1883 List<Temperature> temperatures = sThermalService.getCurrentTemperatures(); in pullTemperature()
1884 for (Temperature temp : temperatures) { in pullTemperature()
2711 public void notifyThrottling(Temperature temp) { in notifyThrottling()
/frameworks/base/services/core/java/com/android/server/job/
DJobSchedulerService.java70 import android.os.Temperature;
326 mThermalConstraint = status >= Temperature.THROTTLING_SEVERE; in onStatusChange()
/frameworks/base/cmds/statsd/src/
Datoms.proto348 Temperature temperature = 10021;
2371 * Resistance, Voltage, Open Circuit Voltage, Temperature, and Charge Level
2390 // Temperature, in 1/10ths of degree C.
2443 // Temperature in tenths of a degree C.
3418 /* Temperature of USB port at USB plug event, in 1/10ths of degree C. */
4151 message Temperature { message
4158 // Temperature in tenths of a degree C.
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto928 // Temperature at which the high temperature warning notification should
/frameworks/base/services/
Dart-profile12405 …r/-$$Lambda$ThermalManagerService$9JFHCKCwrnUIYoXDsqNamhlY5VU;->onValues(Landroid/os/Temperature;)V
12600 …nagerService$ThermalHal20Wrapper$1;->notifyThrottling(Landroid/hardware/thermal/V2_0/Temperature;)V
12609 …erService;->lambda$postEventListener$1(Landroid/os/IThermalEventListener;Landroid/os/Temperature;)V
12611 …/android/server/power/ThermalManagerService;->notifyEventListenersLocked(Landroid/os/Temperature;)V
12616 HSPLcom/android/server/power/ThermalManagerService;->onTemperatureChanged(Landroid/os/Temperature;Z…
12617 …ndroid/server/power/ThermalManagerService;->onTemperatureChangedCallback(Landroid/os/Temperature;)V
12619 HSPLcom/android/server/power/ThermalManagerService;->postEventListener(Landroid/os/Temperature;Land…
12621 HSPLcom/android/server/power/ThermalManagerService;->shutdownIfNeeded(Landroid/os/Temperature;)V
13148 …rver/stats/StatsCompanionService$ThermalEventListener;->notifyThrottling(Landroid/os/Temperature;)V