Home
last modified time | relevance | path

Searched refs:GetOrCreateTimer (Results 1 – 24 of 24) sorted by relevance

/ohos5.0/base/powermgr/battery_statistics/test/unittest/src/servicetest/
H A Dstats_service_core_test.cpp153 … BatteryStatsInfo::CONSUMPTION_TYPE_AUDIO)->GetOrCreateTimer(uid, StatsUtils::STATS_TYPE_INVALID));
162 …BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH)->GetOrCreateTimer(uid, StatsUtils::STATS_TYPE_INVALI…
164 … BatteryStatsInfo::CONSUMPTION_TYPE_BLUETOOTH)->GetOrCreateTimer(StatsUtils::STATS_TYPE_INVALID));
171 …BatteryStatsInfo::CONSUMPTION_TYPE_CAMERA)->GetOrCreateTimer(uid, StatsUtils::STATS_TYPE_INVALID));
178 …BatteryStatsInfo::CONSUMPTION_TYPE_FLASHLIGHT)->GetOrCreateTimer(uid, StatsUtils::STATS_TYPE_INVAL…
185 … BatteryStatsInfo::CONSUMPTION_TYPE_GNSS)->GetOrCreateTimer(uid, StatsUtils::STATS_TYPE_INVALID));
203 … BatteryStatsInfo::CONSUMPTION_TYPE_PHONE)->GetOrCreateTimer(StatsUtils::STATS_TYPE_INVALID));
208 … BatteryStatsInfo::CONSUMPTION_TYPE_SCREEN)->GetOrCreateTimer(StatsUtils::STATS_TYPE_INVALID));
215 …BatteryStatsInfo::CONSUMPTION_TYPE_SENSOR)->GetOrCreateTimer(uid, StatsUtils::STATS_TYPE_INVALID));
225 …BatteryStatsInfo::CONSUMPTION_TYPE_WAKELOCK)->GetOrCreateTimer(uid, StatsUtils::STATS_TYPE_INVALID…
[all …]
/ohos5.0/base/powermgr/battery_statistics/services/native/include/entities/
H A Dbattery_stats_entity.h42 …virtual std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
44 …virtual std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsT…
46 …virtual std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(const std::string& deviceId, in…
H A Dbluetooth_entity.h42 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
44 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
H A Daudio_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
H A Dflashlight_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
H A Dgnss_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
H A Dwakelock_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
H A Dcamera_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(const std::string& deviceId, int32_t ui…
H A Dscreen_entity.h35 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
H A Dphone_entity.h34 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
H A Dsensor_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
H A Dwifi_entity.h34 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
/ohos5.0/base/powermgr/battery_statistics/services/native/src/entities/
H A Dbattery_stats_entity.cpp102 std::shared_ptr<StatsHelper::ActiveTimer> BatteryStatsEntity::GetOrCreateTimer(StatsUtils::StatsTyp… in GetOrCreateTimer() function in OHOS::PowerMgr::BatteryStatsEntity
109 std::shared_ptr<StatsHelper::ActiveTimer> BatteryStatsEntity::GetOrCreateTimer(int32_t uid, in GetOrCreateTimer() function in OHOS::PowerMgr::BatteryStatsEntity
116 std::shared_ptr<StatsHelper::ActiveTimer> BatteryStatsEntity::GetOrCreateTimer(const std::string& d… in GetOrCreateTimer() function in OHOS::PowerMgr::BatteryStatsEntity
H A Daudio_entity.cpp104 std::shared_ptr<StatsHelper::ActiveTimer> AudioEntity::GetOrCreateTimer(int32_t uid, StatsUtils::St… in GetOrCreateTimer() function in OHOS::PowerMgr::AudioEntity
H A Dflashlight_entity.cpp101 std::shared_ptr<StatsHelper::ActiveTimer> FlashlightEntity::GetOrCreateTimer(int32_t uid, in GetOrCreateTimer() function in OHOS::PowerMgr::FlashlightEntity
H A Dgnss_entity.cpp100 std::shared_ptr<StatsHelper::ActiveTimer> GnssEntity::GetOrCreateTimer(int32_t uid, StatsUtils::Sta… in GetOrCreateTimer() function in OHOS::PowerMgr::GnssEntity
H A Dwakelock_entity.cpp101 std::shared_ptr<StatsHelper::ActiveTimer> WakelockEntity::GetOrCreateTimer(int32_t uid, StatsUtils:… in GetOrCreateTimer() function in OHOS::PowerMgr::WakelockEntity
H A Dwifi_entity.cpp95 std::shared_ptr<StatsHelper::ActiveTimer> WifiEntity::GetOrCreateTimer(StatsUtils::StatsType statsT… in GetOrCreateTimer() function in OHOS::PowerMgr::WifiEntity
H A Dbluetooth_entity.cpp338 std::shared_ptr<StatsHelper::ActiveTimer> BluetoothEntity::GetOrCreateTimer(int32_t uid, in GetOrCreateTimer() function in OHOS::PowerMgr::BluetoothEntity
378 std::shared_ptr<StatsHelper::ActiveTimer> BluetoothEntity::GetOrCreateTimer(StatsUtils::StatsType s… in GetOrCreateTimer() function in OHOS::PowerMgr::BluetoothEntity
H A Dcamera_entity.cpp98 std::shared_ptr<StatsHelper::ActiveTimer> CameraEntity::GetOrCreateTimer(const std::string& deviceI… in GetOrCreateTimer() function in OHOS::PowerMgr::CameraEntity
H A Dscreen_entity.cpp115 std::shared_ptr<StatsHelper::ActiveTimer> ScreenEntity::GetOrCreateTimer(StatsUtils::StatsType stat… in GetOrCreateTimer() function in OHOS::PowerMgr::ScreenEntity
H A Dphone_entity.cpp138 std::shared_ptr<StatsHelper::ActiveTimer> PhoneEntity::GetOrCreateTimer(StatsUtils::StatsType stats… in GetOrCreateTimer() function in OHOS::PowerMgr::PhoneEntity
H A Dsensor_entity.cpp165 std::shared_ptr<StatsHelper::ActiveTimer> SensorEntity::GetOrCreateTimer(int32_t uid, StatsUtils::S… in GetOrCreateTimer() function in OHOS::PowerMgr::SensorEntity
/ohos5.0/base/powermgr/battery_statistics/services/native/src/
H A Dbattery_stats_core.cpp370 timer = phoneEntity_->GetOrCreateTimer(statsType, level); in UpdatePhoneStats()
399 timer = entity->GetOrCreateTimer(uid, statsType); in UpdateTimer()
401 timer = entity->GetOrCreateTimer(statsType); in UpdateTimer()
432 timer = entity->GetOrCreateTimer(uid, statsType); in UpdateTimer()
434 timer = entity->GetOrCreateTimer(statsType); in UpdateTimer()
450 timer = cameraEntity_->GetOrCreateTimer(deviceId, uid, StatsUtils::STATS_TYPE_CAMERA_ON); in UpdateCameraTimer()
452 timer = cameraEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_CAMERA_ON); in UpdateCameraTimer()
488 screenOnTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_ON); in UpdateScreenTimer()
490 brightnessTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_BRIGHTNESS, in UpdateScreenTimer()
521 … auto brightnessTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_BRIGHTNESS, in UpdateBrightnessTimer()
[all …]