Home
last modified time | relevance | path

Searched refs:temperature (Results 1 – 25 of 29) sorted by relevance

12

/base/powermgr/thermal_manager/
DREADME.md10 The Thermal Manager module provides the device temperature management and control capabilities to e…
18 1. Thermal Manager: provides temperature query and callback APIs for applications and other subsyst…
19 2. Thermal Service: implements core temperature control functions, such as temperature detection, t…
20 3. Thermal HDI: implements temperature driver information reporting and driver instruction delivery…
21 4. Thermal Protector: implements simplified temperature control in the non-running state according …
106 ├── level # level directory, used to store the temperature level information.
108temperature level information. Wherein, level indicates the temperature level, threshold indicates…
111 … # policy directory, used to configure the policy for the corresponding temperature level.
112 …# config directory, used to configure the action for the corresponding temperature level. Wherein,…
/base/powermgr/battery_lite/test/Interface_test/test/unittest/src/
Dbatterymgr_interfaces_test.cpp106 int32_t temperature = GetBatTemperature(); variable
107 EXPECT_EQ ((temperature >= 0 && temperature <= 100), 1)
108 << "GetBatTemperature ret = " << temperature << endl;
/base/powermgr/battery_lite/services/src/
Dbattery_manage_feature.c109 int32_t temperature = BATT_INT_VALUE; in BatteryTemperatureImpl() local
112 return temperature; in BatteryTemperatureImpl()
114 temperature = g_batteryDevice->GetTemperature(); in BatteryTemperatureImpl()
115 return temperature; in BatteryTemperatureImpl()
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_service_test.cpp149 auto temperature = g_service->GetBatteryTemperature(); variable
150 BATTERY_HILOGI(LABEL_TEST, "BatteryService006::temperature=%{public}d", temperature);
151 GTEST_LOG_(INFO) << "BatteryService006 executing, temperature=" << temperature;
152 EXPECT_TRUE(temperature == 222);
155 auto temperature = g_service->GetBatteryTemperature(); variable
156 BATTERY_HILOGI(LABEL_TEST, "BatteryService006::temperature=%{public}d", temperature);
157 GTEST_LOG_(INFO) << "BatteryService006 executing, temperature=" << temperature;
158 EXPECT_TRUE(temperature >= 0 && temperature <= 600);
Dbattery_srv_proxy_mock_test.cpp185 int32_t temperature = g_proxy->GetBatteryTemperature(); variable
186 EXPECT_TRUE(temperature == INVALID_BATT_TEMP_VALUE);
Dbattery_notify_test.cpp41 const int32_t temperature = 25; in SetUp() local
42 g_batteryInfo->SetTemperature(temperature); in SetUp()
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp145 int32_t temperature = INVALID_BATT_TEMP_VALUE; in GetBatteryTemperature() local
146 RETURN_IF_WITH_RET(Connect() != ERR_OK, temperature); in GetBatteryTemperature()
147 temperature = proxy_->GetBatteryTemperature(); in GetBatteryTemperature()
148 return temperature; in GetBatteryTemperature()
/base/powermgr/battery_manager/charger/src/
Dcharger_thread.cpp170 int32_t temperature = 0; in UpdateBatteryInfo() local
171 provider_->ParseTemperature(&temperature); in UpdateBatteryInfo()
176 temperature, capacity_, chargeState_); in UpdateBatteryInfo()
183 HandleTemperature(temperature); in UpdateBatteryInfo()
193 void ChargerThread::HandleTemperature(const int32_t& temperature) in HandleTemperature() argument
200 …D(FEATURE_CHARGING, "temperature=%{public}d, lowTemp=%{public}d, highTemp=%{public}d", temperature, in HandleTemperature()
203 if (((temperature <= lowTemp) || (temperature >= highTemp)) && (lowTemp != highTemp)) { in HandleTemperature()
Dpower_supply_provider.cpp298 int32_t PowerSupplyProvider::ParseTemperature(int32_t* temperature) const in ParseTemperature()
307 *temperature = value; in ParseTemperature()
/base/powermgr/battery_manager/frameworks/napi/
Dbattery_info.cpp105 int32_t temperature = g_battClient.GetBatteryTemperature(); in GetBatteryTemperature() local
107 NAPI_CALL(env, napi_create_int32(env, temperature, &napiValue)); in GetBatteryTemperature()
109 BATTERY_HILOGD(FEATURE_BATT_INFO, "temperature %{public}d", temperature); in GetBatteryTemperature()
377 napi_value temperature = nullptr; in CreateEventBatteryChangedKey() local
387 …create_string_utf8(env, BatteryInfo::COMMON_EVENT_KEY_TEMPERATURE, NAPI_AUTO_LENGTH, &temperature); in CreateEventBatteryChangedKey()
398 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_TEMPERATURE", temperature), in CreateEventBatteryChangedKey()
416 napi_value temperature = nullptr; in CreateEventBatteryChangedCode() local
429 napi_create_int32(env, (int32_t)BatteryInfo::COMMON_EVENT_CODE_TEMPERATURE, &temperature); in CreateEventBatteryChangedCode()
443 DECLARE_NAPI_STATIC_PROPERTY("EXTRA_TEMPERATURE", temperature), in CreateEventBatteryChangedCode()
/base/powermgr/battery_manager/test/benchmarktest/
Dbattery_benchmark_test.cpp170 auto temperature = g_batterySrvClient.GetBatteryTemperature(); in BENCHMARK_F() local
172 ASSERT_TRUE(temperature >= -200 && temperature <= 600); in BENCHMARK_F()
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp252 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
253 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::temperature=%{public}d", temperature);
254 … GTEST_LOG_(INFO) << "BatteryClient::BatteryClient006 executing, temperature=" << temperature;
255 ASSERT_TRUE(temperature == 222);
259 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
260 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::temperature=%{public}d", temperature);
261 … GTEST_LOG_(INFO) << "BatteryClient::BatteryClient006 executing, temperature=" << temperature;
262 ASSERT_TRUE(temperature >= 0 && temperature <= 600);
/base/powermgr/battery_lite/frameworks/js/builtin/src/
Dbattery_module.cpp144 int32_t temperature = 0; in GetTemperature() local
149 temperature = GetBatTemperature(); in GetTemperature()
151 JSI::SetNumberProperty(result, "temperature", temperature); in GetTemperature()
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_sttest.cpp557 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
558 GTEST_LOG_(INFO) << "BatteryST016 executing, temperature=" << temperature;
560 EXPECT_TRUE(temperature == 234);
564 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
565 BATTERY_HILOGD(LABEL_TEST, "BatteryST016::temperature=%{public}d", temperature);
566 GTEST_LOG_(INFO) << "BatteryST016 executing, temperature=" << temperature;
567 EXPECT_TRUE(temperature >= 0 && temperature <= 600);
/base/sensors/sensor/interfaces/native/include/
Dsensor_agent_type.h271 float temperature; member
287 float temperature; member
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts149 temperature: number; property
/base/powermgr/battery_manager/services/native/src/
Dbattery_service.cpp197 batteryInfo_.SetTemperature(event.temperature); in ConvertingEvent()
340 void BatteryService::HandleTemperature(int32_t temperature) in HandleTemperature() argument
343 if (((temperature <= lowTemperature_) || (temperature >= highTemperature_)) && in HandleTemperature()
482 int32_t temperature = INVALID_BATT_INT_VALUE; in GetBatteryTemperature() local
483 iBatteryInterface_->GetTemperature(temperature); in GetBatteryTemperature()
484 return temperature; in GetBatteryTemperature()
Dbattery_dump.cpp91 int32_t temperature = service->GetBatteryTemperature(); in GetBatteryInfo() local
92 dprintf(fd, "temperature: %d \n", temperature); in GetBatteryInfo()
/base/powermgr/battery_lite/test/
Dbattery_test.js73 console.log('success get battery Temperature:' + data.temperature);
/base/powermgr/battery_manager/charger/include/
Dpower_supply_provider.h46 int32_t ParseTemperature(int32_t* temperature) const;
Dcharger_thread.h54 void HandleTemperature(const int32_t& temperature);
/base/powermgr/battery_manager/interfaces/inner_api/native/include/
Dbattery_info.h244 void SetTemperature(const int32_t temperature) in SetTemperature() argument
246 temperature_ = temperature; in SetTemperature()
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp223 int32_t temperature = INVALID_BATT_TEMP_VALUE; in GetBatteryTemperature() local
224 READ_PARCEL_WITH_RET(reply, Int32, temperature, INVALID_BATT_TEMP_VALUE); in GetBatteryTemperature()
225 return temperature; in GetBatteryTemperature()
/base/powermgr/battery_manager/services/native/include/
Dbattery_service.h78 void HandleTemperature(int32_t temperature);
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_dump_test.cpp204 int32_t temperature = 40; variable
207 HiSysEvent::EventType::STATISTIC, "NAME", partName, "TEMPERATURE", temperature);

12