diff options
| author | 2023-02-23 15:28:20 +0000 | |
|---|---|---|
| committer | 2023-04-04 20:24:48 +0000 | |
| commit | e7c9c0b0408604f9862f8b90fad1ce79a740c3d3 (patch) | |
| tree | c23fedd92dbb229f8c9deb9b28bcf1b134abb08c /libs/androidfw/ObbFile.cpp | |
| parent | 1e9f6dc40e5f9cd24473f4e15830320315fbf84a (diff) | |
Only reset short term model after timeout
Here, we create a separate class, used to store the vital short term
model information; lux (aka, anchor), brightness and whether it is valid
or not.
When switching between interactive and idle screen brightness modes, we
save out the current short term model to the "mPausedShortTermModel" and
send an "invalidate" message, with a delay of the stm timeout.
If we do time out, then we invalidate the model, and if not, then we
will restore the model upon returning to the appropriate mode.
For now, the ShortTermModel class is within ABC, but could be moved to
BrightnessMappingStrategy later.
Bug: 269557114
Test: atest com.android.server.display
Change-Id: Ie3eed5a3acbb56f363f1ca8a61a6ecf64aae85c4
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions