Home
last modified time | relevance | path

Searched refs:cooling_devices (Results 1 – 4 of 4) sorted by relevance

/hardware/interfaces/thermal/2.0/vts/functional/
DVtsHalThermalV2_0TargetTest.cpp234 false, CoolingType::CPU, [](ThermalStatus status, hidl_vec<CoolingDevice> cooling_devices) { in TEST_P() argument
235 if (cooling_devices.size()) { in TEST_P()
240 for (int i = 0; i < cooling_devices.size(); ++i) { in TEST_P()
241 EXPECT_LT(0u, cooling_devices[i].name.size()); in TEST_P()
247 true, type, [&type](ThermalStatus status, hidl_vec<CoolingDevice> cooling_devices) { in TEST_P() argument
248 if (cooling_devices.size()) { in TEST_P()
253 for (int i = 0; i < cooling_devices.size(); ++i) { in TEST_P()
254 EXPECT_EQ(type, cooling_devices[i].type); in TEST_P()
255 EXPECT_LT(0u, cooling_devices[i].name.size()); in TEST_P()
/hardware/interfaces/thermal/2.0/default/
DThermal.cpp104 std::vector<CoolingDevice_1_0> cooling_devices = {kCooling_1_0}; in getCoolingDevices() local
105 _hidl_cb(status, cooling_devices); in getCoolingDevices()
144 std::vector<CoolingDevice_2_0> cooling_devices; in getCurrentCoolingDevices() local
149 cooling_devices = {kCooling_2_0}; in getCurrentCoolingDevices()
151 _hidl_cb(status, cooling_devices); in getCurrentCoolingDevices()
/hardware/google/pixel/thermal/
DThermal.cpp104 hidl_vec<CoolingDevice_1_0> cooling_devices; in getCoolingDevices() local
107 return setInitFailureAndCallback(_hidl_cb, cooling_devices); in getCoolingDevices()
109 _hidl_cb(status, cooling_devices); in getCoolingDevices()
155 hidl_vec<CoolingDevice_2_0> cooling_devices; in getCurrentCoolingDevices() local
159 return setInitFailureAndCallback(_hidl_cb, cooling_devices); in getCurrentCoolingDevices()
162 if (!thermal_helper_.fillCurrentCoolingDevices(filterType, type, &cooling_devices)) { in getCurrentCoolingDevices()
163 return setFailureAndCallback(_hidl_cb, cooling_devices, "Failed to read thermal sensors."); in getCurrentCoolingDevices()
166 _hidl_cb(status, cooling_devices); in getCurrentCoolingDevices()
626 hidl_vec<CoolingDevice_2_0> cooling_devices; in debug() local
628 &cooling_devices)) { in debug()
[all …]
/hardware/google/pixel/thermal/utils/
Dconfig_parser.cpp701 Json::Value cooling_devices = root["CoolingDevices"]; in ParseCoolingDevice() local
705 for (Json::Value::ArrayIndex i = 0; i < cooling_devices.size(); ++i) { in ParseCoolingDevice()
706 const std::string &name = cooling_devices[i]["Name"].asString(); in ParseCoolingDevice()
722 std::string cooling_device_type_str = cooling_devices[i]["Type"].asString(); in ParseCoolingDevice()
733 const std::string &read_path = cooling_devices[i]["ReadPath"].asString(); in ParseCoolingDevice()
736 const std::string &write_path = cooling_devices[i]["WritePath"].asString(); in ParseCoolingDevice()
740 Json::Value values = cooling_devices[i]["State2Power"]; in ParseCoolingDevice()
753 const std::string &power_rail = cooling_devices[i]["PowerRail"].asString(); in ParseCoolingDevice()