Bug: 149918957
Fixes: 149801848
Test: manual - overflow has smoother animations
Test: manual - overflowing bubbles out of overflow works as intended
Change-Id: I9c0c5ea37c5638b5d4a8d979f280cd426f18c0c6
Changes the layout of the biometric prompt auth credential password
when in landscape orientation, in order to prevent the keyboard from
obscuring the password/PIN entry or error text views. Specifically:
- Removes the icon from the layout
- Reduces/removes padding and spacers
Test: CTS Verifier > Biometric Tests > 4a: Credential, Cipher
Test: Biometric support demo app
Fixes: 155041280
Change-Id: I8d576f76d2e90b1830a22aebbfc12559634b6b75
When an Organized Window is no longer controlled by a specific client,
we create a new SurfaceControl and reparent the children so the client
no longer has control over the WindowContainer
Test: Pip, TaskOrganizerMultiWindowTest
Bug: 154558563
Change-Id: I76e0da115fd48f982a82bd6e2351e7171934acfc
Some apps include an action to dismiss a media notification, so we
should listen for that happening and clear controls in that case.
Also, remove STATE_CONNECTING as a condition to clear controls -
This was originally added in ag/11056932 as a workaround for an issue
with YouTube cast sessions. However this caused issues with other apps
like Spotify which set STATE_CONNECTING while still active. YT was using
that as a workaround for legacy behavior and will update to use
STATE_NONE for R+ builds (b/155213698). In the meantime, listening for
when the notification is removed will also work to clear YT's controls
as expected.
Fixes: 154953276
Fixes: 155029855
Test: manual
Change-Id: Ie9320e1406c1f457a39f67705ec1ffcb3a983488
Also use it for AuthCredentialPasswordView
Bug: 154161590
Test: BiometricPromptDemo, authenticate with password
Change-Id: I17601848dd9be3d0580988e3ff613c3793dfed51
For some OEMs, they have their own SnapAlgorithm which takes the
aspectRatio and inset bounds as parameters.
Bug: 154155536
Test: None
Change-Id: I8f26a281cc0af1523b2843011af116466a8fc55f
frameworks/base/core/res/res/dimens value rounded_corner_radius can
change not to reflect the actual device size due to tuning the rounding
on window corners.
This change allows us to decouple corner UI's idea of what the corner
size is from the framework dimension
Bug: 155161607
Test: manual
Change-Id: I6548d74921d6e71250486984869572bdd304b0d0
Previously, was only 'adjusting' the secondary split for
ime. So the secondary had functional insets and drag/drop.
However, the primary wasn't being adjusted (accorcding to
WM). This caused its insets to be calculated against its
originla position (which allowed ime insets to potentially
overlap it) and it meant that WM didn't use its visual
position when calculating drag/drop coordinates.
So, this does the same with the primary stack as what was
done with secondary.
However, doing this required some other fixes in WM. Basically,
if appbounds is explicitly overridden, just use them instead of
intersecting with parent. Also, WSA doesn't apply crop for
splits (maybe it shouldn't apply crop to anything anymore).
Additionally, insets calculation was applying top insets to the
bottom if the inset frame's top wasn't exactly equal to the
window's top -- because of a catch-all else condition. So this
adds checks for matching the bottoms as well.
Bug: 154056542
Bug: 151862790
Test: Open two apps in split screen and open IME in secondary. Drag
from secondary to primary.
Change-Id: I2391783e726e4a1c8ed3150628af2f398218fe90
This fixes all the back flows (finishing activities when they are not
needed). Also fix some transition animations.
Add a toast when "See other apps" is selected with changes done. This
will appear even if something is changed and reverted, as that kind of
thing is not tracked.
Test: manual, go over flows
Fixes: 154741024
Change-Id: I24611f4f32e41c7dd3774620518f2945db081727
Bug: 154669090
Test: Manual -- with more than 4 actions, only 4 are visible on lock screen, with no overflow menu.
Change-Id: I002dd99daebec983076c886ab64d2184ee499ce4
Properly clean up state when switching structures. Due to events
coming in from the listing controller, do not assume controls that
were initially created are still present.
Bug: 152678308
Test: manual, switch structures after reboot
Change-Id: Ic60782c5a7e292ea633ad812f3313efd33574cc6
If the user is viewing the notification menu (slide notification
partially to the left or right and see the Settings/snooze buttons), then
when the notification is updated, the notification's translation should
not be updated or else the notification menu snaps back unexpectedly
while the user is viewing the menu.
Fixes: 14878871
Test: manually tested with constantly updating notification (ie: Maps in
navigation) and also manually tested by posting a notification with a
delayed update via the Notify.apk
Change-Id: Ib7ebb6cd5b89590109ff7a7aa224ed537c6767de