summaryrefslogtreecommitdiff
path: root/libs/androidfw/AttributeResolution.cpp
diff options
context:
space:
mode:
author Yeabkal Wubshit <yeabkal@google.com> 2024-08-30 17:35:57 -0700
committer Yeabkal Wubshit <yeabkal@google.com> 2024-09-12 20:20:29 -0700
commite65b5d360ac12a230f7b9427b457daca0491617b (patch)
treedc2777b91bac57b58d89a8651351a696fb24b9b7 /libs/androidfw/AttributeResolution.cpp
parentb9a7ac0aa5909fc5e7d083626ba864cc9b4ade1e (diff)
Implement screen state batterystat events
This change defines a new batterystat event for screen state changes and implements the creation of the events when BatteryStats.noteScreenState is called. noteScreenState now accepts the display ID and the screen state reason, and batterystat logs will show screen state event entries that contain the display ID, state, and reason. Note that we will follow up with a change to pass the real display ID from DisplayPowerController to batterystats (right now, we always use the default display ID 0). We will do that in a separate change since its impact can potentially extend beyond screen state events (e.g. batterystats does display-specific data processing). Bug: 364350206 Flag: com.android.server.power.optimization.battery_stats_screen_state_event Test: manual Test: atest PowerStatTests Change-Id: If29d4fb014364581c900798a23b8cafd10afbe02
Diffstat (limited to 'libs/androidfw/AttributeResolution.cpp')
0 files changed, 0 insertions, 0 deletions