Commit Graph

3812 Commits

Author SHA1 Message Date
Tom Natan
81e377699b Merge "[17/n] Letterbox Education: change the ripple color of the dismiss button." into tm-dev 2022-03-08 10:24:48 +00:00
TreeHugger Robot
1d42fb2f89 Merge "[Shell Transition] Fix exit PIP crash when there are multiple activity" into tm-dev 2022-03-08 06:01:17 +00:00
Chris Li
a300987d39 [Shell Transition] Fix exit PIP crash when there are multiple activity
When the Task contains multiple activities, entering/exiting PIP will
move the PIP activity in/out of a new PIP Task.

Bug: 222410428
Test: verify with test app that contains multiple activities
Change-Id: Icdb27b24b5dcf332c84ac01dd368e4f16f19889e
2022-03-08 11:23:10 +08:00
Mady Mellor
4c726719f3 Merge "Fix issue where the update dot wasn't showing" into tm-dev 2022-03-08 00:19:30 +00:00
tomnatan
ecba16d6fd [17/n] Letterbox Education: change the ripple color of the dismiss button.
Bug: 215314668
Test: N/A
Change-Id: Ifa36569c6bd089868a27448d483121163f41c567
2022-03-07 19:36:24 +00:00
Hongwei Wang
6bafc9804c Merge "Cleanup LegacySplitScreen usage in PiP" into tm-dev 2022-03-07 18:13:21 +00:00
Evan Rosky
25616b0905 Merge "When doing activity->activity transfer, use abort instead of finish" into tm-dev 2022-03-07 17:17:04 +00:00
Tom Natan
687af63e66 Merge "Check if keyguard is showing instead of occluded for compat UI." into tm-dev 2022-03-07 15:35:08 +00:00
Tom Natan
2e12d3499c Merge "[16/n] Letterbox Education: focus on the dialog title for accessibility." into tm-dev 2022-03-07 15:32:28 +00:00
Issei Suzuki
4a785a1407 Merge "Apply right animation type on translucent window containers." into tm-dev 2022-03-07 11:46:47 +00:00
TreeHugger Robot
7fe1c1386d Merge "Transfer PipContentOverlay when swipe to home with Shell transition" into tm-dev 2022-03-05 15:34:07 +00:00
Mady Mellor
66d0e4234e Fix issue where the update dot wasn't showing
Now that BadgedImageView is a viewgroup overriding onDraw doesn't
work, instead we can override dispatchDraw.

Fixes: 213595915
Test: visual - add a bubble and see that there is a dot
Change-Id: I5f417f95922a070f5290b7291b6e7748a69840d8
2022-03-05 01:14:19 +00:00
Hongwei Wang
5524cdd990 Cleanup LegacySplitScreen usage in PiP
Bug: 207532012
Test: verify PiP works with new split screen
Change-Id: I457bfc174ddf86f3005a47eb6f45eb926915757c
2022-03-04 16:36:00 -08:00
Evan Rosky
9074e9c3ee When doing activity->activity transfer, use abort instead of finish
Otherwise, it can be interpretted as an accepted merge.

Bug: 222109476
Test: monkey
Change-Id: Ia5a2259c7ba2909cce14f0a5be63517557eba2d8
2022-03-04 13:32:41 -08:00
tomnatan
3beba95ad3 [16/n] Letterbox Education: focus on the dialog title for accessibility.
This will cause talkback to read the title and the rest of the dialog when the user swipes right.

Bug: 222112590
Test: atest WMShellUnitTests:LetterboxEduDialogLayoutTest
Test: atest WMShellUnitTests:LetterboxEduWindowManagerTest
Change-Id: Id850520380144055c9efa95f6006b7b277cf8eb9
2022-03-04 18:48:38 +00:00
tomnatan
7b22430139 Check if keyguard is showing instead of occluded for compat UI.
This fixes an issue where compat UI is hidden even when keyguard is dismissed (but still considered occluded because the activity could occlude the keyguard).

Bug: 206627721
Test: atest SystemUITests:WMShellTest
Test: atest WMShellUnitTests:CompatUIControllerTest
Change-Id: I95f5b4d75d46a4958763c5ea3cdadb09b88f9836
2022-03-04 17:14:31 +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
Issei Suzuki
a905fe439b Apply right animation type on translucent window containers.
Bug: 217174830
Test: atest TransitionTests
Change-Id: I97c5220b9fe3fde33e1426c8fc2598410fad3735
2022-03-03 15:08:10 +01: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