Commit Graph

23699 Commits

Author SHA1 Message Date
TreeHugger Robot ac802c2bdc Merge "Improving diagnostics when Launcher dies during a gesture" into ub-launcher3-master 2020-06-25 22:32:28 +00:00
TreeHugger Robot e997bd682e Merge "Improving diagnostics when can't find a widget" into ub-launcher3-master 2020-06-25 22:24:05 +00:00
Tracy Zhou 73f1937b6c Do preview grid migration in a worker thread am: f957ff9123
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12002727

Change-Id: I56067831e0e5c3b43eb60d4f62459e251228e88c
2020-06-25 22:22:03 +00:00
Tony Wickham 3d6bfc2905 Merge "Fix tracking window being slightly off when swiping from an app" into ub-launcher3-master 2020-06-25 22:18:32 +00:00
Tracy Zhou f957ff9123 Do preview grid migration in a worker thread
Also remove USE_SURFACE_VIEW_FOR_PREVIEW flag

Fixes: 159755324
Test: manual
Change-Id: I6517c34911e217a69063226b01e4583194902f9c
(cherry picked from commit 633a4bdf57)
2020-06-25 21:04:25 +00:00
Tracy Zhou 6d24c69e48 Merge "Do preview grid migration in a worker thread" into ub-launcher3-master 2020-06-25 21:04:04 +00:00
vadimt 56fe9150fa Improving diagnostics when Launcher dies during a gesture
Instead of crashing upon getting uninitialized event sequence, we show a
meaningful message.

Bug: 159921830
Change-Id: Ie42039b39a453c60bd5df3e54058d582137bba06
2020-06-25 13:32:20 -07:00
Tracy Zhou 633a4bdf57 Do preview grid migration in a worker thread
Also remove USE_SURFACE_VIEW_FOR_PREVIEW flag

Fixes: 159755324
Test: manual
Change-Id: I6517c34911e217a69063226b01e4583194902f9c
2020-06-25 13:12:52 -07:00
Tony Wickham f0a1b2ccd8 Fix tracking window being slightly off when swiping from an app
Test: swipe up from an app in landscape, seascape, and portrait,
and verify the window tracks with the finger 1:1 until pullback

Bug: 149934536
Change-Id: Ia469877e7152c8135e0b9153f69c191ba86cbd14
2020-06-25 11:51:28 -07:00
Tony Wickham 072e4c276d Merge "Pass isLikelyToStartNewTask to onGestureStarted()" into ub-launcher3-rvc-dev am: 9d69370095
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11990144

Change-Id: I0b8a7052caf6352f4505a4327385332f2a6ef934
2020-06-25 02:28:27 +00:00
Tony Wickham 9d69370095 Merge "Pass isLikelyToStartNewTask to onGestureStarted()" into ub-launcher3-rvc-dev 2020-06-25 02:10:54 +00:00
Andy Wickham 646f2ab0d9 Merge "Updates Assistant gesture regions when no longer tracking multiple." into ub-launcher3-rvc-dev am: fce6be550b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11989960

Change-Id: Iac670fc5f6cfdb0bb38a571c96136858f1b14f1a
2020-06-24 22:43:38 +00:00
Andy Wickham fce6be550b Merge "Updates Assistant gesture regions when no longer tracking multiple." into ub-launcher3-rvc-dev 2020-06-24 22:29:45 +00:00
vadimt fb099c7fe1 Improving diagnostics when can't find a widget
Instead of "exceeded number of attempts" now printing that can't scroll
to widget.

Change-Id: Ia6f582e038d68fc35f152d94e592f60ef0bc2cf4
2020-06-24 21:54:16 +00:00
Andy Wickham 4b531b972d Updates Assistant gesture regions when no longer tracking multiple.
This should prevent states where Assistant triggers from
the vertical-center of the screen in portrait (see bug).

Also fleshes out OrientationTouchTransformerTests and
adds some new ones that fail without this change:
 - enableMultipleRegions_assistantTriggersInMostRecent
 - enableMultipleRegions_assistantTriggersInCurrentOrientationAfterDisable

Fixes: 158686674
Change-Id: I6d045a485f62e4010e9e3d00805a50fdd953a2fc
2020-06-24 21:23:35 +00:00
Tony Wickham c6a56ef7a2 Pass isLikelyToStartNewTask to onGestureStarted()
This ensures we immediately setRecentsAttachedToAppWindow(). As
mentioned in the bug, there was an edge case where we would animate
the attached state if the first move event passed the touch slop,
causing the adjacent task view to lag behind during the gesture.

Fixes: 159742520
Change-Id: Ie47bb84fdd3dbd69e3b74ca504d487fb9aedb551
2020-06-24 11:59:10 -07:00
TreeHugger Robot 7e3d07fc77 Merge "Use isolated display context to get display info" into ub-launcher3-rvc-dev am: a0b0d66e20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11969862

Change-Id: Ibb6496b2ed97f782940cdf8f846731ba6a36811a
2020-06-24 05:37:07 +00:00
TreeHugger Robot a0b0d66e20 Merge "Use isolated display context to get display info" into ub-launcher3-rvc-dev 2020-06-24 05:25:33 +00:00
Sreyas 100c8f1d9c Fixing NPE befre ActionsView first initialized. am: 2bbce930cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11978214

Change-Id: Idfadb41776a4285ea3c1f364cf004e6afc7bfc6c
2020-06-24 04:58:13 +00:00
Sreyas 2bbce930cb Fixing NPE befre ActionsView first initialized.
Bug: 159728260
Change-Id: I00e6f8fccf8057495f77873f2f0a1ab01e63ed23
(cherry picked from commit 88f1f2046c)
2020-06-24 04:10:29 +00:00
Zak Cohen 950c93ad64 Merge "Fixing NPE befre ActionsView first initialized." into ub-launcher3-master 2020-06-24 04:09:53 +00:00
Riddle Hsu 8995590e44 Use isolated display context to get display info
While display is in landscape, and the launcher is transformed to
portrait, the display rotation from activity or application context
will get the rotation in portrait.

In order to transform the input event when the orientations are
different, the actual device rotation is still needed. By creating
the display context from application context, the resources of
the new context won't be affected by the activity/application level
display info adjustments. That provides the actual device states.

Additionally, DefaultDisplay#INSTANCE should only be used for the
operations related to physical orientation/size because it won't
contain the override information from activity.

Bug: 157456493
Test: Use a device which may switch refresh rate.
      Open Maps and put device in landscape.
      Use gesture navigation to swipe up.
      The direction of movement should be consistent with UI.
Change-Id: I03108b1ab057e28727b6a6db3629d2c1c069e828
2020-06-24 04:00:13 +00:00
TreeHugger Robot fa8137da41 Merge "Remove hotseat edu flag" into ub-launcher3-rvc-dev am: 9f3ae7b573
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11975459

Change-Id: I9380cc36aea7e9876e09d80db57d7d62829c7314
2020-06-24 03:36:49 +00:00
TreeHugger Robot 9f3ae7b573 Merge "Remove hotseat edu flag" into ub-launcher3-rvc-dev 2020-06-24 03:23:54 +00:00
TreeHugger Robot 8cce026b81 Merge "Fix map initial capcity." into ub-launcher3-master 2020-06-24 02:00:50 +00:00
TreeHugger Robot 615a9b8c3d Merge "Fixing TaskMenu positioning." into ub-launcher3-rvc-dev am: f95cf17a13
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11975970

Change-Id: I457b19e1bbc25d9716106d0df9e3bb6a6eacf455
2020-06-24 00:17:53 +00:00
TreeHugger Robot f95cf17a13 Merge "Fixing TaskMenu positioning." into ub-launcher3-rvc-dev 2020-06-24 00:03:27 +00:00
TreeHugger Robot b27413d147 Merge "Add explicit android:exported="true" declarations" into ub-launcher3-master 2020-06-23 23:41:29 +00:00
Sreyas 88f1f2046c Fixing NPE befre ActionsView first initialized.
Bug: 159728260
Change-Id: I00e6f8fccf8057495f77873f2f0a1ab01e63ed23
2020-06-23 16:31:34 -07:00
Sreyas 7776d30609 Fixing TaskMenu positioning.
Bug: 159728554
Change-Id: I4a666363f092b5416edecd0731a0f448916c8def
2020-06-23 16:17:11 -07:00
Rajeev Kumar b6354114ba Add explicit android:exported="true" declarations
We add this for GestureSandboxActivity and
com.android.launcher3.uioverrides.QuickstepLauncher to
reinstate the behavior of go/ag/11746107 which was
incorrectly reverted in go/ag/11963698.

We also add this for HotseatEduActivity which was
newly added in go/ag/11963698.

(Cherry pick from master cadb94983b)

Bug: 159709775
Fixes: 159709775
Test: wembley-userdebug boots and has functioning Launcher
Change-Id: I17904f9ad88abc66364675426545eae423cb3175
Merged-In: I17904f9ad88abc66364675426545eae423cb3175
2020-06-23 23:04:38 +00:00
TreeHugger Robot da25b230ed Merge "Prevent premature resetting of quickswitch mode" into ub-launcher3-rvc-dev am: 359a28e934
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11931812

Change-Id: I0c139e6381b85d723997d6cf6135e12b7d64ff9f
2020-06-23 22:55:18 +00:00
Jon Miranda 6fc3648e89 Fix map initial capcity.
Change-Id: I69f9dc2310435ba23d9a12cc8a5ef1037b43bb2b
2020-06-23 22:51:27 +00:00
TreeHugger Robot 359a28e934 Merge "Prevent premature resetting of quickswitch mode" into ub-launcher3-rvc-dev 2020-06-23 22:42:48 +00:00
TreeHugger Robot 7e47e05f40 Merge "Fix hotseat button alignment" into ub-launcher3-rvc-dev am: d0fcfe2bb7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972637

Change-Id: I95d09bbf30ca40ecc57b334eb41203a01efd59aa
2020-06-23 22:24:53 +00:00
vadimt e52b39ffb9 Making LauncherProvider think that clear-db request comes from Launcher am: efa3acddba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11975961

Change-Id: I232d640997772be013900c36aa82479b926016ca
2020-06-23 22:24:39 +00:00
TreeHugger Robot d0fcfe2bb7 Merge "Fix hotseat button alignment" into ub-launcher3-rvc-dev 2020-06-23 22:08:42 +00:00
Vinit Nayak f2daafcdf8 Prevent premature resetting of quickswitch mode
Previously, whenever a user returned to the same
rotation that they had started quickswitch in,
we were sending sysui the reset flag(-1) indicating
that quickstep was complete instead of sending
the rotation of the device the user was in.

This was intentional and it worked, however we now
always send the active rotation while the user
is in a quickswitch session because sysui needs
to show the fake home handle for immersive apps,
which can occur in any rotation. This state is
distinct from not being in quickswitch at all, in
which no fake handles are shown.

Fixes: 158677967

Change-Id: I910324abf781b4b30fe981139712bcb5b653c318
2020-06-23 15:07:22 -07:00
TreeHugger Robot 2f987f6466 Merge "Add an exported flag in manifest" into ub-launcher3-master 2020-06-23 21:31:32 +00:00
vadimt efa3acddba Making LauncherProvider think that clear-db request comes from Launcher
If it comes from the test process, the request won't be honored.

Bug: 159728364
Change-Id: I90029c1198634f1f1e94f61ba8ab9b41609d9ad5
2020-06-23 13:59:11 -07:00
Ashwini Oruganti aa902e859b Add an exported flag in manifest
With b/150232615, we will need an explicit value set for the exported
flag when intent filters are present, as the default behavior is
changing for future versions. This change adds the value reflecting the
previous default to the manifest.

These changes were made using an automated tool, the xml file may be
reformatted slightly creating a larger diff. The only "real" change is
the addition of "android:exported" to activities, services, and
receivers that have one or more intent-filters.

Bug: 150232615
Bug: 158198882
Test: TH
Exempt-From-Owner-Approval: mechanical refactoring
Change-Id: I083a7bcab968c881f7cdff7152a249691ffac316
2020-06-23 13:58:18 -07:00
Samuel Fufa 3c2a17b6f6 Remove hotseat edu flag
Launcher should not restrict user migration to a one time event if we want users to migrate their hotseat by enabling hotseat prediction from suggestion settings.

Test: Manual
Bug: 159731272
Change-Id: I0e42dd6b6cf6374928e5b399d121d17fe8024ae1
2020-06-23 12:53:37 -07:00
Samuel Fufa a44c09d6c9 Fix hotseat button alignment
Screenshot: https://screenshot.googleplex.com/Vr9FXe3oN2t
Bug: 159731214
Change-Id: I9e413f5d9bf0144edd413cc5995e7f1fda152f28
2020-06-23 12:46:30 -07:00
Tracy Zhou ded0a4f7b4 Merge "Support having dup items in folder for migration" into ub-launcher3-rvc-dev am: b1e003c1fb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959984

Change-Id: Ibdf4d2554dee8d0334a4256e740c31fd276a1c17
2020-06-23 16:22:20 +00:00
Tracy Zhou b1e003c1fb Merge "Support having dup items in folder for migration" into ub-launcher3-rvc-dev 2020-06-23 16:12:25 +00:00
Tracy Zhou 76773cd210 Support having dup items in folder for migration
Fixes: 159312066
Test: Have two dup items in a folder under one grid setting. Migrate. Make sure the folder is migrated correctly to the new grid setting.
Change-Id: Ic5aeb30a1c8acb382bccf744d7553913d8a8a320
2020-06-23 00:29:23 -07:00
TreeHugger Robot 05dbf2438e Merge "Eliminating messages that launcher activity is frozen" into ub-launcher3-rvc-dev am: 7cb6d738c0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959980

Change-Id: I531836c4974ddfd41e585f1f4193efc93e964fd6
2020-06-23 06:23:54 +00:00
TreeHugger Robot 7cb6d738c0 Merge "Eliminating messages that launcher activity is frozen" into ub-launcher3-rvc-dev 2020-06-23 06:09:26 +00:00
TreeHugger Robot 9c2fda3cac Merge "Log query_length & parent_container for actions on search results." into ub-launcher3-rvc-dev am: ea3edf1247
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959991

Change-Id: I78c8c6feaf284d8e8b492f9d477e11ef731bc559
2020-06-23 02:33:12 +00:00
TreeHugger Robot ea3edf1247 Merge "Log query_length & parent_container for actions on search results." into ub-launcher3-rvc-dev 2020-06-23 02:16:44 +00:00