Commit Graph

6303 Commits

Author SHA1 Message Date
TreeHugger Robot
d155a1a49a Merge "Import ActivityManager inner classes directly" into tm-qpr-dev am: 5be30d7d29 am: 91d3b349d0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20133851

Change-Id: Ic0d5aac49d81221f7fff9980a402601da1780ec0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 20:15:18 +00:00
TreeHugger Robot
91d3b349d0 Merge "Import ActivityManager inner classes directly" into tm-qpr-dev am: 5be30d7d29
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20133851

Change-Id: Ic2ff5c9f8c2819ea1ee5ef0e55c74373aabc29fa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 19:44:11 +00:00
TreeHugger Robot
5be30d7d29 Merge "Import ActivityManager inner classes directly" into tm-qpr-dev 2022-10-18 18:51:19 +00:00
Nataniel Borges
aab3fd11ee Merge "Disable some failing flicker tests" 2022-10-18 16:15:40 +00:00
Nataniel Borges
371415760d Disable some failing flicker tests
Also, enable passing 3 button tests on tests split screen

Bug: 239807171
Bug: 206753786
Bug: 176061063
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I2349110c9a1ad054fc1edeeb22854dc21ea52814
2022-10-18 10:52:18 +00:00
Robert Horvath
75a803b955 Merge "Only unrestricted KCA can move expanded PiP off the edge" 2022-10-18 07:53:10 +00:00
TreeHugger Robot
2907a8fa42 Merge "Show toast if app doesn't support split" into tm-qpr-dev am: b35a781088 am: 640e801d6a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20193728

Change-Id: Ie781aa1999c87e22340a607f49cd09f23abce2a9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 03:04:29 +00:00
TreeHugger Robot
640e801d6a Merge "Show toast if app doesn't support split" into tm-qpr-dev am: b35a781088
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20193728

Change-Id: I8fbaf7c7cab8065a75d9b71da11b7a805ea88456
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-18 02:33:11 +00:00
TreeHugger Robot
b35a781088 Merge "Show toast if app doesn't support split" into tm-qpr-dev 2022-10-18 02:04:07 +00:00
Bill Yi
59522ce416 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-10-17 23:33:00 +00:00
Ats Jenk
ab14210110 Merge "Improve caption layout" into tm-qpr-dev am: 1de186f84a am: 670c456e10
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20199776

Change-Id: Ifaad77b209f0bfb5649691a2605d2e773f061318
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:12:32 +00:00
Ats Jenk
670c456e10 Merge "Improve caption layout" into tm-qpr-dev am: 1de186f84a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20199776

Change-Id: I29e2f93f17133b72b82d4e3e548fb8615f983e78
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 20:09:15 +00:00
Ats Jenk
1de186f84a Merge "Improve caption layout" into tm-qpr-dev 2022-10-17 19:39:17 +00:00
Mady Mellor
5303530ec5 Merge "Pin bubbles to the bottom right on tablets for the prototype" into tm-qpr-dev am: 938281a014 am: 3a98424f17
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20197655

Change-Id: I5c20ac3c0422432e39839eada3b008d55367b5c1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 18:00:57 +00:00
Mady Mellor
3a98424f17 Merge "Pin bubbles to the bottom right on tablets for the prototype" into tm-qpr-dev am: 938281a014
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20197655

Change-Id: I1cc3e7550b689b09aef338fd06c58d16a714056d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-17 17:53:26 +00:00
Mady Mellor
938281a014 Merge "Pin bubbles to the bottom right on tablets for the prototype" into tm-qpr-dev 2022-10-17 16:55:24 +00:00
TreeHugger Robot
8cce8bf483 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-10-17 16:51:10 +00:00
Galia Peycheva
9d569c3d95 Merge "Remove splash screen animation on TV" 2022-10-17 11:39:34 +00:00
Bill Yi
1d7bd509d9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I22eaa78a3044474af702790265f98e66c6db5641
2022-10-15 12:16:18 -07:00
Bill Yi
fcdd422c83 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib6fb3868d8b6cff4f1f16e183ad2c3b0321ba261
2022-10-15 12:14:50 -07:00
Bill Yi
8391282dd1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I71b412b5f01841737b6b01e8e68dae01152689c6
2022-10-15 12:12:13 -07:00
TreeHugger Robot
a03468b846 Merge "Revert "Increase SF buffer size before starting flicker tests"" 2022-10-15 13:58:56 +00:00
Nataniel Borges
7c5f0e8e64 Revert "Increase SF buffer size before starting flicker tests"
This reverts commit 3bedae5d01.

Reason for revert: Significantly increased flakiness in go/wm-tests-flicker

Change-Id: I8e1e051103029abf1b431d514b24a7b6253599b9
2022-10-15 10:30:34 +00:00
Ats Jenk
2b6902c91c Improve caption layout
Add rounded corners to the caption bar and center back, handle and close
button images.

Test: visually verify the styling
Bug: 253705823
Change-Id: I5e0a4f03e9fb7b4ea079fcae3ce27ba33165eacc
2022-10-14 19:05:47 -07:00
Mady Mellor
a8057d4751 Pin bubbles to the bottom right on tablets for the prototype
- Remove some old code around bubbles in taskbar that is not currently
  relevant
- Update some of that code to work for the prototype, namely set
  a pinned location while the prototype is running and modify touch
  handling behavior so that the stack remains pinned

Test: manual - turn on the flag and add a bubble on tablet
             => bubble is above the taskbar on the bottom right
             => dragging and releasing the bubble returns it back
                to the same position
             => you can drag to dismiss when collapsed or expanded
Bug: 253318833
Bug: 173386799
Change-Id: I1a9530f98d908e19c5e65ffee9a87459a3e51c8c
2022-10-14 13:10:58 -07:00
TreeHugger Robot
cf2ea325fd Merge "Increase SF buffer size before starting flicker tests" 2022-10-14 17:27:17 +00:00
TreeHugger Robot
7e394e0325 Merge "Promote passing PIP test" 2022-10-14 16:58:38 +00:00
Nataniel Borges
3bedae5d01 Increase SF buffer size before starting flicker tests
Ensure all data from a CUJ fits in the buffer

Test: atest FlickerTests WMShellFlickerTests
Change-Id: I6e00acfdee26dcec349a3aa5d82f15ac664e62df
2022-10-14 15:07:02 +00:00
Robert Horvath
13626d09e8 Only unrestricted KCA can move expanded PiP off the edge
Moving expanded PiP windows away from the edge of the screen can be
disruptive due to the large size of expanded PiPs.
Allow expanded PiPs to be moved away from the edge only by unrestricted
keep clear areas, otherwise prefer movement along the edge or stashing.

Bug: 253014898
Test: atest TvPipKeepClearAlgorithmTest
Test: Manual, with expanded PiP and dashboard
Change-Id: I3c934e8a8a7a58d4fd78d968b4ec3eb4b2a02c78
2022-10-14 17:02:24 +02:00
Chilun Huang
5ebf3c92bf Merge "Fix the validation of layer switch for tablet" 2022-10-14 14:40:48 +00:00
Nataniel Borges
d3e0598aa8 Promote passing PIP test
Fixes: 251135384
Test: atest WMShellFlickerTests
Change-Id: If0fe846e7c4a4dd93d941f58cbf1d7246a580683
2022-10-14 14:04:24 +00:00
TreeHugger Robot
c76206f31b Merge "Add edge extension for ActivityEmbedding Shell transition animation" into tm-qpr-dev am: 9baf3ce919
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20118242

Change-Id: I67467166bfa96d31e50a10ec949eea969ae1163a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-14 12:06:59 +00:00
TreeHugger Robot
9baf3ce919 Merge "Add edge extension for ActivityEmbedding Shell transition animation" into tm-qpr-dev 2022-10-14 11:48:05 +00:00
Chris Li
4ac652ff8f Merge "Add edge extension for ActivityEmbedding Shell transition animation" 2022-10-14 08:54:33 +00:00
Jeff Chang
ccfed74e82 Show toast if app doesn't support split
Presents an "unsupported split" message for EXIT_REASON_UNKNOWN.

Bug: 244208843
Test: atest WMShellFlickerTests
Change-Id: I4870590501e229dc14058c089038e360a4861292
2022-10-14 15:45:21 +08:00
Chris Li
fcc0747278 Add edge extension for ActivityEmbedding Shell transition animation
Refactor the edge extension logic from DefaultTransitionHandler to the
helper class so that we can reuse it for ActivityEmbedding.

Bug: 207070762
Test: manually verify with Settings.
Merged-In: I6a89b549e7b117caae75ceba6df8f41f5c4d4a15
Change-Id: I6a89b549e7b117caae75ceba6df8f41f5c4d4a15
2022-10-14 14:28:31 +08:00
Chris Li
da935d0022 Add edge extension for ActivityEmbedding Shell transition animation
Refactor the edge extension logic from DefaultTransitionHandler to the
helper class so that we can reuse it for ActivityEmbedding.

Bug: 207070762
Test: manually verify with Settings.
Change-Id: I6a89b549e7b117caae75ceba6df8f41f5c4d4a15
2022-10-14 14:26:05 +08:00
Chilun Huang
9837bd5a26 Fix the validation of layer switch for tablet
The default split direction of tablet is different from phone. We can't
use "isRotated" to determine the split direction.

Bug: 249028038
Test: atest WMShellFlickerTests:SwitchAppByDoubleTapDivider

Change-Id: I11707b2433fe47608c387d8d8583263b725317f3
2022-10-14 11:32:20 +08:00
Ikram Gabiyev
91252521ec Merge "User-resize pip to normal bounds when (un)folding" into tm-qpr-dev am: 8664c9501c am: 068284befe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20161485

Change-Id: I32a85e42bd2b3d7e091016ba7fc4cea00ee4e5da
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 22:00:39 +00:00
Ikram Gabiyev
068284befe Merge "User-resize pip to normal bounds when (un)folding" into tm-qpr-dev am: 8664c9501c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20161485

Change-Id: Ic8e62e8d6918a22e3b7aac32f8097820186a7af9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 21:27:14 +00:00
TreeHugger Robot
1a78774286 Merge "Remove SurfaceView#setUseAlpha" 2022-10-13 21:23:50 +00:00
Ikram Gabiyev
8664c9501c Merge "User-resize pip to normal bounds when (un)folding" into tm-qpr-dev 2022-10-13 21:03:24 +00:00
Riddle Hsu
f1ce612b26 Merge "Do not change surface of system window token for transition" into tm-qpr-dev am: 8af9006eb3 am: d2a41ff4a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20165443

Change-Id: I003f824b893a2e0e878ae3c9441864abbbd60b50
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 17:43:52 +00:00
Riddle Hsu
d2a41ff4a0 Merge "Do not change surface of system window token for transition" into tm-qpr-dev am: 8af9006eb3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20165443

Change-Id: I5deb62d2fc59b58a6dc8da904db3ac82225e2b07
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 17:35:30 +00:00
Riddle Hsu
1689d780d3 Do not change surface of system window token for transition
The collected WindowToken's (e.g. status bar, navigation bar)
isVisibleRequested may be changed according to its WindowState's
visibility policy or the visibility of who is controlling the insets.
They are not aware of the WindowToken surface visibility, so keep
them untouched unless shell transition supports general window
animation or even insets animation.

Bug: 251214841
Test: atest FlickerTests:CloseImeAutoOpenWindowToAppTest
Test: Launch an activity that requests to hide system bars.
      And use shell command to change display size at the same time.
      After the launch transition is finished, the system bars
      can still be visible when swiping from bottom or top.
Change-Id: I2403e2dcbc6684774c9c3b74768a32c7b7a3b8ae
2022-10-13 17:24:43 +08:00
Chris Li
5071339e6e Merge "Polish ActivityEmbedding enter/exit PiP (1/n)" into tm-qpr-dev am: 9e3020b233
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/20152023

Change-Id: I28f0d8676e39234d1aae0fc59f444e3f4f43e0ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-10-13 09:21:27 +00:00
Chris Li
9e3020b233 Merge "Polish ActivityEmbedding enter/exit PiP (1/n)" into tm-qpr-dev 2022-10-13 08:51:48 +00:00
Chris Li
9cd45bac59 Merge "Polish ActivityEmbedding enter/exit PiP (1/n)" 2022-10-13 04:40:32 +00:00
Chris Li
b033b5a431 Polish ActivityEmbedding enter/exit PiP (1/n)
1. When moveActivityToPinnedRootTask with creating a new Task for PiP,
   make sure the Task's initial bounds is the same as the activity
   parent TaskFragment so the animation starts from the correct bounds.
2. When exit PiP to previous Task, make sure we are animating the
   correct window surface. For the previous implementation. there can
   also be TRANSIT_CHANGE change for entering ActivityEmbedding split
   (from PiP) in the same transition.

Bug: 207070762
Test: atest WmTests:RootWindowContainerTests
Test: atest WmTests:TransitionTests
Change-Id: Ifba090ad9ac9fb7033d343eab1c87c1a67bb9c11
2022-10-13 09:06:40 +08:00
Chris Li
84ec824a33 Polish ActivityEmbedding enter/exit PiP (1/n)
1. When moveActivityToPinnedRootTask with creating a new Task for PiP,
   make sure the Task's initial bounds is the same as the activity
   parent TaskFragment so the animation starts from the correct bounds.
2. When exit PiP to previous Task, make sure we are animating the
   correct window surface. For the previous implementation. there can
   also be TRANSIT_CHANGE change for entering ActivityEmbedding split
   (from PiP) in the same transition.

Bug: 207070762
Test: atest WmTests:RootWindowContainerTests
Test: atest WmTests:TransitionTests
Merged-In: Ifba090ad9ac9fb7033d343eab1c87c1a67bb9c11
Change-Id: Ifba090ad9ac9fb7033d343eab1c87c1a67bb9c11
2022-10-13 09:02:27 +08:00