Initialize persistence only after we can read the settings
provider as we need to take into account the current config
potentially set as an override in settings vs using the
hard coded defaults.
Make the last persist time more robust to ensure it always
termines to guard against other unforeseen cases wehere the
persistet files don't match what is expected under the current
config.
Test: atest CtsAppOpsTestCases
Test: atest android.appsecurity.cts.AppOpsTest
Bug: 134093967
Change-Id: I4bd272d3908eb8fc2afcdb7c1bd96b05a182d8c4
We do zoom in from lockscreen to aod1 and zoom out in reverse
transition.
Bug: 124822340
Bug: 133785684
Test: manually set image wallpaper.
Test: Press power key back and forth and observe.
Change-Id: I842f929c730d1234717faa77e32f733f131c6ca0
If the device connects to a network automatically and not through
user action, a high-priority notification is intrusive and is
inconsistent with other networking notifications, which are
usually only high priority if the network is manually selected.
Bug: 130766237
Test: see next CL in patch series
Change-Id: I8824f2d1a0efeb6cb75e430ef5159ebce0018779
am: 459844b640 -s ours
am skip reason: change_id Ib032f800edb0416cc15f01a34954340d0d0ffa78 with SHA1 27d4734049 is in history
Change-Id: Ib3882a5188685a508d17d519f065a8676bc74652
am: 57f6c0deb2 -s ours
am skip reason: change_id Iaf80a0ad711762992b8ae60f76d861c97a403013 with SHA1 06041db074 is in history
Change-Id: Ic15424d4bb5a2bcaf0d04bd302a36a376b814022
am: 4871c475b2 -s ours
am skip reason: change_id Ib032f800edb0416cc15f01a34954340d0d0ffa78 with SHA1 27d4734049 is in history
Change-Id: I73474b928179591981f7dde4520fb3f6695d9e3f
- When we return early when detecting when to skip applying the bounds
the stored bounds and rotation weren't being updated
- In landscape, the addition of the nav bar inset in the bottom pushed
the movement bounds to be out of range, which cause an incorrect
offset to be calculated
- Simplified the logic to calculate the offset for the adjustment for
IME and shelf -- keep track of the previous offset, check the previous
movement+offset bounds with the next movement+offset bounds and only
update if the PIP is currently between those two bounds
- Tweak to landscape policy, if there isn't enough space for the ime
offset, then don't apply it as a part of the shift
Bug: 126199952
Test: Go to landscape + pip, open IME and dismiss IME and ensure the
PIP is pushed off and restored correctly
Test: In portrait, test going from app/home/ime and verify that the right
offsets are applied, and then if the stack is not in the bounds of
the offset change, that it is not applied
Change-Id: I67eee7d321995f403137db940b06f685d0c919af
When a pending intent is cancelled, the alarm is essentially defunct.
Keeping around this alarm takes unneeded memory and unreasonably counts
towards the per-uid cap of pending alarms.
Test: Unit test:
atest com.android.server.AlarmManagerServiceTest
Existing CTS:
atest CtsAlarmManagerTestCases
Bug: 132379078
Change-Id: I4c6d59d9ac79708d8daf40657e9773c715271f1e
Implemented piecewise overshoot-like interpolation in collaboration with
UX. Visually, the animation works the same, it's just broken up into
several chained animations for simpler tweaking.
Test: Visual evaluation
Bug: 134487710
Change-Id: Ifd1f16393014f7c30413adf91aea7407fb526992
The layout should be focusable and be set to focused in order for the
back button events to be received, since the key listener is set on
the layout.
Fixes: 133781042
Test: Back button cancels authentication
Test: No regression in tests mentioned in the CL above
Change-Id: I7d78bea400e8791e296a53603414095cfca62ec1
Both the sampled region as well as the detection if it's in the
swipeable region did not factor in the cutout insets and
would calculate the wrong thing.
Bug: 132394665
Test: atest SystemUITests
Change-Id: I9d84f7c76bd987587546b69de6c2875dc5cb303b
Update documentation to be in sync with new language added to HAL
interface, which better explains the expected payload, format, and
usage.
Fixes: 133264933
Test: make docs, view HTML
Change-Id: Ib602674d395cb8c8e6431d23b051685c8d172560