Commit Graph

23664 Commits

Author SHA1 Message Date
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 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
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 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
TreeHugger Robot 5f057a99d6 Merge "Store newGestureState before onConsumerAboutToBeSwitched clears it" into ub-launcher3-rvc-dev am: 7551b6191f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11963700

Change-Id: If316db050aa0794fb43b892b424598c1ff4e7bbc
2020-06-23 01:50:05 +00:00
TreeHugger Robot 7551b6191f Merge "Store newGestureState before onConsumerAboutToBeSwitched clears it" into ub-launcher3-rvc-dev 2020-06-23 01:33:55 +00:00
thiruram dbd61d4026 Log query_length & parent_container for actions on search results.
Bug: 154717227
Change-Id: I8e7d725014f60a2fd9a7fe13fce705acbc7623ad
2020-06-22 18:14:12 -07:00
Tony Wickham efb7e60edc Store newGestureState before onConsumerAboutToBeSwitched clears it
Bug: 159659393
Change-Id: If98d54b7ca397ef56a5c6d50c0fd92f25a9494b4
2020-06-22 17:37:07 -07:00
vadimt 839fb7b3ae Eliminating messages that launcher activity is frozen
They were ultimately caused by killing Launcher process from tests.

Now having a test info handler request to clear db.

Bug: 152629799
Change-Id: Ia81ddc3e338718c4cff08c7396b9fda1b7091024
2020-06-22 15:39:19 -07:00
Thiru Ramasamy 7273d3c346 Merge "Adds additional folder label states (UNLABELED & EMPTY_LABEL)" into ub-launcher3-rvc-dev am: 51ece1847c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11931814

Change-Id: I2054b8bf93c12ba6bb14b49fd668050bba213068
2020-06-22 21:12:33 +00:00
TreeHugger Robot 71c030a864 Merge "Fixing rotation watcher not enabled in landscape" into ub-launcher3-rvc-dev am: ceaad08f06
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959138

Change-Id: Ida6defb23bd6d816332441266ecfc78e715f740f
2020-06-22 21:12:25 +00:00
Thiru Ramasamy 51ece1847c Merge "Adds additional folder label states (UNLABELED & EMPTY_LABEL)" into ub-launcher3-rvc-dev 2020-06-22 21:04:12 +00:00
TreeHugger Robot ceaad08f06 Merge "Fixing rotation watcher not enabled in landscape" into ub-launcher3-rvc-dev 2020-06-22 21:00:07 +00:00
Vadim Tryshev 8187209e5b Merge "Changing event check implementation from logcat to TestProtocol" into ub-launcher3-rvc-dev am: 21cea8e55c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11936814

Change-Id: Ic9e849a7bac6f432ead756c49c8648177f33a934
2020-06-22 20:53:19 +00:00
Vadim Tryshev 21cea8e55c Merge "Changing event check implementation from logcat to TestProtocol" into ub-launcher3-rvc-dev 2020-06-22 20:42:23 +00:00
Hyunyoung Song 17544e8e73 Merge "Log Launcher transitions to WW" into ub-launcher3-rvc-dev am: 5c9a1ef5cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11862643

Change-Id: Id063bb45ce1322e9207b85a4d74048d2229761fc
2020-06-22 20:36:20 +00:00
thiruram ec75cbd85a Adds additional folder label states (UNLABELED & EMPTY_LABEL)
UNLABELED -> title==null and EMPTY_LABEL -> title=="". When adding new items for the folder if the folder is in UNLABELED state, auto-labeling will be enabled.
This change also addresses auto-labeling issue due to false edit from UNLABELED to EMPTY.

Bug: 159164315

Change-Id: Ia17cd27b4afb60420dc15c544f544061fc46ad33
2020-06-22 13:24:07 -07:00
Hyunyoung Song 5c9a1ef5cd Merge "Log Launcher transitions to WW" into ub-launcher3-rvc-dev 2020-06-22 20:21:10 +00:00
Sunny Goyal f67deb8e06 Fixing rotation watcher not enabled in landscape
Bug: 159636793
Change-Id: Ia7e5d90e9d441dfbe9877293957eff1ae7f69877
2020-06-22 13:02:53 -07:00
Hyunyoung Song 801f81fba5 Log Launcher transitions to WW
- ONRESUME / ONSTOP
- HOME_GESTURE
- OVERVIEW_GESTURE
- QUICKSWITCH
- SWIPELEFT/SWIPERIGHT

Bug: 156875719
Bug: 148822714
Bug: 137777105

Debug log: go/launcher-log-parity

Change-Id: I64a0deab4996b5be36320fbe0339f320891c53e0
2020-06-22 12:09:06 -07:00
TreeHugger Robot 91c225097e Merge "Handling Launcher configuration change between touchDown and Launcher.onStart" into ub-launcher3-rvc-dev am: ce629ff837
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11936457

Change-Id: Ibf42ba10d2d60ce1ed6f9ca732228e7f3b0b81e7
2020-06-22 18:20:38 +00:00
TreeHugger Robot ce629ff837 Merge "Handling Launcher configuration change between touchDown and Launcher.onStart" into ub-launcher3-rvc-dev 2020-06-22 18:04:14 +00:00
vadimt a17a10cddd Changing event check implementation from logcat to TestProtocol
Bug: 153670015
Change-Id: Id9fc759bd5be68758ef9cf0abbba3cd6fa452796
2020-06-22 11:04:03 -07:00
Samuel Fufa ec57343c7c Merge "Send app launch events from TaskSwitcher" into ub-launcher3-rvc-dev am: 6dac493218
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11920024

Change-Id: I3f8cfa2e41e16b0fad447cd4d7df1334327b4527
2020-06-22 17:59:31 +00:00
TreeHugger Robot 33b6fb6e3c Merge "Add depth animation when multiwindow mode changes." into ub-launcher3-rvc-dev am: 845f135d17
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11936455

Change-Id: Id84ffe545468b06aecdaae0c15d888ca1d6d8673
2020-06-22 17:59:23 +00:00
Samuel Fufa 6dac493218 Merge "Send app launch events from TaskSwitcher" into ub-launcher3-rvc-dev 2020-06-22 17:36:12 +00:00
TreeHugger Robot 845f135d17 Merge "Add depth animation when multiwindow mode changes." into ub-launcher3-rvc-dev 2020-06-22 17:31:35 +00:00
Sunny Goyal 6fe83da57c Handling Launcher configuration change between touchDown and Launcher.onStart
If activity rotation is allowed, Launcher/recents can rotate while swipe animation
is running leading to inconsistencies between deviceProfile and rotation
> Using activity configuration to determine the rotation instead of using display rotation
> Removing rotation watcher when rotation is enabled as it is not used anymore

Bug: 158781568
Change-Id: I107d856cae80af111c0514656fac7ab1fa0c21cb
2020-06-22 10:04:35 -07:00
Tony Wickham eb296923c1 Merge "Don't reset GestureState when touching outside of swipe region" into ub-launcher3-rvc-dev am: 698dfc03cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11944579

Change-Id: I1dff771a82a76f5ab8d1f3a579ef6f943c28d6f9
2020-06-22 16:52:14 +00:00
Tony Wickham 698dfc03cb Merge "Don't reset GestureState when touching outside of swipe region" into ub-launcher3-rvc-dev 2020-06-22 16:20:22 +00:00
TreeHugger Robot 8309936272 Merge "Revert "Allow shortcut predictions in hybrid hotseat"" into ub-launcher3-rvc-dev am: b22655f8e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11944578

Change-Id: I052a8bb9024eec4084b0a77c488fcc220f14d3f0
2020-06-21 07:44:04 +00:00
TreeHugger Robot b22655f8e1 Merge "Revert "Allow shortcut predictions in hybrid hotseat"" into ub-launcher3-rvc-dev 2020-06-21 07:24:25 +00:00
Winson Chung f1535b13f3 Merge "Tweak quickswitch thresholds" into ub-launcher3-rvc-dev am: c46daa9572
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11917532

Change-Id: I5fec4454c7d13e447a2ef9670fc8b429e13fc29c
2020-06-21 04:18:29 +00:00
Winson Chung c46daa9572 Merge "Tweak quickswitch thresholds" into ub-launcher3-rvc-dev 2020-06-21 04:08:09 +00:00
Winson Chung 4941f65d52 Tweak quickswitch thresholds
- Reduce slop for gestural mode (and apply multiplier to slop
  at checktime)
- When quickswitch threshold is passed, reduce the total movement
  check and reduce the velocity needed to fling to the next page
  to accommodate short swipes
- Use touch slop to determine scrolling in paged view, and only
  use paging slop to determine flinging to the next page (when
  easy flings are disabled (which is the default))

Bug: 157165240
Test: Ensure the flings in normal overview/paged views don't change,
      check short flings from quickswitching
Change-Id: Idd04ce23f53c06759e84ac8ad73cf2cc6dff6975
2020-06-20 19:41:32 -07:00
TreeHugger Robot 7f8a892300 Merge "Deleting old cache images before saving new ones." into ub-launcher3-rvc-dev am: 5ec76de182
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11934850

Change-Id: I422c02a268a274b5f5035492d93aa4319c2b4d0a
2020-06-20 20:29:33 +00:00
TreeHugger Robot 5ec76de182 Merge "Deleting old cache images before saving new ones." into ub-launcher3-rvc-dev 2020-06-20 20:19:01 +00:00
Tony Wickham 61fa23ab3a Don't reset GestureState when touching outside of swipe region
We were setting mGestureState = DEFAULT_STATE when touching outside
of the swipe region. Instead, we should only set mGestureState when
starting a new gesture, and only set it to DEFAULT_STATE on reset.

This also makes it clearer that mGestureState always refers to the
current gesture state, rather than sometimes being the current
gesture and sometimes being the previous gesture depending on
where it was used. Now previousGestureState is passed when needed.

Bug: 159494933
Change-Id: Ib62278b7c591ca4c6b99b26e058a34772e6cec2a
2020-06-20 12:04:12 -05:00
Samuel Fufa 857c512987 Revert "Allow shortcut predictions in hybrid hotseat"
This reverts commit 2d8e882d2e.

Reason for revert: Moving this to master. 

Change-Id: I46cfbda92d74a1f9fa9f0c091811941fe74ce76b
2020-06-20 16:53:51 +00:00