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 provides the device temperature management and control capabilities to ensure t…
17 1. Thermal Manager: provides temperature query and callback APIs for applications and other subsyst…
18 2. Thermal Service: implements core temperature control functions, such as temperature detection, t…
19 3. Thermal HDI: implements temperature driver information reporting and driver instruction delivery…
20 4. Thermal Protector: implements simplified temperature control in the non-running state according …
105 ├── level # Level directory, used to store the temperature level information.
107temperature level information. Wherein, level indicates the temperature level, threshold indicates…
110 … # policy directory, used to configure the policy for the corresponding temperature level.
111 …# config directory, used to configure the action for the corresponding temperature level. Wherein,…
/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_service_test.cpp139 auto temperature = g_service->GetBatteryTemperature(); variable
140 BATTERY_HILOGI(LABEL_TEST, "BatteryService006::temperature=%{public}d", temperature);
141 GTEST_LOG_(INFO) << "BatteryService006 executing, temperature=" << temperature;
142 ASSERT_TRUE(temperature == 222);
145 auto temperature = g_service->GetBatteryTemperature(); variable
146 BATTERY_HILOGI(LABEL_TEST, "BatteryService006::temperature=%{public}d", temperature);
147 GTEST_LOG_(INFO) << "BatteryService006 executing, temperature=" << temperature;
148 ASSERT_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_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/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/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp224 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
225 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::temperature=%{public}d", temperature);
226 … GTEST_LOG_(INFO) << "BatteryClient::BatteryClient006 executing, temperature=" << temperature;
227 ASSERT_TRUE(temperature == 222);
231 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
232 BATTERY_HILOGI(LABEL_TEST, "BatteryClientTest::temperature=%{public}d", temperature);
233 … GTEST_LOG_(INFO) << "BatteryClient::BatteryClient006 executing, temperature=" << temperature;
234 ASSERT_TRUE(temperature >= 0 && temperature <= 600);
/base/powermgr/battery_manager/frameworks/js/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/thermal_manager/services/native/test/unittest/include/
Dthermal_listener_test.h35 static void SetSensorTemp(int32_t temperature, const std::string& path);
Dthermal_mgr_policy_test.h51 static void SetSensorTemp(int32_t temperature, const std::string& path);
/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/thermal_manager/services/native/test/unittest/src/
Dthermal_listener_test.cpp56 void ThermalListenerTest::SetSensorTemp(int32_t temperature, const std::string& path) in SetSensorTemp() argument
62 std::string sTemp = to_string(temperature) + "\n"; in SetSensorTemp()
/base/powermgr/battery_manager/test/systemtest/src/
Dbattery_sttest.cpp554 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
555 GTEST_LOG_(INFO) << "BatteryST016 executing, temperature=" << temperature;
557 ASSERT_TRUE(temperature == 234);
561 auto temperature = BatterySrvClient.GetBatteryTemperature(); variable
562 BATTERY_HILOGD(LABEL_TEST, "BatteryST016::temperature=%{public}d", temperature);
563 GTEST_LOG_(INFO) << "BatteryST016 executing, temperature=" << temperature;
564 ASSERT_TRUE(temperature >= 0 && temperature <= 600);
/base/powermgr/battery_manager/services/native/src/
Dbattery_dump.cpp98 int32_t temperature = service->GetBatteryTemperature(); in GetBatteryInfo() local
99 dprintf(fd, "temperature: %d \n", temperature); in GetBatteryInfo()
Dbattery_service.cpp188 batteryInfo_.SetTemperature(event.temperature); in ConvertingEvent()
378 void BatteryService::HandleTemperature(int32_t temperature) in HandleTemperature() argument
381 if (((temperature <= lowTemperature_) || (temperature >= highTemperature_)) && in HandleTemperature()
502 int temperature; in GetBatteryTemperature() local
507 iBatteryInterface_->GetTemperature(temperature); in GetBatteryTemperature()
508 return temperature; in GetBatteryTemperature()
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts149 temperature: number; property
/base/powermgr/battery_lite/test/
Dbattery_test.js73 console.log('success get battery Temperature:' + data.temperature);
/base/powermgr/battery_manager/interfaces/innerkits/native/include/
Dbattery_info.h210 void SetTemperature(const int32_t temperature) in SetTemperature() argument
212 temperature_ = temperature; in SetTemperature()
/base/powermgr/battery_manager/services/zidl/src/
Dbattery_srv_proxy.cpp214 int32_t temperature = INVALID_BATT_TEMP_VALUE; in GetBatteryTemperature() local
215 READ_PARCEL_WITH_RET(reply, Int32, temperature, INVALID_BATT_TEMP_VALUE); in GetBatteryTemperature()
216 return temperature; in GetBatteryTemperature()
/base/sensors/sensor/interfaces/native/include/
Dsensor_agent_type.h269 float temperature; member
/base/powermgr/battery_statistics/services/native/test/unittest/src/
Dstats_dump_test.cpp204 int32_t temperature = 40; variable
207 partName, "TEMPERATURE", temperature);
/base/powermgr/battery_manager/services/native/include/
Dbattery_service.h80 void HandleTemperature(int32_t temperature);
/base/powermgr/battery_lite/
DREADME.md92 …5"><a name="p13838121064515"></a><a name="p13838121064515"></a>Obtains the battery temperature.</p>
/base/powermgr/battery_statistics/test/systemtest/src/
Dbatterystats_sys_test.cpp236 int32_t temperature = 40; variable
239 partName, "TEMPERATURE", temperature);

12