/aosp_15_r20/frameworks/base/services/core/java/com/android/server/power/ |
H A D | ThermalManagerService.java | 58 import android.os.Temperature; 103 // headroom to temperature conversion: 3C every 0.1 headroom difference 104 // if no throttling event, the temperature difference should be at least 0.9C (or 0.03 headroom) 146 private ArrayMap<String, Temperature> mTemperatureMap = new ArrayMap<>(); 161 public void onTemperatureChanged(Temperature temperature) { 164 ThermalManagerService.this.onTemperatureChanged(temperature, true); 203 mStatus = Temperature.THROTTLING_NONE; in ThermalManagerService() 246 List<Temperature> temperatures = mHalWrapper.getCurrentTemperatures(false, in onActivityManagerReady() 335 int newStatus = Temperature.THROTTLING_NONE; in onTemperatureMapChangedLocked() 338 Temperature t = mTemperatureMap.valueAt(i); in onTemperatureMapChangedLocked() [all …]
|
/aosp_15_r20/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
H A D | ThermalManagerServiceTest.java | 53 import android.os.Temperature; 119 private static final int INIT_STATUS = Temperature.THROTTLING_NONE; 120 private List<Temperature> mTemperatureList = new ArrayList<>(); 121 private List<Temperature> mOverrideTemperatures = null; 125 private Temperature mSkin1 = new Temperature(28, Temperature.TYPE_SKIN, "skin1", 127 private Temperature mSkin2 = new Temperature(31, Temperature.TYPE_SKIN, "skin2", 129 private Temperature mBattery = new Temperature(34, Temperature.TYPE_BATTERY, "batt", 131 private Temperature mUsbPort = new Temperature(37, Temperature.TYPE_USB_PORT, "usbport", 140 skinThreshold.type = Temperature.TYPE_SKIN; in initializeThresholds() 151 cpuThreshold.type = Temperature.TYPE_CPU; in initializeThresholds() [all …]
|
/aosp_15_r20/frameworks/base/services/tests/mockingservicestests/src/com/android/server/power/ |
H A D | ThermalManagerServiceMockingTest.java | 35 import android.os.Temperature; 65 private CompletableFuture<Temperature> mTemperatureFuture; 71 public void onTemperatureChanged(Temperature temperature) { 72 mTemperatureFuture.complete(temperature); 100 android.hardware.thermal.Temperature halTemperature = in setCallback_aidl() 101 new android.hardware.thermal.Temperature(); in setCallback_aidl() 118 Temperature temperature = mTemperatureFuture.get(100, TimeUnit.MILLISECONDS); in setCallback_aidl() local 119 assertEquals(halTemperature.name, temperature.getName()); in setCallback_aidl() 120 assertEquals(halTemperature.type, temperature.getType()); in setCallback_aidl() 121 assertEquals(halTemperature.value, temperature.getValue(), 0.1f); in setCallback_aidl() [all …]
|
/aosp_15_r20/device/google/contexthub/firmware/os/algos/calibration/over_temp/ |
D | over_temp_cal.h | 19 * This module implements a runtime algorithm for provisioning over-temperature 22 * 1) Estimates of sensor offset with associated temperature are consumed, 25 * 2) A linear temperature dependence model is extracted from the collected 29 * (e.g., nearest-temperature, or the latest received offset estimate) can 33 * compensated offset estimates with rapid changes in temperature. 38 * discontinuities when using nearest-temperature compensation. If a 55 * arbitrarily high temperature sampling rate; and a minimum offset 70 * NOTE - 'current_temp' is the current measured temperature. 71 * 'temp_sensitivity' is the modeled temperature sensitivity (i.e., linear 74 * When the nearest-temperature or latest-offset is used as a "reference", [all …]
|
D | over_temp_cal.c | 58 // The time interval used to throttle temperature print messaging (1 second). 72 * Determines if a new over-temperature model fit should be performed, and then 84 * temperature. Sets the 'nearest_offset' pointer to the result. 114 * over-temperature model data. Uses a simple weighting function determined from 120 * temp_sensitivity: Updated modeled temperature sensitivity (array). 132 * Computes a new over-temperature compensated offset estimate based on the 133 * temperature specified by, 'temperature_celsius'. 138 * temperature_celsius: The sensor temperature to compensate the offset for. 145 * Sets the new over-temperature compensated offset estimate vector and 150 * compensated_offset: The new temperature compensated offset array. [all …]
|
/aosp_15_r20/external/coreboot/Documentation/drivers/ |
H A D | dptf.md | 6 help regulate the thermal properties (i.e., temperature) of an Intel-based 16 - Note that the CPU's internal temperature sensor is used here 18 - Up to 4 temperature sensors (TSRs) 29 to regulate the temperatures of each participant. The temperature threshold 35 when the temperature of participants exceeds critical threshold 37 for a participant, and poweroff is effected by specifying a temperature 42 This policy monitors the temperature of participants and controls fans to spin 51 by using degrees C for temperature, milliseconds for time, mW for power, and mA 82 generates heat), a Target (typically a temperature sensor), a Sampling Period 83 (how often to check the temperature), an activation temperature threshold (for [all …]
|
/aosp_15_r20/external/autotest/server/site_tests/firmware_ECThermal/ |
H A D | firmware_ECThermal.py | 27 # Delay for stressing device with fan off to check temperature increase 30 # Margin for comparing servo based and ectool based CPU temperature 33 # Minimum increase of CPU temperature when stressing DUT 36 # Pseudo INT_MAX. Used as infinity when comparing temperature readings 131 # Get the number of temperature sensors 140 logging.info("Number of temperature sensor: %d", self._num_temp_sensor) 177 This function find CPU temperature sensor using ectool. 180 Integer ID of CPU temperature sensor. 193 raise error.TestFail('Cannot find CPU temperature sensor ID.') 198 Get temperature reading on a sensor through ectool [all …]
|
/aosp_15_r20/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | SkinTemperatureRecord.java | 30 import android.health.connect.datatypes.units.Temperature; 48 * Captures the skin temperature of a user. Each record can represent a series of measurements of 49 * temperature differences. 54 /** Skin temperature measurement location unknown. */ 56 /** Skin temperature measurement location finger. */ 58 /** Skin temperature measurement location toe. */ 60 /** Skin temperature measurement location wrist. */ 63 * Metric identifier to retrieve average skin temperature delta using aggregate APIs in {@link 74 * Metric identifier to retrieve minimum skin temperature delta using aggregate APIs in {@link 85 * Metric identifier to retrieve maximum skin temperature delta using aggregate APIs in {@link [all …]
|
D | BodyTemperatureRecord.java | 22 import android.health.connect.datatypes.units.Temperature; 31 * Captures the body temperature of a user. Each record represents a single instantaneous body 32 * temperature measurement. 38 private final Temperature mTemperature; 45 * @param temperature Temperature of this activity 54 @NonNull Temperature temperature, in BodyTemperatureRecord() argument 60 Objects.requireNonNull(temperature); in BodyTemperatureRecord() 66 ValidationUtils.requireInRange(temperature.getInCelsius(), 0.0, 100, "temperature"); in BodyTemperatureRecord() 69 mTemperature = temperature; in BodyTemperatureRecord() 81 * @return temperature in {@link Temperature} unit. [all …]
|
D | BasalBodyTemperatureRecord.java | 21 import android.health.connect.datatypes.units.Temperature; 30 * Captures the body temperature of a user when at rest (for example, immediately after waking up). 32 * body temperature measurement. 37 private final Temperature mTemperature; 44 * @param temperature Temperature of this activity 53 @NonNull Temperature temperature, in BasalBodyTemperatureRecord() argument 59 Objects.requireNonNull(temperature); in BasalBodyTemperatureRecord() 61 ValidationUtils.requireInRange(temperature.getInCelsius(), 0.0, 100, "temperature"); in BasalBodyTemperatureRecord() 68 mTemperature = temperature; in BasalBodyTemperatureRecord() 80 * @return temperature in {@link Temperature} unit. [all …]
|
/aosp_15_r20/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | TemperatureThrottlingWaiter.java | 32 /** An {@link ITargetPreparer} that waits until device's temperature gets down to target */ 33 @OptionClass(alias = "temperature-throttle-waiter") 35 // temperature raw format example output : Result:30 Raw:7f6f 39 // temperature format example output : 30 42 // temperature format example output: 43 // Temperature{mValue=28.787504, mType=3, mName=VIRTUAL-SKIN, mStatus=0} 48 description = "Interval in seconds, to poll for device temperature; defaults to 30s") 52 + "to target temperature; defaults to 20 minutes") 56 + " above expected temperature; defaults to false") 60 + "temperature has reached to target; defaults to 120s") [all …]
|
/aosp_15_r20/frameworks/base/core/java/android/os/ |
H A D | Temperature.java | 31 * Temperature values used by IThermalService. 35 public final class Temperature implements Parcelable { class 36 /** Temperature value */ 38 /** A Temperature type from ThermalHAL */ 40 /** Name of this Temperature */ 118 * Verify a valid Temperature type. 120 * @return true if a Temperature type is valid otherwise false. 135 public Temperature(float value, @Type int type, in Temperature() method in Temperature 146 * Return the Temperature value. 148 * @return a Temperature value in floating point could be NaN. [all …]
|
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
H A D | DisplayWhiteBalanceController.java | 34 * display color temperature depending on the ambient color temperature). 37 * - Uses the AmbientColorTemperatureSensor to detect changes in the ambient color temperature; 39 * noise, and arrive at an estimate of the actual ambient color temperature; 40 * - Uses the DisplayWhiteBalanceThrottler to decide whether the display color temperature should 64 // temperature when sensor readings become unreliable. 70 // brightness to drop. This fixed color temperature can be used to compensate for 83 // The most recent ambient color temperature values are kept for debugging purposes. 86 // Override the ambient color temperature for debugging purposes. 99 // display to rapidly change color temperature. To solve this, 102 // ambient color temperature to the defaults. A piecewise linear relationship [all …]
|
/aosp_15_r20/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/power/ |
H A D | PowerUITest.java | 36 import android.os.Temperature; 123 final Temperature temp = getCriticalStatusTemp(Temperature.TYPE_SKIN, "skin1"); in testSkinWarning_throttlingCritical() 126 // dismiss skin high temperature warning when throttling status is critical in testSkinWarning_throttlingCritical() 136 final Temperature temp = getEmergencyStatusTemp(Temperature.TYPE_SKIN, "skin2"); in testSkinWarning_throttlingEmergency() 139 // show skin high temperature warning when throttling status is emergency in testSkinWarning_throttlingEmergency() 154 final Temperature temp = getEmergencyStatusTemp(Temperature.TYPE_SKIN, "skin2"); in testSkinWarning_throttlingEmergency_butVrMode() 158 // don't show skin high temperature warning when in VR mode in testSkinWarning_throttlingEmergency_butVrMode() 166 final Temperature temp = getCriticalStatusTemp(Temperature.TYPE_USB_PORT, "usb1"); in testUsbAlarm_throttlingCritical() 169 // not show usb high temperature alarm when throttling status is critical in testUsbAlarm_throttlingCritical() 178 final Temperature temp = getEmergencyStatusTemp(Temperature.TYPE_USB_PORT, "usb2"); in testUsbAlarm_throttlingEmergency() [all …]
|
/aosp_15_r20/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/ |
H A D | CoolDownRuleTest.java | 49 private static final String TEMPERATURE_NAME = "test temperature sensor"; 50 private static final String TEMPERATURE_NAME_ESCAPED = "test#temperature#sensor"; 77 "get device temperature degree: 46", in testCoolDownNormal() 79 "get device temperature degree: 41", in testCoolDownNormal() 81 "get device temperature degree: 37", in testCoolDownNormal() 83 "get device temperature degree: 33", in testCoolDownNormal() 117 "get device temperature degree: 37", in testCoolDownTimeout() 119 "get device temperature degree: 38", in testCoolDownTimeout() 121 "get device temperature degree: 39", in testCoolDownTimeout() 123 "get device temperature degree: 40", in testCoolDownTimeout() [all …]
|
/aosp_15_r20/device/google/contexthub/firmware/os/algos/calibration/online_calibration/common_data/ |
D | calibration_data.h | 43 * Includes corrections for over-temperature compensation. 48 * behavior with temperature (e.g., linear bias sensitivity 52 * an input to the over-temperature compensation algorithm 85 * 'offset' is the sensor bias estimate (with temperature compensation applied 96 * NOTE1: If over-temperature compensation is provided, then temperature 98 * of the sensor's temperature dependency model are provided, and may be used 101 * temp_sensitivity - Modeled temperature sensitivity (i.e., linear slope). 104 * The model equation for the over-temperature compensated offset: 117 // The temperature associated with the sensor offset. 120 // The temperature sensitivity of the offset. [all …]
|
/aosp_15_r20/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. 96 * e.g., cpu0, battery. Clients use it to match Temperature struct. 101 * Hot throttling temperature constant for this temperature sensor in 103 * happens when temperature >= threshold. If not available, set to NAN. 104 * Unit is same as Temperature's value. 109 * Cold throttling temperature constant for this temperature sensor in 111 * happens when temperature <= threshold. If not available, set to NAN. 112 * Unit is same as Temperature's value. [all …]
|
/aosp_15_r20/external/pytorch/torch/distributions/ |
H A D | relaxed_categorical.py | 18 :attr:`temperature`, and either :attr:`probs` or :attr:`logits` (but not both). 27 temperature (Tensor): relaxation temperature 43 def __init__(self, temperature, probs=None, logits=None, validate_args=None): argument 45 self.temperature = temperature 53 new.temperature = self.temperature 82 scores = (self.logits + gumbels) / self.temperature 91 self.temperature, float(K) 92 ).lgamma() - self.temperature.log().mul(-(K - 1)) 93 score = logits - value.mul(self.temperature) 101 :attr:`temperature`, and either :attr:`probs` or :attr:`logits`. [all …]
|
/aosp_15_r20/external/slf4j/slf4j-jdk14/src/test/java/org/slf4j/jul/ |
H A D | FluentApiInvocationTest.java | 66 String msg = "Temperature set to {}. Old temperature was {}."; in messageWithTwoArguments() 68 assertLogMessage("Temperature set to 16. Old temperature was 15.", 0); in messageWithTwoArguments() 72 String msg = "Temperature set to {}. Old temperature was {}."; in messageWithTwoArguments() 74 assertLogMessage("Temperature set to 16. Old temperature was 15.", 0); in messageWithTwoArguments() 78 String msg = "Temperature set to {}. Old temperature was {}."; in messageWithTwoArguments() 80 assertLogMessage("Temperature set to 16. Old temperature was 15.", 0); in messageWithTwoArguments() 84 String msg = "Temperature set to {}. Old temperature was {}."; in messageWithTwoArguments() 86 assertLogMessage("Temperature set to 16. Old temperature was 15.", 0); in messageWithTwoArguments() 128 … logger.atDebug().addKeyValue("oldT", oldT).addKeyValue("newT", newT).log("Temperature changed."); in messageWithKeyValuePair() 129 assertLogMessage("oldT=15 newT=16 Temperature changed.", 1); in messageWithKeyValuePair()
|
/aosp_15_r20/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/brightness/clamper/ |
H A D | BrightnessThermalModifierTest.java | 35 import android.os.Temperature; 113 {List.of(), Temperature.THROTTLING_LIGHT, false, PowerManager.BRIGHTNESS_MAX}, in testThrottlingData() 118 Temperature.THROTTLING_LIGHT, false, PowerManager.BRIGHTNESS_MAX}, in testThrottlingData() 123 Temperature.THROTTLING_MODERATE, true, 0.5f}, in testThrottlingData() 128 Temperature.THROTTLING_SEVERE, true, 0.5f}, in testThrottlingData() 133 Temperature.THROTTLING_CRITICAL, true, 0.1f}, in testThrottlingData() 138 Temperature.THROTTLING_EMERGENCY, true, 0.1f}, in testThrottlingData() 144 @Temperature.ThrottlingStatus int throttlingStatus, in testNotifyThrottlingAfterOnDisplayChange() 165 @Temperature.ThrottlingStatus int throttlingStatus, in testOnDisplayChangeAfterNotifyThrottling() 190 thermalEventListener.notifyThrottling(createSkinTemperature(Temperature.THROTTLING_SEVERE)); in testAppliesFastChangeOnlyOnActivation() [all …]
|
/aosp_15_r20/platform_testing/libraries/collectors-helper/statsd/test/src/com/android/helpers/ |
H A D | ThermalHelperTest.java | 66 + " Temperature{mValue=45.67, mType=3, mName=cached temperature sensor," 72 + " Temperature{mValue=%s, mType=3, mName=%s, mStatus=0}\n" 73 + " Temperature{mValue=45.6, mType=3, mName=test temperature sensor2," 75 + " Temperature{mValue=56.789, mType=3, mName=test temperature sensor3," 175 /** Test that the temperature section is parsed correctly. */ 184 // Validate at least 2 temperature keys exist with all 3 metrics. in testParseTemperature() 189 if (!key.startsWith("temperature")) { in testParseTemperature() 203 "Didn't find at least 2 status, value, and type temperature metrics.", in testParseTemperature() 208 /** Test that the mock temperature section is parsed correctly. */ 212 final String correctName = "test temperature sensor"; in testParseTemperatureMock() [all …]
|
/aosp_15_r20/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() 73 // Names must be unique only for known temperature types. in checkTemperatures() 125 // Check validity of temperature returned by Thermal HAL. 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() [all …]
|
/aosp_15_r20/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/ |
D | TemperatureTest.java | 21 import android.health.connect.datatypes.units.Temperature; 34 assertThat(Temperature.fromCelsius(10.0)).isInstanceOf(Temperature.class); in testCreate() 35 assertThat(Temperature.fromCelsius(10.0).getInCelsius()).isEqualTo(10.0); in testCreate() 40 Temperature Temperature1 = Temperature.fromCelsius(10.0); in testEquals() 41 Temperature Temperature2 = Temperature.fromCelsius(10.0); in testEquals() 42 Temperature Temperature3 = Temperature.fromCelsius(20.0); in testEquals() 50 Temperature Temperature1 = Temperature.fromCelsius(10.0); in testCompare() 51 Temperature Temperature2 = Temperature.fromCelsius(10.0); in testCompare() 52 Temperature Temperature3 = Temperature.fromCelsius(20.0); in testCompare()
|
/aosp_15_r20/out/soong/.intermediates/hardware/interfaces/thermal/1.0/android.hardware.thermal-V1.0-java_gen_java/gen/srcs/android/hardware/thermal/V1_0/ |
D | Temperature.java | 4 public final class Temperature { class 6 * This temperature's type. 10 * Name of this temperature. 16 * Current temperature in Celsius. If not available set by HAL to NAN. 17 * Current temperature can be in any units if type=UNKNOWN. 21 * Throttling temperature constant for this temperature. 26 * Shutdown temperature constant for this temperature. 31 * Threshold temperature above which the VR mode clockrate minimums cannot 45 if (otherObject.getClass() != android.hardware.thermal.V1_0.Temperature.class) { in equals() 48 …android.hardware.thermal.V1_0.Temperature other = (android.hardware.thermal.V1_0.Temperature)other… in equals() [all …]
|
/aosp_15_r20/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
H A D | CoolDownRule.java | 33 * <p>The rule takes a temperature name from command-line argument 34 * "cooldown-device-temperature-name" to check temperature. The spaces in temperature name must be 36 * of temperature name accordingly. 42 // Interval in seconds, to poll for device temperature; defaults to 30s 46 // Max wait time in seconds, for device cool down to target temperature; defaults to 20 minutes 50 // If test should be aborted if device is still above expected temperature; defaults to false 54 // Additional time to wait in seconds, after temperature has reached to target; defaults to 30s 59 static final String DEVICE_TEMPERATURE_NAME_OPTION = "cooldown-device-temperature-name"; 63 // Target Temperature that device should have; defaults to 35 degree Celsius 65 static final String TARGET_TEMPERATURE_OPTION = "cooldown-target-temperature"; [all …]
|