71 Commits

Author SHA1 Message Date
MrSluffy
b4bc798b50 fixed google feed
- closes : #4698 #4239 #4201
2024-12-04 12:47:47 +08:00
Sunny Goyal
4a22ed81ea Using resource overrides for PluginManager instead of code-swap
Bug: 330920490
Test: Presubmit
Flag: None
Change-Id: Ib1cd50f95873928b9ce104e8e95d21f1dca9c6e3
2024-04-12 11:38:32 -07:00
Sunny Goyal
dc7cdd8b0c Sending original motion events to launcher overlay along with inferred values
Bug: 273828110
Flag: aconfig use_activity_overlay disabled
Test: Manual
Change-Id: I23cd72a964a647a0fd830befa096f3328e12ff8a
2024-02-13 16:26:37 -08:00
Sunny Goyal
d24d33925a Using WidgetInflater in loader task
This removes duplicate logic for widget inflation.
Since the widget inflation can now happen during loader,
the restore logging can also be moved completely to the loader

Bug: 318539160
Test: atest TaplBinderTests
Flag: None
Change-Id: If9f336e7bf49ee7df121d7d9852b674d98124895
2024-01-14 00:56:51 -08:00
Sunny Goyal
e82a20a44d Removing some dependencies on Activity
> Removing activtiy from overlay callbacks
> Removing usage on activtiyLifecycleCallbacks and managing the callbacks ourselves

Bug: 306225896
Test: Existing tests cover the lifecycle changes
Flag: N/A
Change-Id: I79941e364328eecdc8a72cac4d35b75d50a25319
2023-10-30 08:23:15 -07:00
Sunny Goyal
576f7a5e80 Removing some usage of shared prefs
Bug: 301661768
Test: Presubmit
Flag: N/A
Change-Id: I158e9a5148d2c9404ea4d2e9e239696b29dbeb20
2023-10-06 14:35:56 -07:00
Sunny Goyal
81039b2d73 Removing unused interfaces from Launcher
Bug: 301661768
Test: Presubmit
Flag: N/A
Change-Id: Ia042805080bd314efff5a9bb4877f4f830fb3998
2023-10-03 10:19:39 -07:00
fbaron
30d9e3fb06 Add smartspace custom widget
Flag: SMARTSPACE_AS_A_WIDGET
Test: no test
Bug: 200721106
Change-Id: I4ae4ff72ff7267bab0b5a928f3f78b47f7cfbc1f
2023-09-07 20:27:59 +00:00
Sunny Goyal
82379187ea Adding support for multiple overlay callbacks
Bug: 193244407
Test: Presubmit
Change-Id: Ic345972056752238e7e46226533fd8f33d664213
2022-11-03 14:37:40 -07:00
Sunny Goyal
80a071be2b Updating interface name to avoid AS build errors due to name conflict with SysUI
Bug: 152086714
Test: Verified building locally
Change-Id: I348d7672bda76f6cffc975cb44916c5867d9728d
2021-12-27 13:31:40 +05:30
Hyunyoung Song
4a77efe99d Add setSuggestOnChrome method to OneSearch interface
Bug: 205872450
Test: manual
Change-Id: Ib1513111e5d633d7504a386036b44e5e1ee0e1a9
2021-12-09 12:36:20 -08:00
sfufa@google.com
226843cde1 [Search] Introduce notifyEvent api in OneSearch plugin
Bug: 204243851
Test: presubmit
Change-Id: Idba665419038f743f3d977602dab44d270f94642
2021-11-09 16:41:52 -08:00
Becky Qiu
75c97f534b [OneSearch] Increase API version number for the one search plugin.
Bug: 199289915
Test: manual
Change-Id: I540730e067ce70956d2c3c8bb6336e8b6bd97713
2021-10-28 17:47:45 -07:00
Becky Qiu
aa9a446b76 [OneSearch] Add onesearch plugin api to trigger image from URL.
Bug: 199289915
Test: manual

Change-Id: Ib96de90f87214ea7bd224d0c543cc9578527366e
2021-10-27 19:08:47 -07:00
Sunny Goyal
0ecfb69596 Removing overscroll pluging support
Bug: 201677812
Test: Presubmit
Change-Id: Id8136e99746946ba840754ef8e71a4574f49938e
2021-10-06 11:23:46 -07:00
Zak Cohen
323b1e4f43 Remove RecentsExtraCard plugin hook.
This plugin hook never really worked properly. The touch handling was
always a bit off and it complicates the code.

Bug: 201460301
Test: Local
Change-Id: I19401be18f859b3bdf408a2e4aacd95ca95d35cc
2021-09-28 16:11:56 -07:00
Zak Cohen
0ba6058f8c Remove screen actions plugin
Bug: 201115460
Test: local build
Change-Id: I22774e464d1230fffff3d512b0b906f999d51080
2021-09-24 23:11:18 +00:00
Becky Qiu
9cbbc3a4b6 [OneSearch] Update the plugin interface to include more answer data.
Bug: 196586652
Test: tested with OneSearchPlugin.
Change-Id: I5c645828b83f1fe5b3bd2f71911b30e22909d56f
2021-09-09 15:19:24 -07:00
Becky Qiu
a499fd4f93 [OneSearch] Add a clear function in the plugin to clear cache and memory.
Bug: 196586652
Test: manual
Change-Id: I094cefadda0a958b0059820f1c02ddf0298abbd8
2021-09-03 11:15:01 -07:00
Becky Qiu
f5eea6c1ac [AA+ Search] Create the plugin interface for search suggest.
Also removed the internet permission for Launcher3 and moved it to the plugin.

Bug: 196586652
Test: tested with plugin

Change-Id: Id36e037d7520e29c1989adf9c451488d7e9c96e1
2021-08-25 16:09:13 -07:00
Andy Wickham
3ac2aab373 Moves BcSmartspaceDataPlugin to SystemUI.
Its new home is:
frameworks/base/packages/SystemUI/plugin/bcsmartspace/src/com/android/systemui/plugins.

Test: mp droid, mp sysuig, gradle build for Launcher
Bug: 182344603

Change-Id: I840e0da0d2bd32d94d72fbb4a10c70d21c823326
2021-03-12 01:44:19 +00:00
Andy Wickham
19ab177d1b Adds CONTAINER_QSB to be used for QSB data.
Also updates some related generics definitions for
better/simpler compile-time checks.

Bug: 178536734
Test: Manual
Change-Id: If439b64ad968f62674f856fd3ff465bf21cc9204
2021-02-11 22:16:24 -08:00
Andy Wickham
350e1dbb0f Creates BcSmartspaceDataPlugin interface to provide mock data to BC Smartspace.
Bug: 178536734
Test: Manually using implementation in SupportApp
Change-Id: Ia1cfbbf2944ca5f92e9e7144076eb15878e164d1
Merged-In: Ia1cfbbf2944ca5f92e9e7144076eb15878e164d1
2021-02-05 01:37:48 +00:00
Hyunyoung Song
7239df7258 Support shorter height row layout / Disable ICON_SLICE
Bug: 178815297
Bug: 178128837
Bug: 178823469

Test: manual, attached screenshot on the bugreport

Change-Id: Ie69c8928f5acc430320cfc5c85547195866e829e
2021-02-03 01:25:16 -08:00
Samuel Fufa
1ab83de48e Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: I3b597faaad38e8cd1419065b80b359720baf52b0
2021-01-29 15:48:08 -06:00
Darryl Johnson
170a6b7b98 Revert "Support people search results"
This reverts commit f28db55c96.

Reason for revert: Possible cause of b/178836393

Change-Id: I0e787f02377a5b8fa723816978c61927af67665a
2021-01-29 20:51:38 +00:00
Samuel Fufa
f28db55c96 Support people search results
+ Introduce temporary workaround icon loading with URLConnection for play results

Manual: go/search-action-icon

Bug: 177223401
Test: Manual
Change-Id: Ie8e7963447640d98abb9830ec05f26b28ec58345
2021-01-29 12:49:12 -06:00
Samuel Fufa
a60d1f9be7 Migrate from Plugin SearchTarget to API search Target [2/3]
- Adds support for android.app.search.SearchTarget in plugin while maintaining plugin SearchTarget support
- Introduces SEARCH_TARGET_LEGACY temporary to switch between plugin and sdk variants.
- Maps resultType and layoutType pairs to the appropriate view

Bug: 177223401
Test: Manual
Change-Id: If8d4bb7c21c47a12447dcb0c56eed8781bd21e54
2021-01-13 12:35:51 -06:00
Hyunyoung Song
caa1e9c399 Search query method should support multiple consumers
Bug: 170488559
Change-Id: I64bef9523d3c3950c4ca3a4b9ce1d506d1672200
2020-10-19 22:09:10 -07:00
Samuel Fufa
1f79eeda76 Remove hardcoded itemTypes from SearchTarget
- Introduces componentName and userHandle members to SearchTarget
- SearchTargetEvent now has searchTarget member
- Builder pattern for SearchTarget and SearchTargetEvent
- Search backend should add headers manually instead of launcher inferring sections

Bug: 171026321
Test: Manual
Change-Id: I28e0455e82b925277a17703b9aa061c8f9f15262
2020-10-17 15:41:45 -07:00
Hilary Huo
de9a5e109d [pixel-search] Change Nasa actions title name
Change-Id: I3e44513d797d867b97664ff2ee46a8e33d020e99
2020-09-29 15:31:04 -07:00
Hyunyoung Song
f271139682 Thumbnail/Suggest view type support remote action
Bug: 169330678


Change-Id: I629d3e6b1622bf71e0174eb2489e976ef98875ad
2020-09-29 02:03:48 -07:00
Samuel Fufa
02be2a43f5 Support Remote actions
Bug: 168846477
Test: Manual
Change-Id: I7b9dc96bc7a8ccb25ccb4b7135880768256f1ef3
2020-09-24 14:28:49 -07:00
Samuel Fufa
f01064953b Track search results with position and search Identifier
Bug: 169087008
Test: Manual
Change-Id: I54c74093b90e5aea03a7810f55fcc32f0ddf8dda
2020-09-23 01:04:26 -07:00
Hyunyoung Song
e62c6edc5e Merge "Add thumbnail viewtype to SearchTarget Bug: 168825522" into ub-launcher3-master 2020-09-22 20:12:58 +00:00
Hyunyoung Song
b3a0f1ffc0 Add thumbnail viewtype to SearchTarget
Bug: 168825522

Change-Id: I012665ef5e5ac66f37f9bdb37d55cc47726b29a9
2020-09-22 10:54:33 -07:00
Hyunyoung Song
35a0c59021 Add window focus / visibility changed signals to AllAppsSearchPlugin
Change-Id: Ieb48e398cca85dd4343e37fef0015f5e4fece86f
2020-09-21 15:49:24 -07:00
Hyunyoung Song
5e182b60c6 Add launcher state and activity lifecycle in AllAppsSearchPlugin
Bug: 165678938

Change-Id: Ica7c70ad66dcc1442ff5d0c638aaf0f1ada0fc36
2020-09-16 23:25:51 -07:00
Samuel Fufa
f4eb70c96e Setup logging pipeline for search results
Bug: 168121204
Test: Manual
Change-Id: I4abb6c75aa0f22416616a713733bef2802b703d1
2020-09-10 17:28:42 -07:00
Samuel Fufa
7aa577d883 Show independent shortcuts from Hero view
Test: Manual
Screenshot: https://screenshot.googleplex.com/6iQGEZADXf9PtWz
Bug: 165320033
Change-Id: Ib8db1fc34da4adc39f3bec5557223a1e283380dd
2020-09-08 13:24:46 -07:00
Hyunyoung Song
5191fe9ba0 SearchTarget/SearchTargetEvent API
Bug: 165869384
Bug: 161599758

TL;DR;;
Also introduce some additional methods for
- all apps start and stop
- metrics logging

Change-Id: I666ff5a27a5f8befdb0db483ebb07344a90e96bc
2020-08-28 23:58:23 -07:00
Hyunyoung Song
6b670d62df Good riddance UserEventDispatcher [1/n]
Bug: 165675920
Change-Id: I237ed4243e1724b3c370c5660673bb3966bf4811
2020-08-24 21:19:09 -07:00
Hyunyoung Song
8cac927bdb Hookup existing AllAppsSearchPlugin interface to SearchBarController
Bug: 161801331

Change-Id: Ied575f78ad2139c6818ae5a13467b7399b9ab17a
2020-08-14 03:54:04 -07:00
Sunny Goyal
852537fd98 Using StatsLog for notifyingAppPredictor
> Adding a listener in StartsLogManager for listening to events.
  This allows events to be directored to the predictor only if
  it is already running, instead of creating it.
> Unifying the event format to be same as hotseat predictor

Bug: 160748731
Change-Id: Ib00e6249ff642c030f00bcad5b748255e704d16a
2020-07-16 14:12:15 -07:00
Hyunyoung Song
ef9a6972ce AllAppsSearch interface change Version 3
Change-Id: I79f635582075a1e33e970e4f4eb6ec653572fefe
2020-05-27 17:16:56 -07:00
James O'Leary
74a2746b35 Compose gesture integrated fully into Launcher
- Support dismissing Compose via the reverse gesture from the appear
gesture
- Use Tony Wickham's ag/10204761 with some glue code to enable the
app below Compose panning in the same direction as the gesture as
Compose peeks in
- Add feature flag to use Compose hosted in a window (permits underlying
app panning)
- Use InterpolatingVelocityTracker to fix OtherActivityInputConsumer
processing swipes in the wrong direction ~20% of the time due to a bug
in VelocityTracker (see go/quirky-bubbles)

Change-Id: I3adbaee1763f21557fb628b60d03b0a03e7079ab
2020-05-14 14:18:19 -04:00
James O'Leary
2610bfde05 Revert "Compose gesture integrated fully into Launcher"
Revert "Compose gesture integrated fully into Nexus Launcher"

Revert submission 11035205-compose_gesture_fully_integrated_launcher

Reason for revert: Broke Launcher Android Studio build, quick switch, and home gesture doesn't work if Compose is open.
Reverted Changes:
I2d97b22d5:OverscrollPlugin refactored to use onTouchEvent
Ia19a55f65:Compose gesture integrated fully into Nexus Launch...
I65aa07ac1:Compose gesture integrated fully into Launcher

Change-Id: Ic05c47eb686b3942ba519e76db32977fc568844b
2020-05-07 00:13:47 +00:00
James O'Leary
d9c86d4b3b Compose gesture integrated fully into Launcher
- Support dismissing Compose via the reverse gesture from the appear
gesture
- Use Tony Wickham's ag/10204761 with some glue code to enable the
app below Compose panning in the same direction as the gesture as
Compose peeks in
- Add feature flag to use Compose hosted in a window (permits underlying
app panning)
- Use InterpolatingVelocityTracker to fix OtherActivityInputConsumer
processing swipes in the wrong direction ~20% of the time due to a bug
in VelocityTracker (see go/quirky-bubbles)

Change-Id: I65aa07ac112db8bd89cec9acfa0ce2b6ebacd43f
2020-05-06 13:40:47 -04:00
Hyunyoung Song
3d57cd68db OWNERS file for AllAppsSearchPlugin for version increment
Change-Id: I1aedc9fac5802b3a6344c9ecd758caf8099e5902
2020-05-05 20:56:54 -07:00
Alex Mang
5c6b320057 Listening to progress of all apps transition.
This will be used to synchronize keyboard popup. Also setting edittext before disabling to allow plugin to perform some cleanup

Change-Id: Ib9b4ab33d4292fe5d827c37f33c546a9fe6cb002
2020-05-01 16:47:22 -07:00