Commit Graph

34630 Commits

Author SHA1 Message Date
The Android Open Source Project 6b3d5d51b6 DO NOT MERGE - Merge RP1A.201005.006 am: 05a4c9e19a am: 603572dd6c
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1449166

Change-Id: I2eec0c9e683a4c6c33c4a6cc69cd8e7e4a391e6c
2020-10-06 21:15:43 +00:00
Jayaprakash Sundararaj e29a9f7961 Merge "[Search] Add logging to People and badding as to icons." into ub-launcher3-master 2020-10-06 21:00:20 +00:00
Xin Li aef9c20ae0 Merge "DO NOT MERGE - Merge RP1A.201005.006" am: 3c4b9d5283
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1449166

Change-Id: I3e9e7eb0285b29b40caf12db54354508ebbf2f19
2020-10-06 20:24:05 +00:00
The Android Open Source Project 603572dd6c DO NOT MERGE - Merge RP1A.201005.006 am: 05a4c9e19a
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/1449166

Change-Id: I54d4f1ced0cc63b31b1d7a9b859c057f56bd5db2
2020-10-06 20:23:55 +00:00
Xin Li 3c4b9d5283 Merge "DO NOT MERGE - Merge RP1A.201005.006" 2020-10-06 20:17:27 +00:00
jayaprakashs be17bdcd22 [Search] Add logging to People and badding as to icons.
Change-Id: I65948a2faca436216a94aa46139d425b8eade827
2020-10-06 13:00:33 -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
The Android Open Source Project 05a4c9e19a DO NOT MERGE - Merge RP1A.201005.006
Bug: 168212094
Merged-In: Idef112187f34a18feea7e6a0b77258626f9d0ed4
Change-Id: Ibab48c1925a0ab7a80ddcaba45a7b73219bb0b0a
2020-10-06 16:53:21 +00: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
TreeHugger Robot 83ce7c0b5e Merge "Action icon should be used as a badge instead of main icon" into ub-launcher3-master 2020-10-05 19:18:39 +00:00
TreeHugger Robot 679d920bf5 Merge "Add null check for input receiver before updating batching" into ub-launcher3-master 2020-10-05 19:13:50 +00:00
TreeHugger Robot e108cc609d Merge "Removing unused proto extensions" into ub-launcher3-master 2020-10-05 18:39:58 +00:00
TreeHugger Robot 470403eb58 Merge "Remove widgets that no longer fit the workspace in their current spans." into ub-launcher3-master 2020-10-05 18:29:54 +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
TreeHugger Robot a5130482ae Merge "Suggest result should launch Bug: 169980192" into ub-launcher3-master 2020-10-05 17:14:21 +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
Hyunyoung Song 7fcd74abb3 Suggest result should launch
Bug: 169980192

Change-Id: I762245a5cc4740d093c9cb3b44a508e9e3f2b763
2020-10-02 19:20:11 -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 c935ba6b8a Merge "Adding stats log for add item flow" into ub-launcher3-master 2020-10-02 18:26:06 +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
Sunny Goyal 58804ac525 Adding stats log for add item flow
Bug: 169385783
Bug: 168167693
Change-Id: I37395f1b118727f67e0f14c02f945b8213b165c8
2020-10-02 10:47:31 -07:00
Hilary Huo a4111f2500 Merge "[pixel-search] Bug fix: automatically launch screenshot + center&crop remoteaction icon" into ub-launcher3-master 2020-10-02 17:41:22 +00:00
Sunny Goyal f622e42bf6 Removing unused proto extensions
Change-Id: I6d0319c99934dad5176b6f70b895a4ca772ec45f
2020-10-02 10:36:06 -07:00
Matt Casey e984f90835 Merge "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' into merge_ub-launcher3-master_6877130" 2020-10-02 16:22:47 +00:00
Hyunyoung Song d6b1f3c086 Action icon should be used as a badge instead of main icon
Bug: 169796517
Change-Id: I3f07fdc2ae6e1af463701f942c26c3ca5d836ee2
2020-10-02 00:51:33 -07:00
Hilary Huo f6b72c4ad1 [pixel-search] Bug fix: automatically launch screenshot + center&crop remoteaction icon
Bug: b/169330678
Change-Id: Id5f8a0ce6d68f7ed9e4d1ff258ee3772229eb63b
2020-10-01 12:26:48 -07:00
Matt Casey 49a94be109 Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' into merge_ub-launcher3-master_6877130
Change-Id: I624658ce682b55042a12faacd4cf0cfd5d3a9a56
2020-10-01 18:55:38 +00:00
Hyunyoung Song 743fe26951 [DO NOT MERGE] Add component name to launcher home and overview gestures
Bug: 168805198

Change-Id: Idcc7d00b0f23c2a0f9be6f0ab2600278e18cc1a3
(cherry picked from commit e6477328aa)
2020-10-01 16:56:35 +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
Jon Miranda 1d7ed30dba Remove widgets that no longer fit the workspace in their current spans.
This can happen when display size changes.
We compare span sizes of widget in the db to the min sizes of the widget
in the current display size. If the widget can no longer fit in its existing
spans, we remove it.

Also update test widgets to have minWidth/minHeight of 1dp. This ensures that
the spanX, spanY, min* values remain consistent between different test devices.

Bug: 168818961
Change-Id: I723372e4582658f78b2f23ced9073cb77977a6b8
2020-09-30 16:19:21 -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 87636e4045 Merge "Disable batching until the initial gesture is detected" into ub-launcher3-master 2020-09-30 20:23:53 +00:00
Jonathan Miranda 80eaab99e7 Merge "Draw BubbleTextView drawable behind ClipIconView during app close animation." into ub-launcher3-master 2020-09-30 20:15:50 +00:00
Jon Miranda 5e315bc7a9 Draw BubbleTextView drawable behind ClipIconView during app close animation.
The BubbleTextView drawable has built in shadows.

Prior to this, we waited for the FloatingIconView to finish
animating into place before fading in the BubbleTextView behind it.
We did this to prevent the shadow from blinking in.

Now that we've refactored FloatingIconView & ClipIconView,
we draw the BubbleTextView behind the ClipIconView so that the shadow is
revealed when the icon finishes clipping to its final shape and it
no longer has to be faded in.

Bug: 168608912
Change-Id: Ic0809f74ecbbec2f6e7caf7eca2fb560a8a02dec
2020-09-30 12:07:32 -07:00
TreeHugger Robot 3c3df686bf Merge "Resolve race condition between @Before conditions" into ub-launcher3-master 2020-09-30 18:39:58 +00:00
Samuel Fufa 9fa2d8812a Resolve race condition between @Before conditions
Bug: 159671700
Change-Id: I5c96c32c171b7b539ce0ea799cf45955c2bee670
2020-09-30 10:57:04 -07:00