summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/LauncherProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Reverting some debug logsSunny Goyal2018-04-041-7/+0
| | | | | Bug: 72481685 Change-Id: Ib9e52504d9513bd7fdede28f6c0798ca7873083d
* Using new APIs for disabling metaData tableSunny Goyal2018-03-091-3/+3
| | | | | Bug: 70863722 Change-Id: Ib6bb554212da2c5d5d23a51aa0eff52bae97bce1
* Merge "Deprecate work folder" into ub-launcher3-masterTreeHugger Robot2018-02-281-6/+1
|\
| * Deprecate work folderTony Mak2018-02-271-6/+1
| | | | | | | | | | | | FIX: 73876183 Change-Id: I9d15df247eed3500c679cba085c680b75581cffb
* | Adding temporary logs to capture configuration changes and item deletionsSunny Goyal2018-02-271-0/+6
|/ | | | | | Bug: 72481685 Bug: 73814840 Change-Id: I1e30632647ad08a08d84c49875bc7b6cac3be1fb
* Adding a utility class to simplify main process initialization.Sunny Goyal2018-02-131-6/+2
| | | | Change-Id: I796cf758d2a25cf8fd5f9a9b78a7977fd54ca451
* Rearranging the code structure to allow replacing state logic.Sunny Goyal2017-11-061-2/+1
| | | | Change-Id: I6f83d0f77045ba189f02dd465bf70ffc2a239aa1
* Merge "Removing extraction service and palette api dependency" into ↵TreeHugger Robot2017-10-031-19/+1
|\ | | | | | | ub-launcher3-master
| * Removing extraction service and palette api dependencySunny Goyal2017-09-291-19/+1
| | | | | | | | Change-Id: I30ad1a1462a97b6bc03f8e386ae3058c7fe022e5
* | Adding a utility method to simplify method tracingSunny Goyal2017-10-021-7/+0
| | | | | | | | Change-Id: I79ef0aa5d65b933f4b7f0520fc8bac26e366da2d
* | [automerger] Demo mode default layout support am: 2782449da6Android Build Merger (Role)2017-09-291-1/+8
|\ \ | |/ |/| | | Change-Id: I0d03e760f97c6f9984ad0bf9e8f9e8c7a8a8b5c7
| * Demo mode default layout supportAdam Cohen2017-09-291-1/+8
| | | | | | | | | | | | 67062454 Change-Id: Ic060d3d7dba4fffe688dddf7cd04c48e4baaf813
* | Adding A feature flag to disable widgets and a corresponding buildSunny Goyal2017-07-211-1/+1
|/ | | | | | | target Launcher3Go without widgets support Bug: 62353159 Change-Id: Ia03d2235a9bcf75f9ef191924f81630e63a2c684
* Revert "Update existing Folder items' ranks to match their pre-permutation ↵Jonathan Miranda2017-07-131-82/+0
| | | | | | | | layouts." This reverts commit c4b296a50ea50de64b377016e07ec041350489c8. Change-Id: Ieff7873edc3cb300fe454b0ad97d6f0b4f0cb5a9
* Update existing Folder items' ranks to match their pre-permutation layouts.Jon Miranda2017-06-281-0/+82
| | | | | | | | | | | | | | | | | | | With the new Folder permutation logic, we change the position of the items when they are added to a Folder. This means that existing Folders will now appear in a different order than the user arranged them in. This change makes sure that when a user upgrades, their existing Folders will appear untouched. Note: We decided to priotize restoring the original layout of the Folder, as opposed to making sure the preview items remain the same. This is less destructive of users' data (we're changing the window into the Folder, but not the location of items when the Folder is open). Bug: 63115141 Bug: 35064148 Change-Id: Ib0a28b4b50be089878ffc3e40bced89832e125bc
* Removing various reflection calls with final APIsSunny Goyal2017-05-221-5/+7
| | | | Change-Id: Ibf48d6015d808f86bc79ccf64e3077eb5b6ccaff
* Adding support for DB downgradeSunny Goyal2017-05-091-53/+31
| | | | | | | | 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
* Do not delete chost widgets when opening DB.Sunny Goyal2017-05-051-1/+0
|\ | | | | | | | | | | am: 57266aa2bd Change-Id: Iab767b7b7c60db60322151cc5c2ab6a65706a553
| * Do not delete chost widgets when opening DB.Sunny Goyal2017-05-051-1/+0
| | | | | | | | | | | | | | | | | | | | | | During restore, the data can be in inconsistant state, as the system is yet to give us the widget map. Deleting the widget during open would cause the AppWidgetRestoredReceiver to store the widget id after it has been deleted. Bug: 37935101 Bug: 38029633 Change-Id: Id3b8766229718239ae784794e848dcfbc74658ac
* | Merge "Initializing the Add To Homescreen setting by reading it from market ↵Sunny Goyal2017-05-031-0/+1
|\| | | | | | | | | | | | | | | app" into ub-launcher3-dorval am: f436478b02 Change-Id: I0f322aeb37c7ba35b2d2f97b1802f1c657a790b4
| * Initializing the Add To Homescreen setting by reading it from market appSunny Goyal2017-05-031-0/+1
| | | | | | | | | | | | | | > Also enabling add to home-to-homescreen feature based on install reason Bug: 36588249 Change-Id: Icfc1edd4c31ed7eb50086f8ffb1a7858a9641b41
* | Simplifying some DB managed logicSunny Goyal2017-04-191-114/+59
| | | | | | | | | | | | | | | | > Adding SQLiteTransaction to make it easier to manage DB transactions > Using try-with resource for better resource handling > Defining utility method for iterating over cursor Change-Id: I20b1a62d61798342825ecfeb971e1a0c63c9b6d7
* | Merge "Deleting any ghost widget from system service:" into ub-launcher3-dorvalSunny Goyal2017-04-181-23/+60
|\| | | | | | | | | | | am: f2d8b65775 Change-Id: I1d9b7a5a532bf504aabac69691e3f83e2f181a04
| * Deleting any ghost widget from system service:Sunny Goyal2017-04-171-24/+60
| | | | | | | | | | | | | | | | | | > A one-time DB update for removing any existing ghost widgets > Handling widget cleanup when we bulk delete workspace items during loader > Simplifying external delete Bug: 35634653 Change-Id: Id0c520f57aee6d75d9c0e7bcd5786a464bf9f39f
* | Merge "Separating the DB upgrade into two paths: > schema update: changes in ↵Sunny Goyal2017-04-171-24/+68
|\| | | | | | | | | | | | | | | the table schema > data update: backward compatible changes to the data" into ub-launcher3-dorval am: d31692c0e7 Change-Id: If9b5e413401ac2b969a591acd81c8e6e1c7c2483
| * Separating the DB upgrade into two paths:Sunny Goyal2017-04-171-24/+68
| | | | | | | | | | | | | | | | > schema update: changes in the table schema > data update: backward compatible changes to the data Bug: 37257575 Change-Id: I856854ff2bffa2701f903a24fdc3baf6641175fd
| * Launcher dump proto that will be used for:Hyunyoung Song2017-04-041-0/+15
| | | | | | | | | | | | | | | | | | | | $ 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)
* | Adding support for dynamically change icon shape for AdaptiveIconsSunny Goyal2017-04-041-0/+2
|\| | | | | | | | | | | am: ca18746163 Change-Id: Ic4c14ad1760930735a881926aac8b45efe0cdba0
| * Adding support for dynamically change icon shape for AdaptiveIconsSunny Goyal2017-04-041-0/+2
| | | | | | | | | | | | | | | | > This would allow developers to verify their icon designs on different device configurations > This settings is only visible when developer settings is enabled Change-Id: I7e32abfede001c134f23390734dcd39c93b68b9a
* | Merge "Removing the profile extra from intent and using the profile id from ↵Sunny Goyal2017-03-211-1/+21
|\| | | | | | | | | | | | | | | the profile column" into ub-launcher3-dorval am: 77ff9a4343 Change-Id: Ib0cd8cb8f963b78a9cd53ed896aeb6e4f6163683
| * Removing the profile extra from intent and using the profile id from the ↵Sunny Goyal2017-03-211-1/+21
| | | | | | | | | | | | | | | | | | profile column The intent extra is not always correct as the profile id can change during backup restore. This allows us to use a consistant behavior everywhere. Change-Id: I004bd244204ca91758b1d42488e1fc13b0ccb998
* | Separating the config and flags in different directories so thatSunny Goyal2017-03-071-4/+2
| | | | | | | | | | | | | | it is easier to override one or the other Bug: 36001650 Change-Id: I713f4f5dbcf902614ce9f6c7a73bdace7bdf1ea0
* | Launcher dump proto that will be used for:Hyunyoung Song2017-03-011-0/+15
|/ | | | | | | | | $ 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
* Using transaction when dropping tables, so that the DB never entersSunny Goyal2017-02-231-18/+12
| | | | | | | an inconsistant state Bug: 34720697 Change-Id: I55a26d63be6c06622da6ee3395bf1990f1a58a11
* Simplifying Model data load state managementSunny Goyal2017-02-221-2/+2
| | | | | | | | | | | Instead of maintaining 3 different states, each tied to a subset of data, maintaing a single state that represents all the data. Individual subset data is invalidated in rare cases and these invalidates are tightly tied to the UI. This also allows us to add new data to the model, without worring about classifying the data into a subset. Bug: 34112546 Change-Id: Id9cb273de35b79e84a2ef8d6556fcf1e72fb4b75
* Initializing LauncherAppState only on the main threadSunny Goyal2017-02-131-1/+5
| | | | | Bug: 33032833 Change-Id: I7992a5358142dde80aeaf8c6b7a6c7bfef2c8a00
* Removing static Context access using LauncherAppStateSunny Goyal2017-01-111-2/+1
| | | | | | | | > This ensures that LauncherAppState is only accessed in the presence of a valid context Bug: 33032833 Change-Id: I955e5cb022f8bd6374681ae6c0720a2666d5b750
* Removing static access to Context through LauncherAppStateSunny Goyal2016-12-291-1/+1
| | | | | Bug: 33032833 Change-Id: I09baaa6d79187b3096a2ab3a89d7dcaeaf9eee68
* Removing all compatibility code below LollipopSunny Goyal2016-12-161-8/+0
| | | | | Bug: 32745285 Change-Id: I62971908e3e4402941fab627bbdfd47be64473a3
* 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