Commit Graph

5103 Commits

Author SHA1 Message Date
Oleg Blinnikov
1b976d8e13 Merge "Letterbox education: Updated UI" into tm-qpr-dev am: 4f878b4cc1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19701009

Change-Id: Ib8966d583400037e3c787822ab1e27f16d09c809
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 10:48:44 +00:00
Oleg Blinnikov
4f878b4cc1 Merge "Letterbox education: Updated UI" into tm-qpr-dev 2022-08-31 10:26:20 +00:00
Tony Huang
fbaddd0c84 Merge "[Re-land]Improve enter split transition" into tm-qpr-dev am: 1a24c23f93
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19771576

Change-Id: Ieb3b9ec1345de4480f16d31ddac26e7c6266304a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-31 06:10:21 +00:00
Tony Huang
1a24c23f93 Merge "[Re-land]Improve enter split transition" into tm-qpr-dev 2022-08-31 05:57:01 +00:00
Oleg Blinnikov
ddae7e0800 Letterbox education: Updated UI
Updated paddings, margins, text and icons, renamed the main icon file

Bug: 232475559
Test: manual UI test
Change-Id: I3a70637a1330265376337f36f72fdf1c3dda25ee
2022-08-30 15:39:01 +00:00
Chilun Huang
4fe9eab8e0 Merge "Not to update recent tasks split pairs when shell transition enabled" into tm-qpr-dev am: 313aae1ef2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19745384

Change-Id: I056a32079da96fae02bf21bc80c1bbbf54b79226
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-30 09:11:29 +00:00
Chilun Huang
313aae1ef2 Merge "Not to update recent tasks split pairs when shell transition enabled" into tm-qpr-dev 2022-08-30 08:54:13 +00:00
Tony Huang
5b09708ef6 [Re-land]Improve enter split transition
Improve enter split transition by two part changes.
1. Enter split with resizing animation:
   We directly show split but no animation before, it might looks
   bad to user because UI change too many things in few frames.

2. Fix flicker cause by black screen when split active:
   When we start intent on side stage task, the top split root task
   will go to top and current top one task will be set as invisible
   then cause black screen due to split root task is full screen.
   Solve this by use new wct api setForceTranslucent to make split
   root task as translucent when split inactive. We need to reset
   it when split active otherwise it cause flicker when back to home.

   Except above change, we also need to set side stage bounds to
   area outside of screen otherwise it still cause flicker because it
   will show a flash of shadow when launch intent on side stage.

   This solution should be removed after shell transition fully
   landing because in shell transition we could make those transitions
   be done in one transition.

3. Fix b/243634747 caused by the previous CL. We should ensure split top
   root is non-translucnet after split active by any flow.

4. Fix b/243735702 which occured on the previous CL. Because sync
   transcation might apply after the animation, we could remove apply
   when split active but only apply by the animator.

Fix: 223325631
Fix: 243634747
Fix: 243735702
Test: manual
Test: pass existing tests
Change-Id: Id8822aafe9eb0d6d5b0282cea256db622b9730d0
2022-08-30 07:09:27 +00:00
Steve Elliott
a3ec4cfd66 Merge "Remove NotifGroupManagerLegacy usage from Bubbles" into tm-qpr-dev am: d215285a64
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19735656

Change-Id: I12d8cf2861db18da1ea379a2b53a64bbb92103b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-29 19:54:42 +00:00
Steve Elliott
d215285a64 Merge "Remove NotifGroupManagerLegacy usage from Bubbles" into tm-qpr-dev 2022-08-29 19:28:57 +00:00
Steve Elliott
9e0b961c12 Remove NotifGroupManagerLegacy usage from Bubbles
Bug: 200269355
Test: atest SystemUITests
Change-Id: If996315ae55f9f5b13159345b01bcea8f07a0ba4
2022-08-29 12:20:10 -04:00
Chilun Huang
ef1081e3d2 Not to update recent tasks split pairs when shell transition enabled
onTaskAppeared() and onTaskInfoChanged() should not update recent
tasks split pairs when shell transition enabled.

Bug: 244132711
Test: Manually check if the split pairs exist after swipe to home.
Change-Id: Ief5ae81909f6809727bf685c547e81599ff7d4ec
2022-08-29 22:08:16 +08:00
Bill Yi
cb7de6d03e Merge "Import translations. DO NOT MERGE ANYWHERE" into tm-qpr-dev 2022-08-27 23:25:04 +00:00
Garfield Tan
163b9c2f81 Merge "Split window decor lifecycle to a TransitionObserver" into tm-qpr-dev am: 94cdc7ba95
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19628835

Change-Id: Ie2f1db6ee26663afa8539cf39a2ea87a96883375
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-27 01:02:43 +00:00
Garfield Tan
94cdc7ba95 Merge "Split window decor lifecycle to a TransitionObserver" into tm-qpr-dev 2022-08-27 00:43:47 +00:00
Matt Sziklay
1f1d59d7ea Merge "Disable dragging on fullscreen tasks." into tm-qpr-dev am: 057f721740
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19735064

Change-Id: I096d35c22f145fb763b2a6b6f0b2ed092fdd13e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 16:09:32 +00:00
Garfield Tan
5959b4cd96 Split window decor lifecycle to a TransitionObserver
There are several transitions involving window decorations that are
handled by Launcher, but we still need to tie window decorations to the
lifecycle of such transitions to release window decorations at the right
time. Thus we move this part of logic into a new class.

Bug: 241975249
Test: atest FreeformTaskTransitionObserverTest
Change-Id: Iff14be6f1fcb0b8ee7f634d5d41567348fff5c06
2022-08-26 08:48:59 -07:00
Matt Sziklay
057f721740 Merge "Disable dragging on fullscreen tasks." into tm-qpr-dev 2022-08-26 15:44:55 +00:00
Neha Jain
e2602417ea Merge "Revert "Improve enter split transition"" into tm-qpr-dev am: 9e6b8ad640
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19746494

Change-Id: I8311a5c6102753285f1475f1c7f1c19787246b24
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 02:58:50 +00:00
Neha Jain
9e6b8ad640 Merge "Revert "Improve enter split transition"" into tm-qpr-dev 2022-08-26 02:31:38 +00:00
Shawn Lin
1c2cfed77a Merge "Fix NPE when leaving kids mode" into tm-qpr-dev am: ef35f3a638
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19693479

Change-Id: I74772f3f52059d8c0e876a0be29f531e49252ad3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 02:02:52 +00:00
Shawn Lin
ef35f3a638 Merge "Fix NPE when leaving kids mode" into tm-qpr-dev 2022-08-26 01:56:55 +00:00
Jerry Chang
a788d53b7c Merge "Limit insets adjustment of split bounds in portrait mode" into tm-qpr-dev am: 858e773ea8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19737089

Change-Id: I6d5a0df57c444eb295b0ff5f3e5ef73b10e36019
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-26 00:45:10 +00:00
Jerry Chang
858e773ea8 Merge "Limit insets adjustment of split bounds in portrait mode" into tm-qpr-dev 2022-08-26 00:26:57 +00:00
Neha Jain
af51b4d8a1 Revert "Improve enter split transition"
This reverts commit 288d5550cc.

Reason for revert: b/243634747

Change-Id: I3413f82999c068bb58aba8f7a7e40d95991f18c3
2022-08-25 20:36:27 +00:00
wilsonshih
848db58379 [RESTRICT AUTOMERGE]BackGestureAnimation: a lightweight recents am: c9c9a757a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19394174

Change-Id: I855a2c63713e9543f18b6e84e071b21589dd3729
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 15:07:21 +00:00
Wei Sheng Shih
4ec0b52029 Merge "[RESTRICT AUTOMERGE]BackGestureAnimation: a lightweight recents animation controller" into tm-qpr-dev 2022-08-25 14:04:21 +00:00
Bill Yi
e14ec913ad Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I518a04d418d917deadf0d11a7fc7e58228fe63c2
2022-08-25 00:09:03 -07:00
Ming-Shin Lu
fcbea80252 Merge "Fix no cross-profile thumbnail animation" into tm-qpr-dev am: 95264856d1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19574870

Change-Id: Iec3cf22fa0af018960c27fc1a257854fafa3b2f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-25 05:40:57 +00:00
Ming-Shin Lu
95264856d1 Merge "Fix no cross-profile thumbnail animation" into tm-qpr-dev 2022-08-25 04:41:36 +00:00
Shawn Lin
e01635e68f Fix NPE when leaving kids mode
Do not apply leash operations if we are leaving kids mode since the root task will be deleted.

Bug: 242873681
Test: 1. Select 3-button nav mode
      2. enable kids mode by below command:
         adb shell setting put secure nav_bar_kids_mode 1
      3. Swtich to gesture nav mode to exit kids mode and no crash
Change-Id: I04cab6854a40bcae42b8c83db2e6866e4f558cca
2022-08-25 03:52:13 +00:00
Jerry Chang
26849125aa Limit insets adjustment of split bounds in portrait mode
I91d3a430 adjusts insets when calculating divider bar snap positions, to
avoid size-compat mode when switching unresizable apps. However,
limiting the adjustment to portrait mode would be enough since it's for
apps in landscape when they are latterboxed. This also helps align the
middle divider bar position with navigation bar in landscape mode.

Fix: 242918407
Test: switching split position of unresizable apps in landscape won't
      show size-compat mode button
Test: divider bar position aligned with navigation bar in landscape with
      the consideration of insets

Change-Id: I8722393c3f591de2b02098ec279b23c82a7daeb6
2022-08-25 00:41:33 +00:00
mattsziklay
26867ae4d6 Disable dragging on fullscreen tasks.
This CL prevents dragging fullscreen tasks via caption.

Bug: 243683959
Test: Attempt to drag a fullscreen task, ensure dragging non-maximized
captions is unaffected.

Change-Id: I297f2e8b6d69aba29061ae008d9d51df03ae134c
2022-08-24 14:46:53 -07:00
Mateusz Cicheński
47ae0914bd Merge "Add system property to enable/disable fling to dismiss for PiP and Bubbles." into tm-qpr-dev am: 65fced038c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19608172

Change-Id: Ic7b922d801d6edbb3250cf5dd3dcbb3c3b351cba
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 16:34:56 +00:00
Mateusz Cicheński
65fced038c Merge "Add system property to enable/disable fling to dismiss for PiP and Bubbles." into tm-qpr-dev 2022-08-24 16:28:15 +00:00
Matt Sziklay
308be3ed1d Merge "Add WM shell caption to fullscreen tasks" into tm-qpr-dev am: 1aceccc616
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19600330

Change-Id: I90a3455afb30ced445b469a7b7570f017a53a5c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 16:24:04 +00:00
Matt Sziklay
1aceccc616 Merge "Add WM shell caption to fullscreen tasks" into tm-qpr-dev 2022-08-24 16:15:14 +00:00
Ming-Shin Lu
389ef0bb5e Fix no cross-profile thumbnail animation
As the task of the launching activity requests attaching cross-profile
thumbnail animation but in Transication#onTransitionReady didn't be
promoted into change list, so it ends up no-op since attaching thumbnail
for cross-task requires the animating target is the task.

Fix the issue by
1) Add {FLAG_CROSS_PROFILE_OWNER_THUMBNAIL,
   FLAG_CROSS_PROFILE_WORK_THUMBNAIL} in TransitionInfo.Change for shell
   to know which thumbnail icon should load, according to the userId of
   launching activity.
2) Remove isTask and add 1)'s change flag check in
   attachCrossProfileThumbnailAnimation to make the thumbnail animation
   can be played and attached on the activity-level.

Fix: 239798040
Test: as issue steps
 1) Use Gmail app
 2) Tap the account icon
 3) Select "Switch to personal profile" (or "Switch to work profile")
 4) Expect the dimmed background thumbnail icon with
    task opening transition are animated in parallel
Change-Id: I90eecf4e8ba104c7234a39d1b2638295820d2ac7
2022-08-24 23:58:15 +08:00
Chris Li
db8e3b1919 Merge "Animate ActivityEmbedding transition with Shell Transition" into tm-qpr-dev am: 27ac388574
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19691237

Change-Id: If5c817558945f9e27783a485c04145b7b31dcadf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-24 06:18:46 +00:00
Chris Li
27ac388574 Merge "Animate ActivityEmbedding transition with Shell Transition" into tm-qpr-dev 2022-08-24 05:31:02 +00:00
wilsonshih
c9c9a757a8 [RESTRICT AUTOMERGE]BackGestureAnimation: a lightweight recents
animation controller

Copy most of code from RecentsAnimationController to back gesture
animation controller(BackNaviAnimationController), the infrastructure
can be reused for either back-to-home/back-to-task/back-to-activity
animations if needed. Since the infrasturcture of legacy recents
animation controller should be stable already, we don't need to
worry about issues like leak leashes/flickers/fixed rotation.

BackAnimationAdaptor is a temporary class to help migrate to shell
transition, the target is to replace it by RemoteTransition.

Next step: Migrate to shell transition, decouple animation info from
BackNavigationInfo.
Test: manually play back to home animation to verify no flicker/black
background/leak surface. Also test that there can play back to home
animation even when quick swipe.
Test: atest BackNavigationTest
Test: atest BackNavigationControllerTests BackAnimationControllerTest
Bug: 237642535

Change-Id: I436a3dcf5011c56c08d131b40168f19128cc8723
2022-08-24 02:35:46 +00:00
Chris Li
bdfb18ab73 Animate ActivityEmbedding transition with Shell Transition
Make a copy of TaskFragmentAnimation* to ActivityEmbeddingAnimation*
to fit into Shell transition model.

Bug: 207070762
Test: atest WMShellUnitTests:ActivityEmbeddingControllerTests
Test: atest WMShellUnitTests:ActivityEmbeddingAnimationRunnerTests
Change-Id: I44118e1415f85bcd49fa77bff10c67094ec9cad5
2022-08-24 10:04:00 +08:00
mattsziklay
f15e311af5 Add WM shell caption to fullscreen tasks
This CL introduces WindowDecorFullscreenTaskListener for transitions
involving WindowDecor, allowing for shell caption on fullscreen tasks.

Bug: 240962712
Test: Maximize freeform tasks, confirm shell caption displays, restore
tasks from maximize.

Change-Id: I07461e516983359b129bc0aae18c0c2bab3c82b1
2022-08-23 15:51:46 -07:00
Winson Chung
d5e7754146 Merge changes I63c90f71,I0f016aab into tm-qpr-dev am: fea416b8d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19671967

Change-Id: Iff006039cd23d705d5083d3eeaa22cd3e140c7c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-23 20:53:04 +00:00
Ats Jenk
2616678911 Merge "Fix bug with clearing bubble to expand" into tm-qpr-dev am: ebd5de1ccf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19680866

Change-Id: I33e8b856df97e0641c7c42880bafe73447633aef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-23 20:49:07 +00:00
Gaurav Bhola
359d59b0cf Merge "Add notifyInitialized(), notifyReleased() & isInitialized() methods in TaskView." into tm-qpr-dev am: 39276b1fdf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19659821

Change-Id: Ide6dd55b841803cf4143ea3cf45330c41af7f015
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-23 20:32:14 +00:00
Winson Chung
fea416b8d4 Merge changes I63c90f71,I0f016aab into tm-qpr-dev
* changes:
  Minor cleanup
  Pipe user changed events to the Shell
2022-08-23 17:39:24 +00:00
Ats Jenk
ebd5de1ccf Merge "Fix bug with clearing bubble to expand" into tm-qpr-dev 2022-08-23 16:26:49 +00:00
Gaurav Bhola
39276b1fdf Merge "Add notifyInitialized(), notifyReleased() & isInitialized() methods in TaskView." into tm-qpr-dev 2022-08-23 13:35:30 +00:00
Tony Huang
a335abfa66 Merge "Improve enter split transition" into tm-qpr-dev am: 9ab7dedcdd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19458153

Change-Id: I0ece5d1456a72e94188732b16a7cd6abdad907e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-23 02:35:39 +00:00