Home
last modified time | relevance | path

Searched refs:brightnessTimer (Results 1 – 2 of 2) sorted by relevance

/base/powermgr/battery_statistics/services/native/src/entities/
Dscreen_entity.cpp142 …std::shared_ptr<StatsHelper::ActiveTimer> brightnessTimer = std::make_shared<StatsHelper::ActiveTi… in GetOrCreateTimer() local
144 … std::pair<int32_t, std::shared_ptr<StatsHelper::ActiveTimer>>(level, brightnessTimer)); in GetOrCreateTimer()
145 timer = brightnessTimer; in GetOrCreateTimer()
/base/powermgr/battery_statistics/services/native/src/
Dbattery_stats_core.cpp486 std::shared_ptr<StatsHelper::ActiveTimer> brightnessTimer = nullptr; in UpdateScreenTimer() local
489 brightnessTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_BRIGHTNESS, in UpdateScreenTimer()
494 if (brightnessTimer != nullptr) { in UpdateScreenTimer()
495 brightnessTimer->StartRunning(); in UpdateScreenTimer()
500 if (brightnessTimer != nullptr) { in UpdateScreenTimer()
501 brightnessTimer->StopRunning(); in UpdateScreenTimer()
516 … auto brightnessTimer = screenEntity_->GetOrCreateTimer(StatsUtils::STATS_TYPE_SCREEN_BRIGHTNESS, in UpdateBrightnessTimer() local
518 brightnessTimer->StartRunning(); in UpdateBrightnessTimer()