summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/model
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | Merge "Fixing wrong check for grid migration" into ub-launcher3-masterTreeHugger Robot2017-02-161-1/+1
|\ \
| * | Fixing wrong check for grid migrationSunny Goyal2017-02-151-1/+1
| | | | | | | | | | | | Change-Id: I0475512302fd185fcd984d032cf19b34df3f8840
* | | Adding some logging around launcher grid when device profile changesSunny Goyal2017-02-151-0/+18
|/ / | | | | | | | | Bug: 35349518 Change-Id: Ia71504cd37749f8eaa5e038ac2867bcd9749a4bb
* | Merge "Making methods in PaackageManagerHelper non-static" into ↵TreeHugger Robot2017-02-091-2/+2
|\ \ | | | | | | | | | ub-launcher3-master
| * | Making methods in PaackageManagerHelper non-staticSunny Goyal2017-02-021-2/+2
| |/ | | | | | | | | Bug: 34112546 Change-Id: Ia3db3e2f56d26e314000e302b51e6d38607c525d
* / Clean up around 1) Log.VERBOSE and 2) dumpHyunyoung Song2017-02-011-0/+34
|/ | | | | | | | | b/31772480 Note: in the follow up CL, I will add the dump result of the bgDataModel to a proto Change-Id: I5261cff0fb29cedd1dd772b8b15f67095ad5b967
* Fixing loadWorkspaceSunny Goyal2017-01-241-0/+14
| | | | | | | | > Adding checks on legacy shortcuts > Checking restore status based on package and not componentName Bug: 34123342 Change-Id: I442699e4ebb34ae66aa25c512bfcdc1b4fd5ae2a
* Adding support for new APIs in O related to configurable shortcutsSunny Goyal2017-01-192-12/+12
| | | | | | | | > Config activities can now return PinItemRequest which can be used to pin deep shortcuts Bug: 33584624 Change-Id: Ic0df436bd79e069615b9d60d24eb7594b824b2da
* Adding support for requesting addition of shortcut/widgetSunny Goyal2017-01-181-1/+6
| | | | | | | on the workspace. Bug: 33584624 Change-Id: I664366822fe8088742faff2cce006239ab0771bc
* Moving icon generation out of ShortcutInfo constructor so that itSunny Goyal2017-01-182-0/+5
| | | | | | can be created on the UI thread Change-Id: If84e52041eb4ab20807f5cfd4b7f31d7b5f381ed
* Only marking items not already restored as restoreSunny Goyal2017-01-131-6/+17
| | | | | | | > Moving the restore property to LoaderCursor Bug: 34123089 Change-Id: I1f992ef086d65e0b3cf18d3b2cf37a4f254c97d2
* Removing promiseIntent property from ShortuctInfoSunny Goyal2017-01-123-8/+4
| | | | | | | | > Instead of checking promiseIntent != null, using isPromise() for consistency > Fixing bug where clicking a pending icon does not launch anything > Fixing bug where draging an icon on Info target, permanently hides the icon Change-Id: Ic8f6b56042dba42d5ed9aedb0f5947186e1a4208
* No more LauncherActivityInfoCompatSunny Goyal2017-01-111-2/+2
| | | | | Bug: 32745285 Change-Id: I00f13794d5dc0a2b1fe03ec74de36018f22eb386
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-115-25/+23
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Refactoring some loadWorkspace logic in a separate classSunny Goyal2017-01-101-0/+445
| | | | | Bug: 34112546 Change-Id: I8a43ed1646056aa1957ac3d6ea82018691df6386
* Updating PendingAppWidgetHostView to load icon on the background threadSunny Goyal2017-01-051-1/+1
| | | | | Bug: 21325319 Change-Id: I0886eec5a3f36f5e1ac18020c54891a56bdb5ed2
* Simplifying IconCache access codeSunny Goyal2017-01-036-25/+10
| | | | | | | | Providing a way to access icon cache without LauncherAcitivtiyInfo. This allows fetching LauncherActivityInfo only when required, thus avoiding system RPC when the icon is already in cache. Change-Id: I92918c7a0d0d0796e5f7b70d4ecb6787c52c6600
* Removing all compatibility code below LollipopSunny Goyal2016-12-162-9/+8
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* No more UserHandleCompatSunny Goyal2016-12-1510-32/+34
| | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* Ensuring that ShortcutInfo always has an iconSunny Goyal2016-12-132-12/+15
| | | | | | | | | > Making iconBitmap public instead of a getter (similar to AppInfo) > Removing getIcon() which can lead to IO on UI thread > Removing updateIcon and handling the update at the caller Bug: 21325319 Change-Id: I6a49b9043f974e9629ea25e77012d97cc04c0594
* Merge "Adding a generic method to initiate overridable objects" into ↵Sunny Goyal2016-12-121-1/+1
|\ | | | | | | ub-launcher3-master
| * Adding a generic method to initiate overridable objectsSunny Goyal2016-12-121-1/+1
| | | | | | | | Change-Id: Ia433427c65ad38804f2eed9c6bc209df232758c0
* | Adding support for app widgets in the InstallQueueSunny Goyal2016-12-121-10/+12
|/ | | | | Bug: 32904959 Change-Id: I0d07a0c59d266493ae30a42579c1fa69b805009e
* Adding support for deep shortcuts in Install queueSunny Goyal2016-12-031-3/+7
| | | | | Bug: 32904959 Change-Id: Ida43bcf78da716defdf95eb704c31973bc390ea1
* Merge "Moving ShortcutInfo creation in InstallShortcutReceiver to background ↵Sunny Goyal2016-11-301-7/+9
|\ | | | | | | thread" into ub-launcher3-master
| * Moving ShortcutInfo creation in InstallShortcutReceiver to background threadSunny Goyal2016-11-301-7/+9
| | | | | | | | | | | | | | > Creating shortcut info requires iconCache access Bug: 21325319 Change-Id: I3317d8b6824aa05b836f3ed3626f169d4d34f783
* | Merge "Changing DeepShortcutManager to have a singleton contructor instead ↵Sunny Goyal2016-11-213-6/+7
|\ \ | | | | | | | | | of getting it from LauncherAppState" into ub-launcher3-master
| * | Changing DeepShortcutManager to have a singleton contructor insteadSunny Goyal2016-11-213-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of getting it from LauncherAppState This follows the design of other managers and makes it easier to access it from other processes and non-ui thread. Bug: 33032833 Change-Id: I8ad82ae5b6cc47bae885f9896985675c7dd0d5b8
* | | Merge "Adding a utility class to enforce that icons are always flattened on ↵Sunny Goyal2016-11-211-1/+0
|\ \ \ | |/ / |/| | | | | the background thread." into ub-launcher3-master
| * | Adding a utility class to enforce that icons are always flattened onSunny Goyal2016-11-191-1/+0
| | | | | | | | | | | | | | | | | | | | | the background thread. Bug: 21325319 Change-Id: I4d0f02557cdbf70cfa86750ac047faf2917e39bf
* | | Fixing item check when user is enabled/disabledSunny Goyal2016-11-151-5/+6
| |/ |/| | | | | | | Bug: 32747950 Change-Id: I278cbd7626ee30be6b803d617cf05f8359e5d940
* | Merge "Catching TransactionTooLargeException when binding widget." into ↵Sunny Goyal2016-11-151-10/+2
|\ \ | |/ |/| | | ub-launcher3-master
| * Catching TransactionTooLargeException when binding widget.Sunny Goyal2016-11-091-10/+2
| | | | | | | | | | | | | | | | | | A widget can potentially bypass binder size limit with remote views when using partual updates (as the merging happens on the system service). In such a case, show the widget in error state. Bug: 32365088 Change-Id: Id1c4425958a06463273731464e31f05908c35ec7
* | Moving various runnables in LauncherModel to individual tasksSunny Goyal2016-11-097-0/+1109
|/ | | | | | > Adding tests for some of the runnable Change-Id: I1a315d38878857df3371f0e69d622a41fc3b081a
* Updating version check method namesSunny Goyal2016-11-021-1/+1
| | | | Change-Id: If98851677545a9bbb9de308c23ff5c155a61a8bf
* Fixing static instance of Indexer being created in the modelSunny Goyal2016-10-194-238/+19
| | | | | | | | | | | | Indexer depends on the locale and should be created when ever the config changes. Moving the widget indexing to the adapter (similar to allApps) which gets created whenever the activity is recreated. This fixes the bug where widgets indexing breaks if locale changes while launcher process is alive Also fixing the bug in widget model cloning where the HashMap was not cloning the underlying ArrayList Change-Id: I7dbe6290e73299c4c07aa7fa564077a2649e1a4c
* Moving come helper methods to corresponding classesSunny Goyal2016-10-101-0/+40
| | | | | | | | > Moving isPackageEnabled to InstallShortcutReceiver > Moving the deep shortcut map to the data model > Removing appInfo.flags. Instead fetching the flags when needed Change-Id: I654dd8acefa7b7d183b0419afbe112bef001d536
* Separating all the static data in a separate class, BgDataModel.Sunny Goyal2016-09-091-0/+197
| | | | | | | This will allow moving all the Tasks defined in LauncherModel as separate intependent classes Change-Id: I0b2f82b90dc22590eb1cc360a5690e2e7f857b5c
* Moving AppsAvailabilityCheck into a separate classSunny Goyal2016-09-021-0/+88
| | | | Change-Id: Ieea1b5100d63752d928049ad9b1d3b4f84234f0d
* Unifying toString() method for various ItemInfo subclassesSunny Goyal2016-09-011-7/+2
| | | | Change-Id: I7cde42f0df412e2877fb93c77e74ee56a25edead
* Fixing the hotseat import logicSunny Goyal2016-08-241-0/+20
|\ | | | | | | | | | | am: d70ef24233 Change-Id: I1be426419d7a7f044dfd81207c3ee3b1df43b404
| * Fixing the hotseat import logicSunny Goyal2016-08-241-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The import logic following the behavior: Improt everything and force run GridMigrationTask to automatically remove broken icons. This logic would fail for hotseat as the replacement happens before the GridMigrationTask, which will not replace the broken targets appropriately The cl changes some logic only for hotseat import > After import remove any broken icons/empty folders > When adding default icons, only add as much icons as required. Since GridMigrationTask uses weights, it sometimes removes imported icon, if the hotseat size becomes too large. Bug: 30909630 Change-Id: I6ca1f25dac81649794d81aaf82c3c38d1c918d91
* | Comparing widget sizes when sorting if the labels are sameSunny Goyal2016-08-181-1/+12
|/ | | | | Bug: 21441837 Change-Id: Ib0e6d3b84389f900264a0d696d22057426973719
* Adding logic to pull in workspace data from another Launcher3 basedSunny Goyal2016-07-091-40/+64
| | | | | | | | provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package. Bug: 28536314 Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444
* Build fix.Sunny Goyal2016-07-091-1/+0
| | | | | | Missed some traces of key-value backup Change-Id: Ifda94aa27aa53625bfb7ca173c6750c1b2433669
* Removing Key-Value pair backup logic as Launcher now uses full-data backupSunny Goyal2016-06-231-28/+2
| | | | Change-Id: I3bbaec2b33afe8c1da3ca1468c7c733cc3194604
* Merge "Add support for launcher shortcuts." into ub-launcher3-calgaryTony Wickham2016-06-221-4/+6
|\
| * Add support for launcher shortcuts.Tony Wickham2016-06-211-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - This CL has no UI but provides the necessary backing for one. - Adds new item type: ITEM_TYPE_DEEP_SHORTCUT, to distinguish from ITEM_TYPE_SHORTCUT. We can reconsider these names. - Adds ShortcutCache, using LruCache for up to 30 dynamic shortcuts (pinned shortcuts are always cached in a HashMap). - DeepShortcutManager queries for shortcuts and other things like pin them. In a future CL it will use the cache, but for now it simply makes an RPC for all queries. - LauncherModel maintains counts for pinned shortcuts, pinning and unpinning when counts reach 1 or 0, respectively. - LauncherModel maintains a map of components to lists of shortcut ids, which Launcher gets a copy of after it is changed in the background. This will allow us to know how many shortcuts an app has immediately, and query for details as the UI is animating. Change-Id: Ic526f374dd10d72a261bae67f07f098fca8d8bca