/base/powermgr/thermal_manager/ |
D | README.md | 10 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. 108 …temperature 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/ |
D | batterymgr_interfaces_test.cpp | 106 int32_t temperature = GetBatTemperature(); variable 107 EXPECT_EQ ((temperature >= 0 && temperature <= 100), 1) 108 << "GetBatTemperature ret = " << temperature << endl;
|
/base/powermgr/battery_lite/services/src/ |
D | battery_manage_feature.c | 109 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/ |
D | battery_service_test.cpp | 149 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);
|
D | battery_srv_proxy_mock_test.cpp | 185 int32_t temperature = g_proxy->GetBatteryTemperature(); variable 186 EXPECT_TRUE(temperature == INVALID_BATT_TEMP_VALUE);
|
D | battery_notify_test.cpp | 41 const int32_t temperature = 25; in SetUp() local 42 g_batteryInfo->SetTemperature(temperature); in SetUp()
|
/base/powermgr/battery_manager/frameworks/native/src/ |
D | battery_srv_client.cpp | 145 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/ |
D | charger_thread.cpp | 170 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()
|
D | power_supply_provider.cpp | 298 int32_t PowerSupplyProvider::ParseTemperature(int32_t* temperature) const in ParseTemperature() 307 *temperature = value; in ParseTemperature()
|
/base/powermgr/battery_manager/frameworks/napi/ |
D | battery_info.cpp | 105 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/ |
D | battery_benchmark_test.cpp | 170 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/ |
D | battery_client_test.cpp | 252 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/ |
D | battery_module.cpp | 144 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/ |
D | battery_sttest.cpp | 557 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/ |
D | sensor_agent_type.h | 271 float temperature; member 287 float temperature; member
|
/base/powermgr/battery_lite/interfaces/kits/js/ |
D | @system.battery.d.ts | 149 temperature: number; property
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_service.cpp | 197 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()
|
D | battery_dump.cpp | 91 int32_t temperature = service->GetBatteryTemperature(); in GetBatteryInfo() local 92 dprintf(fd, "temperature: %d \n", temperature); in GetBatteryInfo()
|
/base/powermgr/battery_lite/test/ |
D | battery_test.js | 73 console.log('success get battery Temperature:' + data.temperature);
|
/base/powermgr/battery_manager/charger/include/ |
D | power_supply_provider.h | 46 int32_t ParseTemperature(int32_t* temperature) const;
|
D | charger_thread.h | 54 void HandleTemperature(const int32_t& temperature);
|
/base/powermgr/battery_manager/interfaces/inner_api/native/include/ |
D | battery_info.h | 244 void SetTemperature(const int32_t temperature) in SetTemperature() argument 246 temperature_ = temperature; in SetTemperature()
|
/base/powermgr/battery_manager/services/zidl/src/ |
D | battery_srv_proxy.cpp | 223 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/ |
D | battery_service.h | 78 void HandleTemperature(int32_t temperature);
|
/base/powermgr/battery_statistics/test/unittest/src/clienttest/ |
D | stats_dump_test.cpp | 204 int32_t temperature = 40; variable 207 HiSysEvent::EventType::STATISTIC, "NAME", partName, "TEMPERATURE", temperature);
|