/aosp12/frameworks/base/services/core/java/com/android/server/power/ |
H A D | ThermalManagerService.java | 264 temperature.getType(), temperature.getValue(), temperature.getStatus(), mStatus); in notifyEventListenersLocked() 272 switch (temperature.getType()) { in shutdownIfNeeded() 289 shutdownIfNeeded(temperature); in onTemperatureChanged() 291 Temperature old = mTemperatureMap.put(temperature.getName(), temperature); in onTemperatureChanged() 701 temperature.currentValue, temperature.type, in getCurrentTemperatures() 803 temperature.currentValue, temperature.type, temperature.name, 836 temperature.currentValue, temperature.type, in getCurrentTemperatures() 937 temperature.value, temperature.type, temperature.name, 969 temperature.value, temperature.type, in getCurrentTemperatures() 1265 public float temperature; field in ThermalManagerService.TemperatureWatcher.Sample [all …]
|
/aosp12/hardware/interfaces/thermal/1.0/vts/functional/ |
H A D | VtsHalThermalV1_0TargetTest.cpp | 126 void checkDeviceTemperature(const Temperature& temperature) { in checkDeviceTemperature() argument 128 EXPECT_TRUE(temperature.type == TemperatureType::UNKNOWN || in checkDeviceTemperature() 129 std::abs(temperature.currentValue) < MAX_DEVICE_TEMPERATURE || in checkDeviceTemperature() 130 isnan(temperature.currentValue)); in checkDeviceTemperature() 133 EXPECT_LT(0u, temperature.name.size()); in checkDeviceTemperature() 136 EXPECT_TRUE(temperature.currentValue < temperature.shutdownThreshold || in checkDeviceTemperature() 137 isnan(temperature.currentValue) || isnan(temperature.shutdownThreshold)); in checkDeviceTemperature() 140 EXPECT_TRUE(temperature.throttlingThreshold < temperature.shutdownThreshold || in checkDeviceTemperature() 141 isnan(temperature.throttlingThreshold) || isnan(temperature.shutdownThreshold)); in checkDeviceTemperature()
|
/aosp12/hardware/google/pixel/usb/ |
H A D | UsbOverheatEvent.cpp | 133 float temperature = 0; in monitorThread() local 138 &temperature)) { in monitorThread() 141 max(temperature, overheatEvent->max_overheat_temp_); in monitorThread() 144 status.append(std::to_string(temperature)); in monitorThread() 253 for (auto temperature : thermal_temperatures) { in getCurrentTemperature() local 254 if (temperature.name == name) { in getCurrentTemperature() 255 *temp = temperature.value; in getCurrentTemperature() 289 Return<void> UsbOverheatEvent::notifyThrottling(const Temperature &temperature) { in notifyThrottling() argument 291 temperature.value, temperature.throttlingStatus); in notifyThrottling() 292 if (temperature.type == monitored_zone_.type_) { in notifyThrottling() [all …]
|
/aosp12/hardware/interfaces/thermal/2.0/ |
H A D | types.hal | 21 /** Device temperature types */ 89 * This temperature's type. 94 * Name of this temperature matching the Temperature struct. 101 * Hot throttling temperature constant for this temperature sensor in 103 * happens when temperature >= threshold. If not available, set to NAN. 109 * Cold throttling temperature constant for this temperature sensor in 111 * happens when temperature <= threshold. If not available, set to NAN. 117 * Threshold temperature above which the VR mode clockrate minimums cannot 126 * This temperature's type. 131 * Name of this temperature matching the TemperatureThreshold. [all …]
|
H A D | IThermalChangedCallback.hal | 29 * @param temperature The temperature associated with the 32 oneway notifyThrottling (Temperature temperature);
|
/aosp12/hardware/interfaces/thermal/1.0/ |
H A D | types.hal | 19 /** Device temperature types */ 36 * This temperature's type. 41 * Name of this temperature. 48 * Current temperature in Celsius. If not available set by HAL to NAN. 49 * Current temperature can be in any units if type=UNKNOWN. 54 * Throttling temperature constant for this temperature. 60 * Shutdown temperature constant for this temperature. 66 * Threshold temperature above which the VR mode clockrate minimums cannot
|
/aosp12/packages/apps/Car/Hvac/src/com/android/car/hvac/controllers/ |
H A D | TemperatureController.java | 105 public void onTemperatureChanged(int temperature) { 106 mHvacController.setPassengerTemperature(temperature); 107 mPassengerTempBarCollapsed.setTemperature(temperature); 114 public void onTemperatureChanged(int temperature) { 115 mHvacController.setDriverTemperature(temperature); 116 mDriverTempBarCollapsed.setTemperature(temperature);
|
/aosp12/packages/apps/Car/Hvac/src/com/android/car/hvac/ui/ |
H A D | TemperatureBarOverlay.java | 45 void onTemperatureChanged(int temperature); in onTemperatureChanged() argument 341 public void setTemperature(int temperature) { in setTemperature() argument 342 Log.d("HvacTempBar", "setTemperature(" + temperature + ")"); in setTemperature() 344 int endColor = getTemperatureColor(temperature); in setTemperature() 345 mTemperature = temperature; in setTemperature() 391 private int getTemperatureColor(int temperature) { in getTemperatureColor() argument 392 if (temperature >= 78) { in getTemperatureColor() 394 } else if (temperature >= 74 && temperature < 78) { in getTemperatureColor() 396 } else if (temperature >= 70 && temperature < 74) { in getTemperatureColor() 398 } else if (temperature >= 66 && temperature < 70) { in getTemperatureColor()
|
/aosp12/hardware/interfaces/thermal/1.1/vts/functional/ |
H A D | VtsHalThermalV1_1TargetTest.cpp | 47 Temperature temperature; member in ThermalCallbackArgs 58 const Temperature& temperature) override { in notifyThrottling() argument 61 args.temperature = temperature; in notifyThrottling() 100 EXPECT_EQ(kThrottleTemp, res.args->temperature); in TEST_P()
|
/aosp12/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/ |
H A D | AppLaunchEvent.java | 192 int temperature; field in AppLaunchEvent.ActivityLaunched 196 @ActivityMetricsLaunchObserver.Temperature int temperature) { in ActivityLaunched() argument 198 this.temperature = temperature; in ActivityLaunched() 204 return temperature == ((ActivityLaunched)other).temperature && in equals() 212 return super.toStringBody() + ", temperature=" + Integer.toString(temperature); in toStringBody() 218 p.writeInt(temperature); in writeToParcelImpl() 223 temperature = p.readInt(); in ActivityLaunched()
|
/aosp12/system/iorap/include/binder/ |
H A D | app_launch_event.h | 60 Temperature temperature{Temperature::kUninitialized}; 70 Temperature temperature = Temperature::kUninitialized, 76 temperature(temperature), 95 temperature = other.temperature; 132 temperature = static_cast<Temperature>(temperature_int); in readFromParcel() 175 PARCEL_WRITE_OR_RETURN(parcel->writeInt32, static_cast<int32_t>(temperature)); in writeToParcel() 414 os << "temperature=" << e.temperature << ",";
|
/aosp12/bootable/recovery/recovery_utils/ |
H A D | thermalutil.cpp | 71 int temperature; in GetMaxValueFromThermalZone() local 72 if (!android::base::ParseInt(android::base::Trim(content), &temperature)) { in GetMaxValueFromThermalZone() 76 max_temperature = std::max(temperature, max_temperature); in GetMaxValueFromThermalZone()
|
/aosp12/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
H A D | DataStore.java | 84 public void setTemperature(int zone, float temperature, boolean available) { in setTemperature() argument 87 Log.d("HvacDataStore", "setTemperature(" + zone + ", " + temperature + ")"); in setTemperature() 88 mTemperature.put(zone, temperature); in setTemperature() 95 public boolean shouldPropagateTempUpdate(int zone, float temperature, boolean available) { in shouldPropagateTempUpdate() argument 104 setTemperature(zone, temperature, available); in shouldPropagateTempUpdate()
|
H A D | HvacController.java | 481 public void setDriverTemperature(int temperature) { in setDriverTemperature() argument 482 setTemperature(DRIVER_ZONE_ID, temperature); in setDriverTemperature() 485 public void setPassengerTemperature(int temperature) { in setPassengerTemperature() argument 486 setTemperature(PASSENGER_ZONE_ID, temperature); in setPassengerTemperature() 489 public void setTemperature(final int zone, final float temperature) { in setTemperature() argument 495 CarHvacManager.ID_ZONED_TEMP_SETPOINT, zone, temperature); in setTemperature() 497 mDataStore.setTemperature(zone, temperature, true); in setTemperature()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | LaunchObserverRegistryImpl.java | 90 int temperature) { in onActivityLaunched() argument 93 this, activity, temperature)); in onActivityLaunched() 153 @Temperature int temperature) { in handleOnActivityLaunched() argument 157 o.onActivityLaunched(activity, temperature); in handleOnActivityLaunched()
|
/aosp12/hardware/interfaces/thermal/1.1/ |
H A D | IThermalCallback.hal | 29 * @param temperature The temperature associated with the throttling 32 oneway notifyThrottling(bool isThrottling, Temperature temperature);
|
/aosp12/hardware/interfaces/thermal/2.0/vts/functional/ |
H A D | VtsHalThermalV2_0TargetTest.cpp | 53 Temperature temperature; member in ThermalCallbackArgs 60 Return<void> notifyThrottling(const Temperature& temperature) override { in notifyThrottling() argument 62 args.temperature = temperature; in notifyThrottling() 115 EXPECT_EQ(kThrottleTemp, res.args->temperature); in TEST_P()
|
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/ |
H A D | inv_self_test.c | 58 char *temperature; member 193 sprintf(mpu.temperature, "%s%s", sysfs_path, "/temperature"); in inv_init_sysfs_attributes() 266 long long temperature = 0; in main() local 451 fptr = fopen(mpu.temperature, "r"); in main() 453 fscanf(fptr,"%lld %ld", &temperature, ×tamp); in main() 478 save_data.gyro_temp = temperature * (1L << 16); in main()
|
/aosp12/packages/apps/Settings/src/com/android/settings/display/ |
H A D | NightDisplayIntensityPreferenceController.java | 106 private int convertTemperature(int temperature) { in convertTemperature() argument 107 return ColorDisplayManager.getMaximumColorTemperature(mContext) - temperature; in convertTemperature()
|
/aosp12/hardware/interfaces/thermal/1.0/default/ |
H A D | Thermal.cpp | 39 float finalizeTemperature(float temperature) { in finalizeTemperature() argument 40 return temperature == UNKNOWN_TEMPERATURE ? NAN : temperature; in finalizeTemperature()
|
/aosp12/frameworks/base/core/java/android/hardware/display/ |
H A D | ColorDisplayManager.java | 214 public boolean setNightDisplayColorTemperature(int temperature) { in setNightDisplayColorTemperature() argument 215 return mManager.setNightDisplayColorTemperature(temperature); in setNightDisplayColorTemperature() 648 boolean setNightDisplayColorTemperature(int temperature) { in setNightDisplayColorTemperature() argument 650 return mCdm.setNightDisplayColorTemperature(temperature); in setNightDisplayColorTemperature()
|
/aosp12/frameworks/base/services/core/jni/ |
H A D | com_android_server_HardwarePropertiesManagerService.cpp | 82 float finalizeTemperature(float temperature) { in finalizeTemperature() argument 83 return isnan(temperature) ? gUndefinedTemperature : temperature; in finalizeTemperature()
|
/aosp12/frameworks/base/core/proto/android/service/ |
H A D | battery.proto | 53 // Battery temperature in tenths of a degree Centigrade 54 optional int32 temperature = 12; field
|
/aosp12/system/iorap/src/db/ |
H A D | models.h | 810 p.temperature, in SelectById() 844 p.temperature, in SelectActivityHistoryForCompile() 858 AppLaunchHistoryModel::Temperature temperature, in Insert() argument 875 temperature, in Insert() 889 p.temperature = temperature; in Insert() 919 Temperature temperature = Temperature::kUninitialized; variable 931 << "temperature=" << static_cast<int>(p.temperature) << ","
|
/aosp12/frameworks/base/core/java/android/os/ |
H A D | IThermalEventListener.aidl | 30 void notifyThrottling(in Temperature temperature); in notifyThrottling() argument
|