From 75ab08fd9c9c1645335d12eeef734ff493bd0070 Mon Sep 17 00:00:00 2001 From: d34d Date: Mon, 19 Jan 2015 08:13:59 -0800 Subject: Themes: Restructure resource cache [1/2] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- core/java/android/content/res/AssetManager.java | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'core/java/android/content/res') 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); /** -- cgit v1.1