Skip to content
Commit 6dbc4a14 authored by Robert Horvath's avatar Robert Horvath
Browse files

Set the Low Power Standby enabled setting when unassigned

SettingsSnapshot metrics allow collecting data on the current value of
Settings, but if the Setting has never been written to, a Setting will
be logged as <notassigned>.

We want to track the standby mode users are using. We can do that by
collecting data on the LOW_POWER_STANDBY_ENABLED setting, but since
some devices may have LPS enabled by default while others don't, we
can't tell from a <notassigned> value whether LPS is enabled or not on a
device.

With this change, when the Setting hasn't been written yet, then the
Setting is updated to the actual value. Any <notassigned> value then
means that LPS is not supported, as otherwise the value would've been
assigned.

Test: manual - check whether setting gets written
Bug: 234771100
Change-Id: I62ebe69d01bce99c78ed21326538e38fa6f21428
parent 0c867c02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment