Commit Graph

34630 Commits

Author SHA1 Message Date
Hyunyoung Song 6b670d62df Good riddance UserEventDispatcher [1/n]
Bug: 165675920
Change-Id: I237ed4243e1724b3c370c5660673bb3966bf4811
2020-08-24 21:19:09 -07:00
Hyunyoung Song d9d340c879 Introduce transparency in all apps for OnDeviceSearch
Bug: 165999272

Change-Id: Ic4adf11d030328db47a5b0d1cd915b40902c12de
2020-08-24 20:32:02 -07:00
Tony Wickham 5c460a4663 Fix a couple issues with overview to home transition
- In fake portrait, fade out instead of translating offscreen, as
  the orientation doesn't map to where RecentsView actually lives
- From OverviewModalTaskState, start from > 1 scale, and use
  OverviewToHomeAnim (to ensure RecentsView doesn't fade out etc)
  - To keep parameter list sane, added RecentsParams to
    AnimatorControllerWithResistance which has the new startScale
    (set to current scale for modal state) and renames the old
    RecentsParams to RecentsResistanceParams. Sorry if that's
    confusing.

Bug: 144170434
Change-Id: Id36ebde440b398159cef50d95822627fca761527
Merged-In: I437f0d18cad4c94feea25954aed3390acedcaed5
2020-08-24 23:29:14 +00:00
Tony Wickham b5493b90bc Fix a couple issues with overview to home transition
- In fake portrait, fade out instead of translating offscreen, as
  the orientation doesn't map to where RecentsView actually lives
- From OverviewModalTaskState, start from > 1 scale, and use
  OverviewToHomeAnim (to ensure RecentsView doesn't fade out etc)
  - To keep parameter list sane, added RecentsParams to
    AnimatorControllerWithResistance which has the new startScale
    (set to current scale for modal state) and renames the old
    RecentsParams to RecentsResistanceParams. Sorry if that's
    confusing.

Bug: 144170434
Change-Id: I437f0d18cad4c94feea25954aed3390acedcaed5
2020-08-24 16:27:00 -07:00
Sunny Goyal 92623be9df Merge "Merging from ub-launcher3-master @ build 6782663" 2020-08-24 20:09:03 +00:00
TreeHugger Robot 3cc22175e9 Merge "Moving hotseat predictions to ModelDelegate" into ub-launcher3-master 2020-08-24 18:42:01 +00:00
Tracy Zhou 0734a3625d Merge "Get rid of grid options pref" into ub-launcher3-master 2020-08-24 17:40:01 +00:00
Tracy Zhou af8516254e Get rid of grid options pref
Missed this one last time

Test: N/A
Change-Id: I7ecfa72f2f358342ea9f8296cdc5d0187498426b
2020-08-21 23:44:20 -07:00
Tony Wickham c6de53b911 [automerger skipped] Merging from ub-launcher3-rvc-qpr-dev @ build 6777894 am: 0486a03832 am: b6d56531c2 -s ours
am skip reason: Change-Id I0bb722c8f29e91cb382337f8b11bcf43d711949b with SHA-1 9c407861ad is in history

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

Change-Id: Ie7d264e7c6cd304aa5a67f63e043efc9a5950f09
2020-08-22 06:43:31 +00:00
Tony Wickham b6d56531c2 Merging from ub-launcher3-rvc-qpr-dev @ build 6777894 am: 0486a03832
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12413394

Change-Id: Iefbcc71d3af5867973a7fc41fe6f31dff905946f
2020-08-22 06:16:33 +00:00
Sunny Goyal 9136897b65 Merging from ub-launcher3-master @ build 6782663
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6782663.html

Change-Id: I649c4d931b84c1e8e22a58fa92b92c76f5222451
2020-08-21 14:35:09 -07:00
Tony Wickham 0486a03832 Merging from ub-launcher3-rvc-qpr-dev @ build 6777894
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-qpr-dev_rvc-qpr-dev_6777894.html

Change-Id: I4a4a422b2f70c2107c21161c662a4aac3fee7903
Merged-In: I0bb722c8f29e91cb382337f8b11bcf43d711949b
2020-08-21 19:07:27 +00:00
TreeHugger Robot ec50c06c99 Merge "Remove USER_EVENT_DISPATCHER feature flag Bug: 165675920" into ub-launcher3-master 2020-08-20 22:17:16 +00:00
TreeHugger Robot 3a624f8127 Merge "Prevent crash when display is already removed by the time we get displayAdded" into ub-launcher3-master 2020-08-20 17:12:05 +00:00
Sunny Goyal 43ad0c2e0b Prevent crash when display is already removed by the time we get displayAdded
Bug: 165165662
Change-Id: I5486b17a0a7235c922c4b5ebfa2cdc39303a8243
2020-08-20 09:33:28 -07:00
Sunny Goyal fb720b6fc6 Merge "Disabling notification dots for Launcher3Go" into ub-launcher3-master 2020-08-20 07:52:25 +00:00
TreeHugger Robot 8d65ab8c81 Merge "Hide IME when scrolling happens on all apps screen/scroller" into ub-launcher3-master 2020-08-20 05:36:37 +00:00
Hyunyoung Song f269542929 Remove USER_EVENT_DISPATCHER feature flag
Bug: 165675920

Change-Id: I56fc4833f7e83dc2babffdb1f7c17c7ba39558a8
2020-08-19 21:24:07 -07:00
TreeHugger Robot a96f44b853 Merge "Using persisted item storage for install queue." into ub-launcher3-master 2020-08-20 04:16:37 +00:00
TreeHugger Robot 53a2814f88 [automerger skipped] Merge "Allow swipe up to go home from overivew during task dismiss animation" into ub-launcher3-rvc-qpr-dev am: ba9717199f -s ours
am skip reason: Change-Id I28b846b43260179aeac877351a7069743f66f3ea with SHA-1 5af9c3537d is in history

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

Change-Id: I9e4e8550df0aec3f7c8e922588f1a172c72e522b
2020-08-20 03:22:37 +00:00
TreeHugger Robot 62a68e07f1 [automerger skipped] Merge "Set new scrimMultiplier instead of scrimProgress for overview -> home" into ub-launcher3-rvc-qpr-dev am: 93f595fd5a -s ours
am skip reason: Change-Id I44b57ced1c6902e558fe1818bcbf11ceb4ff2f6f with SHA-1 b176dc99b2 is in history

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

Change-Id: I65662244e20a6c7a51ceafb8838a8be129dd1fcc
2020-08-20 03:22:27 +00:00
TreeHugger Robot ba9717199f Merge "Allow swipe up to go home from overivew during task dismiss animation" into ub-launcher3-rvc-qpr-dev 2020-08-20 02:59:58 +00:00
Tony Wickham 9c407861ad Merging from ub-launcher3-master @ build 6777814
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6777814.html

Change-Id: I0bb722c8f29e91cb382337f8b11bcf43d711949b
2020-08-19 19:59:27 -07:00
TreeHugger Robot 93f595fd5a Merge "Set new scrimMultiplier instead of scrimProgress for overview -> home" into ub-launcher3-rvc-qpr-dev 2020-08-20 02:59:26 +00:00
Tony Wickham ff20eae383 Allow swipe up to go home from overivew during task dismiss animation
Test: go to overview, dismiss a task, swipe up to go home during the
transition (easier to try with animation duraation scaled up)

Bug: 144170434
Change-Id: I28b846b43260179aeac877351a7069743f66f3ea
Merged-In: I28b846b43260179aeac877351a7069743f66f3ea
2020-08-20 02:50:36 +00:00
Tony Wickham 375c602fc0 Set new scrimMultiplier instead of scrimProgress for overview -> home
Animating this new property allows us to adjust the scrim without
competing with other state animations that could be setting the
scrim progress. Also reset scrimMultipler = 1 for state transitions.

Test: Swipe from home to overview, then during that transition swipe
from overview to home; when the former transition ends while the
second is still in progress, ensure scrim value doesn't jump

Bug: 144170434
Change-Id: I44b57ced1c6902e558fe1818bcbf11ceb4ff2f6f
Merged-In: I44b57ced1c6902e558fe1818bcbf11ceb4ff2f6f
2020-08-20 02:49:30 +00:00
TreeHugger Robot 7658071d27 Merge "Set new scrimMultiplier instead of scrimProgress for overview -> home" into ub-launcher3-master 2020-08-20 02:24:56 +00:00
TreeHugger Robot 255ee17ce8 Merge "Allow swipe up to go home from overivew during task dismiss animation" into ub-launcher3-master 2020-08-20 02:19:23 +00:00
Pinyao Ting 840ad8e8bb Minimal Phone Mode (part-3) am: 96186aff87
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12219772

Change-Id: I27cb81fdb6cc1a5535aec3b259acda16106e084f
2020-08-20 02:03:17 +00:00
Tony Wickham b176dc99b2 Set new scrimMultiplier instead of scrimProgress for overview -> home
Animating this new property allows us to adjust the scrim without
competing with other state animations that could be setting the
scrim progress. Also reset scrimMultipler = 1 for state transitions.

Test: Swipe from home to overview, then during that transition swipe
from overview to home; when the former transition ends while the
second is still in progress, ensure scrim value doesn't jump

Bug: 144170434
Change-Id: I44b57ced1c6902e558fe1818bcbf11ceb4ff2f6f
2020-08-19 18:42:00 -07:00
Tony Wickham 5af9c3537d Allow swipe up to go home from overivew during task dismiss animation
Test: go to overview, dismiss a task, swipe up to go home during the
transition (easier to try with animation duraation scaled up)

Bug: 144170434
Change-Id: I28b846b43260179aeac877351a7069743f66f3ea
2020-08-19 18:34:13 -07:00
Sunny Goyal 104c9d1206 Using persisted item storage for install queue.
Shared prefs are loaded during startup and should avoid large objects

Change-Id: Ibb5c8307dbccb9414b42454825e6c3c2a972efa6
2020-08-19 17:38:58 -07:00
Sunny Goyal 63d327442c Disabling notification dots for Launcher3Go
Bug: 164457095
Change-Id: If751719a698785957d37b4656a0132d2b56b64f9
2020-08-19 17:04:38 -07:00
Pinyao Ting 96186aff87 Minimal Phone Mode (part-3)
Introduces a separate database for minimal device mode.

When minimal device mode is enabled/disabled:
1. WellbeingModel receives onChange event from ContentObserver
2. WellbeingModel called DWB's ContentProvider for latest state in
minimal device mode
3. Based on the state, WellbeingModel calls LauncherProvider to put
launcher into normal/minimal mode.
4. When going from normal -> minimal, Launcher switches to a different
database, namely minimal.db, then proceed to database initialization.
5. If the database hasn't been initialized yet, Launcher will call
ContentResolver#openInputStream with following uri:
content://com.google.android.apps.wellbeing.api/launcher_layout
to get the default layout xml.
6. The default layout is then saved in database, and the database is
considered initialized and doesn't need to go through step 5 again in
the future.
7. In case of minimal -> normal, Launcher switches back to its original
database (e.g. launcher.db if the grid size is 5x5), then reload launcher.

Bug: 161462256
Change-Id: I6bafa66440da23281f63454b698ea56b15960022
2020-08-19 14:58:20 -07:00
Tracy Zhou c5eedfb387 Merge "[Live Tile] Tapping home in Overview does not take user back to app" into ub-launcher3-master 2020-08-19 21:55:26 +00:00
Samuel Fufa dc4545ec29 Merge "Introduce support for play results in launcher" into ub-launcher3-master 2020-08-19 16:44:29 +00:00
Hyunyoung Song b9f9d69f67 Hide IME when scrolling happens on all apps screen/scroller
Bug: 161594550

TL;DR;;
- draging an item closes the IME
- clearing a searchbox to empty string has no effect on IME

Change-Id: Ic3a91d1b22434dcb78347dd8b12b5ceab14eb928
2020-08-19 01:20:06 -07:00
android-build-team Robot 8f78892826 Merge cherrypicks of [12405309, 12403860, 12405276, 12405277, 12403960, 12403961, 12403861, 12405327, 12405278, 12404928, 12405287, 12405279, 12405385, 12405280] into rvc-release
Change-Id: I8374e1c849f6e001e97b19a83b33b8cb26ef5b7b
2020-08-19 02:21:22 +00:00
Tony Wickham c7c9e80d58 Store mHistoricTimes as longs intead of floats
The loss of precision was causing us to miscalculate the age of
events, and thus not detecting any pause due to denominator = 0.

Test: have a device that hasn't been rebooted for a certain
amount of time such that SystemClock#uptimeMillis can't be
accurately converted to a float, then try to swipe up and hold

Fixes: 160568387
Change-Id: Idef112187f34a18feea7e6a0b77258626f9d0ed4
(cherry picked from commit a145670969)
(cherry picked from commit 31ef24c934)
2020-08-19 02:19:24 +00:00
Sunny Goyal 15bcf24af6 Fixing wrong velocity state when there are too few samples
Bug: 160568387
Change-Id: I32b3b7ee1bff5595941fc0c0b37c9f5a28d1a1fa
(cherry picked from commit 48afb6b3b9)
(cherry picked from commit f58a2b9cd9)
2020-08-19 02:19:22 +00:00
TreeHugger Robot a92c26b161 Merge "Update worksace page indicator during HINT_STATE transition" into ub-launcher3-master 2020-08-18 23:35:09 +00:00
Tony Wickham 1fbab3ad2c Update worksace page indicator during HINT_STATE transition
Test: Scroll to workspace page 2, then swipe up from the nav bar;
ensure that the page indicator fades in and scrolls to page 1

Change-Id: Ie0157c8e67b94509d3817f7e160d26f505185bbb
2020-08-18 15:12:56 -07:00
TreeHugger Robot 217dbfea01 Merge "Removing static state management from the install shortcut queue" into ub-launcher3-master 2020-08-18 22:00:23 +00:00
Samuel Fufa 114de69c98 Introduce support for play results in launcher
Introduces PluginSearchPipeline class, a plugin listener for AllAppsSearchPlugin. Coverts from List<Bundle> results from callback to AdapterItems to be rendered in SearchController.
- Moves AdapterItem to AllAppsGridAdapter

Bug: 164699827
Test: Manual
Change-Id: I20ec147e6b3f4707cf69d62b4b4ac70a90196345
2020-08-18 11:34:09 -07:00
Tony Wickham af97d88f12 [automerger skipped] Merging from ub-launcher3-rvc-qpr-dev @ build 6770831 am: fa9675a32e am: 096d179081 -s ours
am skip reason: Change-Id I5e9c73a7ac3033fe82006c4bd72824f56b8988f8 with SHA-1 4595166bf5 is in history

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

Change-Id: I2c81d6bc4b60c7ac923ca57d1c6150ac89d70d13
2020-08-18 15:50:53 +00:00
Tony Wickham 096d179081 Merging from ub-launcher3-rvc-qpr-dev @ build 6770831 am: fa9675a32e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12398196

Change-Id: I4f0a01aeff214a31f5dec23f1a1aff41e220b758
2020-08-18 15:32:27 +00:00
Tracy Zhou f9abe7bcbd Update rect in LiveTileOverlay via copying
Probably a recent change updates the rect when reaching overview, which wasn't happening before. Regardless, we shouldn't have copied the rect by reference since the referenced copy can be changed.

Fixes: 165143463
Test: manual
Change-Id: I9315a20226f0a4b3440ce5ee6cc1f4ed1ddca487
2020-08-17 22:27:55 -07:00
Tony Wickham fa9675a32e Merging from ub-launcher3-rvc-qpr-dev @ build 6770831
Bug:150504032
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-rvc-qpr-dev_rvc-qpr-dev_6770831.html

Change-Id: Ic07dd8bd495cd0e013a00a29d9d9f11e246dc568
Merged-In: I5e9c73a7ac3033fe82006c4bd72824f56b8988f8
2020-08-18 04:59:10 +00:00
Sunny Goyal 0fc3d1275a Moving hotseat predictions to ModelDelegate
Bug: 160748731

Change-Id: I8db7856a17e0b6ca45b4d5ec3513f788f22db11a
2020-08-17 08:43:07 -07:00
Mehdi Alizadeh 4595166bf5 Merging from ub-launcher3-master @ build 6767682
Test: manual, presubmit on the source branch
x20/teams/android-launcher/merge/ub-launcher3-master_master_6767682.html

Change-Id: I5e9c73a7ac3033fe82006c4bd72824f56b8988f8
2020-08-16 12:31:21 -07:00