Commit Graph

6193 Commits

Author SHA1 Message Date
TreeHugger Robot 40ce12ae48 Merge "Restart running task if another task was started but not appeared" into ub-launcher3-rvc-dev am: badfff4469
Change-Id: I6c4e7f72b4dce305c34f7d5fd0b257e6d6f18b3c
2020-05-12 00:27:26 +00:00
Sunny Goyal 35e7d38681 Abstracting out state handler logic into base classes so that it can
also be used in different activity

Change-Id: Ic5e60b21e1429c71f1cd4e7041e70bf4fc9761b7
2020-05-11 16:38:26 -07:00
Tony Wickham a57000c33d Restart running task if another task was started but not appeared
If we just finish the controller to resume the running task like
we normally would, the delayed task will appear on top when it's
ready. Instead, we need to start the original task in this case.

- Move mLastStartedTaskId to GestureState, shared between swipe
  handlers when continuing the gesture.
- Update logic to change LAST_TASK to NEW_TASK if a task was
  started (but not appeared) during the same gesture; likewise,
  only change NEW_TASK to LAST_TASK if no task was started.
- Finish the controller when successfully starting the task
  that already appeared, since we won't get onTaskAppeared().

Bug: 156132424
Change-Id: I1e9af297840745ab3d5e90214425f10a2616d90a
2020-05-11 18:26:06 -05:00
TreeHugger Robot 5ae89c4789 Merge "Fixing current task not overshooting on swipe-up in overview" into ub-launcher3-rvc-dev am: ed31f24dbf
Change-Id: I7005d712a77453d138fc3f9997213d63b307a394
2020-05-11 23:14:49 +00:00
TreeHugger Robot ed31f24dbf Merge "Fixing current task not overshooting on swipe-up in overview" into ub-launcher3-rvc-dev 2020-05-11 22:55:45 +00:00
Sunny Goyal 84376f305b Fixing current task not overshooting on swipe-up in overview
> also fixing flicker during swipe-up when scroll is applied before recents
has been initialized

Bug: 154761552
Change-Id: I45c2b6801b8b87097c2816e26a234bab41b72ed4
2020-05-11 14:39:32 -07:00
TreeHugger Robot 40c15fdba2 Merge "Temporarily removes Settings button from Back tutorial." into ub-launcher3-rvc-dev am: 6459397e3d
Change-Id: Ia46921c839292a828f42a6f6d4d6921b35b1bdf6
2020-05-11 21:22:08 +00:00
TreeHugger Robot 6459397e3d Merge "Temporarily removes Settings button from Back tutorial." into ub-launcher3-rvc-dev 2020-05-11 21:10:46 +00:00
Sunny Goyal ef44cf8f45 Fixing pullback factor not initialized after launcher process death
Instead of storing it on first swipe-up, computing it when required

Change-Id: I4b37002a016328e3b2d1c8535198ec8a6b56faf3
2020-05-11 13:28:53 -07:00
Andy Wickham 168aaf9682 Temporarily removes Settings button from Back tutorial.
Currently it just crashes, so it shouldn't be there. If
and when we decide to add it back, we will need to get
our package whitelisted to send the necessary Intent.

Bug: 149348244
Change-Id: I5ab292d04ebc5679e34e5a92141df3d86ef6e551
2020-05-11 13:24:06 -07:00
TreeHugger Robot 0c0522874f Merge "Using TaskViewSimulator for both Launcher and fallback recents" into ub-launcher3-rvc-dev am: ae5afa74cd
Change-Id: I7e727a517f75fb3b3061254e6b3320d7b0c9b09a
2020-05-11 19:38:22 +00:00
TreeHugger Robot ae5afa74cd Merge "Using TaskViewSimulator for both Launcher and fallback recents" into ub-launcher3-rvc-dev 2020-05-11 19:32:26 +00:00
Vinit Nayak 8cd081d77a Merge "Infer launcher rotation when initializing RecentsOrientedState" into ub-launcher3-rvc-dev am: 115e70ddcf
Change-Id: Ia285efc268c2a0c2b2928aa38d10fc7abbf71943
2020-05-11 19:31:09 +00:00
TreeHugger Robot 225663ffae Merge "[Overview Actions] Change actions view UI based on different nav modes." into ub-launcher3-rvc-dev am: 17d3fe81c4
Change-Id: Ic8d3ca56862bc6e7f34d8bdb1a1586045cc59656
2020-05-11 19:31:02 +00:00
Zak Cohen 9e3797b260 Merge "Overview Actions - shows a message if action is blocked by policy." into ub-launcher3-rvc-dev am: 02a25be89d
Change-Id: Ied5427ad95a8a65679551fae09b158778b87f6e1
2020-05-11 19:30:49 +00:00
Hyunyoung Song 7dc44daa15 Merge "Hookup statsd for workspace layout logging" into ub-launcher3-rvc-dev am: e745f50128
Change-Id: I08443afffcf0662b32554c8511f566e25aee24bd
2020-05-11 19:30:27 +00:00
vadimt 4b1a55541f Additional logging for pause non-detection am: 7b7e62e5eb
Change-Id: Ic8f66acd55a14ed6502f8f465a3640f359370e07
2020-05-11 19:30:14 +00:00
Vinit Nayak 115e70ddcf Merge "Infer launcher rotation when initializing RecentsOrientedState" into ub-launcher3-rvc-dev 2020-05-11 19:07:54 +00:00
TreeHugger Robot 17d3fe81c4 Merge "[Overview Actions] Change actions view UI based on different nav modes." into ub-launcher3-rvc-dev 2020-05-11 18:52:13 +00:00
Zak Cohen 02a25be89d Merge "Overview Actions - shows a message if action is blocked by policy." into ub-launcher3-rvc-dev 2020-05-11 18:43:55 +00:00
Vinit Nayak b9522d334a Infer launcher rotation when initializing RecentsOrientedState
fixes: 154776599
Change-Id: I9b95f7f96836a974be0fd1236547efb4b405fda5
2020-05-11 11:23:49 -07:00
Hyunyoung Song e745f50128 Merge "Hookup statsd for workspace layout logging" into ub-launcher3-rvc-dev 2020-05-11 18:18:57 +00:00
Becky Qiu 7d12134240 [Overview Actions] Change actions view UI based on different nav modes.
1. Change the overview actions container to 66dp height.
2. For 3 button mode, container will have 8dp bottom margin.
3. For gesture mode, container will have 16dp bottom margin.
4. Action buttons and close button will always be in the center vertically.

Spec: https://docs.google.com/presentation/d/1gXWNdCRXvXuEhgDmE0TX2KYqCxIQBXVtWKdl4pKrno8/edit#slide=id.g840c32b190_3_6

Demo:
- 3 button: https://screenshot.googleplex.com/2Y3uMaJMi9E
- gesture: https://screenshot.googleplex.com/XzaKHpp5ke9
Test: tested for both modes and when switch between.
Bug: 155444592

Change-Id: If66d369df0218b7ee2abab8a3f345488bf223b16
2020-05-11 10:46:21 -07:00
vadimt 7b7e62e5eb Additional logging for pause non-detection
Bug: 156044202
Change-Id: I6d7dcdcf73722e66fcbd180c9e309c518766b9b8
2020-05-11 10:10:53 -07:00
Bill Yi 91e0db3905 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I2f2cda2793113a012d86b0d18cccf3e6fabb7e69
2020-05-10 20:53:08 +00:00
Hyunyoung Song 7f7894e3b7 Hookup statsd for workspace layout logging
Bug: 144953948

Change-Id: I81bd42929b2d65a63c610e95e5e01179a3971493
2020-05-10 01:37:42 -07:00
Zak Cohen 4ebd859bc4 Overview Actions - shows a message if action is blocked by policy.
Device policy or app secure surface policy mean that snapshot based
actions shouldn't work.
This is encoded in whether the snapshot is "real", the fake snapshot is
generated when policy doesn't allow captures.

Test: tested with Test DPC fake device policy app
Change-Id: Ib34e5a90ab58fb401d4516c531866d1c13569256
2020-05-08 17:16:15 -07:00
TreeHugger Robot 04aab3a628 Merge "More logging for pause non-detection" into ub-launcher3-rvc-dev am: 9506316e21
Change-Id: I89160ed4e0a5530e9d5db1c3edd99d09f01fe67c
2020-05-08 23:24:26 +00:00
vadimt ad87034d1f More logging for pause non-detection
Bug: 156044202
Change-Id: I1c995b6c28f7108b96ff74aa8c3c71f70f8b3fb6
2020-05-08 15:09:37 -07:00
Sunny Goyal 86a2f91101 Using TaskViewSimulator for both Launcher and fallback recents
Fixing fling to home animation in landscape and multi-window orientation

Bug: 155896573
Bug: 155816922
Change-Id: I5fdff8694eced415978345b026858f5167c2a198
2020-05-08 14:48:42 -07:00
Vinit Nayak 77762fdf4f Merge "Revert "Disabling flaky test until fix is found"" into rvc-dev 2020-05-08 20:41:16 +00:00
Vinit Nayak 1be8a17986 Revert "Disabling flaky test until fix is found"
This reverts commit fdaa12d028.

Reason for revert: Should be fixed with ag/11252279

Bug: 150958400
Change-Id: Ia61462239ad5d8aba502bc8513d685046c1a1361
2020-05-08 20:41:01 +00:00
Sunny Goyal cf1a61ad33 Merge "Fixing swipe-up form app in landspace, rotates the surface" into ub-launcher3-rvc-dev am: 9d85f52386
Change-Id: I63e94d441f14220104da3a97fcf6590f0fa4aecf
2020-05-08 20:21:54 +00:00
Sunny Goyal 9d85f52386 Merge "Fixing swipe-up form app in landspace, rotates the surface" into ub-launcher3-rvc-dev 2020-05-08 20:11:56 +00:00
TreeHugger Robot 6474c22731 Merge "Fixing Fallback recents crashes when going to modal state" into ub-launcher3-rvc-dev am: 4d1203efab
Change-Id: I69fe77a7e58845fd66da7c0ab1ebff06729bdc69
2020-05-08 19:56:42 +00:00
TreeHugger Robot 4d1203efab Merge "Fixing Fallback recents crashes when going to modal state" into ub-launcher3-rvc-dev 2020-05-08 19:46:35 +00:00
TreeHugger Robot a9587007bc Merge "Adding tracing for switching to overview instead of all apps" into ub-launcher3-rvc-dev am: 16fb9fac22
Change-Id: I4eed7a1e6f7bdf17536ea42a2044c46a8568bf65
2020-05-08 18:51:30 +00:00
TreeHugger Robot 16fb9fac22 Merge "Adding tracing for switching to overview instead of all apps" into ub-launcher3-rvc-dev 2020-05-08 18:39:39 +00:00
vadimt 2794f563a0 Adding tracing for switching to overview instead of all apps
Bug: 156095088
Change-Id: I1257617192e913d06edd0879396957b1e40524b7
2020-05-08 10:39:29 -07:00
Tony Wickham 33c42898bc Merge "Cleanup quick switch logic" into ub-launcher3-rvc-dev am: a8a377cd49
Change-Id: If9aa7f30518b8d846d1d63de7330d1dde92120b3
2020-05-08 17:36:09 +00:00
Tony Wickham a8a377cd49 Merge "Cleanup quick switch logic" into ub-launcher3-rvc-dev 2020-05-08 17:22:19 +00:00
Sunny Goyal 302ecabf2c Fixing Fallback recents crashes when going to modal state
> Adding robo tests to prevent such regressions
Bug: 155570625

Change-Id: I5cfbfc454849116f881322e8785dfdbad6f24d08
2020-05-08 10:12:17 -07:00
Jon Miranda 7b02804d9f Add logs to debug playtime crash and band aid fix for release builds.
Bug: 153821199
Change-Id: I0caa546254bb51ca8b88cdb16d79c054560bf2be
(cherry picked from commit e620872b18)
2020-05-08 16:36:38 +00:00
TreeHugger Robot 58fa4ce505 Merge "Adding tracing for non-detection of Pause" into ub-launcher3-rvc-dev am: 9e77f25d52
Change-Id: I9a874e22e30e02ec57f899eec62e54e6bac591bb
2020-05-08 16:28:47 +00:00
TreeHugger Robot 9e77f25d52 Merge "Adding tracing for non-detection of Pause" into ub-launcher3-rvc-dev 2020-05-08 16:08:32 +00:00
Sunny Goyal 7a63fb2da6 Fixing swipe-up form app in landspace, rotates the surface
PreviewPositionHelper was getting the Launcher rotation from context,
instead of RecentsOrientationState

Bug: 156042694
Change-Id: I645eccfcb519c59fe2f78ecb1a77d8a315bc36c9
2020-05-08 08:48:36 -07:00
Jonathan Miranda a4095c090c Merge "Add logs to debug playtime crash and band aid fix for release builds." into ub-launcher3-rvc-dev am: 759995980a
Change-Id: If61796ec83a6017293d3ad1de01aeb9569fc7e18
2020-05-08 03:53:04 +00:00
Jonathan Miranda 759995980a Merge "Add logs to debug playtime crash and band aid fix for release builds." into ub-launcher3-rvc-dev 2020-05-08 03:38:50 +00:00
vadimt 091794671d Adding tracing for non-detection of Pause
Bug: 156044202
Change-Id: I16f196db6266a0c3a84b59b7cdeb29863a37ff0f
2020-05-07 20:06:58 -07:00
TreeHugger Robot 6d49c81ce0 Merge "Moving TransformParams to an separate class." into ub-launcher3-rvc-dev am: 0e0bcc7631
Change-Id: I1046d9e3b041e7d725e19acab45c0ea4780aa904
2020-05-08 00:19:43 +00:00