diff options
| author | d34d <clark@cyngn.com> | 2015-01-19 08:13:59 -0800 |
|---|---|---|
| committer | Clark Scheff <clark@cyngn.com> | 2015-10-27 10:38:48 -0700 |
| commit | 75ab08fd9c9c1645335d12eeef734ff493bd0070 (patch) | |
| tree | 60d7173f54cc7e38a125a7315d9cd3e6a26eecdf /core/java/android/content/res | |
| parent | 607f76114ba5665c9ac7866da1a42cb89ccac6f2 (diff) | |
| download | frameworks_base-75ab08fd9c9c1645335d12eeef734ff493bd0070.zip frameworks_base-75ab08fd9c9c1645335d12eeef734ff493bd0070.tar.gz frameworks_base-75ab08fd9c9c1645335d12eeef734ff493bd0070.tar.bz2 | |
Themes: Restructure resource cache [1/2]
The new structure is as follows:
/data/resource-cache/
├─ theme1_pkg_name
| ├─ target1_pkg_name
| | ├─ idmap
| | └─ resources.apk
| ├─ target2_pkg_name
| ·
| ·
| ·
| ├─ targetN_pkg_name
| └─ icons
| ├─ hash
| └─ resources.apk
├─ theme2_pkg_name
·
·
·
└─ themeN_pkg_name
Change-Id: Id39688c88929733b42368c1f20ef0e25848a3390
Diffstat (limited to 'core/java/android/content/res')
| -rw-r--r-- | core/java/android/content/res/AssetManager.java | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/core/java/android/content/res/AssetManager.java b/core/java/android/content/res/AssetManager.java index f663c50..421701a 100644 --- a/core/java/android/content/res/AssetManager.java +++ b/core/java/android/content/res/AssetManager.java @@ -644,11 +644,10 @@ public final class AssetManager implements AutoCloseable { * * {@hide} */ - - public final int addOverlayPath(String idmapPath, String resApkPath, String targetPkgPath, - String prefixPath) { + public final int addOverlayPath(String idmapPath, String themeApkPath, + String resApkPath, String targetPkgPath, String prefixPath) { synchronized (this) { - int res = addOverlayPathNative(idmapPath, resApkPath, targetPkgPath, + int res = addOverlayPathNative(idmapPath, themeApkPath, resApkPath, targetPkgPath, prefixPath); makeStringBlocks(mStringBlocks); return res; @@ -660,7 +659,7 @@ public final class AssetManager implements AutoCloseable { * * {@hide} */ - private native final int addOverlayPathNative(String idmapPath, + private native final int addOverlayPathNative(String idmapPath, String themeApkPath, String resApkPath, String targetPkgPath, String prefixPath); /** @@ -668,14 +667,14 @@ public final class AssetManager implements AutoCloseable { * * {@hide} */ - public final int addCommonOverlayPath(String idmapPath, + public final int addCommonOverlayPath(String themeApkPath, String resApkPath, String prefixPath) { synchronized (this) { - return addCommonOverlayPathNative(idmapPath, resApkPath, prefixPath); + return addCommonOverlayPathNative(themeApkPath, resApkPath, prefixPath); } } - private native final int addCommonOverlayPathNative(String idmapPath, + private native final int addCommonOverlayPathNative(String themeApkPath, String resApkPath, String prefixPath); /** |
