Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0c354e9 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Match screen state change reasons to wakefulness reasons

This change attempts at matching display state reasons to wakefulness
reasons, whenever a display state change is driven by a wakefulness
change. DisplayPowerRequest now has fields to capture wakefulness change
reasons (if the request is driven by a wakefulness change), and these
reasons are populated by PowerGroup. DisplayStateController then
accounts for these wakefulness change reasons when deciding the display
state and state reasons.

Bug: 364349703
Flag: com.android.server.power.feature.flags.policy_reason_in_display_power_request
Test: atest PowerGroupTest DisplayStateControllerTest
Change-Id: I50c528208d90caba30d74daf5e597fa26b555fe2
parent d5dfcfcc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment