summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authord34d <clark@cyngn.com>2015-01-19 08:13:59 -0800
committerClark Scheff <clark@cyngn.com>2015-10-27 10:38:48 -0700
commit75ab08fd9c9c1645335d12eeef734ff493bd0070 (patch)
tree60d7173f54cc7e38a125a7315d9cd3e6a26eecdf /tests
parent607f76114ba5665c9ac7866da1a42cb89ccac6f2 (diff)
downloadframeworks_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 'tests')
-rw-r--r--tests/ThemesTest/src/com/example/themetests/MainActivity.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ThemesTest/src/com/example/themetests/MainActivity.java b/tests/ThemesTest/src/com/example/themetests/MainActivity.java
index 2793272..430c997 100644
--- a/tests/ThemesTest/src/com/example/themetests/MainActivity.java
+++ b/tests/ThemesTest/src/com/example/themetests/MainActivity.java
@@ -147,7 +147,7 @@ public class MainActivity extends Activity {
String targetPackagePath = piTarget.applicationInfo.sourceDir;
String prefixPath = ThemeUtils.getOverlayPathToTarget(basePackageName);
- String resCachePath = ThemeUtils.getResDir(basePackageName, piTheme);
+ String resCachePath = ThemeUtils.getTargetCacheDir(basePackageName, piTheme);
String resTablePath = resCachePath + "/resources.arsc";
String resApkPath = resCachePath + "/resources.apk";
int cookie = assets.addOverlayPath(themePath, resTablePath, resApkPath,
@@ -160,7 +160,7 @@ public class MainActivity extends Activity {
}
if (!piTarget.isThemeApk && piTheme.mOverlayTargets.contains("android")) {
- String resCachePath= ThemeUtils.getResDir(piAndroid.packageName, piTheme);
+ String resCachePath= ThemeUtils.getTargetCacheDir(piAndroid.packageName, piTheme);
String prefixPath = ThemeUtils.getOverlayPathToTarget(piAndroid.packageName);
String targetPackagePath = piAndroid.applicationInfo.publicSourceDir;
String resTablePath = resCachePath + "/resources.arsc";