Home
last modified time | relevance | path

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

/base/powermgr/battery_statistics/services/native/src/entities/
H A Duid_entity.cpp83 auto cameraEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA); in CalculateForCommon() local
93 cameraEntity->Calculate(uid); in CalculateForCommon()
94 power += cameraEntity->GetEntityPowerMah(uid); in CalculateForCommon()
187 auto cameraEntity = core->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA); in GetPowerForCommon() local
197 power = cameraEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_CAMERA_ON, uid); in GetPowerForCommon()
/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_camera_test.cpp816 auto cameraEntity = statsCore->GetEntity(BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA); in HWTEST_F() local
820 double actualPower = cameraEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_CAMERA_ON, uid); in HWTEST_F()
826 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, cameraEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_CAMERA_ON)); in HWTEST_F()
827 EXPECT_EQ(StatsUtils::DEFAULT_VALUE, cameraEntity->GetStatsPowerMah(StatsUtils::STATS_TYPE_INVALID, uid)); in HWTEST_F()

Completed in 3 milliseconds