Commit Graph

2611 Commits

Author SHA1 Message Date
Jerry Chang
60c6fa7033 Merge "Make divider bar flings smoother when snap-to-dismiss split" into sc-v2-dev am: 70fb265591 am: 417621a2b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15480930

Change-Id: I0f4c5d6a84acb73b870aa8bc8447185d2109ec5f
2021-08-09 14:29:17 +00:00
Jerry Chang
417621a2b1 Merge "Make divider bar flings smoother when snap-to-dismiss split" into sc-v2-dev am: 70fb265591
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15480930

Change-Id: Ic09439e999fe5b3ac55471eb719a81ef806fd05a
2021-08-09 14:19:32 +00:00
Jerry Chang
70fb265591 Merge "Make divider bar flings smoother when snap-to-dismiss split" into sc-v2-dev 2021-08-09 14:06:59 +00:00
Ben Lin
d9cd47039f Merge "PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation." into sc-v2-dev am: 4c06d013b5 am: e92a883d27
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484574

Change-Id: I6e2edc13227f0ab93aa34298d50d02c93514cf06
2021-08-09 05:00:14 +00:00
Ben Lin
e92a883d27 Merge "PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation." into sc-v2-dev am: 4c06d013b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484574

Change-Id: I7454a870292fb72797c4b5b342e06d2cb268413a
2021-08-09 04:50:56 +00:00
Ben Lin
4c06d013b5 Merge "PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation." into sc-v2-dev 2021-08-09 04:36:54 +00:00
Jerry Chang
bc1eba66ec Make divider bar flings smoother when snap-to-dismiss split
Bug: 195699800
Test: dismissing stage split with divider bar will fling the divider bar
      smoothly to the edge of the screen before split been dismissed.

Change-Id: Ic3bb2d9bc6da82773b7818c70dc535a5cea8e437
2021-08-09 11:30:10 +08:00
Ben Lin
7fb1c306a6 PiP Transition: Only allow TRANSIT_PIP and TRANSIT_OPEN types for enter animation.
Bug: 165793917
Test: Enable Shell transition, run flicker tests for PIP
Change-Id: Ia6c77a71ebfb443dd3d6e54dc3cd19df5780379f
2021-08-06 22:48:00 +00:00
Andrii Kulian
58453202f0 Merge "Delete dependent TaskFragments in the same transaction" into sc-v2-dev am: f74b9ddc8a am: 8c7454e662
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15456821

Change-Id: Ib659a6e9fa08592da67a1706d894186881ff65f6
2021-08-06 21:23:05 +00:00
Andrii Kulian
8c7454e662 Merge "Delete dependent TaskFragments in the same transaction" into sc-v2-dev am: f74b9ddc8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15456821

Change-Id: I5db565a10e287001cedfa66b30631e031c1f9077
2021-08-06 21:08:26 +00:00
Andrii Kulian
f74b9ddc8a Merge "Delete dependent TaskFragments in the same transaction" into sc-v2-dev 2021-08-06 21:01:39 +00:00
Garfield Tan
4417e600fa Merge "Add a minimal FreeformTaskListener" into sc-v2-dev am: 7e23f324dd am: 4140b2ee39
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15475655

Change-Id: Ic28799314d8643279c620a41702cb6c6f41471ae
2021-08-06 16:57:53 +00:00
Garfield Tan
4140b2ee39 Merge "Add a minimal FreeformTaskListener" into sc-v2-dev am: 7e23f324dd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15475655

Change-Id: I51add5776a23fe63978771aaa8a885b619289890
2021-08-06 16:44:04 +00:00
Garfield Tan
7e23f324dd Merge "Add a minimal FreeformTaskListener" into sc-v2-dev 2021-08-06 16:29:14 +00:00
Garfield Tan
9f2c659f1a Add a minimal FreeformTaskListener
WM team starts to remove functionalities that were made for unmanaged
tasks so take this step 1 to avoid regressions from this type of
changes.

Also remove UNSUPPORTED_WINDOWING_MODES because ShellTaskOrganizer can
handle all windowing modes now.

Bug: 192310211
Bug: 165794880
Bug: 165794636
Test: Maximize, drag and resize freeform windows.
Change-Id: If130b449fe6cf37c39f0e1424e4f23cdb2d33dd5
2021-08-06 16:25:14 +00:00
Jason Chang
bd349dd1d8 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2 am: b7edaae151
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: I6e9f55719a6122ecf9138eda80e23fbe32882325
2021-08-06 06:01:43 +00:00
Jason Chang
25fee64461 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2 am: 09dc62ab62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: Ib53cf68e2362e11e0db87bd3d5787b4054c144b5
2021-08-06 06:01:20 +00:00
Jason Chang
b7edaae151 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: I2bf121d0ce528eca6960d4bf3d9181fb76ba73bb
2021-08-06 05:48:23 +00:00
Jason Chang
09dc62ab62 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev am: 20c38783c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15472778

Change-Id: Ib9b3775291c76eb3f4237f85e84cf03e1f00132b
2021-08-06 05:47:59 +00:00
Jason Chang
20c38783c2 Merge "Fix one-handed mode tap app to exit doesn't work in factory boot" into sc-dev 2021-08-06 05:36:49 +00:00
Jason Chang
413ab9d586 Fix one-handed mode tap app to exit doesn't work in factory boot
Root cause:
1. Design change "tap app to exit" -> always being true, and settings
remove this option.
2. Tuning performance, due to 1, no longer listens to the key change,
so we remove the listener.

Solution:
Change getSettingsTapsAppToExit() API to return default TRUE.

Bug: 195629000
Test: Build ROM and factory-reset to test
Test: atest WMShellUnitTests
Change-Id: Id3c265258ed28f7e0aa54505c339671885d28fa7
2021-08-06 01:53:39 +00:00
Evan Rosky
4ab085aeb5 Merge "Differentiate seamless rotations in shell transitions" into sc-v2-dev am: 9751bc2fec am: e5e523416c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15388785

Change-Id: I00aae931ff43257abbe6454338ff4a18773b411c
2021-08-06 00:49:55 +00:00
Evan Rosky
e5e523416c Merge "Differentiate seamless rotations in shell transitions" into sc-v2-dev am: 9751bc2fec
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15388785

Change-Id: Idea3cb030118f0346113cea0dd8cf22d2ac19ef6
2021-08-06 00:32:50 +00:00
Evan Rosky
bc047eeedd Differentiate seamless rotations in shell transitions
Shell owns the whole display rotation animation now. So, we
can just provide enough information for it to decide when
seamless is requested/appropriate. The default behavior (when
not explicitly animating) is already a jump-cut/seamless, so
just skip the rotation animation if we are doing seamless

Bug: 194693472
Test: atest SeamlessAppRotationTest ShellTransitionTests
Change-Id: I64748f5910c04784fd9818818b029fa5f1339c6c
2021-08-05 10:11:52 -07:00
Andrii Kulian
e82c67504d Delete dependent TaskFragments in the same transaction
When finishing the last activity in a container that has dependent
containers, make sure to delete those in addition to just finishing
activities. This will ensure that containers with activities from
different apps will be properly cleaned up.

Bug: 195108809
Test: Launch a container to side with 'finishSecondaryWithPrimary'
configuration, finish the primary container with swipe from side.
Test: Do the above for activities in different apps.

Change-Id: I746055fd02894d8221cace10d556992e2dba31b5
2021-08-04 21:25:23 -07:00
Bill Yi
18bfc13c45 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5441a7947e16c276fef74a0396621dd20e389cc2
2021-08-04 10:10:46 +00:00
Bill Yi
ee8f81d6b4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I682d240e086e7ea706c7a513b84e6e0e872b2365
2021-08-04 10:09:24 +00:00
Bill Yi
e0ddb23d3f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I415a4afa4d0a10a32a211de24b63c698a7d6cdc2
2021-08-04 10:07:45 +00:00
Andrii Kulian
9a6c91dc10 Merge "Intercept activity start requests in client organizer" into sc-v2-dev am: 94a6a10f90 am: 8a3e649655
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15411942

Change-Id: I375bb0707edfb319998bff3be95555b067076897
2021-08-04 02:57:28 +00:00
Andrii Kulian
8a3e649655 Merge "Intercept activity start requests in client organizer" into sc-v2-dev am: 94a6a10f90
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15411942

Change-Id: Ie5535035dc6fe2db01fc490b9c7aca18e87467d3
2021-08-04 02:43:26 +00:00
Andrii Kulian
94a6a10f90 Merge "Intercept activity start requests in client organizer" into sc-v2-dev 2021-08-04 02:23:59 +00:00
Andrii Kulian
94354a9a7f Intercept activity start requests in client organizer
This allows applying split rules to activity start requests for
different processes and covers APIs like 'startActivityAsUser',
not requiring app developers to use dedicated APIs to start to side
instead.

When the client organizer observes a new activity being started, it
creates a new TaskFragment first and modifies the activity start
options to target that container.

Bug: 194140227
Bug: 190433398
Test: Manual, using reference implementation and sample app.
Change-Id: Ice3de8ec725d327266ec38052129b4158608855e
2021-08-03 14:38:02 -07:00
Winson Chung
0a5e07d0c7 Merge "Fix one more import for ContextThemeWrapper." into sc-v2-dev am: fa8944c1a2 am: 39326cd053
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15443607

Change-Id: I01a64f21e47c937f2b4128df057f5e66458c9aff
2021-08-03 18:37:24 +00:00
Winson Chung
39326cd053 Merge "Fix one more import for ContextThemeWrapper." into sc-v2-dev am: fa8944c1a2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15443607

Change-Id: Ieff894252cffc4df4cd5110a16ccae614731d174
2021-08-03 18:25:27 +00:00
Winson Chung
fa8944c1a2 Merge "Fix one more import for ContextThemeWrapper." into sc-v2-dev 2021-08-03 18:08:42 +00:00
Bill Lin
72d99a9351 Merge "Integrate SurfaceControl jank monitor for PIP transition" into sc-v2-dev am: fbb39c14c3 am: 6826296fa1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15222486

Change-Id: I9f989c1753474a825694bb742b138abb0bbdc97e
2021-08-03 07:31:30 +00:00
Bill Lin
6826296fa1 Merge "Integrate SurfaceControl jank monitor for PIP transition" into sc-v2-dev am: fbb39c14c3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15222486

Change-Id: I2f685c4828dc75b1996d95a7c9c390f155da4d9d
2021-08-03 07:19:10 +00:00
Bill Lin
d075ec0ab6 Integrate SurfaceControl jank monitor for PIP transition
- onPipTransitionStarted()
Use InteractionJankMonitor.Builder to setup with PIP task's
leash and dispatch to begin() with CUJ_PIP_TRANSITION

- onPipTransitionFinishedOrCanceled()
End CUJ_PIP_TRANSITION when the transition either finished
or canceled.

Test: atest WMShellUnitTests
Test: atest SystemUITests
Test: record systrace through perfetto.dev
Bug: 169221267
Change-Id: I9f94ddde7f0dd48d50d50313ba517b919f0d8d25
2021-08-03 03:41:12 +00:00
Louis Chang
6f1b5890db Merge "Sending TaskFragment token to client for the launching activity" into sc-v2-dev am: 3acc328b12 am: 435fbc6921
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15407674

Change-Id: Ib181452014b3a9633e0f5ddc023dca8f0e71945e
2021-08-03 02:56:06 +00:00
Louis Chang
435fbc6921 Merge "Sending TaskFragment token to client for the launching activity" into sc-v2-dev am: 3acc328b12
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15407674

Change-Id: Iab5ddf47b82b128674ec3cc6c1017cf8417689af
2021-08-03 02:43:39 +00:00
Louis Chang
3acc328b12 Merge "Sending TaskFragment token to client for the launching activity" into sc-v2-dev 2021-08-03 02:25:11 +00:00
Mady Mellor
6980806291 Merge changes I500c566e,I4b5ffc26 into sc-v2-dev am: 81ce27f854 am: 3d1ed7a4f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15440807

Change-Id: I1dc04db9282adeb658a672d979426f1a2748521e
2021-08-03 01:22:29 +00:00
Mady Mellor
3d1ed7a4f8 Merge changes I500c566e,I4b5ffc26 into sc-v2-dev am: 81ce27f854
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15440807

Change-Id: I16d4d764895a3d2c3f8725e0949559398b164011
2021-08-03 01:21:53 +00:00
Mady Mellor
81ce27f854 Merge changes I500c566e,I4b5ffc26 into sc-v2-dev
* changes:
  Update the flyout width to be smaller on large screens
  Updates to manage button based on latest mocks
2021-08-03 01:07:12 +00:00
Winson Chung
fff8e21975 Fix one more import for ContextThemeWrapper.
Bug: 195028385
Test: can build now.
Change-Id: Ie14285b614318a99098f4457d7564a25724cde6b
2021-08-02 14:19:54 -07:00
Mady Mellor
3289ae9f64 Update the flyout width to be smaller on large screens
On phone we use 60% of the screen which is huge on
tablet. This change uses 30% of the screen for the
flyout on large screens & enforces a minimum for
that value.

Test: manual - get a long message in a bubble on a
               tablet, it should have similar width
               as it does on phone.
Bug: 186776550
Change-Id: I500c566edd9941dc2bd149692eaf95c6e6f4aa61
2021-08-02 14:03:01 -07:00
Mady Mellor
ba35a77513 Updates to manage button based on latest mocks
- manage button should be inset from the expanded view edge
  but the menu should be flush with expanded view edge.
- button size is smaller (36dp instead of 40dp)
- more padding (16dp above / below on both tablet & phone)
- diff colour N1-800 instead of N1-900

Test: visual 1 - expand a bubble and look at 'manage' button
             2 - tap on the button and look at the menu
             3 - do 1 & 2 on tablet & in RTL & on phone
                 landscape
Bug: 183658858
Change-Id: I4b5ffc26602b72ee28d26476fc222df3e2e1e80b
2021-08-02 12:20:08 -07:00
Louis Chang
332036a29e Sending TaskFragment token to client for the launching activity
Activity#onCreate is called before receiving the TaskFragment
appeared event in the client process. So, the client split
controller created another split and resulted in unexpected
behaviors.

Bug: 194860679
Test: start activity to side
Test: wm presubmit

Change-Id: Iac34bd39376940c5c0224c8687ad9858a4190e20
2021-08-02 09:42:36 +08:00
Hongwei Wang
fa325c750d Merge "Pass AppOps result for PiP in RemoteAnimationTarget" into sc-v2-dev am: 4eaeabe8bd am: 7abcb9bce8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15391157

Change-Id: I1d63fc358e69cf2cf0f2745216226a8447c2a5ed
2021-07-31 03:44:39 +00:00
Hongwei Wang
7abcb9bce8 Merge "Pass AppOps result for PiP in RemoteAnimationTarget" into sc-v2-dev am: 4eaeabe8bd
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15391157

Change-Id: I3e5f3f7beab30482a3e759fda7ed479ee24d3f48
2021-07-31 03:28:56 +00:00