summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherProvider.java
Commit message (Collapse)AuthorAgeFilesLines
...
* No more UserHandleCompatSunny Goyal2016-12-151-3/+3
| | | | | Bug: 32745285 Change-Id: I762fb4e268c1afe48a1860ab12a4ccb3f626aa95
* Fixing wrong message sent on app widget host resetSunny Goyal2016-11-291-1/+1
| | | | Change-Id: If5842d4ebbf3fa0ef8596f22788f909748f01ac5
* Alienating QSBSunny Goyal2016-10-181-11/+4
| | | | | | | | | | | | | > Moving all QSB widget handling code in a separate package > QSB is handled on a separate host, independent of the main host. This allows us to safely reset either of the two hosts > Also removing the logic around closeSystemDialog: Launcher does not use any panels which need closing System sends an onActivityResult(RESULT_CANCELLED), we do not need special handling for waitingForResult > Fixing bug when auto-generated qsb widget id was not being saved Change-Id: I2d889b7b1c80b14785d14f35624142a4b78452de
* Moving come helper methods to corresponding classesSunny Goyal2016-10-101-1/+1
| | | | | | | | > 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
* Moving some image handling classes to .graphics packageSunny Goyal2016-09-021-6/+1
| | | | Change-Id: Id6d3d0b9c345a503ff2e09f073eb4b6449e21c7e
* Improve handling of external deletion in LauncherProvider.deleteLouis Begin2016-08-161-3/+26
| | | | | | | | | When deleting a widget, ensure that we also delete the corresponding widget from the system server Bug 30835877 Change-Id: I7d539c2d37ef53086d09ae128f7278941f804aeb
* Adding logic to pull in workspace data from another Launcher3 basedSunny Goyal2016-07-091-0/+6
| | | | | | | | provider. This allows OEMs to keep the user's homescreen intact while changing the default home app package. Bug: 28536314 Change-Id: Ibebfd7dd33aa2cbd9ca28d2d611dd0a4a5971444
* Removing Key-Value pair backup logic as Launcher now uses full-data backupSunny Goyal2016-06-231-10/+0
| | | | Change-Id: I3bbaec2b33afe8c1da3ca1468c7c733cc3194604
* Adding some tracing sections around launcher startupSunny Goyal2016-06-201-0/+11
| | | | | Bug: 29007436 Change-Id: I53afd9130a2dc70a2223f1623e862faf44370f26
* Adding a DB update path to handle the QSB position changeSunny Goyal2016-06-151-5/+10
| | | | | | | | > Renamed the id of 1st screen to 0 and making space for the QSB by running the grid migration task. > Added a feature flag to easily disable the QSB-in-workspace behavior Change-Id: Ie3369f0d4433d916e9d6215d414770d4333f3e26
* Executing the DB migration during startup instead of restore.Sunny Goyal2016-06-081-2/+11
| | | | | | | This allows proper execution of DB.onUpgrade task if the app updates after the restore Change-Id: I4c40167b30e1d7040b3a38be70d834f7b215e540
* Moving the QSB to the workspace grid.Sunny Goyal2016-05-271-3/+10
| | | | | | | | | | | | The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a
* Removing logic for workspace migration from Launcher2Sunny Goyal2016-05-231-279/+0
| | | | Change-Id: I8a121d74862f665c58406f8d5c7eb1263e7ccff3
* Making the 'Allow rotation' setting dependent on system stateSunny Goyal2016-05-161-22/+0
| | | | | | | | | | | The setting will not be available on a tablet, where rotation is always enabled. On mobiles, it will be disabled when auto-rotate is disabled in display settings. Also removing content provider dependency from settings, as its in the same process as launcher. Bug: 28704055 Change-Id: Ibe6b1e67411fb0e4b2e36446710f463e4a3d6883
* Removing icon_type columnSunny Goyal2016-05-111-4/+0
| | | | | | | | | Icon type is not used consistently. It is used initially during the loader. Afterwards, we save both the icon and resource to the db. Instead of changing the logic to always read the shortcut-resource first, and fallback to the bitmap if the resource is not available, always write the bitmap to DB whenever the shortcut is edited. Change-Id: I0ea5e88f8904bd3250ca669220b3e5d6aeef1bfd
* Adding full backup handler for launcher3Sunny Goyal2016-05-101-26/+3
| | | | | | Bug: 28302573 Change-Id: If0889a3b00b88b134b19d7f790159dfafdcdb004
* Removing LauncherProvider dependency in DatabaseHelerSunny Goyal2016-05-101-194/+145
| | | | | | This will allow DatabaseHeler to easily be moved to an independent class Change-Id: I9a3d5d3380ed0af246d7a01553a492467c3096b0
* Chaning the behavior of settings activity.Sunny Goyal2016-05-021-11/+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
* Removing some deprecated columns.Sunny Goyal2016-04-211-3/+0
| | | | | | | Removing these columns will ensure that new installs do not get this column, without affecting the upgrades. Change-Id: If06edcd2f899f30b5427c07e72a170ccefc32dd6
* Added ColorExtractionService and ExtractedColors.Tony Wickham2016-04-011-6/+36
| | | | | | | | | | | | | | | - Launcher has an instance of ExtractedColors, which is loaded from LauncherProvider in onCreate() and whenever the wallpaper changes. - When the wallpaper changes, the ColorExtractionService is started in the :wallpaper-chooser process. - ColorExtractionService builds an ExtractedColors instance and saves it as a String in LauncherProvider. - When the results are saved, Launcher gets a callback through LauncherProviderChangeListener and reloads the ExtractedColors. - Whenever Launcher loads Extractecolors, it also re-colors items (currently a no-op). Change-Id: I319e2cfe0a86abcbc6bb39ef6b9fbbcad54ad743
* Fixing broken instrumentation tests when run from command lineSunny Goyal2016-03-181-19/+16
| | | | Change-Id: I923cdbaaaf18c9b765d1e70122b92cd2c1621e06
* Creating database without localized collators on NYC and aboveSunny Goyal2016-03-171-2/+4
| | | | | | | | | | | Android automatically creates and maintains a metaData table to store the current device locale. This is used when fetching sorted results. Since Laucher does not require string based sorting on its tables, we can avoid unnecessary IO by disabling this feature Bug: 24608776 Change-Id: I8bbf5ca3abd505be95a85cfc99dd0438966575e9
* Preserving the homescreen rotation setting on a tablet, when the display is ↵Sunny Goyal2016-02-231-3/+8
| | | | | | | scaled Bug: 27040652 Change-Id: I07f5e02443379ac5b877f72d33cedf4f2feca926
* resolve merge conflicts of b171e5675b to ub-launcher3-calgary.Sunny Goyal2016-01-291-0/+3
|\ | | | | | | Change-Id: I329c7518d8c3f0f43e96c6446d5b53a6f4439211
| * Adding a method to throttle backup manager callsSunny Goyal2016-01-291-0/+3
| | | | | | | | | | | | | | Notifying backup manager when a boolean preference changes Bug: 22885775 Change-Id: I105013af1841f6cd87472f558fa490670ed1ba24
* | Adding support for migrating the grid between any two valid screens sizes.Sunny Goyal2016-01-201-15/+43
| | | | | | | | | | | | | | | | The grid is migrated in steps where each step consists of at max one column change and at max one row change. Adding some unit tests for GridMigrationLogic Bug: 25958224 Change-Id: Ie54e872ea0925cc4c463edbba0a7201d62b373a0
* | resolve merge conflicts of ffa1237698 to ub-launcher3-master.Sunny Goyal2015-12-181-1/+1
|\| | | | | | | Change-Id: I65beecb5bbbfe9c4b33d6ca639118cb615c4120a
| * Using SharedPrefenrece.apply instead of commit to prevent disk IO on main threadSunny Goyal2015-12-171-2/+1
| | | | | | | | | | Bug: 25903149 Change-Id: Ib1ee3fd27cca14f147f704aec768a330c4f03b33
* | resolve merge conflicts of e5ef3d2e9b to ub-launcher3-master.Sunny Goyal2015-12-101-14/+2
|\| | | | | | | Change-Id: I37cbbe4f51cc0a8de8071434020ec1553241da85
| * Clearing DB instead of deleting the DB file.Sunny Goyal2015-11-301-8/+1
| | | | | | | | | | | | | | > Deleting a file/reinitializing the openHelper variable is not thread safe and can cause the sqlite instance ot go in an invalid state Change-Id: I54d992c7e3daee82e6dad38d6bfbfcbf8ede506c
* | Moving DB creation to background threadSunny Goyal2015-12-081-43/+54
| | | | | | | | Change-Id: I5404edd8df7160108c230d245f34bf8e24173619
* | resolve merge conflicts of 7bce5f7988 to ub-launcher3-master.Sunny Goyal2015-11-241-0/+4
|\| | | | | | | Change-Id: Id352ce219bed7701956bb462ea2dd0a5aebe7317
| * Tying LauncherAppState lifecycle with LauncherProviderSunny Goyal2015-11-241-0/+4
| | | | | | | | | | | | | | The content provider is the first component started with the main process, which makes it ideal for initiating LauncherAppState Change-Id: I03db82a8949ad1376af53a0033592f421dbf0b15
* | Making all provider calls using content resolver.Sunny Goyal2015-10-201-34/+51
| | | | | | | | | | | | This will allow us to easily move db creation out of onCreate Change-Id: Idd949624b0a9c95e4451e48db7764b7b7922c40a
* | resolve merge conflicts of fe3db428ab to ub-launcher3-master.Sunny Goyal2015-10-201-20/+7
|\| | | | | | | Change-Id: Icc60a61f621fefe9db67b178921e62f7d72d7e5a
| * Refactoring getPreferenceKey methodSunny Goyal2015-10-201-20/+7
| | | | | | | | | | | | This method was returnning a constant and getting inlined by proguard. Change-Id: I87348e25b21483adc1b27d16f99dec4b73205701
* | am 6fb929e0: Verifying that the table was successfully created during ↵Sunny Goyal2015-10-071-42/+62
|\| | | | | | | | | | | | | initialzation * commit '6fb929e0038a9d03b60540fdbf6b6914146f7b21': Verifying that the table was successfully created during initialzation
| * Verifying that the table was successfully created during initialzationSunny Goyal2015-10-061-42/+62
| | | | | | | | | | | | | | | | | | Table creation sometimes fails scilently, which leads to a crash loop. This way, we will try to create a table every time after crash, so the device would eventually be able to recover. Bug: 24263894 Change-Id: Ic0169d33f4092042423afa24320182786c544d47
* | Adding some information in bug reportsSunny Goyal2015-10-011-16/+7
| | | | | | | | | | | | | | | | > Dumping workspace items > Dumping loader logs for crashes and data deletion > Removing unnecessary log dumps Change-Id: Ia320988c2e3665e4d605d6e88bca77738e749273
* | am c74e4197: Restoring provider behavior for reloading app on old devices ↵Sunny Goyal2015-09-091-4/+16
|\| | | | | | | | | | | | | > For older devices, launcher will only reload in case of inserts with specific query parameters > For older devices, launcehr will notify content observers of any internal inserts > Chani * commit 'c74e41973a74aa416e16aeadaa2f491153da26bc': Restoring provider behavior for reloading app on old devices > For older devices, launcher will only reload in case of inserts with specific query parameters > For older devices, launcehr will notify content observers of any internal inserts > Chaning TAG for Launcher provider as max logging tag is only 23 characters
| * Restoring provider behavior for reloading app on old devicesSunny Goyal2015-09-091-4/+16
| | | | | | | | | | | | | | | | | | > For older devices, launcher will only reload in case of inserts with specific query parameters > For older devices, launcehr will notify content observers of any internal inserts > Chaning TAG for Launcher provider as max logging tag is only 23 characters Bug: 23821706 Change-Id: I32891387612d967c41ddae848c43dc4b1de1b0e9
* | resolved conflicts for merge of 9fc953b9 to ub-launcher3-masterSunny Goyal2015-08-171-1/+1
|\| | | | | | | Change-Id: Ia3e845a2e336c846cceefdc2d1e8c6786753f1b1
| * Version code cleanupSunny Goyal2015-08-171-1/+1
| | | | | | | | | | | | | | | | > Renaming Lmp to Lollipop > Lollipop_MR1 instead of directly using 22 > Using M APIs directly instead of reflection Change-Id: I10a307f46e3be15b3299f549a2fd7e0e215a6a1b
* | Removing some eclipse warningsSunny Goyal2015-08-171-7/+0
|/ | | | Change-Id: I160feaee81b262be02446885fae643c0be71b7af
* Reloading launcher whenever there is an external update to contentprovider, ↵Sunny Goyal2015-08-131-13/+16
| | | | | | irrespective of the uri Change-Id: If1a06da57171be30adb74f09ac256a8b03ab8549
* Homescreen migration from a larger grid to a smaller grid.Sunny Goyal2015-07-311-1/+1
| | | | | | | | | | | | Adding support for restoring from a larger device, if the grid size difference is not more that 1. During restore add all the items in the DB, and run a one-time migration the next time launcher starts. The migration strategy is defined in ShrinkWorkspaceTask.java which involves resizing, moving and removing some items. Change-Id: I6ee411f6db5bf0152b527e16146a88c56dec2d97
* Fixing shortcuts not getting migrated to app iconsSunny Goyal2015-07-131-1/+1
| | | | | Bug: 22410445 Change-Id: I939c59270529daf51638aa30b30763c18a2ce6a5
* Fixing backup restoreSunny Goyal2015-06-251-1/+1
| | | | | | | | | | | | | | | > Not deleting icons from cache, which have not been restored yet > Not checking if activity exists during DB migration. Missing components are removed during loader anyway > Backing up and restoring bitmaps even when iconType is resource. This allows us to show a proper bitmap icon, until the correct resource is available. > Loading proper shortcutResource icon for promiseIcons > Checking against promise intent when verifying duplicates > A launcher App intent can contain EXTRA_PROFILE Bug: 22094970 Change-Id: I982971338846733833ec133119393af0bea0eb08
* Merge "Deleting empty folders based on DB state" into ub-launcher3-burnabySunny Goyal2015-06-181-0/+37
|\
| * Deleting empty folders based on DB stateSunny Goyal2015-06-121-0/+37
| | | | | | | | | | | | | | | | | | > Previously folders were getting deleted based on in-memory loader state. If for some reason, an item failed to load, we would delete the folder from DB as well. Bug: 21354058 Change-Id: I5318ee8a99afa9cafd93ed2b9ef0e155f502a41b