Home
last modified time | relevance | path

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

/base/powermgr/battery_statistics/services/native/src/entities/
H A Duid_entity.cpp85 auto audioEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO); in CalculateForCommon() local
99 audioEntity->Calculate(uid); in CalculateForCommon()
100 power += audioEntity->GetEntityPowerMah(uid); in CalculateForCommon()
189 auto audioEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO); in GetPowerForCommon() local
207 power = audioEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_AUDIO_ON, uid); in GetPowerForCommon()
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_audio_test.cpp361 auto audioEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO); in HWTEST_F() local
365 double actualPower = audioEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_AUDIO_ON, uid); in HWTEST_F()
371 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, audioEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_AUDIO_ON)); in HWTEST_F()
372 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, audioEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_INVALID, uid)); in HWTEST_F()

Completed in 4 milliseconds