Home
last modified time | relevance | path

Searched refs:uidEntity (Results 1 – 4 of 4) sorted by relevance

/base/powermgr/battery_statistics/test/unittest/src/servicetest/
Dstats_service_core_test.cpp276 auto uidEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); variable
278 uidEntity->Reset();
279 uidEntity->UpdateUidMap(invalidUid);
280 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, uidEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_BLUETOOTH_…
281 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, uidEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_BLUETOOTH_…
282 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, uidEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_CAMERA_ON)…
283 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, uidEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_FLASHLIGHT…
284 … EXPECT_EQ(StatsUtils::DEFAULT_VALUE, uidEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_GNSS_ON));
285 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, uidEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_SENSOR_GRA…
286 …EXPECT_EQ(StatsUtils::DEFAULT_VALUE, uidEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_SENSOR_PRO…
[all …]
Dstats_service_alarm_test.cpp255 auto uidEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); variable
259 double actualPower = uidEntity->GetEntityPowerMah(uid);
/base/powermgr/battery_statistics/services/native/src/
Dcpu_time_reader.cpp230 auto uidEntity = in ReadUidCpuActiveTime() local
232 if (uidEntity) { in ReadUidCpuActiveTime()
233 uidEntity->UpdateUidMap(uid); in ReadUidCpuActiveTime()
314 …auto uidEntity = g_statsService->GetBatteryStatsCore()->GetEntity(BatteryStatsInfo::CONSUMPTION_TY… in ReadUidCpuClusterTime() local
315 if (uidEntity) { in ReadUidCpuClusterTime()
316 uidEntity->UpdateUidMap(uid); in ReadUidCpuClusterTime()
451 auto uidEntity = in ReadUidCpuFreqTime() local
453 if (uidEntity) { in ReadUidCpuFreqTime()
454 uidEntity->UpdateUidMap(uid); in ReadUidCpuFreqTime()
535 auto uidEntity = in ReadUidCpuTime() local
[all …]
/base/powermgr/battery_statistics/services/native/src/entities/
Dbluetooth_entity.cpp431 auto uidEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_APP); in GetBluetoothUidPower() local
432 if (uidEntity != nullptr) { in GetBluetoothUidPower()
433 bluetoothUidPower = uidEntity->GetEntityPowerMah(bluetoothUid); in GetBluetoothUidPower()