Forget the history to get immediate response when entering lower
brightness environment.
The sensor may not report event if there is no change since last report.
BrightnessObserver should keep refreshing the filter's estimation when last
sensor value is in a higher zone.
Bug: 138404221
Exempt-From-Owner-Approval: Santos is designated by Michael
Change-Id: I4ab37c067826c36eda26b435e83258d9af8783ab
Before we were saying "Swipe to open" on bouncer and some users though
it was a bug, not we're being more explicit and saying "Swipe up to try
again"
Test: manual
Fixes: 134042651
Change-Id: I1a057819253252cc3912ff6b66505a8d55dc93ae
While app window is animating-in, IME window is child of aboveAppContainers.
If app requests IME on activity resume, IME will start animating-in
above Snapshot during app window animation.
However when app window animation finishes, IME's parent is no
longer aboveAppContainers, thereby making snapshot occlude
IME briefly. This results in flashing.
The fix is to keep IME in aboveAppContainers as long as startingWindow
is not removed from hierarchy.
Bug: 137534359
Test: Manual and atest ZOrderingTests AppWindowTokenTests
Change-Id: I78c939e8d1f23144162ba9eb8d834150fdd08ae8
We're resetting the view state when a config change happens, but
they can arrive even after the view is not visible anymore.
Let's not update the message area if we're GONE, since the message
area is shared with the Pattern and PIN pad views.
Test: manual
Fixes: 138751729
Change-Id: Idb4877f8ed22e8b640670bb9da66bb124a2f8166
In multi-sim, returns a shared emergency network country iso
from other subscription if the subscription used to create the
TelephonyManager doesn't camp on a network due to some reason
(e.g. pin/puk locked), or sim is absent in the corresponding slot.
Test: unit test
Bug: 137236159
Bug: 137235431
Change-Id: I311e690d1f79ebefbc068c486d9bed814c129aab
The dynamic privacy state would briefly switch during
unlocking, leading to the view appearing even though
it was already visible.
Fixes: 138620551
Test: enable dynamic privacy, unlock with face, then unlock by dragging down, observe no weird animation
Change-Id: I3cc0945af0b83ee18cd173545a099af45b442e56
The user can now use the expand buttons and also clear
all is invisible while locked down.
The can also drag down normally to reveal the
contents of a notification.
Also, the section clear button is also properly updated
once dynamic privacy changes.
Fixes: 138671060
Fixes: 138669307
Test: drag down with notif hidden and bypass on on a sensitive notification
Change-Id: I8743400d0b46583802a8663f6723dfa6beee95c9