Commit Graph

5037 Commits

Author SHA1 Message Date
Tracy Zhou 0731273d54 Track live tile better by considering resistance animation
Fixes: 170338029
Test: Manual
Change-Id: I66536bae567aa94385d5e0352cec9d46d512927a
2020-10-21 12:03:40 -07:00
Tracy Zhou d2c27a5950 Merge "[Live Tile] Support launching running task animation" into ub-launcher3-master 2020-10-21 07:19:48 +00:00
Tracy Zhou 8b488ccc2e [Live Tile] Support launching running task animation
Fixes: 170338170
Test: manual
Change-Id: I2526b7cfbacaea7899b8e2ed233f913630071d36
2020-10-20 23:42:44 -07:00
Schneider Victor-tulias fb79f5541d Merge "Add the ability to specify a list of tutorial steps in the gesture sandbox tutorial intent." into ub-launcher3-master 2020-10-20 13:51:06 +00:00
TreeHugger Robot 29c79947ec Merge "Removing condition for CUJ tracing/metrics" into ub-launcher3-master 2020-10-19 18:42:05 +00:00
vadimt a68ac3e5dd Removing condition for CUJ tracing/metrics
Is doesn't reflect whether jank monitors is collecting metrics,
which will eventually be always true anyways.

Change-Id: Iaebdc838ed2b2cebd32c8c48d7e45bdd93f76fb4
2020-10-16 10:48:28 -07:00
Sunny Goyal 9228ff53c2 Trimming activity and task label
Bug: 170648272
Change-Id: Icd099acee65305e0aa0f98a2a301a0df8a27cf07
2020-10-16 17:10:33 +00:00
Schneider Victor-tulias cf0b275a48 Add the ability to specify a list of tutorial steps in the gesture sandbox tutorial intent.
Added tutorial_steps string array in the intent to allow specifying an ordered list of tutorial steps.

Change-Id: Ic42a65598a74a64f8441a22f58c6cd988a5762e3
2020-10-15 10:27:30 -04:00
Samuel Fufa d5bbe6809d Rename shrotcut container to deep-shrotcuts
Change-Id: If94f0dfa447235f3b1a652f7b6c749695b42d97c
2020-10-14 15:39:38 -07:00
TreeHugger Robot 057f2d0d7d Merge "Introduce shortcut container for hotseat event reporting" into ub-launcher3-master 2020-10-13 01:57:47 +00:00
TreeHugger Robot 69740e62be Merge "Add app start source info of apps launched from launcher" into ub-launcher3-master 2020-10-12 20:53:29 +00:00
Jon Miranda 2d7bfc8782 Fix shadowRadius not being used in swipe up animation.
Bug: 168608912
Change-Id: I08f7bb057237e5061d5f1fc29afb488b204ee385
2020-10-12 12:09:22 -07:00
Sunny Goyal a433fe1fb3 Merge "Using FrameCallbacks instead of windowCallbacks for surface removal" into ub-launcher3-master 2020-10-12 18:08:35 +00:00
Samuel Fufa 9a6145efb8 Introduce shortcut container for hotseat event reporting
Bug: 170636685
Test: Manual
Change-Id: I5abeb17976bbafdc8cc74fb8b9a586d544c682fc
2020-10-12 09:33:00 -07:00
Yogisha Dixit 2de606fe73 Delete the minimal database to force refresh.
Bug: 169771796
Test: manual
Change-Id: Ic2188bb162f295c208346861fddc137ace19ddcb
2020-10-12 15:36:07 +01:00
Sunny Goyal 0471b9836c Using FrameCallbacks instead of windowCallbacks for surface removal
WindowCallbacks is called during the draw pass, before the frame has
been sent to the surfaceFlinger. Frame callback will provide a closer
approximation for when the frame is actually rendered on screen.

Bug: 141126144
Change-Id: I62aab526c2ca24b00b5e7b312b36080f26c7b439
2020-10-09 13:55:56 -07:00
Schneider Victor-tulias 2727434c44 Merge "Fix hotseat and prediction row to allow updates when empty." into ub-launcher3-master 2020-10-09 20:09:08 +00:00
Riddle Hsu 979da64d82 Add app start source info of apps launched from launcher
Bug: 166614700
Test: Enable statsd log: "adb shell cmd stats print-logs"
      adb logcat | grep statsd | grep "(48)"
      The line may contain 0x100000->1[I] 0x110000->10[I]
      that means 1=from launcher and 10=latency 10ms.
Change-Id: Iddaff7066b66e241ba58ec87129ddbe2c531dc7e
(cherry picked from commit 7bdf3574a3)
2020-10-09 17:21:38 +00:00
Winson Chung d2bfce71f7 Merge "Comply with the ISystemUiProxy.aidl change" into ub-launcher3-master 2020-10-09 16:39:06 +00:00
Winson Chung ed4530fedd Merge "Add latency metrics for recents gesture" into ub-launcher3-master 2020-10-09 16:39:06 +00:00
Schneider Victor-tulias 1b9e199b3d Fix hotseat and prediction row to allow updates when empty.
Rotating the screen in the homescreen empties the hotseat, however it does not get populated while it is visible to the user. The user should not be able to see an empty hotseat or prediction row if predictions are available. It should therefore be possible to populate these when they are empty even if they are visible to the user.

Change-Id: I8e5252bd29050c2cd9d443aedcb3f3e305c0e2d7
2020-10-09 10:01:55 -04:00
Samuel Fufa 692d2109a6 invalidate itemDecoration on predictedRow focus draw
Change-Id: I66c731f00ae1c1292c51ff281957f05fd2d70dfa
2020-10-08 18:42:48 -07:00
Samuel Fufa 8d5b118060 Revert PredictionRow shuoldDraw check
+ Show Rounded play result icons

Bug: 168805872
Test: Manual
Change-Id: I663c7f7ca1f1ac072e5e9c441deabef7c3fbd97b
2020-10-08 17:49:22 -07:00
Vadim Tryshev 2470d812a1 Merge "Annotating Quick Switch CUJ for 3-button mode" into ub-launcher3-master 2020-10-07 20:04:09 +00:00
Tony Wickham cae7d74d89 Merge "Update launcher_trace.proto for quick switch" into ub-launcher3-master 2020-10-07 18:32:48 +00:00
vadimt 7a6e4c931f Annotating Quick Switch CUJ for 3-button mode
Bug: 169221288
Change-Id: Ief62345fe6004dde699f44aa0c90329b7cd84e8b
2020-10-07 10:51:01 -07:00
Hongwei Wang 222afb9704 Comply with the ISystemUiProxy.aidl change
Two methods are added to support communications between Launcher and
SysUI when user swipes an auto PiP-able Activity to home.

Bug: 143965596
Test: N/A
Change-Id: I2c73a287a094e882bde3cd71c27f9f66ae20e64a
(cherry picked from commit 88ddae38db)
2020-10-07 04:26:47 +00:00
Riddle Hsu 9d4a96ed02 Add latency metrics for recents gesture
Pass the touch down time to RecentsAnimation#startRecentsActivity.

Bug: 169221287
Test: Enable statsd log: "adb shell cmd stats print-logs"
      Touch gesture navigation bar.
      adb logcat | grep statsd | grep "(48)"
      The line may contain 0x100000->4[I] 0x110000->20[I]
      that means 4=by recents and 20=latency 20ms.
Change-Id: I81ee804895b7712f4d925736f5b4694c11a12cbe
(cherry picked from commit 63623967b8)
2020-10-07 03:52:58 +00:00
Tracy Zhou e9bf2bd14c Merge "[Live tile] Finish recents animation when the phone goes to sleep in live tile mode" into ub-launcher3-master 2020-10-07 02:19:04 +00:00
Tony Wickham 1fddddb4f3 Update launcher_trace.proto for quick switch
Sample output from one entry:
entry {
  elapsed_realtime_nanos: 440461382888540
  launcher {
    touch_interaction_service {
      service_connected: true
      overview_component_obvserver {
        overview_activity_started: true
        overview_activity_resumed: false
      }
      input_consumer {
        name: "TYPE_OTHER_ACTIVITY:TYPE_ONE_HANDED"
        swipe_handler {
          gesture_state {
            endTarget: NEW_TASK
          }
          is_recents_attached_to_app_window: true
          scroll_offset: 846
          app_to_overview_progress: 0
        }
      }
    }
  }
}

Bug: 167259591
Change-Id: I7f199d88f1d736efcea6b9165b8c4b77a5d27c58
2020-10-06 18:25:50 -07:00
Tracy Zhou 2c5ed10ffa Merge "[Live Tile] Support launching another task (other than the current running task) in Overview" into ub-launcher3-master 2020-10-06 18:40:57 +00:00
Samuel Fufa b2b65a1ef5 Merge "Avoid double search item highlight" into ub-launcher3-master 2020-10-06 17:45:35 +00:00
Tracy Zhou 8ed9707cf3 [Live Tile] Support launching another task (other than the current running task) in Overview
- Get rid of the defer cancelation logic
- Render animation on the task view of the task being launched upon task view appeared callback
- Finish the recents animation upon the end of the recents window animation

Fixes: 164926736
Test: manual
Change-Id: Ibffb6a9c74c235efc8615a22b0306551532c7b61
2020-10-06 09:58:10 -07:00
Schneider Victor-tulias 3cf264f498 Prevent hotseat updates if it is visible to the user.
Test: manual

Fixes: 168653219

Changing app icons under the user's finger could be disruptive. Added a checks for whether the hotseatand all apps predictions are visible and callbacks to update them when they become hidden.

Change-Id: Ib9e6e904e9f662ecfaeea6a2fe21d1d81ba39b96
2020-10-06 11:05:02 -04:00
Hongwei Wang 56a98f651c Merge "Comply with the ISystemUiProxy.aidl change" 2020-10-06 04:09:06 +00:00
Hyunyoung Song b6aff1f56d Fix NPE inside RecentsOrientedState
Bug: 169963211
Change-Id: I86dd337dc1b862f3fa99b91b47fa250076233f96
2020-10-05 16:08:35 -07:00
Jonathan Miranda eab40983b9 Merge "Add shadow radius to windows during app launch / close animations." into ub-launcher3-master 2020-10-05 22:20:27 +00:00
Alistair Delva 6b6b13502f Merge "Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ..."" 2020-10-05 20:01:22 +00:00
Samuel Fufa 4c14f4b9ed Avoid double search item highlight
Change-Id: Ic2e28b18f6d5e3ed32cd5646bc3bb4789c378e57
2020-10-05 11:12:15 -07:00
Winson Chung 0c943966d3 Add null check for input receiver before updating batching
- A change in the system (ie. sysui crash or nav mode change) could
  cause the input monitor to be disposed before the swipe animation
  settles

Bug: 170121063
Test: Kill sysui while swiping up

Change-Id: I1417b109fecdb98fae6197c7038dbe9307470853
2020-10-05 17:55:55 +00:00
Alistair Delva 087a9e39b6 Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ..."
Revert "Merging from ub-launcher3-master @ build 6877130"

Revert "Merging from ub-launcher3-master @ build 6877130"

Revert "Merging from ub-launcher3-master @ build 6877130"

Revert submission 12738409-merge_ub-launcher3-master_6877130

Reason for revert: Introduced crashes to global presubmit

Reverted Changes:
I624658ce6:Merge commit '8d14dbe041199d611839140f1c9285fd4174...
Iccd2f1e3a:Merging from ub-launcher3-master @ build 6877130
I791d64951:Merging from ub-launcher3-master @ build 6877130
Icdd32ab01:Merging from ub-launcher3-master @ build 6877130

Bug: 169963211
Change-Id: I77a4ae59e823147beae8dd7cb9b54ccdace2c7f4
2020-10-05 14:46:26 +00:00
Riddle Hsu 7f2c08920f Merge "Add latency metrics for recents gesture" 2020-10-05 14:13:16 +00:00
Tracy Zhou d028937e74 [Live tile] Finish recents animation when the phone goes to sleep in live tile mode
Fixes: 169988381
Test: manual
Change-Id: Ic71d3e6767eadb6854dbd46581bf9d3242c161a4
2020-10-03 00:36:53 -07:00
Hongwei Wang 88ddae38db Comply with the ISystemUiProxy.aidl change
Two methods are added to support communications between Launcher and
SysUI when user swipes an auto PiP-able Activity to home.

Bug: 143965596
Test: N/A
Change-Id: I2c73a287a094e882bde3cd71c27f9f66ae20e64a
2020-10-02 15:42:33 -07:00
TreeHugger Robot b21819e181 Merge "Annotating Quick Switch CUJ for non-3-button modes" into ub-launcher3-master 2020-10-02 22:07:12 +00:00
vadimt a762b02418 Annotating Quick Switch CUJ for non-3-button modes
Bug: 169221288
Change-Id: I7145a9e28a2f0a789d19d2a0e3d15630c6e50f6a
2020-10-02 14:08:37 -07:00
TreeHugger Robot 931bce3697 Merge "Moving some initializations to the background thread" into ub-launcher3-master 2020-10-02 19:19:50 +00:00
Sunny Goyal 733e3c609b Moving some initializations to the background thread
HandlerThread.getLooper blocks until the thread is ready. Instead
moving all looper dependency to the new thread itself.

Change-Id: I240e8c56b855a991433a7fe93875059e6dab146b
2020-10-02 10:58:27 -07:00
Matt Casey e984f90835 Merge "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' into merge_ub-launcher3-master_6877130" 2020-10-02 16:22:47 +00:00
Matt Casey 49a94be109 Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' into merge_ub-launcher3-master_6877130
Change-Id: I624658ce682b55042a12faacd4cf0cfd5d3a9a56
2020-10-01 18:55:38 +00:00
Tracy Zhou 8d14dbe041 Merge "Fix logic around launchTask in the live tile case" into ub-launcher3-master 2020-10-01 00:49:14 +00:00
Tracy Zhou c8cbd822b5 Fix logic around launchTask in the live tile case
When how things are structured changed in the past 1-2 releases, we have dup logic in launchTask. There are two cases
- Swipe down from Overview: RecentsView#createTaskLaunchAnimation. In endListener, call launchTask in the non live tile case, and call finishRecentsAnimation in the live tile case
- Tap on the TaskView to launch task: In the non live tile case, call launchTask as it calls startActivity with option. In the live tile, currently we call createLaunchAnimationForRunningTask, which plays the task launch animation, which calls finishRecentsAnimation at the end. But this animation is not sufficient, when the user swipes the live tile task off to the right and tries to launch it. We will need to replace this animation with createRecentsWindowAnimator

Fixes: 169516051
Test: manual
Change-Id: Id764d6787175bcdb1c82adb8e4743af192a1fd9d
2020-09-30 16:41:44 -07:00
Schneider Victor-tulias 2ec0ade64a Add sandbox mode to gesture tutorial settings.
Test: manual

Added a Sandbox mode tutorial fragment and controller. This fragment allows the user to try all the gesture commands and receive feedback, whether the gesture was successful or not.

Preview: https://drive.google.com/file/d/1Qmn71ZHMOrv2XjUngb6S4W5jOaBIvF1_/view?usp=sharing

Change-Id: I7d28ce25daa38fa6d05b18d43d02b77c1fc8a264
2020-09-30 15:27:27 -07:00
Schneider Victor-tulias 6873cb82f3 Merge "Update TutorialFragments to work without hand gesture animations." into ub-launcher3-master 2020-09-30 22:26:01 +00:00
Winson Chung aff3e5263e Disable batching until the initial gesture is detected
- Just doing other activity since that's the most common case for now

Bug: 167732711
Change-Id: Icc910dbaf057893710c5f0bc6705e57cf8e3ee22
2020-09-30 17:56:21 +00:00
TreeHugger Robot 7c92c022d8 Merge "Adding jank tracing for some CUJs" into ub-launcher3-master 2020-09-29 21:15:18 +00:00
Winson Chung b006c243d0 Merge "Wrap animation runner for recents animation" into ub-launcher3-master 2020-09-29 18:42:24 +00:00
Riddle Hsu 7bdf3574a3 Add app start source info of apps launched from launcher
Bug: 166614700
Test: Enable statsd log: "adb shell cmd stats print-logs"
      adb logcat | grep statsd | grep "(48)"
      The line may contain 0x100000->1[I] 0x110000->10[I]
      that means 1=from launcher and 10=latency 10ms.
Change-Id: Iddaff7066b66e241ba58ec87129ddbe2c531dc7e
2020-09-30 00:53:56 +08:00
Riddle Hsu 63623967b8 Add latency metrics for recents gesture
Pass the touch down time to RecentsAnimation#startRecentsActivity.

Bug: 169221287
Test: Enable statsd log: "adb shell cmd stats print-logs"
      Touch gesture navigation bar.
      adb logcat | grep statsd | grep "(48)"
      The line may contain 0x100000->4[I] 0x110000->20[I]
      that means 4=by recents and 20=latency 20ms.
Change-Id: I81ee804895b7712f4d925736f5b4694c11a12cbe
2020-09-30 00:32:04 +08:00
Winson Chung 907845eba5 Wrap animation runner for recents animation
Bug: 160239388
Change-Id: I937c89b963b88702548daca7c0b85f7a79d5d706
2020-09-28 20:06:19 -07:00
Jon Miranda 020e628f22 Add shadow radius to windows during app launch / close animations.
Bug: 168608912
Change-Id: I2ec50b0b3711c0861659f9c641bbc05fcdeaab45
2020-09-28 19:21:28 -07:00
vadimt b8a30ef68a Adding jank tracing for some CUJs
Test: checking traces

Bug: 169220800
Bug: 169220955
Bug: 169221267
Bug: 169220924
Bug: 169220843
Change-Id: Ia32635764c78139f7e9a616c9fe70ae1a507c1b2
2020-09-28 20:59:14 +00:00
TreeHugger Robot cc7b860566 Merge "Fixing lock during RecentsModel initialization" into ub-launcher3-master 2020-09-28 19:32:07 +00:00
Sunny Goyal 10759887c2 Fixing lock during RecentsModel initialization
HandlerThread.getLooper blocks the current thread until.
the final thread is initialized. Updating RecentsModel to
use an executor instead of a handler thread to avoid this.

Change-Id: I3b2e82a375ea65bea1526af4a32c6a2488102541
2020-09-28 08:57:08 -07:00
Hyunyoung Song 95786e077d Good riddance UserEventDispatcher
Bug: 165675920
Bug: 161381246

TL;DR;;
- nano -> lite proto
- add all the missing logs to WW
- pin item related logging fix
- Removed logging for assistant

sgrep "com.android.launcher3.userevent.nano." | cut -f1 -d: | xargs sed -i -e 's/userevent\.nano\./userevent\./g'

Change-Id: Ie2a49fdd891cacbd7ef40a1dc9e41ff0574c7517
2020-09-27 13:41:49 -07:00
TreeHugger Robot b47551153a Merge "Allow touches on Workspace during transition from Overview" into ub-launcher3-master 2020-09-25 23:16:51 +00:00
Sreyas Rangaraju de301593e8 Merge "Removing OAV HIDDEN_GESTURE_RUNNING flag." into ub-launcher3-master 2020-09-25 22:05:29 +00:00
Jerry Chang 91ef6856d7 Remove legacy involveSplitScreen API
The onSplitScreenInvoked was used to notify system ui to reset the
divider position before entering split screen. With
SplitScreenTaskOrganizer, WM Shell library could know the exact time
when entering/leaving split screen mode. Removes the legacy API and
resets divider position when leaving split screen mode.

Fix: 168869136
Test: atest WMShellTests
Test: atest SystemUITests
Test: manual check recents and split screen behavior
Change-Id: Id14925619d1ec7c014a3e306fd99ec3734f227da
(cherry picked from commit 44981eb88e)
2020-09-25 20:43:14 +00:00
Tracy Zhou 32b9f3dc40 Merge "[Live Tile] Switch to screenshot when any task menu option is selected" into ub-launcher3-master 2020-09-25 17:43:32 +00:00
Schneider Victor-tulias 2517dfd123 Update TutorialFragments to work without hand gesture animations.
Test: manual

TutorialFragments needed to implement getHandAnimationResId, however not all TutorialFragments will need a hand gesture animation. Updated TutorialFragment to remove this requirement.

Change-Id: I2f75d6447dcceb226569181176deed1d5e80fa5f
2020-09-25 10:19:45 -07:00
Tracy Zhou a13715bb93 [Live Tile] Switch to screenshot when any task menu option is selected
- App info
- Split screen
- Pause app

Fixes: 169385194
Test: Manual
Change-Id: I7df8ac7dd89c8c7ae75d8e2e4207cd32ca7b10ea
2020-09-24 22:21:42 -07:00
TreeHugger Robot c50fa7a4fa Merge "Remove legacy involveSplitScreen API" 2020-09-25 01:44:10 +00:00
TreeHugger Robot b2507acec9 Merge "Adds ability to use LauncherPreviewRenderer in Sandbox." into ub-launcher3-master 2020-09-24 20:09:32 +00:00
TreeHugger Robot 8aade720b2 Merge "Make overview to home translate faster" into ub-launcher3-master 2020-09-24 19:38:03 +00:00
Tracy Zhou a6a0ec986d Merge " [Live tile] Use OverviewInputConsumer in live tile mode" into ub-launcher3-master 2020-09-24 18:13:43 +00:00
Winson Chung a6901eb32a Merge "Remove test restrictions" into ub-launcher3-master 2020-09-24 17:25:01 +00:00
Tracy Zhou a7ddfc0722 [Live tile] Use OverviewInputConsumer in live tile mode
Fixes: 169285206
Test: fling the home handle in Overview to go home
Change-Id: I41eae8a5120857b653a8b261a03cd5f83f99e6bb
2020-09-23 19:40:14 -07:00
Tony Wickham 69f9cae810 Remove CurveProperties#pageParentScale
Test: Set TaskView#EDGE_SCALE_DOWN_FACTOR = 0.2f, then swipe
down on the centermost TaskView; ensure it fills the screen.
Alternatively, touch and hold the nav bar and ensure there is
no jump in scale on the app window.

Fixes: 169259407
Change-Id: Ib3cfba6ebafbcb90de9c6b1ab79f53605d995321
2020-09-23 17:39:07 -07:00
Sreyas ceb1724376 Removing OAV HIDDEN_GESTURE_RUNNING flag.
Overview was being hidden when gesture was running, this is unnecessary as other hidden flags cover all the use cases.
Bug: 168565347

Change-Id: Ieab36783fccc0088f9cdbe0768a93c5c46b23def
2020-09-23 16:37:13 -07:00
Winson Chung 30cd4dca5f Remove test restrictions
Bug: 150303529
Change-Id: I1cfbd2bfb26fc47ee0bfb54dd174cd59ae0bfc5e
2020-09-23 15:33:32 -07:00
Tony Wickham a8e2ad2c1f Merge "Scale task view in TaskViewSimulator before translating it" into ub-launcher3-master 2020-09-23 18:52:33 +00:00
Winson Chung 9d15815f84 Merge "Revert "Disabling testToast on virtual devices"" into ub-launcher3-master 2020-09-23 18:15:44 +00:00
Tony Wickham 657f396c9c Scale task view in TaskViewSimulator before translating it
The pivot is supposed to be at the center of the task view, hence why
we use width / 2, height / 2, but technically this is assuming that
translation == 0. This error isn't normally noticeable because scale
is 1 when the task is centered, so the pivot doesn't matter. By
scaling before translating, we ensure the pivot doesn't depend on
the translation.

Test: scroll side to side while swiping up from an app, ensure the
running window scales down properly; when you let go to enter recents
while the second task is centermost, the running window ends in the
exact position as the first TaskView that replaces it.

Fixes: 169103357
Change-Id: Ica53c6b6fb073304c29f26d30fb829bb9d282185
2020-09-22 17:33:46 -07:00
Winson Chung 649122edc0 Revert "Disabling testToast on virtual devices"
This reverts commit f6385576d5.

Reason for revert: Test

Change-Id: I9caec3b2d64995b31f3dbbf5cb2865f4e5941afe
2020-09-22 23:43:51 +00:00
TreeHugger Robot 52e4994767 Merge "Remove invisible home task view as soon as gesture to Recents ends" into ub-launcher3-master 2020-09-22 01:08:29 +00:00
Tony Wickham c445a359ae Remove invisible home task view as soon as gesture to Recents ends
Fixes: 168288052
Change-Id: I929d021b26dad8b2f9b1f6a659522054bbf3ec28
2020-09-21 17:20:51 -07:00
Jon Miranda 9737454d9c Merging from ub-launcher3-master @ build 6852432
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6852432.html

Change-Id: I91066d6c55e88355a10a61281ad0d9b38b43f166
2020-09-21 20:51:59 +00:00
Tony Wickham ca23b981d9 Allow touches on Workspace during transition from Overview
Previously we only allowed touches on the hotseat (due to it being
in the shelf in Overview); now we allow touches anywhere if we are
not in an overview state.

Test: enter overview, swipe up to home and scroll workspace or tap
a workspace icon during the transition

Bug: 169052350
Change-Id: I59ee695ba9cb6f5fddd8e41c5796cdba6b3d2112
2020-09-21 11:56:04 -07:00
Tony Wickham a85fa09885 Make overview to home translate faster
Fixes: 169052350
Change-Id: Ia6f21f479498927a5561819fcc256b698acbd095
2020-09-21 11:14:49 -07:00
Winson Chung 1ecce38357 Merge "Only check activity rotation allowed when considering menu layout" into ub-launcher3-master 2020-09-21 16:32:33 +00:00
Pinyao Ting 28633e9985 Fix the issue Launcher is calling minimal device endpoint on UI thread
Test: manual
Change-Id: I72b12da43520d775bfd652a3b10406440f7cf64f
2020-09-20 05:27:21 +00:00
vadimt dd0b469a76 Experiment with closing all apps before overview actions test
Bug: 165029151
Change-Id: I1090b963ac1a12c96968014c69b8b26e1768be85
2020-09-18 14:31:25 -07:00
Jerry Chang 44981eb88e Remove legacy involveSplitScreen API
The onSplitScreenInvoked was used to notify system ui to reset the
divider position before entering split screen. With
SplitScreenTaskOrganizer, WM Shell library could know the exact time
when entering/leaving split screen mode. Removes the legacy API and
resets divider position when leaving split screen mode.

Fix: 168869136
Test: atest WMShellTests
Test: atest SystemUITests
Test: manual check recents and split screen behavior
Change-Id: Id14925619d1ec7c014a3e306fd99ec3734f227da
2020-09-18 17:37:06 +08:00
Winson Chung 24f0f34d01 Only check activity rotation allowed when considering menu layout
- The canRecentsActivityRotate() also checks whether system rotation
  is enabled which prevents us from using the right layout orientation
  when home rotation is enabled while system rotation is disabled.

Bug: 168278832
Test: Tested menu visibility in combination of
      Auto rotate setting x Home rotation setting X Device orientation
Change-Id: If74a38b1ec51abd2ea7f3ba3de23f0b2c4cab0ab
2020-09-17 13:23:39 -07:00
Andy Wickham 9e754b008d Adds ability to use LauncherPreviewRenderer in Sandbox.
This is mostly a proof-of-concept for future use and
tweaks as desired by UX.

The idea is to better replicate the actual UI.

Screenshot: https://drive.google.com/file/d/1EGDgcrSH2QZuSh6P3zWLBl6L8Xd-gtFY/view?usp=sharing

Bug: 148542211
Change-Id: Ibed4b8118346ef72599463c9fd6a2f71166993fd
2020-09-16 19:35:18 -07:00
Jon Miranda fcc7dd7e57 Merging from ub-launcher3-master @ build 6834159
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6834159.html

Change-Id: I4350d0ddedd107d7005625480aefda19e5d06ba2
2020-09-14 22:13:30 +00:00
TreeHugger Robot 445e4b4b9b Merge "Dismiss task menu when swiping to home" into ub-launcher3-master 2020-09-14 21:31:47 +00:00
Tony Wickham ef4b506c34 Dismiss task menu when swiping to home
Change-Id: Ie23e12cefeed2835aa0e5902337856505a5815bc
2020-09-11 13:00:06 -07:00
TreeHugger Robot b350c66b6c Merge changes I358a6020,I202ed999 into ub-launcher3-master
* changes:
  Inline INDEX_PAUSE_TO_OVERVIEW_ANIM
  Allow pause during quick switch for any horizontal displacement
2020-09-11 02:08:25 +00:00
Tony Wickham 1c3150fa1f Inline INDEX_PAUSE_TO_OVERVIEW_ANIM
It is only used by NoButtonQuickSwitchTouchController. Also removed
the interpolator overrides that are no longer needed since we don't
animate the shelf into overview mode.

Change-Id: I358a6020caaee859c6b22179591ab1d11a432f1d
2020-09-10 18:33:24 -07:00
TreeHugger Robot b7cc9fcc9e Merge "Adding content push button behind flag to OAV." into ub-launcher3-master 2020-09-10 21:07:44 +00:00
Sreyas 46aba2a46e Adding content push button behind flag to OAV.
Tested: TaplTestsNexus:testOverviewActions()
Change-Id: I83bc6e5033e2292776c927fba363214f347e01ce
2020-09-10 12:59:55 -07:00
Tony Wickham 248a7f89ac Only set live target if there is a target to set
Fixes: 166143722
Change-Id: I10c5bf384f6cee02cc55c035647911672f638e48
2020-09-10 00:41:22 +00:00
Tony Wickham 4318324ab4 Allow pause during quick switch for any horizontal displacement
The shelf no longer exists in 0 button mode, so it's not necessary
to wait for workspace to be invisible before allowing the pause.

Change-Id: I202ed9991b18f5e7cb2e4f0aa6be7a0d66b8ffd7
2020-09-09 17:12:49 -07:00
vadimt f367ced932 Annotating open-app transitions in trace files
Change-Id: I2461186321b7c33dbabca34c066b61f2169010f3
2020-09-08 18:39:32 -07:00
TreeHugger Robot 57cf650115 Merge "Annotating open-Launcher transition in trace files" into ub-launcher3-master 2020-09-08 22:27:58 +00:00
vadimt 70dc1066b6 Annotating open-Launcher transition in trace files
Currently, in trace files, it's hard
to find the exact set of frames for this transition.

Change-Id: I17ac201f9f9bc357ba42003776ec7a20ddef033d
2020-09-08 14:51:43 -07:00
Tony Wickham 01e4070836 Standardize quickstep velocities
- Compute velocities as px/ms from VelocityTracker, instead of
  computing px/s and dividing by 1000 in various places
- Use quickstep_fling_threshold_speed in TriggerSwipeUpTouchTracker
  instead of ViewConfiguration#getScaledMinimumFlingVelocity
- Check MotionPauseDetector to determine whether a fling is
  sufficient to escape after pause, in additon to above threshold

Bug: 159089437
Change-Id: Ib0fae7804e1f008f3b6ab37d6c463352c224b0e4
2020-09-03 10:52:34 -07:00
Tony Wickham 3a89e42237 Don't detach recents from app window after motion pause
- Update MotionPauseListener to have 2 methods: the existing
  onMotionPauseChanged(isPaused) and onMotionPauseDetected()
  - onMotionPauseDetected is the default as most listeners only
    care about the first detected pause
  - AbsSwipeUpHandler still listens to pause changes, to help
    determine the end target at the end of the gesture

Bug: 159089437
Change-Id: I6d14f106cdcbe4e07d8dddba1cee909a963615b1
2020-09-02 17:28:49 -07:00
TreeHugger Robot 1aee9da5b8 Merge "Make modal based UI changes in TaskView only if modalness changes." into ub-launcher3-master 2020-09-02 22:12:34 +00:00
Sreyas ed5e43bd25 Make modal based UI changes in TaskView only if modalness changes.
Fixes issue with jittery displaying of suggestion chip, when entering overview.
Merging into master manually as automerger failed.
Tested:Manual

Change-Id: I8228c51b22d550cb8f0aa559f997060b571763f1
2020-09-02 11:18:01 -07:00
Sreyas 639505c23b Scale down chip proportional to TaskView becoming fullscreen.
Merging into ub-launcher3-master manually as automerger failed.

Tested: Manual
Change-Id: Ic8e6dd6ba83206d67ee27d4af9d56639e9e43ff9
2020-09-02 11:17:19 -07:00
TreeHugger Robot 017c93488c Merge "Intercept touch events from anywhere while all apps is closing" into ub-launcher3-master 2020-08-31 18:59:32 +00:00
TreeHugger Robot a10f459281 Merge "Migrate trace proto from nano to lite" into ub-launcher3-master 2020-08-31 18:34:54 +00:00
Winson Chung 486fad2c44 Migrate trace proto from nano to lite
Bug: 166630570

Change-Id: I0567d0f71dd78e5dab87bb5878417c99c9bbe306
2020-08-31 17:55:51 +00:00
Hyunyoung Song 5191fe9ba0 SearchTarget/SearchTargetEvent API
Bug: 165869384
Bug: 161599758

TL;DR;;
Also introduce some additional methods for
- all apps start and stop
- metrics logging

Change-Id: I666ff5a27a5f8befdb0db483ebb07344a90e96bc
2020-08-28 23:58:23 -07:00
Andy Wickham 3356e870a6 Merging from ub-launcher3-master @ build 6799015
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6799015.html

Change-Id: Ib9d52ba333f2982d2420cab42a0935e8e8a303b3
2020-08-28 22:22:28 +00:00
Tony Wickham 734be27f9b Intercept touch events from anywhere while all apps is closing
Previously we did this only from a settled state, but now we also
do it during the transition to NORMAL.

Test: open all apps. Then, swipe down to home and back up to all
apps (from above the top of all apps).

Fixes: 159856104
Change-Id: Ib78c6a41d5fa17dd26a7df4e9069e0ada1f46dd0
2020-08-28 13:23:10 -07:00
Sreyas 90faa282f1 Implementing TouchDelegate to make full chip clickable.
Merging to ub-launcher3-master manually as automerger failed.
Tested: Manual

Change-Id: I1b8b43de7f04e1e13cb283c88f95a7c6fea84ea6
2020-08-28 12:10:55 -07:00
TreeHugger Robot 4b84442178 Merge "Fix a couple issues with overview to home transition" into ub-launcher3-master 2020-08-26 18:27:20 +00:00
Vinit Nayak 8acdb23e64 Init rotationTouchHelper before NavModeChange listener
NavModeChange listener relies on rotationTouchHelper
to be non-null, but we instantiate rotationTouchHelper
after nav mode changes are fired off.

Fixes: 166303464
Change-Id: Iab92d0fe0ee842d907d7226dfd9ca599e7729675
2020-08-25 18:26:29 -07:00
Hyunyoung Song 516da83f62 Merge "Good riddance UserEventDispatcher [1/n]" into ub-launcher3-master 2020-08-25 09:25:55 +00:00
Hyunyoung Song 6b670d62df Good riddance UserEventDispatcher [1/n]
Bug: 165675920
Change-Id: I237ed4243e1724b3c370c5660673bb3966bf4811
2020-08-24 21:19:09 -07:00
Tony Wickham b5493b90bc Fix a couple issues with overview to home transition
- In fake portrait, fade out instead of translating offscreen, as
  the orientation doesn't map to where RecentsView actually lives
- From OverviewModalTaskState, start from > 1 scale, and use
  OverviewToHomeAnim (to ensure RecentsView doesn't fade out etc)
  - To keep parameter list sane, added RecentsParams to
    AnimatorControllerWithResistance which has the new startScale
    (set to current scale for modal state) and renames the old
    RecentsParams to RecentsResistanceParams. Sorry if that's
    confusing.

Bug: 144170434
Change-Id: I437f0d18cad4c94feea25954aed3390acedcaed5
2020-08-24 16:27:00 -07:00
TreeHugger Robot 3cc22175e9 Merge "Moving hotseat predictions to ModelDelegate" into ub-launcher3-master 2020-08-24 18:42:01 +00:00
Tony Wickham 9c407861ad Merging from ub-launcher3-master @ build 6777814
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6777814.html

Change-Id: I0bb722c8f29e91cb382337f8b11bcf43d711949b
2020-08-19 19:59:27 -07:00
TreeHugger Robot 7658071d27 Merge "Set new scrimMultiplier instead of scrimProgress for overview -> home" into ub-launcher3-master 2020-08-20 02:24:56 +00:00
TreeHugger Robot 255ee17ce8 Merge "Allow swipe up to go home from overivew during task dismiss animation" into ub-launcher3-master 2020-08-20 02:19:23 +00:00
Pinyao Ting 840ad8e8bb Minimal Phone Mode (part-3) am: 96186aff87
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12219772

Change-Id: I27cb81fdb6cc1a5535aec3b259acda16106e084f
2020-08-20 02:03:17 +00:00
Tony Wickham b176dc99b2 Set new scrimMultiplier instead of scrimProgress for overview -> home
Animating this new property allows us to adjust the scrim without
competing with other state animations that could be setting the
scrim progress. Also reset scrimMultipler = 1 for state transitions.

Test: Swipe from home to overview, then during that transition swipe
from overview to home; when the former transition ends while the
second is still in progress, ensure scrim value doesn't jump

Bug: 144170434
Change-Id: I44b57ced1c6902e558fe1818bcbf11ceb4ff2f6f
2020-08-19 18:42:00 -07:00
Tony Wickham 5af9c3537d Allow swipe up to go home from overivew during task dismiss animation
Test: go to overview, dismiss a task, swipe up to go home during the
transition (easier to try with animation duraation scaled up)

Bug: 144170434
Change-Id: I28b846b43260179aeac877351a7069743f66f3ea
2020-08-19 18:34:13 -07:00
Pinyao Ting 96186aff87 Minimal Phone Mode (part-3)
Introduces a separate database for minimal device mode.

When minimal device mode is enabled/disabled:
1. WellbeingModel receives onChange event from ContentObserver
2. WellbeingModel called DWB's ContentProvider for latest state in
minimal device mode
3. Based on the state, WellbeingModel calls LauncherProvider to put
launcher into normal/minimal mode.
4. When going from normal -> minimal, Launcher switches to a different
database, namely minimal.db, then proceed to database initialization.
5. If the database hasn't been initialized yet, Launcher will call
ContentResolver#openInputStream with following uri:
content://com.google.android.apps.wellbeing.api/launcher_layout
to get the default layout xml.
6. The default layout is then saved in database, and the database is
considered initialized and doesn't need to go through step 5 again in
the future.
7. In case of minimal -> normal, Launcher switches back to its original
database (e.g. launcher.db if the grid size is 5x5), then reload launcher.

Bug: 161462256
Change-Id: I6bafa66440da23281f63454b698ea56b15960022
2020-08-19 14:58:20 -07:00
Tracy Zhou c5eedfb387 Merge "[Live Tile] Tapping home in Overview does not take user back to app" into ub-launcher3-master 2020-08-19 21:55:26 +00:00
Tracy Zhou f9abe7bcbd Update rect in LiveTileOverlay via copying
Probably a recent change updates the rect when reaching overview, which wasn't happening before. Regardless, we shouldn't have copied the rect by reference since the referenced copy can be changed.

Fixes: 165143463
Test: manual
Change-Id: I9315a20226f0a4b3440ce5ee6cc1f4ed1ddca487
2020-08-17 22:27:55 -07:00
Sunny Goyal 0fc3d1275a Moving hotseat predictions to ModelDelegate
Bug: 160748731

Change-Id: I8db7856a17e0b6ca45b4d5ec3513f788f22db11a
2020-08-17 08:43:07 -07:00
Mehdi Alizadeh 4595166bf5 Merging from ub-launcher3-master @ build 6767682
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6767682.html

Change-Id: I5e9c73a7ac3033fe82006c4bd72824f56b8988f8
2020-08-16 12:31:21 -07:00
Tracy Zhou 66f3ffe39f [Live Tile] Tapping home in Overview does not take user back to app
Fixes: 162340084
Test: Manual
Change-Id: I8e2caa4ec0d3203d70d35fc409e8053cae51e21e
2020-08-15 00:53:02 -07:00
Tony Wickham 532b962a03 resolve merge conflicts of 107fe60f6e to ub-launcher3-master
Change-Id: I9a1c52e66edd627fd54cc3cb423fa28a6175f8ac
2020-08-15 00:20:44 +00:00
Tony Wickham d844fe758c Remove ENABLE_OVERVIEW_ACTIONS flag, defaulting to true
We no longer support the "peeking" model where the shelf would
peek on motion pause from an app and overview would peek on motion
pause from home. Thus, removed/inlined the following:
- FlingAndHoldTouchController (merged into its sole subclass
  NoButtonNavbarToOverviewTouchController)
- ShelfPeekAnim
- OverviewPeekState

Change-Id: I066a3ad2636fde4786089c922b896bf1e03361fd
2020-08-14 15:58:29 -07:00
Tony Wickham 107fe60f6e Ensure we clearState() when going to Overview from home
We need to do this before potentially starting another
interaction during the animation, or we could end up in
an inconsistent state.

Fixes: 160759508
Change-Id: Ia28dceddcc258679fc0b968f5a83fae5ef3f5acb
2020-08-14 22:49:18 +00:00
TreeHugger Robot 6c1a88f172 Merge "Track OverviewToHomeAnim with StateManager" into ub-launcher3-rvc-qpr-dev 2020-08-14 22:45:17 +00:00
Tony Wickham 9dfcc316c1 Track OverviewToHomeAnim with StateManager
This way we mark the the current state as NORMAL at the start of
the animation, and cancel it as part of other state transitions.
This allows us to interact with launcher (e.g. to go to all apps
or pull down the notification shade) during the animation.

Also use OverviewToHomeAnim from RecentsView#startHome() to
ensure the animation is consistent, e.g. doesn't fade out
RecentsView, scrolls to page 1, etc.

Bug: 144170434
Change-Id: I5348565b9e705d8ffba39818dde9efe82b16bb7a
Merged-In: I5348565b9e705d8ffba39818dde9efe82b16bb7a
2020-08-14 22:30:33 +00:00
Tony Wickham 4fb5f74bb4 Track OverviewToHomeAnim with StateManager
This way we mark the the current state as NORMAL at the start of
the animation, and cancel it as part of other state transitions.
This allows us to interact with launcher (e.g. to go to all apps
or pull down the notification shade) during the animation.

Also use OverviewToHomeAnim from RecentsView#startHome() to
ensure the animation is consistent, e.g. doesn't fade out
RecentsView, scrolls to page 1, etc.

Bug: 144170434
Change-Id: I5348565b9e705d8ffba39818dde9efe82b16bb7a
2020-08-14 14:38:24 -07:00
Sunny Goyal 5fb83a47f2 Removing icon recents version
Change-Id: Ibdc88715e38590cedf8a7b5174061bb2c6ef9533
2020-08-14 10:49:19 -07:00
Tony Wickham 9e02264bc5 Store mHistoricTimes as longs intead of floats am: 31ef24c934 am: 1802dc3466 am: 27b9abc973
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12375534

Change-Id: I66bbada4462f3186ed6398ab3d89e8ceccb34e02
2020-08-14 11:20:12 +00:00
Tony Wickham 27b9abc973 Store mHistoricTimes as longs intead of floats am: 31ef24c934 am: 1802dc3466
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12375534

Change-Id: I249d4d5058915fe6ba995dc1e9efb56df49da123
2020-08-14 11:01:03 +00:00
Tony Wickham 1802dc3466 Store mHistoricTimes as longs intead of floats am: 31ef24c934
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12375534

Change-Id: Ia1d5a8120f6ad8201e76beb5330eadb39197536f
2020-08-14 10:45:19 +00:00
Tony Wickham 31ef24c934 Store mHistoricTimes as longs intead of floats
The loss of precision was causing us to miscalculate the age of
events, and thus not detecting any pause due to denominator = 0.

Test: have a device that hasn't been rebooted for a certain
amount of time such that SystemClock#uptimeMillis can't be
accurately converted to a float, then try to swipe up and hold

Fixes: 160568387
Change-Id: Idef112187f34a18feea7e6a0b77258626f9d0ed4
(cherry picked from commit a145670969)
2020-08-14 06:24:05 +00:00
Tracy Zhou 8ad575e1e6 Handle overview actions in Live Tile mode
- Switch to screenshot and finish recents animation when an overview action is selected

Fixes: 162564471
Test: Manual
Change-Id: I3db20619435d079bb39ce4cb37b46ea775416336
2020-08-13 15:23:18 -07:00
Tracy Zhou 9a472fbd7d Merge "[Live Tile] Place the target app back above Launcher when swipe up end target is home" into ub-launcher3-master 2020-08-13 21:29:28 +00:00
TreeHugger Robot 895ece297d Merge "[Overview Actions] Reset the modal task view when rotate from select mode." into ub-launcher3-rvc-qpr-dev am: 20983ae1f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12366024

Change-Id: I3fec240a659c5a1c80bf4f78aca1af6ace270e27
2020-08-13 18:57:49 +00:00
TreeHugger Robot 20983ae1f8 Merge "[Overview Actions] Reset the modal task view when rotate from select mode." into ub-launcher3-rvc-qpr-dev 2020-08-13 18:42:46 +00:00
Tracy Zhou 81c0cac457 [Live Tile] Place the target app back above Launcher when swipe up end target is home
Test: manual
Bug: 160361464
Change-Id: Ic2b332774fe3f25f36f0bfd2b5e6cf66fb1d09dd
2020-08-13 11:01:15 -07:00
Tony Wickham 59d04e6ea6 Use system VelocityTracker instead of forking least squares algorithm
Change-Id: I8e03cdd0942b9037054cd1955bdb6809c89f3ea2
2020-08-13 10:41:49 -07:00
TreeHugger Robot 9529b95e06 Merge "Store mHistoricTimes as longs intead of floats" into ub-launcher3-rvc-qpr-dev am: f35053ad58
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12365858

Change-Id: I3c21d9d47a525e9c975c6acf38c99a2f1668359c
2020-08-13 02:25:50 +00:00
TreeHugger Robot f35053ad58 Merge "Store mHistoricTimes as longs intead of floats" into ub-launcher3-rvc-qpr-dev 2020-08-13 02:10:20 +00:00
TreeHugger Robot 72385839ed Merge "TaskOverlayFactory - remove static factory." into ub-launcher3-rvc-qpr-dev am: 30fe240f99
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12353636

Change-Id: Ic165b6184f4f36b5956493d3880a9d93ad27a0d6
2020-08-13 01:01:07 +00:00
TreeHugger Robot 30fe240f99 Merge "TaskOverlayFactory - remove static factory." into ub-launcher3-rvc-qpr-dev 2020-08-13 00:47:34 +00:00
Becky Qiu ba6fec3eae [Overview Actions] Reset the modal task view when rotate from select mode.
Test: local
Bug: 161901771
Change-Id: I103e59ad68874db7fcb39556764d315983ac047c
2020-08-12 17:17:59 -07:00
Zak Cohen 635c08095a Merge "Overscroll plugin - give the plugin its own factory." into ub-launcher3-rvc-qpr-dev am: cbe1fc063d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12353635

Change-Id: Ia471594443d1b744c5c34f0c9c45e7191bbf7938
2020-08-13 00:12:20 +00:00
Tony Wickham a145670969 Store mHistoricTimes as longs intead of floats
The loss of precision was causing us to miscalculate the age of
events, and thus not detecting any pause due to denominator = 0.

Test: have a device that hasn't been rebooted for a certain
amount of time such that SystemClock#uptimeMillis can't be
accurately converted to a float, then try to swipe up and hold

Fixes: 160568387
Change-Id: Idef112187f34a18feea7e6a0b77258626f9d0ed4
2020-08-12 17:02:53 -07:00
Zak Cohen cbe1fc063d Merge "Overscroll plugin - give the plugin its own factory." into ub-launcher3-rvc-qpr-dev 2020-08-12 23:58:38 +00:00
TreeHugger Robot 74f218530e Merge "Wrapping display properties in a wrapper class" into ub-launcher3-master 2020-08-12 23:36:27 +00:00
Zak Cohen cf82754384 TaskOverlayFactory - remove static factory.
Make the overlay factory a member of the recents view.
Before the factory was static. The factory has references to activity
objects so was causing leaks.

Bug: 162012217
Tested: local, factory still works
Change-Id: I2283134f3008b630ba2056f07e65ac042957cdbd
2020-08-12 16:32:45 -07:00
Sunny Goyal fd58da6a75 Wrapping display properties in a wrapper class
This would allow us to support gestures on multiple-displays

Change-Id: I8f426bbdf04520f4189cadce2bde6aab4933c8d9
2020-08-12 13:43:56 -07:00
Becky Qiu cb956ff4f5 [Overview Actions] Set launcher state to Overview when rotate in recents.
Test: local
Bug: 160718310

Change-Id: I73f498151d7cc6a9db9d352549124c9d550ae6f2
2020-08-12 10:27:21 -07:00
Tracy Zhou 73f0c3698f Merge "Only draw app below launcher for TaskViewSimulator at swipe up or in Overview" into ub-launcher3-master 2020-08-12 16:53:23 +00:00
Tracy Zhou d6c3315a67 Only draw app below launcher for TaskViewSimulator at swipe up or in Overview
Bug: 160361464
Test: Manual
Change-Id: Ic4d912f1656d87f445a8016640c0eb166cace0d5
2020-08-11 22:55:04 -07:00
Becky Qiu 9367f98348 [Overview Actions] Set launcher state to Overview when rotate in recents.
Test: local
Bug: 160718310

Change-Id: I73f498151d7cc6a9db9d352549124c9d550ae6f2
Merged-In: I73f498151d7cc6a9db9d352549124c9d550ae6f2
2020-08-12 00:54:20 +00:00
Zak Cohen fac8741522 Overscroll plugin - give the plugin its own factory.
Separate out the overscroll plugin from the task overlay.
These two classes aren't really related.

Bug: 162012217
Tested: checked plugin still works
Change-Id: Id89eff1ad2ae9766efaaecd8cfc66d6521b9ca8c
2020-08-11 16:42:23 -07:00
Sunny Goyal 762d06136c Caching last predictions and loading it with model
Adding support for persisting itemInfos on disk. This uses
a separate xml file. Unlike prefs, it does not keep the items
in memory and is just a wraper over reading/writing a file.

Bug: 160748731
Change-Id: Iaccab9928ab8f30127fb3c2d630ca8ca83f0bd05
2020-08-11 13:23:29 -07:00
Sunny Goyal d62e797d18 Disabling debug log as the associated bug is closed
Bug: 154951045
Change-Id: I2e503c6d2f0a9f694ee1f88167924114fe495c2f
2020-08-11 12:11:18 -07:00
TreeHugger Robot 1bdb8f0efc Merge "Removing some obsolete methods and wrapper" into ub-launcher3-master 2020-08-11 18:57:13 +00:00
Hyunyoung Song 3003e57d17 Merge "Handle IME selection focus for ENABLE_DEVICE_SEARCH" into ub-launcher3-master 2020-08-11 17:56:59 +00:00
Hyunyoung Song 5dd045bec6 Handle IME selection focus for ENABLE_DEVICE_SEARCH
Bug: 162861289
Change-Id: I15e4eae09be2aa9f89a5157fd74c95e91e64bc53
2020-08-11 09:27:45 -07:00
Tony Wickham e14b55c2a9 Merge "Don't reapply window transform if we are already running a window anim" into ub-launcher3-rvc-qpr-dev 2020-08-11 00:19:28 +00:00
TreeHugger Robot b810c10bb9 Merge "Ensure that the task is always clipped to match the tile aspect ratio" into ub-launcher3-master 2020-08-10 23:55:24 +00:00
TreeHugger Robot 9fc65cb0b7 Merge "Fix TaskViewTouchController success progress to match haptic" into ub-launcher3-rvc-qpr-dev am: b460ff1ef1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12321076

Change-Id: Ic4317b94cca7d760d23da0c1c115d422236586e7
2020-08-10 23:02:20 +00:00
TreeHugger Robot b460ff1ef1 Merge "Fix TaskViewTouchController success progress to match haptic" into ub-launcher3-rvc-qpr-dev 2020-08-10 22:46:03 +00:00
Sunny Goyal b55f7591ed Ensure that the task is always clipped to match the tile aspect ratio
Instead of trying to estimate the insets, we clip the task such it is
restricted within the task insets when possible.

Change-Id: If160115fda07dfd2e01e96d41e4b5dc43a77ac94
2020-08-10 15:42:38 -07:00
Tony Wickham 06513f11c2 Don't reapply window transform if we are already running a window anim
Bug: 149934536
Change-Id: I3fa7f0b2581ca83923a42f37f52850b02c22e995
Merged-In: I3fa7f0b2581ca83923a42f37f52850b02c22e995
2020-08-10 22:20:36 +00:00
Tony Wickham c830bef923 Don't reapply window transform if we are already running a window anim
Bug: 149934536
Change-Id: I3fa7f0b2581ca83923a42f37f52850b02c22e995
2020-08-10 15:19:33 -07:00
Tony Wickham cf5aea05b3 Update overview from home transitions am: 03a4a0cd53
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12184426

Change-Id: Iac33ad0742264a97e754a1cc4336ed3ab727944a
2020-08-10 21:29:00 +00:00
Tony Wickham 2fe0d5f71d Merge "Add back code missing from upstream merge" into ub-launcher3-master 2020-08-10 21:08:54 +00:00
Tony Wickham 03a4a0cd53 Update overview from home transitions
For both NoButtonNavbarToOverviewTouchController and
NavBarToHomeTouchController:
- Have consistent resistance applied such that RecentsView scales
  down and translates up slightly (but not as much as from an app)
- Have consistent animation to home if you fling to that state
  rather than stay in overview. This is handled by a new class,
  OverviewToHomeAnim, which consolidates logic from NBTHTC and
  overrides some interpolators such that RecentsView doesn't fade
  out or translate downwards during the animation (it just slides
  off the screen while the home animation plays).

Also make overview actions not clickable when alpha == 0, so that
you can tap the hotseat/qsb during the transition from home to
overview.

Bug: 144170434
Change-Id: Ic291f285ff2f63c477633c48d4fadb23cf70c28a
2020-08-10 13:15:23 -07:00
Tony Wickham 90751820d9 Add back code missing from upstream merge
Change-Id: I7c2f08ed1b9c7462feabe1ad793af4ddc55aff1b
2020-08-10 13:11:43 -07:00
TreeHugger Robot a2c6c97374 Merge "Revert "Update overview from home transitions"" into ub-launcher3-master 2020-08-10 20:01:06 +00:00
Tony Wickham e6f9e0eb7e Revert "Update overview from home transitions"
This reverts commit f3bc797182.

Reason for revert: updating upstream, need to wait to cherry-pick until that's approved

Change-Id: I702286dba66fb4582ab682a5b0b8cd80ccebf346
2020-08-10 19:13:17 +00:00
Tony Wickham c0ed292ccb Merge "Add swipe up resistance to quick switch from home" into ub-launcher3-rvc-qpr-dev am: 999e08f6ff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12174364

Change-Id: I6ce2dbb31ec8ed0d340165b2fc9a9f0532081d3e
2020-08-10 16:32:08 +00:00
TreeHugger Robot e54db4fbd4 Merge "Fixing cutouts insets not clipped properly during swipeup for rotated activities" into ub-launcher3-rvc-qpr-dev am: 2ace6a25d2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12327967

Change-Id: I6e3f28e464a8ca63840a53f1b35c86cf377c4ad4
2020-08-10 16:31:44 +00:00
TreeHugger Robot d728579504 Merge "resolve merge conflicts of 3a22956f0a to ub-launcher3-master" into ub-launcher3-master 2020-08-10 16:28:35 +00:00
Tony Wickham f3bc797182 Update overview from home transitions
For both NoButtonNavbarToOverviewTouchController and
NavBarToHomeTouchController:
- Have consistent resistance applied such that RecentsView scales
  down and translates up slightly (but not as much as from an app)
- Have consistent animation to home if you fling to that state
  rather than stay in overview. This is handled by a new class,
  OverviewToHomeAnim, which consolidates logic from NBTHTC and
  overrides some interpolators such that RecentsView doesn't fade
  out or translate downwards during the animation (it just slides
  off the screen while the home animation plays).

Also make overview actions not clickable when alpha == 0, so that
you can tap the hotseat/qsb during the transition from home to
overview.

Bug: 144170434
Change-Id: Ic291f285ff2f63c477633c48d4fadb23cf70c28a
2020-08-08 19:18:57 +00:00
Tony Wickham 1a965c190d resolve merge conflicts of 3a22956f0a to ub-launcher3-master
Change-Id: I2bb370e63d7206d52acb912d5b55a0f0c5f59c3d
2020-08-08 19:12:20 +00:00
Tony Wickham 999e08f6ff Merge "Add swipe up resistance to quick switch from home" into ub-launcher3-rvc-qpr-dev 2020-08-08 02:18:46 +00:00
TreeHugger Robot 2ace6a25d2 Merge "Fixing cutouts insets not clipped properly during swipeup for rotated activities" into ub-launcher3-rvc-qpr-dev 2020-08-08 00:00:28 +00:00
Sunny Goyal 66aead7d2c Removing some obsolete methods and wrapper
Change-Id: I9d3c8d851ad596ba0d5165ab3c0f6661575166fc
2020-08-07 16:57:07 -07:00
TreeHugger Robot 3a22956f0a Merge "Remove overscroll on running task when it's not attached to RecentsView" into ub-launcher3-rvc-qpr-dev 2020-08-07 23:44:37 +00:00
Tony Wickham 70a556da1d Add translation component to swipe up resistance am: ce8b2b5180
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12174363

Change-Id: I18d7be49bb3bfc9f846c14a9138b5daf381e1d56
2020-08-07 20:22:52 +00:00
Tony Wickham d6a1063f25 Add swipe up resistance to quick switch from home
Bug: 149934536
Change-Id: I1b355a16d972f94d541231449ef323a41861a3e6
2020-08-07 12:33:06 -07:00
Tony Wickham ce8b2b5180 Add translation component to swipe up resistance
Now recents view follows your finger all the way to the top of the
screen. Specifically, your finger tracks the bottom of the window
until resistance starts (when RecentsView is at 75% scale), then
we add translation to compensate for the slower rate of scaling
down, such that your finger slips to the top of the window by the
time it reaches the top of the screen.

Also reset this translation back to 0 in the state handlers.

Bug: 149934536
Fixes: 158701272
Change-Id: Iaee58da758d422f0173c29d002f5c451ce0c1809
2020-08-07 12:32:50 -07:00