summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* themeprovider: notify uri on preview deletionJorge Ruesga2015-11-091-1/+6
| | | | | | | | | Ensure that registered content observers received a notification when a preview is deleted. Change-Id: I76046cbbff8c0f56c3384274ffcbbc7ea35ccdcb Signed-off-by: Jorge Ruesga <jorge@ruesga.com> (cherry picked from commit 0fe2d61cdae57c2ed36f752d24eb5479610d7289)
* controls_preview: Update to M checkbox drawablesBrandon McAnsh2015-10-091-3/+3
| | | | | Change-Id: I2f3d9363b32daec64b58a6423052a67bda1fe2f2 Signed-off-by: Brandon McAnsh <brandon.mcansh@gmail.com>
* Use correct DialtactsActivity for DialerNextd34d2015-09-301-1/+1
| | | | | | | DialerNext uses a different package name but the activity is still part of com.android.dialer Change-Id: Iafdffec268c1ecd7b2e5f818e85fb785a6e765ee
* Use DialerNext icon when availabled34d2015-09-252-1/+14
| | | | | | | | DialerNext is switching to com.cyngn.dialer instead of com.android.dialer so we need to choose the correct component when generating icon previews. Change-Id: I2f2b5f5823f754e1f3f3c2f0c085c5611f68e8b0 TICKET: CYNGNOS-1096
* Automatic translation importMichael Bestas2015-09-241-0/+22
| | | | Change-Id: Ic5d53f77a6a89d5017e9d99cd05d7e97633a5dc1
* Specify locale when using String.format()d34d2015-08-311-5/+6
| | | | | Change-Id: I5d1cbf98768965f9f4b4c704c809737193338916 REF: CYNGNOS-866
* Automatic translation importTom Powell2015-08-211-2/+2
| | | | Change-Id: If80920a9ec7c36c8738f49c08f90100a82f7204e
* Properly account for lock wallpaper previewsd34d2015-08-061-8/+12
| | | | | | | | Previews for themes with both regular wallpaper and lock screen wallpapers were being incorrectly generated such that the lock screen wallpaper was showing up for both. Change-Id: If9838cd000a9555364b645e063f17bac543b6dd2
* Automatic translation importMichael Bestas2015-07-273-0/+45
| | | | Change-Id: Ice0159ab708ef0dec7f62c9e7a2249c3defb5d49
* Avoid OOME when generating many wallpaper previewsd34d2015-07-215-130/+178
| | | | | | | | | | | | | A pack containing a large collection of wallpapers could cause the preview generation to fail with an OOME since we were storing all the previews in memory before writing them to disk and adding their entries into the database. Wallpaper previews are now stored on disk within the wallpaper preview generator and the path is returned in the WallpaperItem object instead of the bitmaps. Change-Id: I1dca215bc2fab9266c0baa4bce2a39e2ff1238a6
* Automatic translation importMichael Bestas2015-07-021-0/+1
| | | | Change-Id: Ifd0c5b8e058f1ef4b76d7e7e7b9b08b05db89865
* Automatic translation importMichael Bestas2015-06-131-0/+22
| | | | Change-Id: Iee645dbe308187dd0183f75c0acd616ae7bb6811
* Automatic translation importMichael Bestas2015-06-091-0/+21
| | | | Change-Id: I222982fb22a759a49f9564a9be9c6f88f3c9cb18
* Delete preview table rows on theme updateRichard MacGregor2015-05-292-5/+34
| | | | | | | | Handle the case where a theme is updated with less wallpapers than it had when originally installed. Delete the rows for previews associated with the updated theme Change-Id: I79abf4d69f7656cbff2c0847cd3f82a737f9e6c2
* Handle null parameters when creating query stringsRichard MacGregor2015-05-291-8/+29
| | | | | | | Sometimes parameters, selection, and selection arguments may be null. Handle various null cases to get correct behavior. Change-Id: I8b969b3e1a726498ea3044374b2d235b8f41091a
* Check old install state before reapplying icon packd34d2015-05-261-3/+8
| | | | | | | | We only want to reapply an icon pack if the old state was UPDATING and the new state is INSTALLED. Other combinations should not trigger the reapply code. Change-Id: I6ba90341795eed365211ac2b29239e47842d62be
* [2/2] Themes: Multiwallpaper supportRichard MacGregor2015-05-262-2/+17
| | | | | | | | | | | | | | | | | | Implement PreviewColumns.COMPONENTS_URI Be able to show all (multiple if present) wallpapers from installed themes. Update Themes DB to version 17: Add Component ID column to mix n match There can be more than one wallpaper in a theme now. So we need to track that in the mix n match table. Depends on: http://review.cyanogenmod.org/#/c/98951/ Change-Id: I3c4e5998288d4b98ccd180e827464d77195fce9f
* [2/2] Recognized multiple wallpapers in themeRichard MacGregor2015-05-194-49/+122
| | | | | | | | | | | | | | | | | Generate previews for multiple wallpapers in theme assets. Add each wallpaper to the previews sql table. Make sure current ThemeChooser won't display extra wallpapers. Themes Provider will return defaults (first) wallpaper only for current ThemeChooser implementations. Later revisions of ThemeChooser will use different content URI for querying multiple wallpaper previews. Depends on: http://review.cyanogenmod.org/#/c/98012/ Change-Id: I88616148a226126509f8aca2d995d1446ccaada4
* Fix exception on themes without lockscreen imagestobitege2015-05-191-26/+33
| | | | | | | | | | | | | Based on exceptions in logcat like this: Unable to save preview com.cerj.theme.blakazure/lock_wallpaper_preview PreviewGenerationService( 5413): java.lang.NullPointerException: Attempt to get length of null array at java.io.OutputStream.write(OutputStream.java:82) Added null checks to insertPreviewItemsIntoDb() for wallpaperItems props. saveCompressedImage() now immediately returns on null image. Change-Id: I63709a37780dfeabae14f8c1c34c88f8753728f9
* FIX: Preview table upgrade pathRichard MacGregor2015-05-191-5/+7
| | | | | | | | | | | | Previews table was modified without modifying upgrade path. This fixes themes database issue for those who updated CM between 5.16.2015 and 5.19.2015 Depends on: http://review.cyanogenmod.org/#/c/98708/ http://review.cyanogenmod.org/#/c/98709/ Change-Id: Iab743fec9a03b37b356504f4b905deb3b801fac5
* [2/3] Implement better legacy support for themesRichard MacGregor2015-05-184-67/+142
| | | | | | | | | | | | Move preview query construction to provider. This will allow for chooser to use older and newer versions of the provider and themes contract. Depends on: http://review.cyanogenmod.org/#/c/98708/ Change-Id: I8b350339c083935079baf9e2710ff4d9665507df
* [1/2] Use files instead of blobsRichard MacGregor2015-05-152-46/+160
| | | | | | | | | | | Previews columns now uses file paths instead of saving bitmap blobs in database. Depends on: http://review.cyanogenmod.org/#/c/96836/ http://review.cyanogenmod.org/#/c/97431/ Change-Id: Ic58d37fe99517f0519ab8436a2ac32d153aec94c
* [2/3] Improve PreviewsColumns ImplementationRichard MacGregor2015-05-153-105/+196
| | | | | | | | | | Previews columns now uses a key/value pair structure to allow for easier future support of multiple components per theme pack. Depends on: http://review.cyanogenmod.org/#/c/96836/ Change-Id: I37a44558d3c52f8fe910b4773495ee1fac71fbbd
* Automatic translation importMichael Bestas2015-05-162-0/+2
| | | | Change-Id: Ic4678bae34febd38b6bbe8a92b1923ffe0ef2cdc
* Re-apply launcher icon packs on updated34d2015-05-071-1/+5
| | | | Change-Id: Ieab6c7b42ef3c7a3fe3357b745bdcdd9de0700f6
* Automatic translation importMichael Bestas2015-05-022-0/+23
| | | | Change-Id: I852c9d9d813d32fd162f4984368b55263bfea51e
* Don't assume all default components come from one packaged34d2015-04-231-3/+5
| | | | | | | | | | | | | When uninstalling a theme, we check for any components that may have been applied from that theme and change them back to the default. It is possible the default theme does not have all the components that need to be returned to defaults which causes the mixnmatch table to be out of sync. This patch uses the default components map to correctly set the components to the correct default, which can include components from System theme. Change-Id: I78cbe874110d32998969b56dd9076f1439e61664 REF: LETTUCE-245
* Fix version upgrades where "holo" may still be usedd34d2015-04-172-13/+14
| | | | | | | | | | | | | | The stock theme was renamed from holo to system for CM12 but there are old upgrades that still need to check for "holo" when updating columns in the database. The name change occurerd in the upgrade to version 11, all upgrades before that now explicitly call out "holo" instead of "system" to ensure the upgrade process completes as expected. This patch also fixes up the preview generation during the upgrade to version 6. Change-Id: I246d417f10c264c44a1741019589e50b968096e4
* Fix icons with filters not being generatedd34d2015-04-171-2/+1
| | | | | | | | If a theme has composed icons that only use color filters, they would not get generated. This patch resolves that issue. Change-Id: If9076eca8cce1a85beed54ce30f0dfb8bbcd3188 REF: CHOOSER-63
* Automatic translation importMichael Bestas2015-04-171-0/+22
| | | | Change-Id: Ia8f6a673434b345a4d9a6d8e903f936587d20737
* Automatic translation importMichael Bestas2015-04-173-0/+45
| | | | Change-Id: Ic3e8aad4d67edc9afc8080e8c23aacd641ee5cfa
* Themes: Process theme resources after package scanned [2/2]staging/cm-12.1d34d2015-03-124-63/+39
| | | | | | | | | | | | | The provider now assumes that the theme service will process all themes and icons packs, and then sends the appropriate broadcast once processing is done for that package. The preview generator now queries for the theme 's capabilities rather than rely on that info to be passed in. This is partly due to the new flow of installing a theme as well as the fact that legacy icon packs were not having previews generated. Change-Id: I418debb6f91296107476016367131fac2c3a32ce
* Return InstallState.UNKOWN if context or pkgName nulld34d2015-03-111-0/+2
| | | | Change-Id: I7e8f40335c4b5a202d457eba7f3bd337b9342908
* Themes: Add previous value and update time to mixnmatch [2/2]d34d2015-03-113-4/+58
| | | | Change-Id: I6b4224e9416e61ce7792e608bd4fd602a9b34e47
* Cleanup theme update pathd34d2015-03-102-19/+17
| | | | Change-Id: Idf2f586b743025f4788f3373fc0078efec48feb9
* Update target API on theme updatesd34d2015-03-071-0/+2
| | | | | | | | If a theme is updated to support a different target API it was not being properly updated in the ThemesProvider and therefore labeled incorrectly in the theme chooser. Change-Id: Ie600570fa6193ddf74a65897c732dfee3472751b
* Themes: Add RequestType to ThemeChangeRequest [2/3]d34d2015-03-032-5/+15
| | | | Change-Id: Id33b96b9bbf720522cecd65541098eb75dc6b315
* Themes: Update ThemesContract with install state [2/3]d34d2015-03-036-151/+219
| | | | | | | | | | | | | | | | | | | | | | | This provider will be responsible for keeping track of the installed state of themes. This includes two intermedite states, INSTALLING and UPDATING. When a theme is installed from PackageManager the provider will receive this broadcast and add the theme to its DB and set the state to INSTALLING if the ThemeService is processing the theme, or INSTALLED if not and broadcast the ACTION_THEME_INSTALLED action. When a theme is updated the provider will receive another broadcast indicating that the current version of the theme is being replaced. If the ThemeService needs to do some processing, we'll update the state to UPDATING. Once the theme service is done processing a theme, the provider will receive a broadcast from the ThemeService. At this point, the themes provider will update the state to INSTALLED, if it is not already set to that state. The provider will broadcast the ACTION_THEME_INSTALLED action if the previous state was INSTALLING and the ACTION_THEME_UPDATED action if the previous state was UPDATING. Change-Id: Ie37f85463e472d96b8393801007537db1e3eefc6
* Add value for TARGET_API in insertSystemDefaultsd34d2015-03-021-0/+2
| | | | Change-Id: I4923ddc57674fdc8f08ed5f58d42a2dbf0b6f13c
* Automatic translation importMichael Bestas2015-02-283-1/+4
| | | | Change-Id: I0532655f473632e8435672b5dbc3c2fdd107bf7b
* close more cursors...stable/cm-12.0-YNG1IScott Mertz2015-02-261-2/+2
| | | | Change-Id: Iae1d13aa29807357f2c7615a40ac2de98d6f0b04
* Themes: Enhanced theming capabilities [2/3]Clark Scheff2015-02-241-11/+34
| | | | Change-Id: Ibd0f0d7f9bae758acf30b5d6600475e6319023f3
* close cursors when through with themScott Mertz2015-02-191-0/+2
| | | | Change-Id: I861b12ab595c80c5ee7c746f8e9402f9667ebbe7
* Automatic translation importMichael Bestas2015-02-198-0/+7
| | | | Change-Id: Iee3c4b3ba2f28824e7df1763a711e72bc464b250
* Don't update package while resources are being processedd34d2015-02-151-6/+6
| | | | | | | | | ThemePackageHelper.updatePackage() will call theme service to reapply a theme if it has been updated and currently applied. This should not happen until the the resources are ready to be re-attached to all running apps. Change-Id: Ieff6cfccae01fb336468416949e7ff3d87cd7699
* Automatic translation importMichael Bestas2015-02-1131-1/+25
| | | | Change-Id: Ibf0e8b3b7e1abd3958d3f1a69f8f7f686e3df50a
* Reapply status bar and navbar overlays on updateClark Scheff2015-02-021-0/+8
| | | | | | | | If the status bar and/or navigation bar are using different overlays than those applied for the entire system, we need to reapply those as well. Change-Id: I68540bb30f8ba5248a5d8249357c20c966d917dd
* Relax constraint of what is considered a presentable themeClark Scheff2015-01-282-2/+25
| | | | | | | | | Themes that have at least overlays and a wallpaper will be marked as a presentable theme. If these two items are not in the theme then only their components will be available in their respective category. Change-Id: Ia67abafd2206029a20b8aa651e7379f34104a323
* Remove theme from list of themes being processedClark Scheff2015-01-271-0/+1
| | | | | | | | | | When we are updating a package that was previously being processed by the theme service, we were not removing the theme from the list in the shared preference which causes the provider to always call updatePackage. This can cause a call to the theme service to reapply the theme. Change-Id: I3a3e80f03f8c16e4804696374bf884ae7eef0011
* Fix isPresentableTheme() logicd34d2015-01-231-6/+9
| | | | | | | The way it was written guaranteed that ALL themes are marked as being presentable as a theme pack. Change-Id: Ic6cfa08ebd5f1841ea19da9bedb9c71c2fb02d0c