Commit Graph

1033 Commits

Author SHA1 Message Date
Presubmit Automerger Backend
39c418246a [automerge] [DO NOT MERGE] Ensure SensorManager is destroyed on Launcher activity destruction 2p: 7eee970bd6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16785203

Change-Id: I3a80ed29ab42627d2f83a551fc51bbf4feb41fc6
2022-02-04 14:32:25 +00:00
Nicolo' Mazzucato
7eee970bd6 [DO NOT MERGE] Ensure SensorManager is destroyed on Launcher activity destruction
cp of I96bf525fe3730e7bf6b4c1042c18ef96622248fd to solve leak.
Restricting automerge as the bug is already fixed on master, but the file has been converted to kotlin, so this cl can't be automatically patched there.


Fix: 217144034
Test: See other cl
Change-Id: Id81168475882e94fb81ea6c89388707e730da5f9
2022-02-04 14:32:14 +00:00
TreeHugger Robot
19516a0496 Merge "Quick fix for NullPointerException 211713013" into sc-v2-dev am: b7f37cd797
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16569980

Change-Id: I6c8bce01aa621ad8c09c5c2f1bed93e8de3c3b17
2022-01-06 00:27:03 +00:00
Sebastian Franco
76f9cda458 Quick fix for NullPointerException 211713013
Test: Manually tested
Fix: 211713013
Change-Id: Ie701bee61a69d88cc9fce12c9d001a52f30578c4
2022-01-05 19:54:40 +00:00
Vinit Nayak
4dde648761 Merge "Add API to get multiple running tasks for split" into sc-v2-dev am: 3a91691eb6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16482617

Change-Id: I368b4025726bda6b2315dd2a4d6205311eef4189
2021-12-16 00:36:17 +00:00
Vinit Nayak
e4dd959073 Add API to get multiple running tasks for split
Bug: 205675364
Change-Id: Ia350e443b6b80ca8af2d546cb35cad23b212d86e
2021-12-15 13:14:47 -08:00
Tracy Zhou
741c3d7b7b Add haptic feedback to rotation button am: eab69869a0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16465449

Change-Id: Ic386ca454ddbeb2c53146c923aca10a20f8ce4db
2021-12-15 06:15:24 +00:00
Tracy Zhou
eab69869a0 Add haptic feedback to rotation button
Fixes: 205503732
Test: tap rotation button in vibration only mode
Change-Id: I8fe29afc03353943b56fea9e80618441f7bca174
(cherry picked from commit 8f30dd7aea)
2021-12-15 03:40:22 +00:00
Hongwei Wang
df3e2e6be8 Merge "Fix the transition from Split to PiP" into sc-v2-dev am: 54fed092f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16418705

Change-Id: I6b1fba80348615129bcabf11debd19a758b8e41c
2021-12-10 08:45:42 +00:00
Hongwei Wang
d4848611d2 Fix the transition from Split to PiP
- Do not bring split to top on entering PiP
  When swiping up to home (or other cases) triggers one of the
  split-screen children enters PiP, do not try to bring the other task
  to top since the pair should be considered invisible.
- When entering PiP from split screen or non-auto PiP case, use the
  alpha information in PictureInPictureSurfaceTransaction to hide the
  task which would later be turned back on to avoid flicker.

Bug: 190855091
Bug: 205894095
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/42RWtayanp2qG0mHSf4Q5
Test: manual, enter PiP from split-screen, see Video
Change-Id: I1559748cd583c20d79ee458822d66e7801733d3a
2021-12-09 21:07:45 -08:00
TreeHugger Robot
51d4883620 Merge "Improve fold state provider logic handling posture" into sc-v2-dev am: 9a33c9de70
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16380166

Change-Id: Idef48440e720f0470a8dec6844ce3b4d660a2038
2021-12-08 17:01:42 +00:00
Nicolo' Mazzucato
5aef2c1fab Improve fold state provider logic handling posture
Now FOLD_UPDATE_START_CLOSING event is emitted when the angle decreases.
After each angle update, a timeout is started to finish the animation.
When the timeout is reached, FOLD_UPDATE_ABORTED is emitted.

The timeout logic has been moved from
PhysicsBasedUnfoldTransitionProgressProvider to DeviceFoldStateProvider.

This change should not create problems to
FixedTimingTransitionProgressProvider, as it doesn't use any
intermediate FOLD_UPDATE event.

Test: Locally on device
Test atest com.android.systemui.unfold.updates.DeviceFoldStateProviderTest
Bug: 208977663
Change-Id: Ibc5df1e089d6543e7cf6ee2e0ce3d48a0b24cc07
2021-12-08 11:09:36 +01:00
Nicolò Mazzucato
d07dc67f9e Merge "Disable unfold animation when animations disabled" into sc-v2-dev am: b6815ae344
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16378723

Change-Id: I1febabbf23ade790a957a9000eed1a1edf2f980a
2021-12-03 13:43:17 +00:00
Nicolo' Mazzucato
4a0cad571a Disable unfold animation when animations disabled
When AnimatorScale is set to zero (possible from settings),
the fold animation is disabled.

The change to UnfoldLightRevealOverlayAnimation is needed
because the overlay view is added independently from
UnfoldTransitionProgressProvider callbacks every time the
internal screen is turned on.

Test: Tested on device &&
   atest com.android.systemui.unfold.util.ScaleAwareUnfoldProgressProviderTest
Bug: 208791440
Change-Id: Icda9ed6d708873768c4ac533b9c790ae1631b45c
2021-12-03 13:15:23 +00:00
TreeHugger Robot
7fe996963f Merge "Handle configuration changes in floating rotation button" into sc-v2-dev am: 294c3c12fc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16343965

Change-Id: I02a4056792e208f1374fadf90b444d3661ac01ec
2021-11-29 19:58:51 +00:00
TreeHugger Robot
294c3c12fc Merge "Handle configuration changes in floating rotation button" into sc-v2-dev 2021-11-29 19:41:19 +00:00
Nick Chameyev
c487edc5a9 Handle configuration changes in floating rotation button
Update resources in floating rotation button
when configurations such as screen density, screen size,
current locale have changed.

Bug: 200103245
Test: change display size, locale, fold/unfold
 -> check that floating rotation button resources
    are updated
Change-Id: I140eeaf6df3dcca2fca42d5f9dd44ab59d068e57
2021-11-29 15:42:52 +00:00
Riddle Hsu
669edf2083 Merge "Do not skip restoring rotation lock when returning to home" into sc-v2-dev am: 49794ebb48
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16334320

Change-Id: Ic0076cdb9c39381977121463a364cd1253c9e681
2021-11-25 02:35:31 +00:00
Riddle Hsu
49794ebb48 Merge "Do not skip restoring rotation lock when returning to home" into sc-v2-dev 2021-11-25 02:20:20 +00:00
Riddle Hsu
3549a251fc Do not skip restoring rotation lock when returning to home
Since live-tile is enabled, the foreground app is still the original
activity, the display rotation doesn't change by the recents app
activity. So the condition added in commit 95cb52a doesn't need to
be enabled.

Bug: 205979005
Test: 1. Disable auto-rotation and home rotation.
      2. Launch an activity in portrait.
      3. Rotate the device to landscape and press rotation button.
      4. Enter overview (recents).
      5. Return to the application (keep in landscape).
      6. Return to home and launch the app again (restore to portrait).
Change-Id: Iccf87b2d66d57911cd49f2ea9080a71a85801e4c
2021-11-24 17:31:24 +08:00
Jonathan Miranda
ed28bc82c1 Merge "Annotate TaskKey#baseIntent as @NonNull to match platform" into sc-v2-dev am: 1b3f782d94
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16306726

Change-Id: Ied300729450e0aefdb11946269264820b5cf89b1
2021-11-23 16:38:21 +00:00
Jonathan Miranda
1b3f782d94 Merge "Annotate TaskKey#baseIntent as @NonNull to match platform" into sc-v2-dev 2021-11-23 16:29:10 +00:00
Tony Wickham
99e406deab Merge "Pipe dark intensity through OverviewProxy" into sc-v2-dev am: f74f259b83
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16250155

Change-Id: I5abb8abad90bb24bf7472977be3d76d0045cffb7
2021-11-22 22:24:28 +00:00
Tony Wickham
a20b9203ac Pipe dark intensity through OverviewProxy
Test: in 3 button mode, nav buttons in taskbar are dark on light wallpaper; in both 3 button and fully gestural, IME dismiss button is dark on light IME
Bug: 204256643
Change-Id: Ib6488a393e9cf021c806a5caf5b81654cf5164eb
2021-11-22 09:38:43 -08:00
Alex Chau
46ee1bfb65 Merge "Use only current density to check isTablet" into sc-v2-dev am: 1f72543ac4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16306280

Change-Id: Iba1a861c1338eec285a732f8c8c3114258a6fdee
2021-11-19 20:41:00 +00:00
Jon Miranda
2a0e4634f5 Annotate TaskKey#baseIntent as @NonNull to match platform
Bug: 199027804
Test: manual
Change-Id: I1d9b0e479ac9341b37b3c9fbf7587041e037b35d
2021-11-19 12:05:37 -08:00
Alex Chau
48ac598601 Use only current density to check isTablet
Fix: 203817448
Test: manual
Change-Id: Icc339dd7a87284af31abe70fff9ede2868f5add9
2021-11-19 15:30:03 +00:00
Alex Chau
c7b00cdf53 Merge "Add letterboxInsets to TaskSnapshot" into sc-v2-dev am: 442ba5476d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16149035

Change-Id: Ib5f65e03fa70f0632a157c5b5f0bf4cc02e1ffcf
2021-11-16 18:57:56 +00:00
Alex Chau
442ba5476d Merge "Add letterboxInsets to TaskSnapshot" into sc-v2-dev 2021-11-16 18:40:31 +00:00
Dave Mankoff
68edfb0930 Merge "Fix flag manager crash" into sc-v2-dev am: 3f5835d848
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16248587

Change-Id: Ib6be366e91dd798273aef5ff3a33bd207bda7291
2021-11-15 18:46:41 +00:00
Dave Mankoff
3f5835d848 Merge "Fix flag manager crash" into sc-v2-dev 2021-11-15 18:32:10 +00:00
Jay Aliomer
f667354d7d Fix flag manager crash
Bug: 196602427
Test: manual
Change-Id: I2690096429bc784b45e4e0c6cc32fb2e06becfb4
2021-11-12 14:09:24 -05:00
Fedor Kudasov
1572daff43 Merge "Add @Nullable annotations to Task fields" into sc-v2-dev am: 2d7f52505e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16241227

Change-Id: I135271bb6990b3c8968632add827ed229a85accb
2021-11-12 08:38:07 +00:00
Fedor Kudasov
716597f726 Add @Nullable annotations to Task fields
Bug: 205828770
Test: m SystemUI-core
Change-Id: I80194b9959b9be3b87d2f074557f4e79f164ceca
(cherry picked from commit 11ae0987c2)
2021-11-11 21:54:29 +00:00
Dave Mankoff
3a489f7c9c Merge "Move contents of FeatureFlags into FeatureFlagManager." into sc-v2-dev am: 8d08226fe6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16214995

Change-Id: Ia3f0e5cf2f9d3a7231ca5a3e9a5021f82710812f
2021-11-10 18:05:27 +00:00
Dave Mankoff
8d08226fe6 Merge "Move contents of FeatureFlags into FeatureFlagManager." into sc-v2-dev 2021-11-10 17:49:54 +00:00
Winson Chung
c7e8bbf286 Merge "Add multi-task support to recents-animation task-appeared" into sc-v2-dev am: 35b8e2b997
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16184046

Change-Id: I57d186d78773bbd2bbb5c5095ff6a7110a8cdd04
2021-11-10 17:28:05 +00:00
Winson Chung
35b8e2b997 Merge "Add multi-task support to recents-animation task-appeared" into sc-v2-dev 2021-11-10 17:05:46 +00:00
Vinit Nayak
f96173d751 Merge "Pass back split bounds and meta info with GroupedTaskInfo" into sc-v2-dev am: b63153fa3b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16135327

Change-Id: I930a6dcfad02d524858017365802befbbf063d2b
2021-11-10 16:46:23 +00:00
Vinit Nayak
b63153fa3b Merge "Pass back split bounds and meta info with GroupedTaskInfo" into sc-v2-dev 2021-11-10 16:33:49 +00:00
Dave Mankoff
5346e090f5 Move contents of FeatureFlags into FeatureFlagManager.
The meaningful contents of FeatureFlags only relates to debug
builds and has been moved into the debug version of
FeatureFlagManager.

Bug: 203548872
Test: atest SystemUITests && manual
Change-Id: Ifcef0cfe4e2d07daec34dfc7a6cbe2d305b312b5
2021-11-10 09:46:04 -05:00
Vinit Nayak
d3370c4082 Pass back split bounds and meta info with GroupedTaskInfo
* Compute and save a StagedSplitBounds object for every
pair to determine it's position, size, divider, etc.
* Moved GroupTask to Launcher
* Moved StagedSplitBounds from launcher to wm/shell
because sharing is caring.

Bug: 203006080
Change-Id: I8513e027f8c9606fbed1283013eafea2cf905f3f
2021-11-09 15:14:13 -08:00
Dave Mankoff
6ac67b5f3e Merge "Remove FeatureFlagReader. Allow resource overlays." into sc-v2-dev am: f3e1261947
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16213642

Change-Id: Id44175571752f16a520bb441a783e8e3d0ba9e8d
2021-11-09 19:32:57 +00:00
Alex Chau
2dcd8f56c1 Add letterboxInsets to TaskSnapshot
Bug: 199743725
Test: manual
Change-Id: I7daa01d7e6d2df2bc1b85d12004e7927d61d0e03
Merged-In: I7daa01d7e6d2df2bc1b85d12004e7927d61d0e03
2021-11-09 11:03:32 +00:00
Evan Rosky
1258abfefc Add multi-task support to recents-animation task-appeared
Allows handling of app-pairs

Bug: 204094785
Test: Existing RecentsAnimation tests pass
Change-Id: Ie71fa994912a67a6b15c2f1e2dc1959473f52b15
2021-11-08 18:30:17 -08:00
Dave Mankoff
c642d70dde Remove FeatureFlagReader. Allow resource overlays.
Removes the FeatureFlagReader which some "flags" still used because
they were read from resources instead of the flaggin system.

Flags can now specify a resource id where their default value can be
read from (if there is a resource definition for it).

Bug: 203548827
Test: atest SystemUITests && manual
Change-Id: Ifb895fd6c5b40d4adfe2997f4ce1f4d7d2145183
Merged-In: Ifb895fd6c5b40d4adfe2997f4ce1f4d7d2145183
2021-11-08 18:41:56 -05:00
Dave Mankoff
cc71ada19e Merge "Communicate flags from systemui async" into sc-v2-dev am: c3ef628c75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16200718

Change-Id: Ib5a429f951a65f3f277baed4e21a8c18ed55ba69
2021-11-08 18:32:17 +00:00
Dave Mankoff
c3ef628c75 Merge "Communicate flags from systemui async" into sc-v2-dev 2021-11-08 18:31:32 +00:00
Jerry Chang
f71de80002 Merge "Snapshot all tasks in pending recents animation when rotating devices" into sc-v2-dev am: b1626ac345
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16192190

Change-Id: I283edef740863faab271ca10bafb03fed250e849
2021-11-08 10:39:08 +00:00
Jerry Chang
b1626ac345 Merge "Snapshot all tasks in pending recents animation when rotating devices" into sc-v2-dev 2021-11-08 10:22:34 +00:00