Home
last modified time | relevance | path

Searched refs:statsInfo (Results 1 – 10 of 10) sorted by relevance

/base/powermgr/battery_statistics/services/native/src/entities/
Duser_entity.cpp67 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local
68 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_USER); in Calculate()
69 statsInfo->SetUserId(iter.first); in Calculate()
70 statsInfo->SetPower(iter.second); in Calculate()
71 statsInfoList_.push_back(statsInfo); in Calculate()
Didle_entity.cpp55 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local
56 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_IDLE); in Calculate()
57 statsInfo->SetPower(idleTotalPowerMah_); in Calculate()
58 statsInfoList_.push_back(statsInfo); in Calculate()
Dwifi_entity.cpp48 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local
49 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); in Calculate()
50 statsInfo->SetPower(wifiPowerMah_); in Calculate()
51 statsInfoList_.push_back(statsInfo); in Calculate()
Dscreen_entity.cpp98 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local
99 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); in Calculate()
100 statsInfo->SetPower(screenPowerMah_); in Calculate()
101 statsInfoList_.push_back(statsInfo); in Calculate()
Dphone_entity.cpp121 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local
122 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); in Calculate()
123 statsInfo->SetPower(phonePowerMah_); in Calculate()
124 statsInfoList_.push_back(statsInfo); in Calculate()
Duid_entity.cpp137 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in AddtoStatsList() local
138 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in AddtoStatsList()
139 statsInfo->SetUid(uid); in AddtoStatsList()
140 statsInfo->SetPower(power); in AddtoStatsList()
141 statsInfoList_.push_back(statsInfo); in AddtoStatsList()
Dbluetooth_entity.cpp71 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in CalculateBtPower() local
72 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); in CalculateBtPower()
73 statsInfo->SetPower(bluetoothPowerMah_); in CalculateBtPower()
74 statsInfoList_.push_back(statsInfo); in CalculateBtPower()
/base/powermgr/battery_statistics/frameworks/native/src/
Dbattery_stats_info.cpp34 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Unmarshalling() local
35 if (statsInfo == nullptr) { in Unmarshalling()
37 return statsInfo; in Unmarshalling()
39 if (!statsInfo->ReadFromParcel(parcel)) { in Unmarshalling()
41 statsInfo = nullptr; in Unmarshalling()
43 return statsInfo; in Unmarshalling()
/base/powermgr/battery_statistics/frameworks/napi/src/
Dasync_callback_info.cpp68 StatsInfo statsInfo = { in GetBatteryStatsInfo() local
72 return statsInfo; in GetBatteryStatsInfo()
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_core.cpp957 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in LoadBatteryStatsData() local
958 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_USER); in LoadBatteryStatsData()
959 statsInfo->SetUserId(iter.first); in LoadBatteryStatsData()
960 statsInfo->SetPower(iter.second); in LoadBatteryStatsData()
961 BatteryStatsEntity::UpdateStatsInfoList(statsInfo); in LoadBatteryStatsData()