Home
last modified time | relevance | path

Searched refs:wakelockEntity (Results 1 - 2 of 2) sorted by relevance

/base/powermgr/battery_statistics/services/native/src/entities/
H A Duid_entity.cpp89 auto wakelockEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_WAKELOCK); in CalculateForCommon() local
111 wakelockEntity->Calculate(uid); in CalculateForCommon()
112 power += wakelockEntity->GetEntityPowerMah(uid); in CalculateForCommon()
193 auto wakelockEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_WAKELOCK); in GetPowerForCommon() local
209 power = wakelockEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_WAKELOCK_HOLD, uid); in GetPowerForCommon()
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_powermgr_test.cpp479 auto wakelockEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_WAKELOCK); in HWTEST_F() local
483 double actualPower = wakelockEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_WAKELOCK_HOLD, uid); in HWTEST_F()
489 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, wakelockEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_WAKELOCK_HOLD)); in HWTEST_F()
490 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, wakelockEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_INVALID, uid)); in HWTEST_F()

Completed in 2 milliseconds