Commit Graph

13464 Commits

Author SHA1 Message Date
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
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
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
Brian Isganitis
19f2d0dcd4 Add support for dedicated executors for package tasks.
Test: Manual
Bug: 215233405
Change-Id: I4dfdeabc8e38b84187e841c77d6e2ec2ba32aac5
2022-03-08 16:16:21 -08:00
TreeHugger Robot
a33117ddb3 Merge "Widgets - Filter work widgets when Work Profile is paused." into tm-dev 2022-03-08 22:09:11 +00:00
Zak Cohen
8e6c9bbb3e Widgets - Filter work widgets when Work Profile is paused.
Test: local
Bug: 188227318

Change-Id: Icbe6f69de9f3776c88df8c56468531940b54f239
2022-03-08 11:33:46 -08:00
TreeHugger Robot
906e96a68e Merge "Allow icons to take up full width in all cases where width > height." into tm-dev 2022-03-08 19:08:59 +00:00
Schneider Victor-tulias
ed8f41b5e2 Merge "Add method to pause expensive view updates during the app launch aimation" into tm-dev 2022-03-08 18:41:04 +00:00
Jon Miranda
f4f6be6080 Merge "Let BubbleTextHolder extend IconLabelDotView" into tm-dev 2022-03-08 15:58:21 +00:00
Alex Chau
d8a37c2e12 Merge "Use less icons in hotseat when in 3 button nav for tablet" into tm-dev 2022-03-08 11:58:55 +00:00
Becky Qiu
50c49447cc [OneSearch] Add packageId as an int for latency logging.
Enum defined in NexusLauncher.

Bug: 210790418
Test: manual, see log result in the NL cl.
Change-Id: I03a2a9831fc4cf34f3160f098739a7afd2900ec2
2022-03-07 20:51:22 -08:00
Jon Miranda
39334f4013 Allow icons to take up full width in all cases where width > height.
Previously we only let the icons take up the max width if the
device was in vertical bar layout. For tablets this meant
that the icons would be smaller than the actual window crop.

We want the full width in any cases where the profile width
is greater than the height, so created a new method to check for that.

Bug: 203157974
Test: phone/tablet in portrait/landscape
Change-Id: I467f142bac87ec7c3b369c01f8d9c96ddf74fc76
2022-03-07 18:17:50 -08:00
Schneider Victor-tulias
64b3497301 Fixing crashloop where LauncherActivityInfo can be null during icon query.
The previous icon loading path checked that the LauncherActivityInfo was not null and did nothing otherwise. Updating bulk icon loading path to do the same.

Fixes: 223219500
Test: manual
Change-Id: I79b7f15c65183f42ed6a23fec05558c250150cb6
2022-03-07 23:22:29 +00:00
Jon Miranda
a0fb57dc43 Let BubbleTextHolder extend IconLabelDotView
This properly hides just the icon/dot and leaves the
text for All Apps views  during the app launch/exit animation.

Bug: 213306709
Test: open/close apps on workspace, open/swipe back apps in all apps
Change-Id: I327ce3e41298e50e34b8809491fc6d97a89f9f96
2022-03-07 14:45:13 -08:00
Hyunyoung Song
3c8277d161 Merge "ENABLE_QUICK_SEARCH" into tm-dev 2022-03-07 19:16:20 +00:00
Alex Chau
6ed408f59f Use less icons in hotseat when in 3 button nav for tablet
- We have less space on tablets when 3 button nav is enabled because QSB is now inline with the icons. This creates a new attribute to define how many icons should be shown when in that mode. This could be used for other grids in the future as well.
- InvariantDeviceProfile now listens for nav mode changes

Fixes 214882090, 221420204
Test: manual

Change-Id: I012432a1a322c4e5505e46a1198c841ab124aaa6
2022-03-07 18:38:05 +00:00
Alex Chau
86cbea3dc4 Merge "Moving NavigationMode to display controller" into tm-dev 2022-03-07 12:29:53 +00:00
Hyunyoung Song
915a435f13 ENABLE_QUICK_SEARCH
Bug: 213954097
Test: video attached to the bug

Change-Id: Id46ee329df569cccaeda27574c94dbbb6d9fd41f
2022-03-05 23:29:25 -08:00
Sunny Goyal
4403d078a6 Moving NavigationMode to display controller
Navigation mode affects display properties like bounds and
most listeners already had a similar display listener. This
will remove race conditions when managing the two events.

Bug: 221961069
Test: Presubmit
Change-Id: If7a22e006e6b969ecddf075001066809aa72995c
2022-03-04 18:11:33 -08:00
Schneider Victor-tulias
789a6a95cc Add method to pause expensive view updates during the app launch aimation
Fixes: 220922269
Test: Manual
Change-Id: I39066f575c0ddfc4868ab9e27149e2bd9492b39c
2022-03-04 13:59:33 -08:00
Thiru Ramasamy
d7af3cc784 Add support for logging multiple attributes per item.
This change will make use of new attributes field in LauncherAtoms to log multiple item attributes by converting them int array and then writes proto bytes into statsd.

Test: wwdebug && wwlogcat http://gpaste/5985977337118720
Change-Id: Iabda0b14100558f5625d01ba829d3ad96a6419fc
2022-03-04 08:40:44 -08:00
Thiru Ramasamy
b097f24610 Adds StatsLatencyLogger library.
Test: build NexusLauncherDebug; wwdebug && wwlogcat
Change-Id: Ib1f1aeb78d1cb930ca680439341de6be5e5be2dd
2022-03-03 17:33:24 -08:00
Sunny Goyal
ed6d3a47c0 Merge "Separating refresh rate tracking to a separate class" into tm-dev 2022-03-03 23:00:29 +00:00
Brian Isganitis
221b2d7d5e [conflict] Merge changes from topic "presubmit-am-4c8411152aef49f099eee419e063b01e" into sc-v2-dev-plus-aosp am: 087e879b25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/16943984

Change-Id: I46336888da6b90649c6def8fbc10c8032f4f2821
2022-03-03 18:21:46 +00:00
Becky Qiu
2ad875afa4 Merge "[OneSearch] Arm2 - Add feature flags." into tm-dev 2022-03-02 21:57:44 +00:00
Becky Qiu
1684d7a739 [OneSearch] Arm2 - Add feature flags.
Added 2 flags to control web suggestion position and whether use fallback app results.

Bug: 213953197
Test: no test needed
Change-Id: Ia11c8bc9493fa4d61ced6982e7cac538201f1be2
2022-03-01 23:35:31 +00:00
Alex Chau
031a77022b Intercept workspace touch when Launcher is in AllApps bottom sheet
Fix: 217571715
Test: Can't scroll workspace when AllApps bottomsheet is up
Test: Can still scroll AllApps bottomsheet down
Change-Id: I116f082ec6a6892cf5c7d0e1388a5771e6fdc4a6
2022-03-01 20:00:36 +00:00
Abhilasha Chahal
6badc405ad Extract out common adapter logic to support different AllApps layouts
Test: Manual tests. Refactoring, all existing tests should pass.
Bug: 216150568
Change-Id: I1068e75d0b4a33d402a7d68e237d2484ab3a1e01
2022-03-01 13:08:54 +00:00
Luca Zuccarini
76263c2d35 Merge "Ensure that the Hotseat respects the margins of the QSB." into tm-dev 2022-03-01 10:21:36 +00:00
TreeHugger Robot
8dfc9872b4 Merge "Add flag for One Search support in Taskbar All Apps." into tm-dev 2022-03-01 03:34:18 +00:00
Sunny Goyal
6bc4257d86 Separating refresh rate tracking to a separate class
Bug: 221961069
Test: Presubmit
Change-Id: I04091ebc9f3d88d2dbbde1bf0d5390c815e026d1
2022-02-28 17:13:00 -08:00
Brian Isganitis
407403315d Add flag for One Search support in Taskbar All Apps.
Test: No
Bug: 216683257
Change-Id: I7a705827f165f60c444bb27c55cdfb6b635215d2
2022-02-28 14:33:47 -08:00
TreeHugger Robot
094a4bdd48 Merge "Removing some unnecessary layout calls in TaskView" into tm-dev 2022-02-28 22:16:30 +00:00
Luca Zuccarini
5c65febbb6 Ensure that the Hotseat respects the margins of the QSB.
Before this change they were ignored by onMeasure(), so that the QSB
couldn't rely on margins for its positioning.

Bug: 217477426
Test: manual
Change-Id: Ifecd3d40ea584273b7857d19b25a90dbafe1c656
(cherry picked from commit 410c75a442)
2022-02-25 17:00:07 +00:00