Home
last modified time | relevance | path

Searched refs:temperatures (Results 1 – 12 of 12) sorted by relevance

/hardware/google/pixel/thermal/
DThermal.cpp70 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 …]
Dthermal-helper.h82 bool fillTemperatures(hidl_vec<Temperature_1_0> *temperatures) const;
84 hidl_vec<Temperature_2_0> *temperatures) const;
Dthermal-helper.cpp473 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/
DThermal.cpp51 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/
DVtsHalThermalV2_0TargetTest.cpp175 [](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/
DVtsHalThermalV1_0TargetTest.cpp64 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/
DIThermal.hal22 * 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);
Dtypes.hal42 * All temperatures of the same "type" must have a different "name",
/hardware/interfaces/thermal/2.0/
DIThermal.hal25 * 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
Dtypes.hal95 * 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/
DThermal.cpp88 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/
Dtypes.hal1086 * Note that internally, all temperatures are represented in floating point Celsius.