Searched refs:statsInfo (Results 1 – 10 of 10) sorted by relevance
67 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local68 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()
55 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local56 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_IDLE); in Calculate()57 statsInfo->SetPower(idleTotalPowerMah_); in Calculate()58 statsInfoList_.push_back(statsInfo); in Calculate()
48 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local49 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_WIFI); in Calculate()50 statsInfo->SetPower(wifiPowerMah_); in Calculate()51 statsInfoList_.push_back(statsInfo); in Calculate()
98 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local99 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN); in Calculate()100 statsInfo->SetPower(screenPowerMah_); in Calculate()101 statsInfoList_.push_back(statsInfo); in Calculate()
121 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Calculate() local122 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_PHONE); in Calculate()123 statsInfo->SetPower(phonePowerMah_); in Calculate()124 statsInfoList_.push_back(statsInfo); in Calculate()
137 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in AddtoStatsList() local138 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()
71 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in CalculateBtPower() local72 statsInfo->SetConsumptioType(BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH); in CalculateBtPower()73 statsInfo->SetPower(bluetoothPowerMah_); in CalculateBtPower()74 statsInfoList_.push_back(statsInfo); in CalculateBtPower()
34 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in Unmarshalling() local35 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()
68 StatsInfo statsInfo = { in GetBatteryStatsInfo() local72 return statsInfo; in GetBatteryStatsInfo()
957 std::shared_ptr<BatteryStatsInfo> statsInfo = std::make_shared<BatteryStatsInfo>(); in LoadBatteryStatsData() local958 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()