Home
last modified time | relevance | path

Searched refs:GetPower (Results 1 – 18 of 18) sorted by relevance

/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_core.cpp715 appStatsMah = (*iter)->GetPower(); in GetAppStatsMah()
736 appStatsPercent = (*iter)->GetPower() / totalConsumption; in GetAppStatsPercent()
751 partStatsMah = (*iter)->GetPower(); in GetPartStatsMah()
766 partStatsPercent = (*iter)->GetPower() / totalConsumption; in GetPartStatsPercent()
876 root["Power"][name] = Json::Value((*iter)->GetPower()); in SaveForPower()
877 … STATS_HILOGD(COMP_SVC, "Saved power: %{public}lf for uid: %{public}s", (*iter)->GetPower(), in SaveForPower()
881 root["Power"][name] = Json::Value((*iter)->GetPower()); in SaveForPower()
882 … STATS_HILOGD(COMP_SVC, "Saved power: %{public}lf for type: %{public}s", (*iter)->GetPower(), in SaveForPower()
944 userPower->second += info->GetPower(); in LoadBatteryStatsData()
946 tmpUserPowerMap.insert(std::pair<int32_t, double>(usr, info->GetPower())); in LoadBatteryStatsData()
[all …]
/base/powermgr/battery_statistics/interfaces/inner_api/include/
Dbattery_stats_info.h60 double GetPower();
/base/sensors/sensor/utils/common/include/
Dsensor.h46 float GetPower() const;
/base/powermgr/battery_statistics/frameworks/napi/src/
Dasync_callback_info.cpp71 .power_ = item->GetPower()}; in GetBatteryStatsInfo()
/base/powermgr/battery_statistics/test/unittest/src/clienttest/
Dstats_powermgr_test.cpp336 EXPECT_EQ(partPowerMah, sptrStatsInfo->GetPower());
345 EXPECT_EQ(totalPowerMah, sptrStatsInfo->GetPower());
359 EXPECT_EQ(totalPowerMah, unmarshalInfo->GetPower());
Dstats_phone_test.cpp168 actualPower = (*it).GetPower();
428 actualPower = (*it).GetPower();
629 actualPower = (*it).GetPower();
Dstats_wifi_test.cpp164 actualPower = (*it).GetPower();
405 actualPower = (*it).GetPower();
Dstats_display_test.cpp232 actualPower = (*it).GetPower();
Dstats_bluetooth_test.cpp203 actualPower = (*it).GetPower();
503 actualPower = (*it).GetPower();
/base/sensors/sensor/utils/common/src/
Dsensor.cpp123 float Sensor::GetPower() const in GetPower() function in OHOS::Sensors::Sensor
/base/powermgr/battery_statistics/frameworks/native/src/
Dbattery_stats_info.cpp104 double BatteryStatsInfo::GetPower() in GetPower() function in OHOS::PowerMgr::BatteryStatsInfo
/base/powermgr/battery_statistics/test/unittest/src/clienttest/mock/
Dstats_client_test_mock_parcel.cpp135 EXPECT_EQ(totalPowerMah, sptrStatsInfo->GetPower());
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_phone_test.cpp199 actualPower = (*it).GetPower();
489 actualPower = (*it).GetPower();
719 actualPower = (*it).GetPower();
Dstats_service_subscriber_test.cpp342 actualPower = (*it).GetPower();
Dstats_service_wifi_test.cpp193 actualPower = (*it).GetPower();
450 actualPower = (*it).GetPower();
Dstats_service_display_test.cpp279 actualPower = (*it).GetPower();
Dstats_service_bluetooth_test.cpp243 actualPower = (*it).GetPower();
576 actualPower = (*it).GetPower();
/base/sensors/sensor/frameworks/native/sensor/src/
Dsensor_agent_proxy.cpp298 sensorInfo->power = sensorList[i].GetPower(); in ConvertSensorInfos()