Commit Graph

13496 Commits

Author SHA1 Message Date
Brian Isganitis f477ec2032 Refactor allapps.search package to depend on ActivityContext.
Test: Manual
Bug: 216683257
Change-Id: I6230498b24380b37531f8a83db1dc768270e708a
2022-03-18 10:35:10 -07:00
Brian Isganitis 8198cb6f3f Merge "Move activity starting logic into new ActivityContext extension." into tm-dev 2022-03-18 16:43:48 +00:00
Becky Qiu 025bf08e2f Merge "[Avocado] Use device config for arm2 flags instead." into tm-dev 2022-03-17 06:39:54 +00:00
Brian Isganitis bde3c8b6bd Move activity starting logic into new ActivityContext extension.
This code branch is needed for taskbar, so needs to be moved from the
activity classes to an interface that both can share.

Test: Manual
Bug: 216683257
Change-Id: I042c0dcf08207d94847b9d7a1783acc14613ef5f
2022-03-16 13:59:03 -07:00
Alex Chau 3e40089771 Merge "Change grid migration to start from top to bottom" into tm-dev 2022-03-16 18:12:13 +00:00
Becky Qiu 85025d248d [Avocado] Use device config for arm2 flags instead.
Bug: 224861508
Test: manual
Change-Id: Ib42ddb3808cf84ed1511754bf3f8bbcf5d100894
2022-03-15 17:13:56 -07:00
TreeHugger Robot 8dff7ca830 Merge "Close taskbar all apps on popup notification and app info shortcut tap." into tm-dev 2022-03-15 22:57:20 +00:00
TreeHugger Robot 2f06a23ed7 Merge "Fix NPE in BubbleTextView" into tm-dev 2022-03-15 22:18:02 +00:00
TreeHugger Robot e0380381b7 Merge "Add event tracking to the gesture navigation tutorial." into tm-dev 2022-03-15 22:12:29 +00:00
TreeHugger Robot b66fc8b145 Merge "Tune widget picker bottom sheet VisD for large screen" into tm-dev 2022-03-15 21:33:50 +00:00
TreeHugger Robot d21c51c932 Merge "Remove ENABLE_ONE_SEARCH" into tm-dev 2022-03-15 19:26:39 +00:00
Alex Chau d5859e80d7 Change grid migration to start from top to bottom
Fix: 222236363
Test: GridSizeMigrationTaskV2Test
Test: 4x4 -> 4x5/5x5 migration, 5x5 -> 4x5/4x4 migration
Change-Id: Id5d87b5d0bf9d7cc9154de81dd5edfb0ca9fa633
2022-03-15 17:21:24 +00:00
Jon Miranda fe74997235 Fix NPE in BubbleTextView
- Icon can be null when we use BTV for text only

Bug: 223809081
Test: manual
Change-Id: I9efd8e4b420127beb249b20e71ae37c359bb6467
2022-03-15 10:02:39 -07:00
Andras Kloczl 142b054e06 Tune widget picker bottom sheet VisD for large screen
Test: Open widget picker by long pressing the home screen.
Open app specific widget picker by long pressing an app icon
that has widgets. Try both landscape and portrait, also on
phone/tablet/foldable.
Bug: 214215594

Change-Id: I7b4b3a8d7421f1d4df84d49a18b465693a17bd7b
2022-03-15 14:01:59 +00:00
TreeHugger Robot deae9343be Merge "Pass in dbFile from idpGridState for grid migration" into tm-dev 2022-03-14 21:33:16 +00:00
Schneider Victor-tulias b82d945953 Add event tracking to the gesture navigation tutorial.
- Added logs for tutorial step shown/completed and for tutorial skip.
- Added shared preference tracking for tutorial steps completed and for tutorial skip.

Bug:
Test: manual
Change-Id: I47dbdb394db80c5687e98fb034a3883b33f6fd3c
2022-03-14 13:14:05 -07:00
Shikha Malhotra 763fd21b34 Merge "Top row of first workspace screen occupied only when QSB is placed at the top." into tm-dev 2022-03-14 16:53:01 +00:00
Alex Chau 85978e7dc8 Merge "Use overview_actions_height from Resources to calculate OverviewActionsView alignment" into tm-dev 2022-03-14 11:21:32 +00:00
Hyunyoung Song aed4675433 Remove ENABLE_ONE_SEARCH
TL;DR;;
It's no longer bound to the lifecycle of application

Bug: 223750757
Bug: 221956299

Test: device_config commands

Signed-off-by: Hyunyoung Song <hyunyoungs@google.com>
Change-Id: I044bf00fe7272439d2ed4def419f91b4d786fb7a
2022-03-11 09:50:05 -08:00
Shikha Malhotra 7884332174 Top row of first workspace screen occupied only when QSB is placed at
the top.

This CL facilitates making the Feature Flag QSB_ON_FIRST_SCREEN as false
for LauncherLilyGoogle to make sure that that the top row on the first
screen is not blocked for QSB. Hinging it on BuildConfig allows it be
overwritten in LauncherLilyGoogle.

Bug: 208136186
Bug: 188511548

Test: Manually tested that top row of the first screen is not occupied
and does not clear the shortcuts after a power cycle for LauncherLilyGoogle.

Change-Id: I9113e2e2f2c0a160a2e1caf0ef3c5f86c6ec54b8
2022-03-11 13:04:55 +00:00
Hyunyoung Song 234b1e0655 Merge "Revert "Add entry and cursor location in GetSuggestionRequest"" into tm-dev 2022-03-11 06:26:04 +00:00
TreeHugger Robot 3b6ba0d252 Merge "Update using tabs boolean immediately if it changes." into tm-dev 2022-03-11 02:28:52 +00:00
TreeHugger Robot 6b7e469088 Merge "Add taskbar TAPL tests" into tm-dev 2022-03-11 00:00:36 +00:00
Brian Isganitis 84da9622d7 Close taskbar all apps on popup notification and app info shortcut tap.
Test: Manual
Fix: 223659756
Change-Id: I84fd8cd84ccdce5f51874d7356cafac9bfa92004
2022-03-10 15:27:14 -08:00
Jon Miranda e8b174482d Merge "Add debug logs for bad launcher state." into tm-dev 2022-03-10 22:03:37 +00:00
Schneider Victor-tulias fb252e7ce1 Add taskbar TAPL tests
- Added TAPL objects to support TAPL tests for taskbar features
- Added tests for major taskbar features: hiding/showing the taskbar, opening all apps, lauching apps and app deep shortcuts from the taskbar/all apps page, launching apps and app deep shortcuts in splitscreen
- These tests should only run for large devices

Design: go/taskbar-tapl-tests
Test: ran tests locally with invalid configurations and remotely
Bug: 215218813
Change-Id: I3c28c339707467414aa47fa633f87fa0c1fdee57
2022-03-10 13:02:35 -08:00
Jon Miranda 7ebe209c21 Add debug logs for bad launcher state.
Bug:223498680
Bug:221658803

Test: manual
Change-Id: I138a7ab031269009fa8ca492cd0bd48085aa4e68
2022-03-10 20:25:38 +00:00
Alex Chau 19c6eca5c5 Use overview_actions_height from Resources to calculate OverviewActionsView alignment
- startActionView.getHeight() isn't ready when updatePaddingAndTranslations is called, so use overview_actions_height from Resources through DeviceProfile instead.

Fix: 218442870
Test: Restart launcher, go to overveiw from app, rotate and rotate back, overview actions stays in same position
Change-Id: Ia5e234f73100a2f418c17222145a8f993cbfab8a
2022-03-10 20:16:59 +00:00
Sam Gilbert 355bd482c8 Revert "Add entry and cursor location in GetSuggestionRequest"
Revert submission 17128079-suggestionentry

Reason for revert: test monitor determined it broke tests: b/223859070
Reverted Changes:
I838896e2f:Add entry and cursor location in GetSuggestionRequ...
Ic9f5dd35b:Add cursorLocation and entry to GetSuggestRequest

Change-Id: I8a15f61c5ddb37b26d3e06de25f0d5b5b5c89abc
2022-03-10 19:48:31 +00:00
Jon Miranda 7db484396a Merge "Never look for matching view in All Apps when swiping up to go home." into tm-dev 2022-03-10 18:46:51 +00:00
Hyunyoung Song e395453bd9 Add entry and cursor location in GetSuggestionRequest
Bug: 223728521
Test: manual
Change-Id: I838896e2fad2d37c22e665473d59cc1b2c9a14d7
2022-03-09 22:21:50 -08:00
Andy Wickham 2efb7b6247 Fixes a list equality check and adds a refreshResults() method.
Previously, the lists being compared could point to the same
object (e.g. from a separate class like ZeroStateResultProvider),
thus always being equal. This prevented the RecyclerView from
updating in certain cases.

Also added an option new method to SearchUiManager which can be
used to trigger a refresh.

Bug: 207651359
Test: Manual
Change-Id: I9c7f02fcd9dfb91326eccf1d4eb8692904702ab0
2022-03-09 17:17:24 -08:00
Brian Isganitis 5b79bbbcbc Merge "Add support for dedicated executors for package tasks." into tm-dev 2022-03-10 00:29:37 +00:00
Abhilasha Chahal c7115ec833 Merge "Revert "Revert "Extract out common adapter logic to support diff..."" into tm-dev 2022-03-10 00:18:07 +00:00
TreeHugger Robot 8e432009d6 Merge "Make AllAppsEntry and exit events optional." into tm-dev 2022-03-09 23:36:30 +00:00
Thiru Ramasamy fe72583a86 Merge "[OneSearch] Add LAUNCHER_ALLAPPS_SCROLLED event." into tm-dev 2022-03-09 23:11:16 +00:00
TreeHugger Robot d586e1948b Merge "Updating window manager estimation logic:" into tm-dev 2022-03-09 22:24:12 +00:00
TreeHugger Robot 94a54982b9 Merge "Remove stale log statement for b/195430732" into tm-dev 2022-03-09 22:22:15 +00:00
Sunny Goyal 187b16cb91 Updating window manager estimation logic:
> Moving the code from ApiWrapper to Resource overlays for better maintainability
> Accounting for display cutouts in insets estimation
> Using same logic in display controller and view inset dispatching

Test: Verified on device
Bug: 221961069
Change-Id: I78466353563692ce3f7512b0146ef8b61ef14bc0
2022-03-09 11:15:58 -08:00
Schneider Victor-tulias 59534c7a24 Merge "Fixing crashloop where LauncherActivityInfo can be null during icon query." into tm-dev 2022-03-09 18:13:18 +00:00
Abhilasha Chahal 9c7096c8ac Revert "Revert "Extract out common adapter logic to support diff..."
Revert^2 "Fixing AdapterItem import"

1a27c278d6c6594b552b620b4d2b67e68bef23f2

Change-Id: Ia3bf9f0b3aaff0d1e2d102320e917462b38935b2
2022-03-09 17:45:45 +00:00
Sam Dubey a57dc7d402 Merge "Revert "Extract out common adapter logic to support different Al..."" into tm-dev 2022-03-09 17:32:34 +00:00
Sam Dubey 4f1a232cca Revert "Extract out common adapter logic to support different Al..."
Revert "Fixing AdapterItem import"

Revert submission 17044827-tm-dev-216150568

Reason for revert: Broke builds
Bug: 223609269
Reverted Changes:
I53eba3c8c:Fixing AdapterItem import
I1068e75d0:Extract out common adapter logic to support differ...
I24d8e54e8:Fix AdapterItem imports

Change-Id: I931c666db7dcb2c8eef1894b56b59ed688218def
2022-03-09 17:25:15 +00:00
Abhilasha Chahal c19c0f9eab Merge "Extract out common adapter logic to support different AllApps layouts" into tm-dev 2022-03-09 16:25:00 +00:00
Thiru Ramasamy 694407ce08 Make AllAppsEntry and exit events optional.
This change will allow us to skip logging AllApps entry and exit events when entering into AllApps state from QSB.

Bug: 210792253
Test: wwdebug && wwlogcat
Change-Id: I658ff0842c72aa27335d426abaa46435ae312941
2022-03-09 07:14:36 -08:00
Thiru Ramasamy 2f733b6ce9 [OneSearch] Add LAUNCHER_ALLAPPS_SCROLLED event.
* Simplified logcat message
* Log latency events with different tag to help filter event logs from latency logs.

Bug: 210792253
Test: wwdebug && wwlogcat - http://gpaste/6546219850530816
Change-Id: I975a7140d14d3cb45f50d7db64aac3fa83ccd389
2022-03-09 07:14:01 -08:00
Alex Chau fe9a07bb96 Pass in dbFile from idpGridState for grid migration
- IDP can get re-initializeed during grid migration task, causing src/dest dbFile to be the same when prepareForMigration, which fails the migration and causes a wipe
- The fix is to cache IDP state as DeviceGridState, and use DeviceGridState to determine migration, trigger migration and save configuration after migration
- This should avoid migration failure in b/198965093 that causes homescreen wipe. Homescreen icon may still be messed up by the migration, but won't completely disappear

Bug: 198965093
Fix: 223579388
Test: manually trigger grid migration
Change-Id: I9890a6d5d530ff87aed8f601ec7d35a672b7cd46
2022-03-09 14:52:17 +00:00
Alex Chau 8175da9644 Shrink hotseat icons size in large tablet portrait
Fix: 214882090
Test: large tablet shrink hotseat icons size in both orientation
Test: Launcher3 without inline QSB does not shrink hotseat icon size
Change-Id: I5e325924aae056d42f01c08624b97a57359dbf08
2022-03-09 13:36:23 +00:00
Vinit Nayak 824d036378 Remove stale log statement for b/195430732
Fixes: 195430732
Change-Id: I29e2ea3930238da4fe37f73a1368c4d233841cd0
2022-03-08 17:24:38 -08:00
Jon Miranda b42e124f5b Never look for matching view in All Apps when swiping up to go home.
The swiping up gesture will never return an app in All Apps,
so we can ignore All Apps state in those cases.

This fixes an edge case where user swipes up and launcher state
is still in All Apps. This causes us to animate the icon to
where it would be in All Apps, even though by the time the
animation starts we are actually in Normal state.

Bug: 222124240
Test: open app from  all apps then quickly swipe up to go home
Change-Id: I756a870660a397d6629aec82e4f5ec4914ed0669
2022-03-08 16:37:35 -08:00