Commit Graph

24458 Commits

Author SHA1 Message Date
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 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 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
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
Hilary Huo 24c81ad7b5 Merge "[pixel-search] Change Nasa actions title name" into ub-launcher3-master 2020-09-29 23:32:33 +00:00
Schneider Victor-tulias f8b7011264 Merge "Make the workspace popup menu items statically ordered." into ub-launcher3-master 2020-09-29 23:07:20 +00:00
Hilary Huo de9a5e109d [pixel-search] Change Nasa actions title name
Change-Id: I3e44513d797d867b97664ff2ee46a8e33d020e99
2020-09-29 15:31:04 -07:00
Hyunyoung Song 00524e7b86 Merge "Thumbnail/Suggest view type support remote action" into ub-launcher3-master 2020-09-29 21:37:45 +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
Jonathan Miranda 17dc5a4414 Merge "Revert "Remove widgets that no longer fit the workspace in their current spans."" into ub-launcher3-master 2020-09-29 16:16:19 +00:00
Hyunyoung Song f271139682 Thumbnail/Suggest view type support remote action
Bug: 169330678


Change-Id: I629d3e6b1622bf71e0174eb2489e976ef98875ad
2020-09-29 02:03:48 -07:00
Jayaprakash Sundararaj 49876bbe7e Merge "[Search] [People] Pass intent to People view instead of URI." into ub-launcher3-master 2020-09-29 03:59:49 +00:00
Winson Chung 907845eba5 Wrap animation runner for recents animation
Bug: 160239388
Change-Id: I937c89b963b88702548daca7c0b85f7a79d5d706
2020-09-28 20:06:19 -07:00
jayaprakashs b7487f867c [Search] [People] Pass intent to People view instead of URI.
Tested:
On Phone

Bug: 169294622

Change-Id: I4e379a80a256e018761af2925e640745456faeec
2020-09-29 02:55:00 +00:00
Jonathan Miranda 9fcb45f872 Revert "Remove widgets that no longer fit the workspace in their current spans."
This reverts commit bf6e8ffbf0.

Reason for revert: broken tests
Bug: 141313472
Change-Id: I1e93e21e2c6618dea6cd099a46c9b9d2ab3ab81c
2020-09-29 02:08:43 +00: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
Hyunyoung Song 380d603f83 [automerger skipped] Merge "[DO NOT MERGE] Add component name to launcher home and overview gestures Bug: 168805198" into ub-launcher3-rvc-qpr-dev am: ab2e43e290 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12650710

Change-Id: I6c319eab44ab6c6273d3dad6389e71f91e5acf87
2020-09-26 07:14:28 +00:00
Hyunyoung Song ab2e43e290 Merge "[DO NOT MERGE] Add component name to launcher home and overview gestures Bug: 168805198" into ub-launcher3-rvc-qpr-dev 2020-09-26 06:55:11 +00: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
Schneider Victor-tulias 1b17d6be20 Make the workspace popup menu items statically ordered.
Test: manual

Fixes: 160190991.

Reordering the workspace's popup menu items breaks muscle memory of getting to the wallpaper and home settings. Added ArrowPopup#show and refactored ArrowPopup#reorderAndShow to allow more flexbility.

Change-Id: I3fa327d08488a52312c86769bb9a065ccacb17aa
2020-09-25 16:03:05 -07: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
Hyunyoung Song e6477328aa [DO NOT MERGE] Add component name to launcher home and overview gestures
Bug: 168805198

Change-Id: Idcc7d00b0f23c2a0f9be6f0ab2600278e18cc1a3
2020-09-24 22:10:54 -07:00
TreeHugger Robot 34fbea6f26 Merge "Make SPAN_MULTIPLIER public Bug: 169294860" into ub-launcher3-master 2020-09-25 03:59:56 +00:00
Hyunyoung Song ec7b1ee73b Make SPAN_MULTIPLIER public
Bug: 169294860

Change-Id: I6c32689c390de38f230cff4062889dd560afe6c3
2020-09-24 20:23:06 -07:00
Samuel Fufa 35879a3fdb Merge "Support Remote actions" into ub-launcher3-master 2020-09-24 22:31:08 +00:00
Samuel Fufa 02be2a43f5 Support Remote actions
Bug: 168846477
Test: Manual
Change-Id: I7b9dc96bc7a8ccb25ccb4b7135880768256f1ef3
2020-09-24 14:28:49 -07:00
Tony Wickham 011452a4ce [automerger skipped] Make overview to home translate faster am: 47644d209c -s ours
am skip reason: Change-Id Ia6f21f479498927a5561819fcc256b698acbd095 with SHA-1 a85fa09885 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12687638

Change-Id: I1412a610f5c75552f633ce76d1f124891a800443
2020-09-24 20:26: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
Tony Wickham 47644d209c Make overview to home translate faster
Fixes: 169052350
Change-Id: Ia6f21f479498927a5561819fcc256b698acbd095
Merged-In: Ia6f21f479498927a5561819fcc256b698acbd095
2020-09-24 19:14:07 +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
TreeHugger Robot 89008ef5e8 [automerger skipped] Merge "Remove CurveProperties#pageParentScale" into ub-launcher3-rvc-qpr-dev am: 3e4a8f5131 -s ours
am skip reason: Change-Id Ib3cfba6ebafbcb90de9c6b1ab79f53605d995321 with SHA-1 69f9cae810 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12685284

Change-Id: I3860206e6f63bfce346e0fe70865a7149528942e
2020-09-24 17:44:56 +00:00
TreeHugger Robot 3e4a8f5131 Merge "Remove CurveProperties#pageParentScale" into ub-launcher3-rvc-qpr-dev 2020-09-24 17:29:59 +00:00
Winson Chung a6901eb32a Merge "Remove test restrictions" into ub-launcher3-master 2020-09-24 17:25:01 +00:00
Tony Wickham 82ff64530e 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
Merged-In: Ib3cfba6ebafbcb90de9c6b1ab79f53605d995321
2020-09-24 17:17:51 +00:00