summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Cleanup icon preview generation codecm-14.0d34d2016-06-271-46/+73
| | | | | | | | | Remove use of hard coded components and use package manager to resolve activities for dialer, messaging, browser, camera, and theme chooser. Change-Id: I2ba8cd6c767fe2d6d9e02ad2e6352aabf153c21e TICKET: OSS-64
* Apply bandaid to ensure preview permissions are correctd34d2016-06-012-0/+22
| | | | | | | | | | | There have been some bug reports indicating that the previews generated are not getting the correct permissions set, but reproducing this issue has been a lost battle. This patch attemtps to correct this scenario by scanning the preview directories and files and setting the correct permissions. Change-Id: I51e19375136f152ac62a11713d3db0a984a35f50 TICKET: CYNGNOS-2592
* themesprovider: Fix priority of verifier threadSteve Kondik2016-04-291-1/+2
| | | | | | | | * Thread.MIN_PRIORITY is not the same as an Android background process. The former has a nice of 1, and the latter as a nice of 10. Change-Id: Ic4d77f40915490a95cee01f57a9cf7f61c715d55
* Automatic translation importMichael Bestas2016-04-162-0/+23
| | | | Change-Id: Ia3e26917a0b1f6b97cfef11587886a2e286f9f93
* New iconDave Kover2016-04-144-0/+0
| | | | | | Bye Hexo. Hello Material. Change-Id: I118bd33e1eab0bceac3068b293d1465a1a08bd91
* Update controls preview to properly render themed assets.Dave Kover2016-04-142-11/+28
| | | | | | | | | | | The style preview card does not use assets which are overridden by most themes. This results in an inaccurate preview of the included controls, ie checkbox and radio buttons. Additionally, the font size is cut off on the button in the preview. Increase button height and decrease font size to compensate. Ticket: CYNGNOS-874 Change-Id: I286f801afa7b6366ecf50395075240f33bc3d0ac
* Automatic translation importMichael Bestas2016-04-061-0/+20
| | | | Change-Id: I36e29d0cf9bf1c97a001ac7d01ba5f95b1ea13a0
* Automatic translation importMichael Bestas2016-03-281-3/+0
| | | | Change-Id: I3c597316b5281ff015b0b6381af71ed7bd9fdc6b
* ThemesProvider: Update for themes api changes.Adnan Begovic2016-03-253-4/+4
| | | | | Change-Id: I9d2827fccb4665da22303024ece61d42596a0ca3 TICKET: CYNGNOS-2295
* Automatic translation importMichael Bestas2016-03-178-0/+24
| | | | Change-Id: I388d1b1289d2dfc08ac61fe60dfac1c084636675
* Use correct read/write perms for providerd34d2016-03-141-2/+2
| | | | Change-Id: I2897fa51323a13c16600ecfb1cf63702470dcdf3
* Automatic translation importMichael Bestas2016-03-0493-0/+815
| | | | Change-Id: I5a000dbca5f34ccbd945a393ed7a12ed72564801
* Themes: Refactor themes to CMSDK [4/6]d34d2016-03-017-52/+56
| | | | | Change-Id: Ie078b20539e982cd124163da8816fb106c52b927 TICKET: CYNGNOS-2126
* Automatic translation importMichael Bestas2016-02-221-1/+1
| | | | Change-Id: I341c69a395c8228a05e1ac3f6b61f014ef22197f
* Update messaging component for icon previewsd34d2016-02-081-1/+2
| | | | | | | | Messaging is now com.android.messaging and the main activity is now com.android.messaging.ui.conversationlist.ConversationListActivity Change-Id: I1878be46dc1b775ad633336940fc831d88b2558f TICKET: CYNGNOS-1887
* Automatic translation importMichael Bestas2016-02-022-0/+44
| | | | Change-Id: If34376a0206dc6d616518af67acb2a1f6bbce95a
* Prevents extra thumbnails in Lockscreen componentLuis Vidal2016-01-292-2/+5
| | | | | | | | | | | | | Add extra parenthesis when the preview selection is modified to prevent grouping the component id in the where clause. Without this patch, multiple "ghost" thumbnails are displayed in the lock screen selector when a theme includes multiple wallpapers. This patch will also prevent the WallpaperPreviewGenerator from overriding the wallpaper thumbnail with the lock screen wallpaper. Change-Id: I7215a22168073dce99b13a52c2fd780ff6c44a0d TICKET: CYNGNOS-1758
* Automatic translation importMichael Bestas2016-01-251-0/+1
| | | | Change-Id: Ia22b928eb337fabd29378567a2e87d1f8b72d3ba
* Fix blank WiFi and signal icon previewsd34d2016-01-171-7/+23
| | | | | | | | | | | | | The icons used in SystemUI for the wifi and cell signal now use color attributes for defining the fill and background colors. These previews were showing up as blank because no theme/style was applied to the resources and the system was unable to resolve the fill and background colors due to missing attributes. This patch loads in the style needed to get the proper colors for the icon previews Change-Id: Id5da421333c2def3a75e42824a298ee90759a18d TICKET: CYNGNOS-1609
* No default lock wallpaper and live lock screen for system themeLuis Vidal2016-01-142-5/+22
| | | | | | | | Patch to remove the defaults inserted in the DB for lock wallpaper and live lock screen in system theme Change-Id: If90e1e00d9eabeb19eba98e9828d552cc892da24 TICKET: CHOOSER-109
* Queries live lock screen preview pathLuis Vidal2016-01-121-0/+7
| | | | | | | Includes the live lock screen path in the currently applied components query Change-Id: I00a4290c96b3c87b3e3d7d1fefc22219440822f9
* Automatic translation importMichael Bestas2016-01-113-0/+6
| | | | Change-Id: Ibb70e2871c0c1849d0bf7cce9c38f743d9d70737
* Guard to prevent inserting a record twice when a new theme is installedLuis Vidal2016-01-081-1/+2
| | | | | | | | When the theme has very few components, ACTION_THEME_RESOURCES_CACHED might be broadcasted before ACTION_PACKAGE_ADDED. This patch will prevent trying to insert a record twice. Change-Id: Ib7764707dcd59af731b3ea083b583e2c83eb6acf
* Automatic translation importMichael Bestas2015-12-254-7/+2
| | | | Change-Id: I4df421d16b65f2daa2ca0aa5b8c8d16a165feb42
* Use CmLockPatternUtils instead of LockPatternUtilsd34d2015-12-222-2/+6
| | | | Change-Id: Ia7fda2761fb851fa70eee3dbf72c469957245b53
* Re-apply live lock screen on updated34d2015-12-221-25/+44
| | | | Change-Id: Ibafde34788c57e551c2bb9eb73a1d7a6d5ad5432
* Add live lock screen previews [2/2]d34d2015-11-193-3/+148
| | | | Change-Id: Id0d210bae65b17a2eced021bdb2d19fa5063f678
* Live lock screen support [2/2]d34d2015-11-192-1/+23
| | | | Change-Id: I63079611828cb82d732afec872e37038d1fe509c
* Fix applied previews query when component doesn't existd34d2015-11-191-2/+4
| | | | | Change-Id: Ia7ce6b8a25958ef8b60f45e56e6777f1a6ff83d6 (cherry picked from commit 2f386fcd435cb455039138e67ff373f821db448d)
* 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