Commit Graph
49925 Commits
Author SHA1 Message Date
Jon Miranda 6fc3648e89 Fix map initial capcity.
Change-Id: I69f9dc2310435ba23d9a12cc8a5ef1037b43bb2b
2020-06-23 22:51:27 +00:00
Vinit Nayak d92946356e 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
(cherry picked from commit f2daafcdf8)
2020-06-23 22:45:44 +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
Tony Wickham ec615a46f7 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: 5def85eb22 am: 6a107f62aa am: 38cb32e5af
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I130370ab0439f5539807fe8aab16fdac9591d8e1
2020-06-23 21:48:37 +00:00
Tony Wickham 04349913da Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: fa5559ff64 am: 47e7816c13 am: 990df186cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: Ibbee66b437dcf5200a1e6d3e19ab2c5a36e0ba5b
2020-06-23 21:48:08 +00:00
Tony Wickham 333e41932b Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: fa5559ff64 am: b2676f22d9 am: bf68d13368
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: Id271c5227db2067c4db596f219d56dc37c06b305
2020-06-23 21:47:30 +00:00
Tony Wickham 38cb32e5af Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: 5def85eb22 am: 6a107f62aa
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I7f0373f2fefb9763242735bdff3fafab51102461
2020-06-23 21:31: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
Tony Wickham 990df186cd Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: fa5559ff64 am: 47e7816c13
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: Icbc58ede24cc1e575a65c7c250746f2adc8a2013
2020-06-23 21:31:25 +00:00
Tony Wickham bf68d13368 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: fa5559ff64 am: b2676f22d9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: Ia7e682c0715ae83844f15c40dbc49fd18e38ee82
2020-06-23 21:30:41 +00:00
Tony Wickham 6a107f62aa Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: 5def85eb22
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I124fc6fda0a51d6768c54a125c4e88efc7ec3ed6
2020-06-23 21:16:54 +00:00
Tony Wickham 47e7816c13 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: fa5559ff64
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I94f70b23dc70eafcd73830309007c6314db0c791
2020-06-23 21:16:35 +00:00
Tony Wickham b2676f22d9 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc am: fa5559ff64
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I3a0fd6a4af4c210a1b91635f438b310a68e7a39d
2020-06-23 21:16:26 +00:00
Tony Wickham 56c28b5e12 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: Id35d3d41f23000db794ff1f1eedca3b56a599b23
2020-06-23 21:03:15 +00:00
Tony Wickham 5def85eb22 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: Icb29fe36b27dec1276cc03169310bb0486c9dbc8
2020-06-23 21:03:05 +00:00
Tony Wickham fa5559ff64 Store newGestureState before onConsumerAboutToBeSwitched clears it am: b47a99e3cc
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11972618

Change-Id: I8d0a8f74ee677e5063c6ff84288bc7bd8e7a517c
2020-06-23 21:02:51 +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
Rajeev Kumar cadb94983b 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.

Bug: 159709775
Test: wembley-userdebug boots and has functioning Launcher
Change-Id: I17904f9ad88abc66364675426545eae423cb3175
2020-06-23 19:06:15 +00:00
Tony Wickham b47a99e3cc Store newGestureState before onConsumerAboutToBeSwitched clears it
Bug: 159659393
Change-Id: If98d54b7ca397ef56a5c6d50c0fd92f25a9494b4
(cherry picked from commit efb7e60edc)
2020-06-23 16:45:51 +00: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
Riddle Hsu 8108009929 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-23 17:09:33 +08:00
TreeHugger Robot 78be2f4703 [automerger skipped] Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: d9bb767466 am: 5a0ca31e20 am: 7f004c66c7 -s ours
am skip reason: Change-Id I2a168bfa8e3979ade26ab1d3cddbbae84cf79590 with SHA-1 0b51b916b0 is in history

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

Change-Id: I535cbb6c4c0dfc9b7ed90b0fc33bd9cc1c8da25e
2020-06-23 08:28:17 +00:00
Automerger Merge Worker e837691b46 [automerger skipped] Merge "Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: 3309850150 am: 633f0ca00d" into rvc-qpr-dev-plus-aosp am: e61a66437a -s ours
am skip reason: Change-Id I2a168bfa8e3979ade26ab1d3cddbbae84cf79590 with SHA-1 0b51b916b0 is in history

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

Change-Id: I811e9e157a65c1bb49e2570e853f6b3e5fd126db
2020-06-23 08:28:06 +00:00
TreeHugger Robot cd0470a0e1 [automerger skipped] Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: 3309850150 am: 3b5064c627 am: ca73131b00 -s ours
am skip reason: Change-Id I2a168bfa8e3979ade26ab1d3cddbbae84cf79590 with SHA-1 0b51b916b0 is in history

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

Change-Id: Id2e8d0cef83353c0896d86757fcc855f196b7602
2020-06-23 08:27:45 +00:00
TreeHugger Robot 7f004c66c7 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: d9bb767466 am: 5a0ca31e20
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I2725d65848cc3f239a41a01942c65ab65e7ec35a
2020-06-23 08:11:23 +00:00
Automerger Merge Worker e61a66437a Merge "Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: 3309850150 am: 633f0ca00d" into rvc-qpr-dev-plus-aosp 2020-06-23 08:11:18 +00:00
TreeHugger Robot c92007ce05 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: 3309850150 am: 633f0ca00d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I33ae3bc11d35436c5d925c593093d3bbfde00828
2020-06-23 08:11:13 +00:00
TreeHugger Robot ca73131b00 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: 3309850150 am: 3b5064c627
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I2c44979d0ddd4bdd227db8ce96d759d9ae4c8713
2020-06-23 08:11:07 +00:00
TreeHugger Robot 5a0ca31e20 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: d9bb767466
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I42bfe12c6c1f84d816eab2938ac9f920dfdcde37
2020-06-23 07:58:40 +00:00
TreeHugger Robot 633f0ca00d Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: 3309850150
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: Ia45c84e7afe144515eee4dc66b6339e0d8e46f96
2020-06-23 07:58:40 +00:00
TreeHugger Robot 3b5064c627 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506 am: 3309850150
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I382108fe334d51cc78afdd8818aa78caa8065cc0
2020-06-23 07:58:14 +00:00
TreeHugger Robot d9bb767466 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: Ic5e8629d580f552de23763b6138a95d53bc3912f
2020-06-23 07:48:11 +00:00
TreeHugger Robot d40872d017 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I1de10dab636ad0eb3311ea50007ea5667f17cc3a
2020-06-23 07:48:01 +00:00
TreeHugger Robot 3309850150 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev am: a271085506
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/11959982

Change-Id: I1cb4a775fda0f70b0839398ac0f4b8e224c7880c
2020-06-23 07:47:36 +00:00
TreeHugger Robot a271085506 Merge "Merging from ub-launcher3-rvc-dev @ build 6617269" into rvc-dev 2020-06-23 07:29:27 +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
Hyunyoung Song 85d90a16bc Merging from ub-launcher3-rvc-dev @ build 6617269
Bug: 150504032
Test: manual, presubmit on the source branch
https://android-launcher.teams.x20web.corp.google.com/merge/ub-launcher3-rvc-dev_rvc-dev_6617269.html

Change-Id: I7a13230553f9c42d5f67164234c33cf77efa9cf2
Merged-In: I2a168bfa8e3979ade26ab1d3cddbbae84cf79590
2020-06-23 05:11:31 +00:00
android-build-team Robot 0fa16c2ffc Snap for 6618402 from ef4a2a1845 to mainline-release
Change-Id: I8fada9f27852d2a90fd92b8a8e02f26c219b4c98
2020-06-23 03:06:02 +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