summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherCallbacks.java
Commit message (Collapse)AuthorAgeFilesLines
* Fixing interactive state for background states andSunny Goyal2019-05-301-1/+5
| | | | | | | | | | | notifying LauncherCallback accordingly During quick switch Launcher can get resumed only to be paused again when launching a new app. Updating the logic for deferred resume to account for that and moving some additional calls to deferredResume Bug: 134062513 Change-Id: Ia607f178bc17d45d53fb032a06cd70f9abc6b513
* Adding support for showing predicted apps as a floating row in all-appsSunny Goyal2019-04-231-6/+0
| | | | | | | and overview Bug: 130053407 Change-Id: Idb93a0ba6cfea8406f75ab86d9e0acde2fc04b3a
* Moving some callbacks from LauncherCallbacks to OverviewCallbacksSunny Goyal2018-05-011-9/+0
| | | | | Bug: 78780639 Change-Id: I90f868c741834efbe542367bdc3539f6d14f1939
* Passing stateHandler information to the callbackSunny Goyal2018-04-241-1/+1
| | | | | | Bug: 78478167 Bug: 78478567 Change-Id: Ie3334c4473037c31d87bda950239c628e219dc46
* Adding a utility class to simplify main process initialization.Sunny Goyal2018-02-131-1/+0
| | | | Change-Id: I796cf758d2a25cf8fd5f9a9b78a7977fd54ca451
* Adding callback to notify LauncherCallbacks when quickstep startsSunny Goyal2018-02-071-0/+8
| | | | | Bug: 73081875 Change-Id: Ieccba6ecb16553ed5211f277b49e9f2ed2d7c745
* Replacing some method definitions with default platform implementationsSunny Goyal2017-12-061-2/+0
| | | | Change-Id: I32e007ca0edc4a1e12b19fdb8c8c08df4109b0f4
* Fixing double state changes when using an InternalStateHandlerSunny Goyal2017-11-151-1/+0
| | | | | | | > Removing duplicate state handling on onCreate and onNewInetnt when InternalStateHandler is active > Changing PinItemDragListener to use IntenalStateHandler Change-Id: I42dcf82d1180c49430c6cf0b85d47072c4498ecc
* Removing some obsolete callbacksSunny Goyal2017-10-061-9/+0
| | | | Change-Id: I3cf19a13ff145923f2973e23c24033f196324aa3
* Removing predicted apps reset on every onResumeSunny Goyal2017-10-041-5/+0
| | | | | | | | Predicted apps should be pushed by the called whenever they change instead of Launcher polling them on every UI update. Bug: 67305604 Change-Id: Ibd3d809b09b7d8fd39036f69367e8580fb90dcef
* Removing support for CustomContent screenSunny Goyal2017-09-081-7/+0
| | | | | | | The supported way to customize Launcher and add a "-1 page" is by using LauncherOverlays. Custom content screen is no longer supported. Change-Id: I3f8a2734c287d1a69ae0c038ec1de1d45fa1b464
* Updating the all-apps discovery bounce animationSunny Goyal2017-08-291-2/+0
| | | | | | | | | > Animation plays on every onResume > Updating animation to loop continuously on v23+ > Updating animation spec Bug: 64331951 Change-Id: Ic6fb8d6975b37f5b010fc585329cba615296f5c7
* Integrating suggested app by handling new status flags for shortcut items.Mario Bertschler2017-08-241-2/+2
| | | | | | | | Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
* Adding listener support for color extraction changesSunny Goyal2017-05-091-2/+0
| | | | | | | | Changing the apps-search layout to use theme attribute instead of hard coded layout id Bug: 37616877 Change-Id: Iae601758303f83a2774635f0d88f74d99fc643c3
* Moving apps search related logic into a custom layout fileSunny Goyal2017-05-081-10/+0
| | | | | | | | This will allow derivative projects to easily change the search behavior by simply overriding the xml file Bug: 37616877 Change-Id: Ib8d6a2dab06819a52611e9a3d97c70c5a49bbf97
* Updating color extraction to include wallpaper theme color.Sunny Goyal2017-04-261-0/+2
| | | | | | | Also adding mathods and callbacks to pass the related data to the callbacks. Bug: 37616877 Change-Id: I7512cac7a603e8e5a05ec3a360c9eec493344b00
* Minor Refactoring only: no functional changeMario Bertschler2017-03-281-42/+40
| | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* Moving Event dispatcher definition from LAuncher to BaseActivity so thatSunny Goyal2017-02-271-1/+0
| | | | | | | it can be used in other activities as well. Bug: 34766840 Change-Id: Ie4b723483792bee93fb75e63146ebea7dfeebeda
* Simplifying the startSearch call in launcher callbacksSunny Goyal2016-09-131-3/+5
| | | | Change-Id: I722e110903cced237f05667c4d711468d7cd3daa
* Moving the scrim to draglayerSunny Goyal2016-08-231-4/+0
| | | | | | | | | | | > This causes the scrim to animate with the content on first launch > Also removing the logic to disable scrim based on state. That logic was only executing onResume which could lead to an invalid state Bug: 30972956 Bug: 30576826 Change-Id: Ia8386b303ce260f69e3b3b93041226f409301a01
* Animate discovery bounce for all apps pull up interactionHyunyoung Song2016-07-211-0/+2
| | | | | | | | | | | b/30221381 > Will not support landscape case. If the user knows how to enable rotation, it's very unlikely they don't know how to bring up apps drawer > If unlocked using finger unlock immediately after screen is turned off, bounce is not shown due to delay in ACTION_SCREEN_OFF broadcast Change-Id: Ia8b7e572eaa4aeab8b1add1e5660fee3a63ba21c
* Chaning the behavior of settings activity.Sunny Goyal2016-05-021-2/+0
| | | | | | | | > Making all twoState prefs backed by content provider > Using the stadard intent defined in N for settings > Using SharedPrefsListener instead of LauncherProvider Change-Id: I8272f54aa780bc0436e3d0aa89096a4bd2a9194f
* Define a set of methods on Launcher which can be safely called externallyAdam Cohen2016-04-261-0/+16
| | | | | | | -> The methods are defined by an interface, LauncherExterns, which Launcher implements Change-Id: I61362761f5d90fbc3011ce000944768d5ab29d43
* Refactor UserEventDispatcher (1/2)Hyunyoung Song2016-04-191-2/+2
| | | | | | b/28269657 Change-Id: I1083e6f73f42ac1986428a39c6b532050e595ac6
* Removing some deprecated callbacksSunny Goyal2016-04-141-24/+0
| | | | Change-Id: I3361383fe19faa64d862bbf879edb8c09937dc6f
* Refactor UserEventLogging, Add predictedRank, replace Bundle with ProtoHyunyoung Song2016-04-131-2/+1
| | | | | | | | | | | | | | b/26494415 - Removed bundle object that became redundant now that we have LauncherEvent proto - Combined Stats and UserEventLogger as they are effectively doing same thing - Removed parent field inside Target - added predictedRank target inside Target b/27967359 - make com.android.launcher3.action.LAUNCH broadcast explicit Later CL: finish packageName/intent/componentHash/predictedRank fields Change-Id: I441fb46c834f73e58a4d2324e8da7971e8713ec8
* Removing dependency on wallpaper size settings from launcherSunny Goyal2016-03-171-0/+1
| | | | | | | > Moving wallpaper desired width calculation to xml Bug: 14470153 Change-Id: I8803af158861507a40e5d55e9aa6d515be47eefa
* Add getUserEventLogger to LauncherCallbacksHyunyoung Song2016-03-081-0/+2
| | | | | | b/26494415 Change-Id: I8abaaf1269c12435a523e31bf769991018ea5c02
* Adding overlay interaction supportSunny Goyal2016-02-251-0/+2
| | | | | | | > Sending unboundX to the overlay which is the total untranslated X and not just deltaX from last frame > Handling overlay callback and translating workspace accordingly Change-Id: I3bd8d9efac738e9ce131758f0e5ff1b9c1d6a8fc
* Cleaning up the overlay interfaceSunny Goyal2016-02-231-27/+0
| | | | | | | Removing some unnecessary and unused methods Bug: 25993953 Change-Id: I4d715cdee04eb7b0ebef673d885a4258c521ff1f
* <UserEventLogging> Log app launchesHyunyoung Song2016-02-191-3/+16
| | | | | | | | | | | | | | | | | | | b/26494415 1) Current Logger can capture taps from - homescreen - folder inside homescreen - apps prediction - all apps a-z - tap from hotseat 2) Deprecate LauncherCallback methods that is no longer needed Future CL. 3) Stats and Logger will be merged. Bundle used for Stats can be replaced with LauncherLogProto 4) Logging anything else other than app launches Change-Id: Id52eb615f66142017b5c490a220ce6654d325681
* Removing LauncherCallbacks control over app searchSunny Goyal2016-02-181-0/+1
| | | | Change-Id: Icb199607dea3f169055e44946272aa9f1e758d1d
* Add LauncherCallbacks method to add additional search widget options.Tony Wickham2015-10-161-0/+1
| | | | | Bug: 25000458 Change-Id: I5e8d48617568569bc6e4f284749c3ed9fb20a68f
* Added launcher callback to specify search bar height.Tony Wickham2015-10-081-0/+3
| | | | | | | | The search bar can now be be normal or tall. When it is set to tall, the hotseat and page indicators move down so that the workspace isn't compressed quite as much. Change-Id: Id92a946eab3a93524999f92efd847a501a95f002
* Adding market search.Winson Chung2015-08-061-0/+1
| | | | Change-Id: Id41615653cd4fa76213add4595418ad0cc6e7852
* am 79f25bed: Merge "Add LauncherCallbacks for requesting permissions on MNC" ↵Dave Hawkey2015-06-291-0/+2
|\ | | | | | | | | | | | | into ub-launcher3-almonte * commit '79f25bedd2ed13613323b085b46b9b42aee21696': Add LauncherCallbacks for requesting permissions on MNC
| * Add LauncherCallbacks for requesting permissions on MNCDave Hawkey2015-06-261-0/+2
| | | | | | | | Change-Id: Ia8f704590e03e16db04c2f7acee1e79ce7334749
* | Refactoring fast scroller.Winson Chung2015-06-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | - Fixing issue with fast scroller not fitting name width. - Refactoring fast scrolling/scroll bar code out of base recycler view - Adding animations to fast scroller to match design - Smooth scrolling when jumping between app rows - Fixing issue with fast scroller jumping when you first pick it up - Fixing issue with wrong background paddings being used Bug: 21874346 Bug: 22031923 Change-Id: I9f011b1f375751f437604b900e95a2942d3f4601
* | Moving predicted apps callbacks to use ComponentKey.Winson Chung2015-06-181-1/+2
| | | | | | | | | | | | Bug: 21270185 Change-Id: If2d9dd77235e7a96de96a1a5441a589ef8a72a7f
* | Refactoring all apps search to support external search bar.Winson Chung2015-06-151-12/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Adding support for an external search bar that can be used to search a container view. This adds a new interface AllAppsSearchController which manages the external search bar. Each controller will have its own search implementation which means that we no longer need a common AppSearchManager interface. - Removing elevation controller as we no longer have a builtin search bar in all apps - Refactoring container view insets so that they behave the same in all containers. - Refactoring apps view to ensure that we only update the number of columns with the available width - Cleaning up LauncherCallbacks interface Bug: 20127840 Bug: 21494973 Change-Id: I710b8e18196961d77d8a29f0c345531d480936fe
* | Adding context for app launches.Winson Chung2015-06-021-0/+2
| | | | | | | | | | Bug: 21492784 Change-Id: I1b28ac8f44498e1d9770e770b074f19c721c3f10
* | Introduce LauncherSearchCallback to handle search overlay status.Jun Mukai2015-05-121-0/+7
| | | | | | | | | | Bug: 20011047 Change-Id: I93cab4e0614b9658b4b657dd98dca68d42580e63
* | Initial changes to support predicted apps.Winson Chung2015-05-111-0/+2
| | | | | | Change-Id: I80117d51074fe3dbdbb8d81cae886b1dffdfb86a
* | Launcher-side changes to support prediction bar.Winson Chung2015-05-041-0/+1
| | | | | | | | Change-Id: Ib9974ad8888ad87137c774f9f531fae9d56b899a
* | Initial changes to support a fixed all-apps layout.Winson Chung2015-04-091-0/+10
|/ | | | | | | | | | - Dynamically update padding and background depending on fixed bounds and searchbar - Fixes issue with drag layer bg getting clobbered when rotating launcher - Tapping outside the bounds of all apps should close all apps - Fixing typo causing widgets to not show in sw720dp devices Bug: 20127840 Change-Id: I29c3f905bdee940f938ffe054f58434887073092
* Adding Launcher3 callbacks for trimming memory.Robert Kozikowski2015-03-301-0/+1
| | | | | | | | | | | | | | | | It will help reduce memory footprint of Launcher, when in background. It is required to help deallocate images, when Google Now Launcher goes into the background. See cl/83222937/ . Plan after this CL: - Generate drop CL with launcher3_drop.sh. Add empty metods to make code compile. - Sync the cl/83222937 and hide the code behind the feature flag. It was previously submitted in ag/628070 and reverted in ag/630423 due to GSA release schedule. Change-Id: I56eee618b86d518d0afc362b6cf44c3bbec1f19c
* Revert "Adding Launcher3 callbacks for trimming memory."Adam Cohen2015-02-061-1/+0
| | | | | | This reverts commit 42f3b9e0283c30c40c286f9958ce0f8b02f85c52. Change-Id: I65a7c893576c0901b231bab9abe6937f99415f1e
* Adding Launcher3 callbacks for trimming memory.Robert Kozikowski2015-02-041-0/+1
| | | | | | | | It will help reduce memory footprint of Launcher, when in background. It is required to help deallocate images, when Google Now Launcher goes into the background. See cl/83222937/ . Change-Id: I6d3d4d1f0457c67abcad3ba4516c87abcf666b05
* Allow LauncherOverlay to access and manage insetsAdam Cohen2014-10-241-2/+2
| | | | Change-Id: Ib9faf37eb22ad2a0b18c076978ec9f2fd8864c0c
* First pass of the Launcher Overlay interface / implAdam Cohen2014-10-221-0/+19
| | | | | | | -> Added simple reference launcher extension -> Make launcher able to handle a null qsb Change-Id: Ib1575243cac800a335e95bbf00cdc394bb4741c3