Home
last modified time | relevance | path

Searched refs:g_statsService (Results 1 – 17 of 17) sorted by relevance

/base/powermgr/battery_statistics/services/native/src/entities/
Dcpu_entity.cpp24 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
106 g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_CPU_ACTIVE); in CalculateCpuActivePower()
126 for (uint16_t i = 0; i < g_statsService->GetBatteryStatsParser()->GetClusterNum(); i++) { in CalculateCpuClusterPower()
128g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_CPU_CLUSTER, i); in CalculateCpuClusterPower()
148 for (uint16_t i = 0; i < g_statsService->GetBatteryStatsParser()->GetClusterNum(); i++) { in CalculateCpuSpeedPower()
149 for (uint16_t j = 0; j < g_statsService->GetBatteryStatsParser()->GetSpeedNum(i); j++) { in CalculateCpuSpeedPower()
152 …double cpuSpeedAverageMa = g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(statType, j); in CalculateCpuSpeedPower()
Duid_entity.cpp31 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
64 auto core = g_statsService->GetBatteryStatsCore(); in CalculateForConnectivity()
77 auto core = g_statsService->GetBatteryStatsCore(); in CalculateForCommon()
118 auto core = g_statsService->GetBatteryStatsCore(); in Calculate()
162 auto core = g_statsService->GetBatteryStatsCore(); in GetPowerForConnectivity()
176 auto core = g_statsService->GetBatteryStatsCore(); in GetPowerForCommon()
255 auto core = g_statsService->GetBatteryStatsCore(); in DumpForBluetooth()
269 auto core = g_statsService->GetBatteryStatsCore(); in DumpForCommon()
322 auto core = g_statsService->GetBatteryStatsCore(); in DumpInfo()
Didle_entity.cpp24 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
66 g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_CPU_SUSPEND); in CalculateCpuSuspendPower()
77 g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_CPU_IDLE); in CalculateCpuIdlePower()
Dwifi_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
37 …auto wifiOnAverageMa = g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURR… in Calculate()
42 …auto wifiScanAverageMa = g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CU… in Calculate()
Dscreen_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
81 g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_SCREEN_ON); in Calculate()
86g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_SCREEN_BRIGHTNESS); in Calculate()
Dbluetooth_entity.cpp31 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
54g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_BLUETOOTH_BR_ON); in CalculateBtPower()
61g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_BLUETOOTH_BLE_ON); in CalculateBtPower()
94g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_BLUETOOTH_BR_SCAN); in CalculateBtPowerForApp()
101g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_BLUETOOTH_BLE_SCAN); in CalculateBtPowerForApp()
430 auto core = g_statsService->GetBatteryStatsCore(); in GetBluetoothUidPower()
Dflashlight_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
58g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_FLASHLIGHT_ON); in Calculate()
Dwakelock_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
58 g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_CPU_AWAKE); in Calculate()
Dgnss_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
57 …auto gnssOnAverageMa = g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURR… in Calculate()
Daudio_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
57 …auto audioOnAverageMa = g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CUR… in Calculate()
Dalarm_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
56 …auto alarmOnAverageMa = g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CUR… in Calculate()
Dphone_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
104g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_RADIO_ON, i); in Calculate()
114g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_RADIO_DATA, i); in Calculate()
Dsensor_entity.cpp26 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
69g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_SENSOR_GRAVITY); in CalculateGravity()
88g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CURRENT_SENSOR_PROXIMITY); in CalculateProximity()
Dcamera_entity.cpp24 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
51 …auto cameraOnAverageMa = g_statsService->GetBatteryStatsParser()->GetAveragePowerMa(StatsUtils::CU… in Calculate()
Duser_entity.cpp27 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
/base/powermgr/battery_statistics/services/native/src/
Dcpu_time_reader.cpp33 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
231g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in ReadUidCpuActiveTime()
314 …auto uidEntity = g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TY… in ReadUidCpuClusterTime()
367 auto parser = g_statsService->GetBatteryStatsParser(); in ReadFreqTimeIncrement()
398 auto parser = g_statsService->GetBatteryStatsParser(); in DistributeFreqTime()
414 auto parser = g_statsService->GetBatteryStatsParser(); in AddFreqTimeToUid()
452g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in ReadUidCpuFreqTime()
536g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in ReadUidCpuTime()
Dbattery_stats_service.cpp42 auto g_statsService = DelayedStatsSpSingleton<BatteryStatsService>::GetInstance(); variable
43 const bool G_REGISTER_RESULT = SystemAbility::MakeAndRegisterAbility(g_statsService.GetRefPtr());