Home
last modified time | relevance | path

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

/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/utils/tests/
DThermalHidlWrapperTest.cpp200 [](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() argument
201 if (temperatures.size()) { in TEST_P()
206 for (int i = 0; i < temperatures.size(); ++i) { in TEST_P()
207 EXPECT_LT(0u, temperatures[i].name.size()); in TEST_P()
213 true, type, [&type](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() argument
214 if (temperatures.size()) { in TEST_P()
219 for (int i = 0; i < temperatures.size(); ++i) { in TEST_P()
220 EXPECT_EQ(type, temperatures[i].type); in TEST_P()
221 EXPECT_LT(0u, temperatures[i].name.size()); in TEST_P()
231 [](ThermalStatus status, hidl_vec<TemperatureThreshold> temperatures) { in TEST_P() argument
[all …]
/hardware/interfaces/thermal/2.0/vts/functional/
DVtsHalThermalV2_0TargetTest.cpp174 [](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() argument
175 if (temperatures.size()) { in TEST_P()
180 for (int i = 0; i < temperatures.size(); ++i) { in TEST_P()
181 EXPECT_LT(0u, temperatures[i].name.size()); in TEST_P()
187 true, type, [&type](ThermalStatus status, hidl_vec<Temperature> temperatures) { in TEST_P() argument
188 if (temperatures.size()) { in TEST_P()
193 for (int i = 0; i < temperatures.size(); ++i) { in TEST_P()
194 EXPECT_EQ(type, temperatures[i].type); in TEST_P()
195 EXPECT_LT(0u, temperatures[i].name.size()); in TEST_P()
205 [](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/google/pixel/thermal/tests/
Dthermal_looper_test.cpp66 std::vector<Temperature> *temperatures) { in TEST_F() argument
68 *temperatures = ret; in TEST_F()
/hardware/google/pixel/thermal/
Dthermal-helper.h77 std::vector<Temperature> *temperatures) = 0;
115 std::vector<Temperature> *temperatures) override;
DThermal.cpp191 std::vector<Temperature> temperatures; in registerThermalChangedCallback() local
192 if (thermal_helper_->fillCurrentTemperatures(filterType, true, type, &temperatures)) { in registerThermalChangedCallback()
200 for (const auto &t : temperatures) { in registerThermalChangedCallback()
Dthermal-helper.cpp761 std::vector<Temperature> *temperatures) { in fillCurrentTemperatures() argument
781 *temperatures = ret; in fillCurrentTemperatures()
/hardware/google/pixel/usb/
DUsbOverheatEvent.cpp299 [&](ThermalStatus status, hidl_vec<Temperature> temperatures) { in getCurrentTemperature() argument
301 thermal_temperatures = temperatures; in getCurrentTemperature()
/hardware/interfaces/automotive/vehicle/2.0/
Dtypes.hal1121 * Note that internally, all temperatures are represented in floating point Celsius.