/base/powermgr/thermal_manager/ |
D | README.md | 10 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. 107 …temperature 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/ |
D | battery_service_test.cpp | 139 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);
|
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_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/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/frameworks/native/test/unittest/src/ |
D | battery_client_test.cpp | 224 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/ |
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/thermal_manager/services/native/test/unittest/include/ |
D | thermal_listener_test.h | 35 static void SetSensorTemp(int32_t temperature, const std::string& path);
|
D | thermal_mgr_policy_test.h | 51 static void SetSensorTemp(int32_t temperature, const std::string& path);
|
/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/thermal_manager/services/native/test/unittest/src/ |
D | thermal_listener_test.cpp | 56 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/ |
D | battery_sttest.cpp | 554 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/ |
D | battery_dump.cpp | 98 int32_t temperature = service->GetBatteryTemperature(); in GetBatteryInfo() local 99 dprintf(fd, "temperature: %d \n", temperature); in GetBatteryInfo()
|
D | battery_service.cpp | 188 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.ts | 149 temperature: number; property
|
/base/powermgr/battery_lite/test/ |
D | battery_test.js | 73 console.log('success get battery Temperature:' + data.temperature);
|
/base/powermgr/battery_manager/interfaces/innerkits/native/include/ |
D | battery_info.h | 210 void SetTemperature(const int32_t temperature) in SetTemperature() argument 212 temperature_ = temperature; in SetTemperature()
|
/base/powermgr/battery_manager/services/zidl/src/ |
D | battery_srv_proxy.cpp | 214 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/ |
D | sensor_agent_type.h | 269 float temperature; member
|
/base/powermgr/battery_statistics/services/native/test/unittest/src/ |
D | stats_dump_test.cpp | 204 int32_t temperature = 40; variable 207 partName, "TEMPERATURE", temperature);
|
/base/powermgr/battery_manager/services/native/include/ |
D | battery_service.h | 80 void HandleTemperature(int32_t temperature);
|
/base/powermgr/battery_lite/ |
D | README.md | 92 …5"><a name="p13838121064515"></a><a name="p13838121064515"></a>Obtains the battery temperature.</p>
|
/base/powermgr/battery_statistics/test/systemtest/src/ |
D | batterystats_sys_test.cpp | 236 int32_t temperature = 40; variable 239 partName, "TEMPERATURE", temperature);
|