| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Made some changes in the database schema.Changed the is_installed
state in case of a reinstallation of a theme.Implemented the
delete and update methods for the Theme_Mixes.
Made changes according to the first code review.
Change-Id: I9fa1266c51ff69b95713dc1e2aff9448cc4242f2
TICKET: CYNGNOS-2121
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Change-Id: I9d2827fccb4665da22303024ece61d42596a0ca3
TICKET: CYNGNOS-2295
|
|
|
|
|
| |
Change-Id: Ie078b20539e982cd124163da8816fb106c52b927
TICKET: CYNGNOS-2126
|
|
|
|
|
|
|
|
| |
Messaging is now com.android.messaging and the main activity is now
com.android.messaging.ui.conversationlist.ConversationListActivity
Change-Id: I1878be46dc1b775ad633336940fc831d88b2558f
TICKET: CYNGNOS-1887
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Includes the live lock screen path in the currently applied
components query
Change-Id: I00a4290c96b3c87b3e3d7d1fefc22219440822f9
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ia7fda2761fb851fa70eee3dbf72c469957245b53
|
|
|
|
| |
Change-Id: Ibafde34788c57e551c2bb9eb73a1d7a6d5ad5432
|
|
|
|
| |
Change-Id: Id0d210bae65b17a2eced021bdb2d19fa5063f678
|
|
|
|
| |
Change-Id: I63079611828cb82d732afec872e37038d1fe509c
|
|
|
|
|
| |
Change-Id: Ia7ce6b8a25958ef8b60f45e56e6777f1a6ff83d6
(cherry picked from commit 2f386fcd435cb455039138e67ff373f821db448d)
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
| |
DialerNext uses a different package name but the activity is still
part of com.android.dialer
Change-Id: Iafdffec268c1ecd7b2e5f818e85fb785a6e765ee
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Change-Id: I5d1cbf98768965f9f4b4c704c809737193338916
REF: CYNGNOS-866
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Sometimes parameters, selection, and selection arguments may be null.
Handle various null cases to get correct behavior.
Change-Id: I8b969b3e1a726498ea3044374b2d235b8f41091a
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Ieab6c7b42ef3c7a3fe3357b745bdcdd9de0700f6
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I7e8f40335c4b5a202d457eba7f3bd337b9342908
|
|
|
|
| |
Change-Id: I6b4224e9416e61ce7792e608bd4fd602a9b34e47
|
|
|
|
| |
Change-Id: Idf2f586b743025f4788f3373fc0078efec48feb9
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: Id33b96b9bbf720522cecd65541098eb75dc6b315
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change-Id: I4923ddc57674fdc8f08ed5f58d42a2dbf0b6f13c
|
|
|
|
| |
Change-Id: Iae1d13aa29807357f2c7615a40ac2de98d6f0b04
|
|
|
|
| |
Change-Id: Ibd0f0d7f9bae758acf30b5d6600475e6319023f3
|
|
|
|
| |
Change-Id: I861b12ab595c80c5ee7c746f8e9402f9667ebbe7
|
|
|
|
|
|
|
|
|
| |
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
|