Commit Graph

3822 Commits

Author SHA1 Message Date
Robert Horvath
3f574e253e Merge "Move TV PiP away from keep clear areas" into tm-dev 2022-03-09 09:14:54 +00:00
Shawn Lin
bf8b8621ad Merge "Exclude nav bar area from apps bounds when in kids mode" into tm-dev 2022-03-09 06:18:00 +00:00
Jerry Chang
4ab407e5fe Merge "Support to get the exact task which IME is attached to" into tm-dev 2022-03-09 01:23:38 +00:00
Galia Peycheva
01c7c259fe Merge "Add string for tv pip edu text" into tm-dev 2022-03-08 21:50:21 +00:00
Evan Rosky
10dc2271c1 Merge "move shell_transit sysprop to persist.wm" into tm-dev 2022-03-08 19:34:01 +00:00
Robert Horvath
c4f571a27e Move TV PiP away from keep clear areas
The PiP is placed in a way to avoid keep clear areas.
If no areas overlapping the default PiP anchor position are defined,
the PiP will stay at its anchor position.
Otherwise, it will try to move to a free location closest to its anchor
position. Unrestricted areas can cause the PiP to move across the entire
screen, but restricted areas have limited influence and can only move
the PiP a short distance.
If no free position is found, the PiP will be stashed for some time.
To find the position to move to once the PiP unstashes, a relaxed search
is performed, excluding a restricted keep clear area. If this still does
not yield a position to move to, only unrestricted areas will be taken
into account. The PiP is stashed along the edge closest to the unstash
position.

Bug: 218416347
Bug: 218494300
Test: atest TvPipKeepClearAlgorithmTest
Change-Id: I76c6527320fc403bb604b188f38eed505eeaab89
2022-03-08 18:23:16 +01:00
Galia Peycheva
9258090943 Add string for tv pip edu text
Bug: 219884907
Test: m
Change-Id: I51e8a0d69954a7f9d7b3cf9d4423ddad36f5e6c3
2022-03-08 16:28:22 +01:00
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
shawnlin
10d7cb3c0f Exclude nav bar area from apps bounds when in kids mode
GKS requested that app's bounds should not overlap with the nav bar area
when kids mode is enabled except for Launcher.

Creates a dedicate task organizer for kids mode. When kids mode is
enabled, create a root task with its bounds excluding the nav bar area
and tasks except launcher will be launched into it.

Bug: 161689887
Test: manual:
      1. adb shell settings put secure "nav_bar_force_visible" "1"
      2. choose 3-buttons navigation mode in
         Settings>System>Gestures>System navigation
      3. check winscope and see if bounds are set correctly
Test: atest KidsModeTaskOrganizerTest
Test: atest WindowOrganizerTests

Change-Id: I93af1bc5b2696654d8ca5055dbbbebf5a41f89aa
2022-03-08 16:00:22 +08: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
Evan Rosky
cf3d0a65a4 move shell_transit sysprop to persist.wm
This way we can use a context that systemui can set via flipper

Bug: 219067621
Test: manual
Change-Id: I29d1c39a1733e4d5f19f7f025e8a2cf2ca4f6d5a
2022-03-02 17:04:32 -08: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
Jerry Chang
f23631e4db Support to get the exact task which IME is attached to
To distinguish which side of the split that IME panel is attached to
after having a single-top root task for split screen, update
getImeTarget API to return the exact task that IME panel is attached to.

Bug: 207185041
Test: WMShellUnitTests
Test: enter split in portrait, toggle IME panel on the bottom split and
      verified split layout will be push up as expectedly.
Change-Id: Ib6ba74ecb1b844bb408475d5b6c28dd5816a8e29
2022-03-02 04:15:11 +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