When launching tasks into split with rotation transition, launch won't
handle divider bar fade-in animation because wm-shell will re-render a
new divider bar to apply new rotation config. This makes sure to clear
the divider bar remote animating flag before re-rendering the divider
bar for rotation so wm-shell can finish showing divider bar after
re-rendered it.
Fix: 232043721
Test: enter split with rotation transition, verified divider bar shown.
Change-Id: Ia3040c08b897716fa9a480f2aaf1b06a76daccb4
When load a BitmapDrawable object with specific density, there will
decode the image based on the density from display metrics, so even
when load with higher override density, the final intrinsic size of the
BitmapDrawable can still not big enough to draw on expect size.
In order to load a bigger size BitmapDrawable object from a resources,
there should also update the densityDpi on the display metrics. But
since this kind of use case is relative rare, we use a standalone
IconProvider object to load the Drawable object for higher density, so
this resources object won't affect the entire system.
Also, since this symptom is not noticeable at high density, the
standalone icon provider only used for low density situation, so there
should be no performance loss for most high denstiy device.
Bug: 215673281
Test: atest StartingSurfaceDrawerTests
Test: snapshot to see the loaded bitmap.
Change-Id: Idd769327a8b0987f921c7d421ea1d9bb38a507ba
Listener to ACTION_USER_SWITCH intent and update the settings key when
user switched.
Bug: 231575466
Test: 1. set different settings keys for different user.
2. switch between users and see if the setting value is correct.
Change-Id: Ia1afcb6121b296b293bef0ba7d0a0be25b857554
When the keyguard is showing or animating with the surfaces behind,
there is no need for PiP to be shown or offset-by-shelf-height.
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/g6b3BQS2iH7TibwA9eqq1x
Bug: 230638352
Test: follow the reproduce step, see video
Change-Id: Ia4264a8cac2b34a2f7e9b85b35ebee7f74842aa8
Design intends for predicted app disc to use the app color, and the
dot to use tertiary T90/shade100. Both currently use `color`. Separating
into two separate colors lets use define the two separate colors
requested by design.
Bug: 213314628
Test: Manual inspection at runtime
Change-Id: I7f39b049896a3d5c4617beab67acd10777adae0a
Add a fade-in animation for showing the divider bar. And make sure it
animates in-sync with task bar by deferring the fade-in animation until
keyguard dismissed.
When quickswitch or overview switch back to a split pair, the launch
split tasks remote animation will get onAnimationCancelled due to the
app transition was handled by recent animation controller. So leaves
divider bar fade-in animation to launcher when the remote animation got
cancelled.
Fix: 229613465
Fix: 208651526
Test: atest WMShellUnitTests
Test: launch a split pair and a fullscreen app, switch from overview or
quickswitch back and forth between split pair and the fullscreen
app. Observed divider bar animates in in-sync with task views.
Test: verified divider bar animates in-sync with task bar after keyguard
dismissed.
Change-Id: I2f9064a089c446711545afda8204557a708545c5
This is used for surfaces
Bug: 200310506
Test: presubmit tests (since there is no behavior change)
Change-Id: I8c17777d14c1e8445ea426d9154580731b10632d
This change moves temporary decor handling out of the KeepClearAlgorithm
as it does not factor into keep clear area avoidance, and separating it
allows us to animate out the edu text without re-calculating the overall
PiP position. The PiP does not move immediately in response to keep
clear area changes, as it waits for the PiP position to stabilize - but
changes to temporary decor, such as edu text, should still be applied
immediately.
Bug: 226583836
Test: test TvPipBoundsControllerTest TvPipKeepClearAlgorithmTest
Change-Id: I49d32c18af13978a8a31b9a573273905fce934fd
To prevent erratic movements of the TV PiP window, this change causes
changes to the PiP window position to be delayed by 300ms. Only if the
target position of the PiP stays uncontested for that time will the PiP
actually move there.
Bug: 226583836
Test: atest KeepClearRectsTests
Test: TvPipKeepClearAlgorithmTest TvPipBoundsControllerTest
Change-Id: I8e8736fc26b2382b8e540be82d335e0b00a3c62a
Ensure we could get the proper focused window token what it's during
updating the focus if user touched down on another non-focused window.
It also called `startBackNavigation` when received first move that next
to down event to ensure the `WMS.onPointerDownOutsideFocus` could be
processed first.
Test: atest BackAnimationControllerTest BackNavigationControllerTests
Test: enabled split-screen, trigger back gesture on non-focused window
Bug: 230442550
Bug: 227724016
Change-Id: I81c4f02d43299c03f94dc295bb23ba80d46bded8
Merged-In: I81c4f02d43299c03f94dc295bb23ba80d46bded8
Revert "Add the extra dependencies to ArcPipController."
Revert submission 17542127-keep_clear_areas
Reason for revert: Keep clear areas implementation is being moved to tm-qpr-dev, removing it from the tm-dev branch.
Test: n/a
Reverted Changes:
I3cbc46170:Move PiP when it occludes a keep clear area with n...
I15ac00f8e:Add the extra dependencies to ArcPipController.
Change-Id: Id7ca9259aaa2a133233d5249717ed5710349d9fc
* changes:
If something is suppressed from the notification list don't bubble it
Tell NoMan to update the auto-expand flag
Allow SysUI to update BubbleMetadata#FLAG_AUTO_EXPAND_BUBBLE
Includes general information as well as the system and app actions (or
media actions if there are no app actions)
Bug: 204173025
Bug: 199490119
Test: manual - check notification content from aosp notification listener
Change-Id: I6a15e443ad8f1fa17bd76e52c002909faa1c44db
Allows user to resize the screen via the menu items of the divider.
Bug: 204502843
Test: manual check the menu items
Test: atest WMShellUnitTests
Change-Id: Idc888b977e0e69c7d5c40f26a89f5af9ad5ad9cd
Fix the regression from ag/17523158 that the PipParamsChangedForwarder
instance in unit test is null. Added also the check that
PipParamsChangedForwarder does dispatch the aspect ratio change.
Bug: 231134850
Test: atest WMShellUnitTests:PipTaskOrganizerTest
Change-Id: I1161646babaf974d7beca2889805672d68adf5bf
Refactor codes using DynamicAnimation Animation handler api codes
for following up Androidx codes changes.
Change needed to support AndroidX platform prebuilts, which include changes that fix a severe accessibility bug and setting.
Bug: 167382784
Bug: 221303983
Test: build
Change-Id: Ie75cc4068fa0b49816756650e900b7943f6c97d2
Merged-In: Iaa0e787675f53ac16cf61f2d2b6adae02ab55623
Moves PipAppOpsListener out of the phone package.
Bug: 227313442
Test: m SystemUI CarSystemUI
Test: Manual on adt3
Change-Id: I39b153a03988accb91e0b41eae275e98e949594d
Also set it to not auto-expand since it's unexpected to have bubbles
expand when DND turns off.
Test: BubblesTest NewNotifPipelineBubblesTest
Bug: 226316876
Change-Id: Ieb77b211f2b11fea83a2ff6e34e6f31b0f96919e
This flag should only really be applied to a notification bubble
one time. Once the bubble has auto-expanded (or if it was posted and
unable to auto-expand at that time due to something like DND), the
flag should be removed so we don't auto-expand it again.
We have a method that allows us to modify some specific flags on
BubbleMetadata. This CL updates that method to be more general and
work with any of the BubbleMetadata flags.
Bug: 226316876
Test: atest NotificationManagerServiceTest
Change-Id: Ib9653ed304f13ac88f489146d503f4de4fa29421