Home
last modified time | relevance | path

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

/base/powermgr/battery_statistics/test/unittest/src/servicetest/
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 …]
/base/powermgr/battery_statistics/services/native/include/entities/
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…
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…
Daudio_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
Dwakelock_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
Dflashlight_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
Dgnss_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
Dcamera_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(const std::string& deviceId, int32_t ui…
Dscreen_entity.h35 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
Dphone_entity.h34 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
Dsensor_entity.h35 …std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(int32_t uid, StatsUtils::StatsType stat…
Dwifi_entity.h34 std::shared_ptr<StatsHelper::ActiveTimer> GetOrCreateTimer(StatsUtils::StatsType statsType,
/base/powermgr/battery_statistics/services/native/src/entities/
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
Dgnss_entity.cpp100 std::shared_ptr<StatsHelper::ActiveTimer> GnssEntity::GetOrCreateTimer(int32_t uid, StatsUtils::Sta… in GetOrCreateTimer() function in OHOS::PowerMgr::GnssEntity
Dflashlight_entity.cpp101 std::shared_ptr<StatsHelper::ActiveTimer> FlashlightEntity::GetOrCreateTimer(int32_t uid, in GetOrCreateTimer() function in OHOS::PowerMgr::FlashlightEntity
Dwifi_entity.cpp95 std::shared_ptr<StatsHelper::ActiveTimer> WifiEntity::GetOrCreateTimer(StatsUtils::StatsType statsT… in GetOrCreateTimer() function in OHOS::PowerMgr::WifiEntity
Dwakelock_entity.cpp101 std::shared_ptr<StatsHelper::ActiveTimer> WakelockEntity::GetOrCreateTimer(int32_t uid, StatsUtils:… in GetOrCreateTimer() function in OHOS::PowerMgr::WakelockEntity
Daudio_entity.cpp104 std::shared_ptr<StatsHelper::ActiveTimer> AudioEntity::GetOrCreateTimer(int32_t uid, StatsUtils::St… in GetOrCreateTimer() function in OHOS::PowerMgr::AudioEntity
Dcamera_entity.cpp98 std::shared_ptr<StatsHelper::ActiveTimer> CameraEntity::GetOrCreateTimer(const std::string& deviceI… in GetOrCreateTimer() function in OHOS::PowerMgr::CameraEntity
Dscreen_entity.cpp115 std::shared_ptr<StatsHelper::ActiveTimer> ScreenEntity::GetOrCreateTimer(StatsUtils::StatsType stat… in GetOrCreateTimer() function in OHOS::PowerMgr::ScreenEntity
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
Dphone_entity.cpp138 std::shared_ptr<StatsHelper::ActiveTimer> PhoneEntity::GetOrCreateTimer(StatsUtils::StatsType stats… in GetOrCreateTimer() function in OHOS::PowerMgr::PhoneEntity
Dsensor_entity.cpp165 std::shared_ptr<StatsHelper::ActiveTimer> SensorEntity::GetOrCreateTimer(int32_t uid, StatsUtils::S… in GetOrCreateTimer() function in OHOS::PowerMgr::SensorEntity
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_core.cpp369 timer = phoneEntity_->GetOrCreateTimer(statsType, level); in UpdatePhoneStats()
398 timer = entity->GetOrCreateTimer(uid, statsType); in UpdateTimer()
400 timer = entity->GetOrCreateTimer(statsType); in UpdateTimer()
431 timer = entity->GetOrCreateTimer(uid, statsType); in UpdateTimer()
433 timer = entity->GetOrCreateTimer(statsType); in UpdateTimer()
449 timer = cameraEntity_->GetOrCreateTimer(deviceId, uid, StatsUtils::STATS_TYPE_CAMERA_ON); in UpdateCameraTimer()
451 timer = cameraEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_CAMERA_ON); in UpdateCameraTimer()
487 screenOnTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_ON); in UpdateScreenTimer()
489 brightnessTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_BRIGHTNESS, in UpdateScreenTimer()
516 … auto brightnessTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_BRIGHTNESS, in UpdateBrightnessTimer()
[all …]