/hardware/google/pixel/thermal/ |
D | Thermal.cpp | 70 hidl_vec<Temperature_1_0> temperatures; in getTemperatures() local 74 return setInitFailureAndCallback(_hidl_cb, temperatures); in getTemperatures() 77 if (!thermal_helper_.fillTemperatures(&temperatures)) { in getTemperatures() 78 return setFailureAndCallback(_hidl_cb, temperatures, "Failed to read thermal sensors."); in getTemperatures() 81 _hidl_cb(status, temperatures); in getTemperatures() 118 hidl_vec<Temperature_2_0> temperatures; in getCurrentTemperatures() local 122 return setInitFailureAndCallback(_hidl_cb, temperatures); in getCurrentTemperatures() 125 if (!thermal_helper_.fillCurrentTemperatures(filterType, type, &temperatures)) { in getCurrentTemperatures() 126 return setFailureAndCallback(_hidl_cb, temperatures, "Failed to read thermal sensors."); in getCurrentTemperatures() 129 _hidl_cb(status, temperatures); in getCurrentTemperatures() [all …]
|
D | thermal-helper.h | 82 bool fillTemperatures(hidl_vec<Temperature_1_0> *temperatures) const; 84 hidl_vec<Temperature_2_0> *temperatures) const;
|
D | thermal-helper.cpp | 473 bool ThermalHelper::fillTemperatures(hidl_vec<Temperature_1_0> *temperatures) const { in fillTemperatures() 474 temperatures->resize(sensor_info_map_.size()); in fillTemperatures() 480 (*temperatures)[current_index] = temp; in fillTemperatures() 492 hidl_vec<Temperature_2_0> *temperatures) const { in fillCurrentTemperatures() 507 *temperatures = ret; in fillCurrentTemperatures()
|
/hardware/interfaces/thermal/1.0/default/ |
D | Thermal.cpp | 51 hidl_vec<Temperature> temperatures; in getTemperatures() local 55 _hidl_cb(status, temperatures); in getTemperatures() 65 temperatures.resize(list.size()); in getTemperatures() 69 temperatures[i].type = TemperatureType::UNKNOWN; in getTemperatures() 72 temperatures[i].type = TemperatureType::CPU; in getTemperatures() 75 temperatures[i].type = TemperatureType::GPU; in getTemperatures() 78 temperatures[i].type = TemperatureType::BATTERY; in getTemperatures() 81 temperatures[i].type = TemperatureType::SKIN; in getTemperatures() 87 temperatures[i].name = list[i].name; in getTemperatures() 88 temperatures[i].currentValue = finalizeTemperature(list[i].current_value); in getTemperatures() [all …]
|
/hardware/interfaces/thermal/2.0/vts/functional/ |
D | VtsHalThermalV2_0TargetTest.cpp | 175 [](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() argument 176 if (temperatures.size()) { in TEST_P() 181 for (int i = 0; i < temperatures.size(); ++i) { in TEST_P() 182 EXPECT_LT(0u, temperatures[i].name.size()); in TEST_P() 188 true, type, [&type](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() argument 189 if (temperatures.size()) { in TEST_P() 194 for (int i = 0; i < temperatures.size(); ++i) { in TEST_P() 195 EXPECT_EQ(type, temperatures[i].type); in TEST_P() 196 EXPECT_LT(0u, temperatures[i].name.size()); in TEST_P() 206 [](ThermalStatus status, hidl_vec<TemperatureThreshold> temperatures) { in TEST_P() argument [all …]
|
/hardware/interfaces/thermal/1.0/vts/functional/ |
D | VtsHalThermalV1_0TargetTest.cpp | 64 void checkTemperatures(const hidl_vec<Temperature> temperatures) { in checkTemperatures() argument 65 size_t size = temperatures.size(); in checkTemperatures() 69 checkDeviceTemperature(temperatures[i]); in checkTemperatures() 71 EXPECT_EQ(names_[i], temperatures[i].name.c_str()); in checkTemperatures() 74 if (temperatures[i].type != TemperatureType::UNKNOWN) { in checkTemperatures() 76 temperatures[i].name.c_str())); in checkTemperatures() 78 names_.push_back(temperatures[i].name); in checkTemperatures() 171 [&passed](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() argument 173 passed = temperatures; in TEST_P()
|
/hardware/interfaces/thermal/1.0/ |
D | IThermal.hal | 22 * Retrieves temperatures in Celsius. 27 * @return temperatures If status code is SUCCESS, it's filled with the 28 * current temperatures. The order of temperatures of built-in 32 * always returns and never removes such temperatures. 39 generates (ThermalStatus status, vec<Temperature> temperatures);
|
D | types.hal | 42 * All temperatures of the same "type" must have a different "name",
|
/hardware/interfaces/thermal/2.0/ |
D | IThermal.hal | 25 * Retrieves temperatures in Celsius. 34 * @return temperatures If status code is SUCCESS, it's filled with the 35 * current temperatures. The order of temperatures of built-in 39 * always returns and never removes such temperatures. 42 generates (ThermalStatus status, vec<Temperature> temperatures); 53 * temperatures thresholds. The order of temperatures of built-in 57 * always returns and never removes such temperatures. The thresholds
|
D | types.hal | 95 * All temperatures of the same "type" must have a different "name", 132 * All temperatures of the same "type" must have a different "name",
|
/hardware/interfaces/thermal/2.0/default/ |
D | Thermal.cpp | 88 std::vector<Temperature_1_0> temperatures = {kTemp_1_0}; in getTemperatures() local 89 _hidl_cb(status, temperatures); in getTemperatures() 114 std::vector<Temperature_2_0> temperatures; in getCurrentTemperatures() local 119 temperatures = {kTemp_2_0}; in getCurrentTemperatures() 121 _hidl_cb(status, temperatures); in getCurrentTemperatures()
|
/hardware/interfaces/automotive/vehicle/2.0/ |
D | types.hal | 1086 * Note that internally, all temperatures are represented in floating point Celsius.
|