summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJosh Guilfoyle <Josh.Guilfoyle@T-Mobile.com>2010-12-23 01:04:24 -0800
committerJosh Guilfoyle <Josh.Guilfoyle@T-Mobile.com>2010-12-23 01:04:24 -0800
commit38544aabce9f9ef56be960483c76bd8c9d9ab3f0 (patch)
tree00632939199cee9f37a9b4f1ba7619db79c62821 /include
parentf10686942e2a66ca346e522e29d0dad386482ab9 (diff)
downloadframeworks_base-38544aabce9f9ef56be960483c76bd8c9d9ab3f0.zip
frameworks_base-38544aabce9f9ef56be960483c76bd8c9d9ab3f0.tar.gz
frameworks_base-38544aabce9f9ef56be960483c76bd8c9d9ab3f0.tar.bz2
Pass the high-level theme resource id into the redirection table layer.
This is necessary to provide the high-level style redirection heuristics (previously this was hacked to assume the Androidian's theme style id).
Diffstat (limited to 'include')
-rw-r--r--include/utils/AssetManager.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/utils/AssetManager.h b/include/utils/AssetManager.h
index fe92e87..89020de 100644
--- a/include/utils/AssetManager.h
+++ b/include/utils/AssetManager.h
@@ -198,7 +198,7 @@ public:
*/
void getLocales(Vector<String8>* locales) const;
- void setThemePackageName(const char* packageName);
+ void setThemePackageInfo(const char* packageName, uint32_t styleId);
const char* getThemePackageName();
/*
@@ -222,7 +222,8 @@ private:
SharedBuffer* generateRedirections(SharedBuffer* entriesByTypeBuf, ResTable* rt,
const char* themePackageName, const char16_t* resPackageName);
bool generateAndWriteRedirections(ResTable* rt, const char* themePackageName,
- const char16_t* resPackageName, const char* redirPath, bool isFramework) const;
+ uint32_t themeStyleId, const char16_t* resPackageName, const char* redirPath,
+ bool isFramework) const;
void loadRedirectionMappings(ResTable* rt) const;
void updateResTableFromAssetPath(ResTable* rt, const asset_path& ap, void* cookie) const;
Asset* openInPathLocked(const char* fileName, AccessMode mode,
@@ -344,6 +345,7 @@ private:
// If non-null, represents the theme package from which to construct the
// resource redirection map used by ResTable.
char* mThemePackageName;
+ uint32_t mThemeStyleId;
mutable ResTable* mResources;
ResTable_config* mConfig;