Commit Graph

3796 Commits

Author SHA1 Message Date
TreeHugger Robot
7fe1c1386d Merge "Transfer PipContentOverlay when swipe to home with Shell transition" into tm-dev 2022-03-05 15:34:07 +00:00
Mateusz Cicheński
703e3b0662 Add ShellProtoLogGroup for Picture-In-Picture.
Update the code for PIP and phone PIP to use ProtoLog instead of Log.

Test: manually, via adb shell wm logging
Bug: 218457585
Change-Id: Ia7b706b296b06c505dc37e823d473c25aa04784d
2022-03-03 21:37:11 +00:00
Hongwei Wang
f358e1a101 Merge "Add OWNERS file for TV PiP" into tm-dev 2022-03-03 18:11:05 +00:00
Robert Horvath
a197b9759f Report changed keep clear areas to TvPipController
Bug: 218416347
Test: atest DisplayContentTests#testKeepClearAreasMultipleWindows
Test: atest WindowStateTests#testKeepClearAreas
Change-Id: Ic61b1f11a27b0411baa5dfc5146c96700f751527
2022-03-03 12:34:57 +01:00
TreeHugger Robot
c44fdb988e Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-03 08:56:12 +00:00
TreeHugger Robot
4415e6e1e3 Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-dev 2022-03-03 08:49:58 +00:00
Bill Yi
a647fc0103 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I04abfaab53822bf0ca1139df5d447fce38633667
2022-03-03 06:03:26 +00:00
Bill Yi
a80600e063 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I21b331e61b40654187a6d31e837868154c1a4184
2022-03-03 05:55:45 +00:00
Chris Li
b6a5bf31ce Transfer PipContentOverlay when swipe to home with Shell transition
Swipe to home animation is played by launcher, but the entering PIP
transition will finished by PipTransition. As a result, we need to
reparent the overlay and fade out the overlay in PipTransition when
enter PIP is finalized, otherwise the overlay will be removed with the
remote transition leash and cause flicker.

Bug: 222030101
Test: verify with swipe to home with Shell transition
Change-Id: Idde3414e3cc5e8193cf7d4da9818e59dc6b4b1c5
2022-03-03 12:14:23 +08:00
Wei Sheng Shih
7790c1b933 Merge "Rename 'EMPTY' to 'SOLID_COLOR' for splash screen style." into tm-dev 2022-03-03 01:30:43 +00:00
Jerry Chang
16fc7aa4f5 Merge "Fix no touch events on half of the split screen" into tm-dev 2022-03-03 01:21:46 +00:00
TreeHugger Robot
c37e762e92 Merge "Update the bubble overflow to match new visuals" into tm-dev 2022-03-03 01:16:37 +00:00
Hongwei Wang
0fb41da7a0 Add OWNERS file for TV PiP
Ignore-AOSP-First: No merge branch from AOSP
Bug: N/A
Test: N/A
Change-Id: Ib3b6903cba9477621c9081b6ab9ce90491e9c8e4
2022-03-02 16:37:11 -08:00
Mady Mellor
3a0688ed8b Update the bubble overflow to match new visuals
* The overflow has a more restricted size than previous and this size
  should be used even on large screens, not just in phone landscape.
* Updates the padding between columns & rows in the overflow view
* Reduces the line length of items in the overflow

Test: visual - look at overflow on large tablet, small tablet and
               phone across configurations
Bug: 217211205
Change-Id: I8fe8b0bd8b6c07393583d81540506a74eaa4fc10
2022-03-02 19:56:06 +00:00
wilsonshih
db6ba3ba58 Rename 'EMPTY' to 'SOLID_COLOR' for splash screen style.
Preventing from misleading developers.

Bug: 217953215
Test: atest SplashscreenTests StartingSurfaceDrawerTests
ActivityRecordTests

Change-Id: I8669effb2e843ebe61e807850359b07b36b39fb3
2022-03-02 20:30:31 +08:00
Jerry Chang
5982b80584 Fix no touch events on half of the split screen
Make sure the surface bounds of split root tasks will be properly set
after enabled shell-transition. So client apps can inherit the correct
touch region.

Fix: 222163100
Test: atest StageCoordinatorTests
Test: manual check with the repro steps
Change-Id: I5c71e54513ad37d43347f9716081751aad477149
2022-03-02 11:14:16 +00:00
Wei Sheng Shih
172ea326de Merge "Estimate animation duration for AVD and AnimationDrawable" into tm-dev 2022-03-02 06:24:50 +00:00
Jerry Chang
613fbf778c Merge "Update smallestScreenWidthDp when split bounds resized" into tm-dev 2022-03-02 04:31:36 +00:00
Shan Huang
455035b4bc Merge "Turn off predictive back" into tm-dev 2022-03-02 01:44:30 +00:00
Shan Huang
ad89a82145 Turn off predictive back
Test: m -j. Test back in apps that opt-in, opt-out & sysUI
Bug: 222170518

Change-Id: I97ae7769ff2e04eb7fb39c49e025b255cdba057f
2022-03-02 01:42:11 +00:00
Sergey Serokurov
697c991ab6 Merge "Update stack position after a bubble is removed" into tm-dev 2022-03-01 21:44:47 +00:00
Wei Sheng Shih
e3ae5cda82 Merge "Release the surface control view host when addWindow fail." into tm-dev 2022-03-01 05:27:14 +00:00
Riddle Hsu
852f130119 Merge "Tweak animation for non-app windows with shell fixed rotation" into tm-dev 2022-03-01 05:08:45 +00:00
Chris Li
f36557410d Merge "Fix finishTransaction position when Shelf height is changed" into tm-dev 2022-03-01 00:04:50 +00:00
Sergey Serokurov
d5842c2aaa Update stack position after a bubble is removed
Bug: 218710452
Test: atest SystemUITests
Change-Id: Ie6103bc85c9f6331ddbc7734f140f2b7b379c84c
2022-02-26 01:55:36 +00:00
Riddle Hsu
77b2b34f4e Tweak animation for non-app windows with shell fixed rotation
To make it have the same behavior as legacy transition:
The bars are faded out when starting fixed rotation, and faded in
after display rotation change is completed. And the independent
seamless window such as round corner can keep showing on screen
seamlessly.

Also skip animation for seamless display change. Otherwise there will
be a no-op alpha animation with DEFAULT_APP_TRANSITION_DURATION=336ms
that adds unnecessary delay to finish the transition.

Bug: 221223435
Test: atest TransitionTests#testAppTransitionWithRotationChange
Change-Id: I3b1db4956b642fabb6061c7dbf0f7b2b8e1e300f
2022-02-25 23:04:07 +08:00
Chris Li
7e21cbfb02 Fix finishTransaction position when Shelf height is changed
When Launcher is resume, it can call PipController#setShelfHeight during
the entering PIP animation. The animator will update end value to avoid
flicker. When that happens, we also need to update the finishTransaction
to use the updated destination bounds in current rotation when the
transition is finished.

Bug: 219411429
Test: manual enter PIP from landscape
Change-Id: Ic48ece83134a23438cfffacc0637cbd0f721f9f7
2022-02-25 14:02:29 +08:00
wilsonshih
5e0c72a2c5 Estimate animation duration for AVD and AnimationDrawable
For Android S, we use the API windowSplashScreenAnimationDuration to
know the duration of the animatable icon would be, however, developers
can be confused to thought that this API is used to declare the
duration of splash screen.
To get the real duration of the animatable icon, if it is an AVD or
AnimationDrawable, try to get the animation duration from it.

Test: atest StartingSurfaceDrawerTests SplashscreenTests
Bug: 211707095

Change-Id: Ia3f8c5cd50bab164360e07d9ced87ff7f4321e96
2022-02-25 11:17:31 +08:00
TreeHugger Robot
68e3f55c66 Merge "Fix wait condition for SetRequestedOrientationWhilePinnedTest" into tm-dev 2022-02-24 14:45:55 +00:00
Kholoud Mohamed
c099351d94 Merge "Change DEVICE_POLICY_RESOURCE_UPDATED broadcast extras" into tm-dev 2022-02-24 13:11:00 +00:00
Nataniel Borges
e74d47839a Fix wait condition for SetRequestedOrientationWhilePinnedTest
The setup waited for a ROTATION_0, but this test starts at ROTATION_90

Bug: 219773854
Bug: 220977327
Test: atest WMShellFlickerTests:SetRequestedOrientationWhilePinnedTest
Change-Id: Ib2bde1f66f248adbe69acf5c344322e32b364eb2
2022-02-24 11:24:20 +01:00
wilsonshih
0c6bc130f6 Release the surface control view host when addWindow fail.
The graphic memory which allocate for animatable icon cannot be
released from #onDetachedFromWindow if that SurfaceView never been
added to a window, release the host if addWindow failed.

Test: manual test, force #addWindow always fail and cold start an app
with animatable icon, verify no SurfaceView object left in surface.
Bug: 218264452

Change-Id: I024c64ce134235e487b6ab7cf33ba9fdf4079046
Merged-In: I024c64ce134235e487b6ab7cf33ba9fdf4079046
2022-02-24 09:44:22 +00:00
Mady Mellor
cdc7d70d4f Merge "Only collapse bubbles when its from gesture nav" into tm-dev 2022-02-24 01:30:11 +00:00
Chris Li
1e9ff8eea6 Merge "Fix SetRequestedOrientationWhilePinnedTest with Shell transition" into tm-dev 2022-02-24 00:59:34 +00:00
Mateusz Cicheński
429c0a9769 Merge "Moving the resources related to PiP to the WindowManager/Shell." into tm-dev 2022-02-23 19:49:36 +00:00
Mady Mellor
ba688138fb Merge changes from topic "floating_dismiss" into tm-dev
* changes:
  Update PIP dismiss to use DismissView
  Update dismiss to new spec
2022-02-23 18:12:07 +00:00
Mady Mellor
014c25967b Merge "Adjustments to expanded view size and position" into tm-dev 2022-02-23 18:11:27 +00:00
kholoud mohamed
1b6b9dfeb8 Change DEVICE_POLICY_RESOURCE_UPDATED broadcast extras
Changed the resource type extra to be an int value to indicate the
resource type instead of having individual boolean extras for each
resource type.

Bug: 218875965
Test: N/A
Change-Id: Ic734c4d0e0a769dd981ef214e1be41f62d74705c
2022-02-23 14:10:09 +00:00
Nataniel Borges
7f7b20e086 Merge "Crash test when wait condition not met" into tm-dev 2022-02-23 11:16:52 +00:00
Chris Li
7404ff1182 Fix SetRequestedOrientationWhilePinnedTest with Shell transition
When the windowing mode is changed during fixed rotation, we don't want
to animate to the fixed rotation anymore, because the fixed rotation
will be cancelled later.

Bug: 214324061
Test: atest WMShellFlickerTests:SetRequestedOrientationWhilePinnedTest
Change-Id: I24b5389ec2b6ea28ce3ba7abf38fbd269566edf3
2022-02-23 14:50:01 +08:00
TreeHugger Robot
b031e08104 Merge "TvPiP: Move focus changes to pip controller" into tm-dev 2022-02-23 02:49:58 +00:00
Jerry Chang
24d954694a Merge "Fix extra offset of the split layout" into tm-dev 2022-02-23 02:06:18 +00:00
Chris Li
4556314a64 Merge "Exit PIP with fixed rotation with Shell transition" into tm-dev 2022-02-23 01:52:19 +00:00
Mady Mellor
a62aa184f7 Update PIP dismiss to use DismissView
All the values / things being done in PIP are exactly the same as what
DismissView does. This change updates PIP to use DismissView directly
so PIP will always pick up visual changes to dismiss without having
to copy them over manually.

Test: manual - have a PIP, drag it around and observe dismiss, drag
               PIP to dismiss, observe
Bug: 217211205
Change-Id: I430df28bdb7980ff5a0316c4aab728fe54e95e6b
2022-02-22 14:21:14 -08:00
Mady Mellor
953a9e14c7 Update dismiss to new spec
1 - larger gradient (same for both phone & tablet)
2 - gradient is now based on theme color

Test: manual - have a bubble, drag to dismiss it, observe the gradient
Bug: 217211205
Change-Id: Ibef23992089f0ae33dd93f9528a3ea2887aae465
2022-02-22 14:16:48 -08:00
Mady Mellor
9294a41db2 Adjustments to expanded view size and position
* Previously on large screens the expanded view was centered on the
  screen now it will be anchored to whichever edge it was expanded on
  ONLY when in landscape on a large large screen. In portrait, and on
  "small tablets" it will continue to be centered.
* Updates the width of the expanded view on portrait and on landscape
  for large screens.
* Adds the notion of small tablet

Test: manual - Open a bubble in various configurations:
      1) on phone:
        * landscape => bubbles show vertically on the side they were
          expanded on and expanded view is centered horizontally
        * portrait => bubbles show on top, expanded view centered
          horizontally
      2) on tablet that isn't small:
        * landscape => bubbles show vertically on the side they were
          expanded on and the expanded view is anchored to that edge
          with some padding
        * portrait => bubbles show vertically on the side they were
          expanded on and expanded view is centered horizontally
      3) on small tablet:
        * portrait & landscape => bubbles show vertically on the side
          they were expanded on and the expanded view is centered
          horizontally and takes up more space %-wise compared to a
          large tablet
Bug: 217211205
Change-Id: I7259e03aab35e0039c9b7bd855c12afe38373ace
2022-02-22 14:04:12 -08:00
Vishnu Nair
536c088165 TvPiP: Move focus changes to pip controller
Align with phone pip focus implementation.

Test: steps in b/218436735
Bug: 218436735
Change-Id: I54bf5d9b193a6cbb41f934f6831c2bdcd5b11472
2022-02-22 17:45:57 +00:00
Nataniel Borges
798fe83b4b Crash test when wait condition not met
This makes triaging issues unrelated to the test (e.g., transition crash) easier since all failing assertions are clustered with the same stack trace

Bug: 219773854
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I65bb1b5e87997c856ce080b24d549ba1c978955a
Merged-In: I65bb1b5e87997c856ce080b24d549ba1c978955a
2022-02-22 14:23:34 +00:00
Jerry Chang
a57326c97f Fix extra offset of the split layout
Use parent based coordinate instead of screen based coordinate when
indicating split surfaces' position so they won't be offset unexpectedly
when its parent is not at (0, 0).

Fix: 210696145
Test: check split UI when enabled "render apps below cutout area"
Change-Id: I65399f5ef2975e7ef376d161c41de2cfb7ed29dc
2022-02-22 03:27:10 +00:00
Chris Li
7256d26666 Exit PIP with fixed rotation with Shell transition
Bug: 219411429
Test: manual test enter PIP from different orientation
Change-Id: I1e8ea73fb7800cee4255f2eaefcd212024345351
2022-02-22 11:19:07 +08:00