/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
H A D | ThermalManagerServiceTest.java | 98 private Temperature mSkin1 = new Temperature(0, Temperature.TYPE_SKIN, "skin1", 100 private Temperature mSkin2 = new Temperature(0, Temperature.TYPE_SKIN, "skin2", 102 private Temperature mBattery = new Temperature(0, Temperature.TYPE_BATTERY, "batt", 104 private Temperature mUsbPort = new Temperature(0, Temperature.TYPE_USB_PORT, "usbport", 288 Temperature newBattery = new Temperature(50, Temperature.TYPE_BATTERY, "batt", status); in testNotify() 300 Temperature newSkin = new Temperature(50, Temperature.TYPE_SKIN, "skin1", status); in testNotify() 325 newSkin = new Temperature(50, Temperature.TYPE_SKIN, "skin1", status); in testNotify() 350 Temperature newSkin = new Temperature(100, Temperature.TYPE_SKIN, "skin1", status); in testGetCurrentStatus() 354 Temperature newBattery = new Temperature(60, Temperature.TYPE_BATTERY, "batt", battStatus); in testGetCurrentStatus() 361 Temperature newSkin = new Temperature(100, Temperature.TYPE_SKIN, "skin1", status); in testThermalShutdown() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/power/ |
H A D | ThermalManagerService.java | 43 import android.os.Temperature; 121 mStatus = Temperature.THROTTLING_NONE; in ThermalManagerService() 273 case Temperature.TYPE_CPU: in shutdownIfNeeded() 275 case Temperature.TYPE_GPU: in shutdownIfNeeded() 277 case Temperature.TYPE_NPU: in shutdownIfNeeded() 279 case Temperature.TYPE_SKIN: in shutdownIfNeeded() 282 case Temperature.TYPE_BATTERY: in shutdownIfNeeded() 373 return new Temperature[0]; 390 return new Temperature[0]; 802 Temperature thermalSvcTemp = new Temperature( [all …]
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | Temperature.java | 35 public final class Temperature implements Parcelable { class 113 public Temperature(float value, @Type int type, in Temperature() method in Temperature 176 if (!(o instanceof Temperature)) { in equals() 179 Temperature other = (Temperature) o; in equals() 192 public static final @android.annotation.NonNull Parcelable.Creator<Temperature> CREATOR = 193 new Parcelable.Creator<Temperature>() { 195 public Temperature createFromParcel(Parcel p) { 200 return new Temperature(value, type, name, status); 204 public Temperature[] newArray(int size) { 205 return new Temperature[size];
|
H A D | IThermalService.aidl | 22 import android.os.Temperature; 59 Temperature[] getCurrentTemperatures(); in getCurrentTemperatures() 67 Temperature[] getCurrentTemperaturesWithType(in int type); in getCurrentTemperaturesWithType()
|
H A D | IThermalEventListener.aidl | 19 import android.os.Temperature; 30 void notifyThrottling(in Temperature temperature); in notifyThrottling()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
H A D | PowerUITest.java | 38 import android.os.Temperature; 124 final Temperature temp = getCriticalStatusTemp(Temperature.TYPE_SKIN, "skin1"); in testSkinWarning_throttlingCritical() 137 final Temperature temp = getEmergencyStatusTemp(Temperature.TYPE_SKIN, "skin2"); in testSkinWarning_throttlingEmergency() 150 final Temperature temp = getCriticalStatusTemp(Temperature.TYPE_USB_PORT, "usb1"); in testUsbAlarm_throttlingCritical() 162 final Temperature temp = getEmergencyStatusTemp(Temperature.TYPE_USB_PORT, "usb2"); in testUsbAlarm_throttlingEmergency() 229 anyObject(), eq(Temperature.TYPE_SKIN))).thenReturn(true); in testThermalEventListenerRegistration_success_skinType() 342 anyObject(), eq(Temperature.TYPE_USB_PORT)); in testThermalEventListenerRegistration_fail_usbType() 681 private Temperature getEmergencyStatusTemp(int type, String name) { in getEmergencyStatusTemp() 683 return new Temperature(value, type, name, Temperature.THROTTLING_EMERGENCY); in getEmergencyStatusTemp() 686 private Temperature getCriticalStatusTemp(int type, String name) { in getCriticalStatusTemp() [all …]
|
/aosp12/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
H A D | BridgeThermalService.java | 24 import android.os.Temperature; 55 public Temperature[] getCurrentTemperatures() { in getCurrentTemperatures() 56 return new Temperature[0]; in getCurrentTemperatures() 60 public Temperature[] getCurrentTemperaturesWithType(int type) { in getCurrentTemperaturesWithType() 61 return new Temperature[0]; in getCurrentTemperaturesWithType()
|
/aosp12/system/iorap/include/binder/ |
H A D | app_launch_event.h | 48 enum class Temperature : int32_t { enum 60 Temperature temperature{Temperature::kUninitialized}; 70 Temperature temperature = Temperature::kUninitialized, 132 temperature = static_cast<Temperature>(temperature_int); in readFromParcel() 372 inline std::ostream& operator<<(std::ostream& os, const AppLaunchEvent::Temperature& type) { 374 case AppLaunchEvent::Temperature::kUninitialized: 377 case AppLaunchEvent::Temperature::kCold: 380 case AppLaunchEvent::Temperature::kWarm: 383 case AppLaunchEvent::Temperature::kHot:
|
/aosp12/hardware/google/camera/common/hal/hidl_service/ |
H A D | hidl_thermal_utils.h | 34 using ::android::hardware::thermal::V2_0::Temperature; 48 Return<void> notifyThrottling(const Temperature& temperature) override; 67 const Temperature& hidl_temperature, 68 google_camera_hal::Temperature* hal_temperature);
|
H A D | hidl_thermal_utils.cc | 194 const Temperature& hidl_temperature, in ConvertToHalTemperature() 195 google_camera_hal::Temperature* hal_temperature) { in ConvertToHalTemperature() 224 const Temperature& temperature) { in notifyThrottling() 225 google_camera_hal::Temperature hal_temperature; in notifyThrottling()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
H A D | HighBrightnessModeControllerTest.java | 39 import android.os.Temperature; 40 import android.os.Temperature.ThrottlingStatus; 312 mThermalEventListenerCaptor.capture(), eq(Temperature.TYPE_SKIN)); in testNoHbmInHighThermalState() 316 listener.notifyThrottling(getSkinTemp(Temperature.THROTTLING_CRITICAL)); in testNoHbmInHighThermalState() 331 mThermalEventListenerCaptor.capture(), eq(Temperature.TYPE_SKIN)); in testHbmTurnsOffInHighThermalState() 335 listener.notifyThrottling(getSkinTemp(Temperature.THROTTLING_LIGHT)); in testHbmTurnsOffInHighThermalState() 345 listener.notifyThrottling(getSkinTemp(Temperature.THROTTLING_CRITICAL)); in testHbmTurnsOffInHighThermalState() 350 listener.notifyThrottling(getSkinTemp(Temperature.THROTTLING_SEVERE)); in testHbmTurnsOffInHighThermalState() 490 private Temperature getSkinTemp(@ThrottlingStatus int status) { in getSkinTemp() 491 return new Temperature(30.0f, Temperature.TYPE_SKIN, "test_skin_temp", status); in getSkinTemp()
|
/aosp12/hardware/interfaces/thermal/1.1/vts/functional/ |
H A D | VtsHalThermalV1_1TargetTest.cpp | 26 using ::android::hardware::thermal::V1_0::Temperature; 35 static const Temperature kThrottleTemp = { 47 Temperature temperature; 58 const Temperature& temperature) override { in notifyThrottling()
|
/aosp12/hardware/interfaces/thermal/2.0/ |
H A D | types.hal | 94 * Name of this temperature matching the Temperature struct. 96 * e.g., cpu0, battery. Clients use it to match Temperature struct. 104 * Unit is same as Temperature's value. 112 * Unit is same as Temperature's value. 119 * Unit is same as Temperature's value. 124 struct Temperature {
|
H A D | IThermalChangedCallback.hal | 19 import android.hardware.thermal@2.0::Temperature; 32 oneway notifyThrottling (Temperature temperature);
|
/aosp12/hardware/interfaces/thermal/1.0/vts/functional/ |
H A D | VtsHalThermalV1_0TargetTest.cpp | 37 using ::android::hardware::thermal::V1_0::Temperature; 64 void checkTemperatures(const hidl_vec<Temperature> temperatures) { in checkTemperatures() 126 void checkDeviceTemperature(const Temperature& temperature) { in checkDeviceTemperature() 168 hidl_vec<Temperature> passed; in TEST_P() 171 [&passed](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P()
|
/aosp12/hardware/interfaces/thermal/2.0/vts/functional/ |
H A D | VtsHalThermalV2_0TargetTest.cpp | 38 using ::android::hardware::thermal::V2_0::Temperature; 44 static const Temperature kThrottleTemp = { 53 Temperature temperature; 60 Return<void> notifyThrottling(const Temperature& temperature) override { in notifyThrottling() 176 [](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() 189 true, type, [&type](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P()
|
/aosp12/frameworks/native/services/powermanager/include/android/ |
H A D | Temperature.h | 29 struct Temperature : public android::Parcelable { struct 39 Temperature() in Temperature() argument
|
/aosp12/frameworks/native/services/powermanager/ |
H A D | Temperature.cpp | 26 status_t Temperature::readFromParcel(const android::Parcel *parcel) { in readFromParcel() 40 status_t Temperature::writeToParcel(android::Parcel *parcel) const { in writeToParcel()
|
/aosp12/hardware/google/camera/common/hal/common/ |
H A D | thermal_types.h | 59 struct Temperature { struct 68 std::function<void(const Temperature& /*temperature*/)>; argument
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | ActivityMetricsLaunchObserver.java | 92 @interface Temperature {} annotation 152 @Temperature int temperature); in onActivityLaunched()
|
/aosp12/hardware/interfaces/thermal/1.1/ |
H A D | IThermalCallback.hal | 19 import android.hardware.thermal@1.0::Temperature; 32 oneway notifyThrottling(bool isThrottling, Temperature temperature);
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/power/ |
H A D | PowerUI.java | 35 import android.os.Temperature; 539 mSkinThermalEventListener, Temperature.TYPE_SKIN); in doSkinThermalEventListenerRegistration() 574 mUsbThermalEventListener, Temperature.TYPE_USB_PORT); in doUsbThermalEventListenerRegistration() 710 @Override public void notifyThrottling(Temperature temp) { in notifyThrottling() 713 if (status >= Temperature.THROTTLING_EMERGENCY) { in notifyThrottling() 730 @Override public void notifyThrottling(Temperature temp) { in notifyThrottling() 733 if (status >= Temperature.THROTTLING_EMERGENCY) { in notifyThrottling()
|
/aosp12/hardware/google/pixel/usb/include/pixelusb/ |
H A D | UsbOverheatEvent.h | 58 using ::android::hardware::thermal::V2_0::Temperature; 119 Return<void> notifyThrottling(const Temperature &temperature) override;
|
/aosp12/hardware/google/pixel/usb/ |
H A D | UsbOverheatEvent.cpp | 240 hidl_vec<Temperature> thermal_temperatures; in getCurrentTemperature() 247 [&](ThermalStatus status, hidl_vec<Temperature> temperatures) { in getCurrentTemperature() 289 Return<void> UsbOverheatEvent::notifyThrottling(const Temperature &temperature) { in notifyThrottling()
|
/aosp12/hardware/interfaces/thermal/2.0/default/ |
H A D | Thermal.h | 42 using Temperature_1_0 = ::android::hardware::thermal::V1_0::Temperature; 43 using Temperature_2_0 = ::android::hardware::thermal::V2_0::Temperature;
|