summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/model
Commit message (Collapse)AuthorAgeFilesLines
* Fixing widgets not getting restored when the corresponding system app is enabledSunny Goyal2017-09-181-6/+8
| | | | | Bug: 64723295 Change-Id: I143b554087e6ff8cfbdb5f02d53fdcc7a1ce3b12
* Merge "WallpaperManagerCompat should target correct platform Also replace ↵TreeHugger Robot2017-09-111-2/+2
|\ | | | | | | Utilities.isAtLeastO() to static final constant. Bug: 65544683" into ub-launcher3-dorval-polish2
| * WallpaperManagerCompat should target correct platformHyunyoung Song2017-09-111-2/+2
| | | | | | | | | | | | | | Also replace Utilities.isAtLeastO() to static final constant. Bug: 65544683 Change-Id: I39fbea66939d72c31702748716c4e65b4f9bee6a
* | Fixing promise icons not getting restored after the app is installedSunny Goyal2017-09-111-0/+3
|/ | | | | Bug: 65387781 Change-Id: I8f6ca6695ad074a707b574af9499586fdd90d5c1
* Adding support for badging instant app icons.Sunny Goyal2017-08-283-14/+29
| | | | Change-Id: Idc43a1a83e0a93f70879730a0acefbc124f9c0e2
* Integrating suggested app by handling new status flags for shortcut items.Mario Bertschler2017-08-243-5/+16
| | | | | | | | Guarded via feature flag SUGGESTED_APP. Bug: 62483883 Change-Id: I7e0c8a9875bc37c435aa4316b44322a628cd4826
* Simplifying some package matching code by using common itemInfo mathcherSunny Goyal2017-08-174-50/+54
| | | | Change-Id: Ib98d528391e19c0de3fe11304330dfa37710548c
* Fixing duplicate/inconsistent definitions for model and callbacksSunny Goyal2017-08-174-63/+23
| | | | | | | | > 2 implementations for filtering workspace items > 2 implementations for binding widgets > duplicate logic for add and update appInfo Change-Id: Id68a49926af398478deca8ac85ab1f22341a9449
* [automerger] Use deep shortcuts' icons as a fallback when updating am: ↵Tony Wickham2017-07-292-4/+5
|\ | | | | | | | | | | a8ccf09597 Change-Id: I6629a5ca0eed641fc575b67dda39ff63b568f71b
| * Use deep shortcuts' icons as a fallback when updatingTony2017-07-282-4/+5
| | | | | | | | | | | | | | | | | | | | | | We already do this when loading, but now we also do it when getting callbacks that potentially change the shortcut icon. These callbacks first check the pinned shortcut info, but if there is no icon there we now fall back to the current icon instead of the default icon. Bug: 62814533 Change-Id: I777adedf4b7f93dbaddb98a993eda34d59dcc173
* | Adding A feature flag to disable widgets and a corresponding buildSunny Goyal2017-07-211-0/+5
|/ | | | | | | target Launcher3Go without widgets support Bug: 62353159 Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
* Use last saved icon if pinned shortcut is unpublishedTony Wickham2017-06-291-2/+13
| | | | | Bug: 62814533 Change-Id: I683bd6abdf17defc55c0f17d8688951d4841c066
* Log an error when loading an icon failsTony2017-06-271-0/+4
| | | | | Bug: 62814533 Change-Id: I8ea61276225e211c578d31a5fd1591c4fb67d1bb
* Merge "Replace use of java.util.HashMap with android.util.ArrayMap in ↵Rajeev Kumar2017-06-261-6/+4
|\ | | | | | | AddWorkspaceItemsTask class Bug: 62466540" into ub-launcher3-dorval-polish
| * Replace use of java.util.HashMap with android.util.ArrayMap inRajeev Kumar2017-06-141-6/+4
| | | | | | | | | | | | | | AddWorkspaceItemsTask class Bug: 62466540 Change-Id: Iae1e7a639754d08ad7dbb90b20e2e4e205a078f8
* | Merge "1. Get rid of few unnecessary boxing in BgDataModel class. 2. Get rid ↵Rajeev Kumar2017-06-151-5/+5
|\ \ | | | | | | | | | of an unnecessary return statment from BgDataModel class." into ub-launcher3-dorval-polish
| * | 1. Get rid of few unnecessary boxing in BgDataModel class.Rajeev Kumar2017-06-151-5/+5
| |/ | | | | | | | | | | 2. Get rid of an unnecessary return statment from BgDataModel class. Change-Id: I7be47a75d3754bc621cff4af59d5b03cc3e53f10
* | Merge "Fixing FLAG_PROVIDER_NOT_READY not being cleared in LoaderTask" into ↵Sunny Goyal2017-06-151-4/+2
|\ \ | |/ |/| | | ub-launcher3-dorval-polish
| * Fixing FLAG_PROVIDER_NOT_READY not being cleared in LoaderTaskSunny Goyal2017-06-141-4/+2
| | | | | | | | | | | | | | | | If a widget is installed, the provider is always ready. The flag was not being cleared all the time (similar to PackageUpdatedTask). Bug: 62496671 Change-Id: Ia1c0cb3b312a20ed6451baeccb632a5e5f0e3edc
* | Merge "1. Get rid of mWidgetMinSize as the contents of this collection are ↵Rajeev Kumar2017-06-141-9/+7
|\ \ | |/ |/| | | queried, but never updated. 2. Get rid of explicit type arguments that can be inferred 3. Add type argument to variables of type HashSet Bug: 62466540" into ub-launcher3-dorval-polish
| * 1. Get rid of mWidgetMinSize as the contents of this collection areRajeev Kumar2017-06-141-9/+7
| | | | | | | | | | | | | | | | | | queried, but never updated. 2. Get rid of explicit type arguments that can be inferred 3. Add type argument to variables of type HashSet Bug: 62466540 Change-Id: Ia7c9f212dcc760dfa7b1ddcd42f1e6328394d3ee
* | Merge "1. Replace use of java.util.HashMap with android.util.ArrayMap in ↵Rajeev Kumar2017-06-131-5/+3
|\ \ | | | | | | | | | PackageUpdatedTask class 2. Get rid of explicit type arguments that can be inferred" into ub-launcher3-dorval-polish
| * | 1. Replace use of java.util.HashMap with android.util.ArrayMap inRajeev Kumar2017-06-121-7/+3
| |/ | | | | | | | | | | | | | | PackageUpdatedTask class 2. Get rid of explicit type arguments that can be inferred Bug: 62466540 Change-Id: Ifbe4e7d217cea292530f5ced0f4df2ee40c1262c
* / Adding support for loading workspace in the absence of Launcher.Sunny Goyal2017-06-089-15/+89
|/ | | | | | | | | > LoadWorkspace can be called with a LoaderResult which does not bind anything. > Synchronous bind does not look for a valid page id, and will fallback to the current pageId similar to full load flow Bug: 37616877 Change-Id: If14491dc79c5b85ae1019cc93e4e08759df3387d
* Moving LoaderTask to a separate class fileSunny Goyal2017-06-061-0/+839
| | | | | Bug: 34112546 Change-Id: I86d93cfb5d3903bfd3878564cbe8b67b64fd8423
* Moving LoaderTask staticSunny Goyal2017-06-026-31/+62
| | | | | | | | | | | Will move it to a separate file in a followup cl. This simplifies dependencies between LauncherModel and LoaderTask which and making it easier to start the loader before Launcher activity is created (as the Callbacks in LauncherModel can change while loader is running). Bug: 34112546 Bug: 37616877 Change-Id: Ie9619c6b0de0e3eb60657c04ae1b58d946c829e9
* Moving workspace bind logic into a separate class.Sunny Goyal2017-06-011-0/+377
| | | | | | | | | | This change separates the loading and binding code. Eventually workspace loading will not depend on bind and we will be able to preload workspace even before the launcher activity is started. Bug: 34112546 Bug: 37616877 Change-Id: Ia8e661465cb40ad073b5b76adfc74b9e15633b1d
* Simplifying logic for managed for icon additionSunny Goyal2017-05-222-13/+48
| | | | | | | | | | | | | | | | | | | | > Checking for duplicate icons before adding new icons For O and above, icon addition is controlled using SessionCommitReceiver. As long as the Launcher is the default app, it will keep adding icons on the homescreen. Apps installed while launcher was not the default homescreen, no icons will be added. For below O, icons are added based on package event. As long as the Launcher process is running, it will keep adding icons on the homescreen. Apps installed while the launcher app was dead, no icons will be added. Bug: 37528649 Bug: 37082950 Bug: 34112546 Change-Id: Ic99501fa476c00474a479f2a36c24614bfa3f4bf
* Adding support for DB downgradeSunny Goyal2017-05-091-0/+108
| | | | | | | | Adding a schema file for handling DB downgrade. This schema file is part of the backup/restore set, and hence is available on a device with lower app version. Bug: 37257575 Change-Id: I69c8ef5f28d5209be6e6679412c7459d4eeda5d0
* Using package update event as well for restoring promise iconsSunny Goyal2017-05-081-1/+3
| | | | | | | | | > Sometimes a system app can be in disabled state. When the app is enabled or disabled, the system sends onPackageChanged event instead of onPackageAdded/onPackagesRemoved. Bug: 36911898 Change-Id: Id82f70421b95b23f9891c8d4b0b7e0e1d4cddf7b
* resolve merge conflicts of 6f725f283 to ub-launcher3-masterTony Wickham2017-04-201-0/+10
|\ | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: I3559969b62a9a4b1ec04697109636e8cb0fd9fc8
| * Only add widgets system shortcut if widgets existTony Wickham2017-04-201-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | Before we were adding it in a disabled state, and then enabling it once widgets were bound (if widgets existed for that app). Now we load all widgets when launcher starts so that we can use the values for the purpose of animating the popup container. Then, as the container opens, we reload widgets/shortcuts for that particular app and add/remove the widgets shortcut if necessary. Bug: 34940468 Change-Id: I64bd009442d10d3d1f9a977bdedfdb639a7dd193
| * Merge "Launcher dump proto that will be used for:" into ub-launcher3-dorvalHyunyoung Song2017-04-061-4/+104
| |\
| | * Launcher dump proto that will be used for:Hyunyoung Song2017-04-041-4/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | $ adb shell dumpsys activity provider com.android.launcher3/com.android.launcher3.LauncherProvider To see how the proto is filled: go/launcher-proto-dump b/31772480 Change-Id: I8e0f1e5e38148a3dfeabd2fc057392193b2625dd (cherry picked from commit 6aa3729e98502d4cffc40a7e602628b85d558edd)
* | | resolve merge conflicts of 128b7e59a to ub-launcher3-masterTony Wickham2017-04-051-8/+40
|\| | | | | | | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: I927373593dfb1b67b504a76b1ad013357b363a6e
| * | Add support for getting widgets/shortucts for a particular package/userTony Wickham2017-04-041-11/+40
| |/ | | | | | | | | | | Bug: 34940468 Bug: 33553066 Change-Id: I5d0131df206c6a13d4227ad28c5b094bbf1343df
* | Minor Refactoring only: no functional changeMario Bertschler2017-03-288-10/+6
| | | | | | | | | | | | | | | | - organizing imports - remove redundant modifiers on LauncherCallback interface - fix typos Change-Id: I61eb985cac7c1379b6b804a67d4f234386d3d1b4
* | resolve merge conflicts of 40dfa3bf6 to ub-launcher3-masterSunny Goyal2017-03-271-18/+0
|\| | | | | | | | | Test: I solemnly swear I tested this conflict resolution. Change-Id: Iee500631827ebc48c63c203fdcd0de888adcb135
| * Revert "Adding some logging around launcher grid when device profile changes"Sunny Goyal2017-03-201-18/+0
| | | | | | | | | | | | | | Bug: 35425060 This reverts commit c29de857807680bf72ebd386cbec716b33d64780. Change-Id: I4320be3473f914289f88c8cbb376a68af006d7de
* | Enable Promise App Icon in All Apps.Mario Bertschler2017-03-213-16/+28
| | | | | | | | | | | | | | | | | | - feature flag defaults to true - avoid adding additional workspace shortcut if promise shortcut already exists - handle promise app removal in package added callback for success case Change-Id: I694701e35cc94481a9c337df3a17b1e5aa2c3b4c
* | Show promise app icon progress in All Apps and setup market intentMario Bertschler2017-03-201-6/+5
| | | | | | | | | | | | | | | | | | | | | | on clicking promise app icon in All Apps. Only the progress will be changed with animation on progress update, no relayout is performed. If the icon is newly bound, the progress will not be animated. Bug: 23952570 Change-Id: I98d3f945f08a2abadf53f20e6007c15e56d5d410
* | Show promise app icon in All Apps while installation process.Mario Bertschler2017-03-171-1/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | This CL only modifies the model and is behind a feature flag which per default is set to false. The app icon will appear as a promise icon, it reacts on icon or label changes and the icon will be remove on finishing the installation process. With this CL the progress of the installation process is not visible. Bug: 23952570 Change-Id: I510825d0b0b1b01eb14f7e50f0a2358b0d8b99b5
* | Merge "Separating the config and flags in different directories so that it ↵TreeHugger Robot2017-03-072-9/+4
|\ \ | | | | | | | | | is easier to override one or the other" into ub-launcher3-master
| * | Separating the config and flags in different directories so thatSunny Goyal2017-03-072-9/+4
| | | | | | | | | | | | | | | | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* | | Removing DeferredHandler and using a simple Handler to post callbacksSunny Goyal2017-03-071-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | DeferredHandler was added when we were posting each icon separately, to prevent starvation. But since then we have moved to binding batct items during bind. Also fixing waitForIdle not waiting the second time. waitForIdle was using a global variable to maintain state, and was not waiting properly when its called the second time before binding deep shortcuts Original Change-Id: I9c1289cb3bfb74f86e53ec7ac6dd76bb39666b2d Change-Id: I9e6b3ae65fbd3aec3a46092efc5249c4525efedf
* | Merge "Launcher dump proto that will be used for:" into ub-launcher3-masterHyunyoung Song2017-03-021-4/+104
|\ \ | |/ |/|
| * Launcher dump proto that will be used for:Hyunyoung Song2017-03-011-4/+104
| | | | | | | | | | | | | | | | | | $ adb shell dumpsys activity provider com.android.launcher3/com.android.launcher3.LauncherProvider To see how the proto is filled: go/launcher-proto-dump b/31772480 Change-Id: I8e0f1e5e38148a3dfeabd2fc057392193b2625dd
* | Fixing SDCard and package enabled state checks in PackageManagerHelerSunny Goyal2017-03-011-1/+1
|/ | | | | Bug: 32365540 Change-Id: Iaac3e08ce55457ebbfb3633514ebc8ade6d200c5
* Merge "Separating methods for updating the model to a sepatate class." into ↵TreeHugger Robot2017-02-165-15/+386
|\ | | | | | | ub-launcher3-master
| * Separating methods for updating the model to a sepatate class.Sunny Goyal2017-02-165-15/+386
| | | | | | | | | | | | | | Removing static access to model update methods, to allow for better access control and testing Change-Id: I9afe004dbf1b2fe50df422fd28bceea9230a4704