summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Trebuchet: RemoteFolder fix subtype & manifest entriesMichael Bestas2015-12-021-2/+18
| | | | Change-Id: I21282fb06be4391cf5ffbfb9b60a840820ded3e9
* Trebuchet : Switch to LOGD instead of isLoggableDanesh M2015-10-151-1/+1
| | | | | | | | isLoggable imposes a 23 character limit. CYNGNOS-1194 Change-Id: I9d2ecd9cf9ca9b40ed68a88a8fd60bc414af1280
* Trebuchet: make workspace layout configurable by prebundled mccYvonne Wong2015-10-091-1/+54
| | | | | issue-id: PAELLA-42 Change-Id: Ice4f73ee6ebaa55e27c07a02f1cc5b989f91c59a
* Trebuchet : Ensure workspace icon migration for dialerDanesh M2015-10-081-1/+75
| | | | | | | Ensure dialer workspace icon migration for c-apps package. CYNGNOS-1194 Change-Id: Id6535f5e8c5b16350666f75dda771311a49fe66b
* Adding a few null checks.Sunny Goyal2015-09-271-0/+6
| | | | | | | | | | 1) During migration, if launcher2 has deleted user data, migration oes not happen 2) If Launcher3 does not has bind widget permission, QSB would be null. Bug: 18388507 Change-Id: Ief81f6f77ce154e7b3ecd4b77caf24239401e738
* Using the default search widget in Launcher3Sunny Goyal2015-09-271-25/+2
| | | | | | | | | | > Removing all logic related to search and voice overlays from Launcher3 > Using the widget provided by global search provider on the homescreen > Removing VoiceButtonProxy, as it is not being used anymore Change-Id: Ie8b09b44f7213c8fa11bce685914442e4884295d
* Updating backup restore logicSunny Goyal2015-09-271-1/+9
| | | | | | | | | | | | | | | > Adding DeviceProfile information in the backup > Removing SharedPreference backup > Adding helper methods to abort backup in the middle > Comparing keys against the backup journal during restore to avoid restoring corrupt/lost entries > Old backups are still compatible, but lost keys verification will be ignored in that case. Bug: 17937935 Bug: 17951775 Bug: 17260941 Change-Id: Iad48646cfdd69abaff5c163b2055f3b8a9b39b19
* Loading internal default layout if partner layout fails to loadSunny Goyal2015-09-271-12/+17
| | | | | Bug: 18033885 Change-Id: I8399d0107cc3570c0e03d833601abf2cd194b3d3
* Was seeing some duplicated icons in the migration flowAdam Cohen2015-09-271-1/+5
| | | | | | | -> The only delta between the two icons was slightly different flags -> No need to consider flags for the purposes of duplication Change-Id: I161f6ad6023d829e5ebbb15f1a9fbc9306795d80
* Refactoring layout parsing codeSunny Goyal2015-09-271-661/+8
| | | | Change-Id: Iee5b2280cb1e841bcfe91fdcf523de6fa7f7f3b8
* Adding ability to list folder items in separate fileAdam Cohen2015-09-271-6/+7
| | | | | | | | -> remove all apps default layouts Bug 17569015 Change-Id: I39b899b61d5b1cff2d7801d281dacfc804c403c5
* Cleaning up icon resizing codeSunny Goyal2015-09-271-1/+1
| | | | | | | | > For resizing icons, scaling them down instead of cropping them > Removing duplicate methods and variables Bug: 17663119 Change-Id: I0f270860c0edaaa939495e63e05da841a603f6e9
* Create a central list of files the Launcher writes to the app directoryHelena Josol2015-09-271-3/+1
| | | | | | | Replace hardcoded Launcher filenames with the defined constants. Bug: 12753154 Change-Id: I072f202d9388a703b9e6851bde64ea7fafe4b10a
* Trebuchet: Fix migration from L to Trebuchet.Adnan2014-11-191-7/+7
| | | | Change-Id: Ide667f2bba1dcce2ff3d9a6b08e15bf9bf0ada34
* Trebuchet: Handle migrate from Launcher3/TrebuchetAdnan2014-11-191-2/+20
| | | | Change-Id: I3d12c134a64afa855d803bce27e0de2915306ad2
* Fix L2 and old Trebuchet migrationRicardo Cerqueira2014-11-191-1/+57
| | | | | | | | | There can only be one original-package tag. Go with com.android.launcher3 for now, and move Trebuchet back to com.cyanogenmod.trebuchet. This will allow for workspace migrations from both CM10.2 Trebuchet and from CM11 Launcher3 Change-Id: I7743954bffc55f503851038f800607947e20015e
* Protected App [3/3] Trebuchet - Protected Apps - Build fixed to work with ↵Raj Yengisetty2014-11-191-1/+7
| | | | | | | | | | | | | | | | | LOCAL_SDK_VERSION - Fixed adding components to protected folders and adding protected folders to other folders - Fixed issues with EditText for FolderName - Adding support for Settings hooks - Uses Setting's LockPattern for Protected Apps - Add Read from Settings Secure DB (DO NOT WRITE!) - Protecting a folder updates Launcher without restart - Batch send component visibility Conflicts: AndroidManifest.xml res/values/preferences_defaults.xml src/com/android/launcher3/AppsCustomizePagedView.java src/com/android/launcher3/Folder.java src/com/android/launcher3/FolderIcon.java src/com/android/launcher3/Launcher.java src/com/android/launcher3/LauncherModel.java src/com/android/launcher3/LauncherProvider.java src/com/android/launcher3/OverviewSettingsPanel.java Change-Id: I41c295e7f2c9abc9b2e77e6e3d39b7ca60d47139
* Fixing typo from previous CLAdam Cohen2014-10-141-0/+1
| | | | | | Bug 17969770 Change-Id: I4ea04864000d2ed8368ca81ba8cff42b4208d13d
* Fix missing screen when adding widget directly to providerAdam Cohen2014-10-141-20/+31
| | | | | bug: 17969770 Change-Id: Icbd8451d8adde0519917a7bf06365517405759fe
* Resetting launcherProvider data if restore set was emptySunny Goyal2014-09-281-0/+14
| | | | | Bug: 17332300 Change-Id: I6d2187cd1b1fa7a53e49b96eb109263f6b74b258
* Add ability for Partner customization apk to override certain DeviceProfile ↵Adam Cohen2014-09-041-2/+2
| | | | | | | | | | | params -> Workspace row / col counts -> All apps row / col counts -> Workspace icon size issue 17208277 Change-Id: I25cfafede4da783083593b9bfeff4e5ba7751d36
* Change URI favorite resolving to use launch intentsJason Monk2014-08-201-2/+4
| | | | | | | | | Rather than dropping the user in the middle of the app wherever our intent resolves to, add a shortcut to the launch intent of the app that handles that intent. Bug: 16459162 Change-Id: I58256cdc9dc1b3441815f60cc354b60f91fb1a16
* Autoinstalls loading xmlSunny Goyal2014-08-121-37/+62
| | | | | | | | | | > Launcher checkes for an apk in the system image with a broadcast receiver for action: com.android.launcher3.action.LAUNCHER_CUSTOMIZATION > Default layout is parsed from that apk, which can also contain icons and string resources used in the layout config Change-Id: I44fc9e7c3134f525f7b5db29f4e8bb56e17ce445
* Fix screen issues with externally added itemsAdam Cohen2014-08-081-0/+54
| | | | | | | | | -> Ensure that when an item is added to the db from an external source that the screen id exists. -> If the screen id does not exist, add that id as the largest rank Change-Id: I98d68900c428d80666dab1909418c6d9b0f52e10 (cherry picked from commit 484526620012f88bcd9d5656a71d4218a9acd090)
* Fix resource issue in folders of partner layoutsAdam Cohen2014-07-251-1/+1
| | | | | | | | -> Resources in folders were not being loaded with the partner apk resources. This caused any number of weird things to appear in folders of partner default layouts Change-Id: I7d373e53028c5c327980c15d004993af997de553
* Adding broadcast to indicate first launcher loadAdam Cohen2014-07-231-3/+4
| | | | | | | | -> fixing small thing from previous CL issue 16191557 Change-Id: I015859f6028066e7c8664436f291ed226a539e29
* When inserting directly into LauncherProvider, ensure item id and widget id ↵Adam Cohen2014-07-241-0/+43
| | | | | | | | | | | are valid -> We generate an item id, and allocate and bind a widget id if necessary when items are added to the LauncherProvider externally. Writing to the provider is protected by system|signature. issue 16191557 Change-Id: I09472e41ad4c8302901a5e49b5817247e9b86695
* Adding ability for partners to specify a default layoutAdam Cohen2014-06-021-63/+62
| | | | Change-Id: Ib071faa4b41d13961c3a33b865b40a644631c08a
* Make sure we can handle database downgrade (by wiping and starting fresh)Adam Cohen2014-05-211-0/+11
| | | | | | issue 15144138 Change-Id: I59aad7445d2aaaaede1cba6754e047f05a2859ae
* Merge "Adding support for dynamically resolved default layouts." into ↵Winson Chung2014-05-161-2/+4
|\ | | | | | | ub-now-nova
| * Adding support for dynamically resolved default layouts.Winson Chung2014-05-161-2/+4
| | | | | | | | Change-Id: Id05c60b93423ce37dd06a126ecf33c74a0ba1d62
* | Removing antiquated migration path logicAdam Cohen2014-05-161-14/+45
|/ | | | | | -> also added some extra debugging for issue 14466459 Change-Id: I1ac9352c52c15d3e37f945cffabbca49343d2b8f
* Launcher3 multi-profile supportKenny Guy2014-04-301-4/+59
| | | | | | | | | | | | | | | | | | | | | Use LauncherApps API and badging APIs instead of PackageManager. With compatability layer that uses PackageManager pre L. Adds support to show apps from current user and any managed profiles. Background: Managed profiles are user sandboxes that are visible from the primary user and can be launched as if they are a part of this user. A launcher should now be capable of listing apps from this user as well as related profiles of this user. Launching of activities is now via the LauncherApps interface, to allow for cross-profile app launching. Only activities with category LAUNCHER can be added as a shortcut on the workspace for a managed profile. Widgets and non-application shortcuts are only supported for the current profile. Widgets from the managed profile are not available. Change-Id: I5f396b1bf7f91ad91a5710ea4a0fd14573972eb9
* Merge "Second try removing orphaned items from the database" into ub-now-novaAdam Cohen2014-04-231-8/+35
|\
| * Second try removing orphaned items from the databaseAdam Cohen2014-04-221-8/+35
| | | | | | | | | | | | | | | | | | | | -> Delete items contained directly on the desktop whose screens no longer exist (do not remove items contained in hotseat or folders, except as described below) -> Delete items contained by folder ids which are no longer present (ie. orphaned as their parent folder no long exists) Change-Id: I2f47cc970ce00677cb1c83c0f0a2d13b6f16a33e
* | Add support for partner customization.Jeff Sharkey2014-04-221-105/+181
|/ | | | | | | | | | | | | | | | | | Traditionally Launcher workspace customization is offered through overlays at build time, but we don't have access to partner-specific customization at build time. To solve this, this adds a new "partner-folder" tag which points at an XML resource provided by an external package. The external package XML can't depend on the binary XML attributes defined by Launcher3, so we switch to using manual string-based attribute lookups. Partners can also provide extra wallpapers. When a folder only results in a single item, promote that item into the folder location instead of deleting completely. Bug: 13340779 Change-Id: Ide558288bef4113565f288b700d8245055c0fee9
* Merge "Allow the old launcher content URI to be overrided" into ↵Adam Cohen2014-04-171-2/+2
|\ | | | | | | ub-now-mister-ugly
| * Allow the old launcher content URI to be overridedJason Monk2014-03-211-2/+2
| | | | | | | | | | | | | | | | | | | | Move the URI used to import favorites from launcher2 to be loaded from a string resource. This allows it to be overridden. This will enable permissions fix for GoogleSearch. Bug: 12058200 Change-Id: I31243fe89f545c9771d5cceffe1c9e7668a42bc5
* | Fix serious data loss issue for folders and hotseat itemsAdam Cohen2014-04-111-1/+3
| | | | | | | | | | Change-Id: I37a5b44c670c2a1f99eb97b77cfdbc78534fdf91 bug 13964735
* | Cleanup orphaned workspace items on db upgradeAdam Cohen2014-04-021-1/+17
|/ | | | | | | | | | -> Any workspace item whose screen id is not present in the screens table is removed from the database. This is intended to restore database consistency. issue 13741729 Change-Id: I9a04b4165f1d85541025fcf48ddf2ad9e39ae94e
* Add LauncherProviderChangeListenerAnjali Koppal2014-03-171-0/+9
| | | | Change-Id: I2333a157c488cd048a860982cc675ed9cec626ae
* Merge "Add support for uri favorites and resolve groups" into ub-now-mister-uglyJason Monk2014-03-101-29/+154
|\
| * Add support for uri favorites and resolve groupsJason Monk2014-03-071-29/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for new types in default_workspace xml files. Adds support to favorite that attempts to resolve an intent specified by URI. If a logical choice can be found from the resolve, it adds the shortcut. Adds support for a resolve, which contains several favorites and attempts to add the shortcuts until one is successful. Bug: 10547358 Change-Id: Ia30341e77e7d4a0bd4a4f4e6a3d9ce2a48a46237
* | Don't lose icons when migrating from different-sized hotseats.Dan Sandler2014-03-061-6/+34
|/ | | | | | | | | | | | | | | | | | | | | | | | Launcher2 on sw720dp devices had 8 hotseat slots; Launcher3 has only 6 on those same devices. When importing the old hotseat, the empty slot (so technically there were 9) occupied by the all apps button didn't line up with the new all apps button, causing a hole on the hotseat. Furthermore, the icon in old position 3 was clobbered by the new all apps icon: 0 1 2 3 (#) 4 5 6 7 ==> 0 1 2 (:) _ 4 5 In this CL we introduce a separate sort-and-place step for hotseat icons so that any icon colliding with the new all-apps slot can be moved to the right to find the next nearest open slot. This works well for the 8->6 case; it will probably do something reasonable, if not ideal, for other grid migration scenarios. But those are not covered by this bug. Bug: 13015468 Change-Id: I7edb3f27addc78ad02bbfcd1c39175ca56220007
* Fix issue where clings didn't appear after set up wizard (issue 13077829)Adam Cohen2014-02-211-1/+11
| | | | | | | | | | | -> Also removed the db-created as a criteria for showing the clings (this was a bit problematic in some cases and going forward) -> Instead, we use database upgrade as a signal to not show the clings. This is used instead of the above criteria (to prevent old users from seeing the migration cling and losing their data.) -> Stripped some old code related to custom clings that's no longer used. Change-Id: Ib5e5285e5ddbc60e69eb998ee9fd092ae879150d
* Do updateWorkspaceScreenOrder inside a single transaction.Yura2014-02-111-0/+17
| | | | | | | | | | | The workspacescreens table is updated in LauncherModel.updateWorkspaceScreenOrder and that the operation to remove all screens, then reinsert the new list of screens in not inside a single transaction, so if the app is updating or crashes between ContentResolver.delete and ContentResolver.bulkInsert then the data will be lost. This CL makes it all happen inside 1 transaction. Bug: 12523285 Change-Id: I409dbc9f48fa9c8bd4bf3b1453204a4daac1689a
* handle shortcut restore for missing packagesChris Wren2014-01-271-3/+20
| | | | | Bug: 10778992 Change-Id: I8766b8d4dd9c0269d52a7ec3da58dd408bc5f09f
* Merge "Defend against missing DB during migration." into jb-ub-now-kermitDan Sandler2014-01-251-2/+4
|\
| * Defend against missing DB during migration.Dan Sandler2014-01-211-2/+4
| | | | | | | | | | Bug: 12600784 Change-Id: Ie295d2ac970eab798b9826748d400cd30a04662d
* | Adding tighter first run checks for migration clings. (Bug 12626290)Winson Chung2014-01-211-0/+11
|/ | | | Change-Id: I09fc95c9a3d50ce57f9140e89da2ff4856807f92