diff options
| author | 2015-01-20 21:41:45 +0000 | |
|---|---|---|
| committer | 2015-01-20 21:41:46 +0000 | |
| commit | aee7225e34376a90e8c25e5df53604085cc1b712 (patch) | |
| tree | 1db2646e1368400bcba92a44e9a3e6c2cef0a0ea /libs/androidfw | |
| parent | 7651dcb92193a5a970a2554e067ec14d6fcad802 (diff) | |
| parent | 42eea270a0a2bc54f454312817c41ac357e3a884 (diff) | |
Merge "Process base APK" into lmp-mr1-dev
Diffstat (limited to 'libs/androidfw')
| -rw-r--r-- | libs/androidfw/ResourceTypes.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/androidfw/ResourceTypes.cpp b/libs/androidfw/ResourceTypes.cpp index d7b976553e93..bdb53c36d991 100644 --- a/libs/androidfw/ResourceTypes.cpp +++ b/libs/androidfw/ResourceTypes.cpp @@ -5338,7 +5338,7 @@ const DynamicRefTable* ResTable::getDynamicRefTableForCookie(int32_t cookie) con return NULL; } -void ResTable::getConfigurations(Vector<ResTable_config>* configs) const +void ResTable::getConfigurations(Vector<ResTable_config>* configs, bool ignoreMipmap) const { const size_t packageCount = mPackageGroups.size(); for (size_t i = 0; i < packageCount; i++) { @@ -5349,6 +5349,12 @@ void ResTable::getConfigurations(Vector<ResTable_config>* configs) const const size_t numTypes = typeList.size(); for (size_t k = 0; k < numTypes; k++) { const Type* type = typeList[k]; + const ResStringPool& typeStrings = type->package->typeStrings; + if (ignoreMipmap && typeStrings.string8ObjectAt( + type->typeSpec->id - 1) == "mipmap") { + continue; + } + const size_t numConfigs = type->configs.size(); for (size_t m = 0; m < numConfigs; m++) { const ResTable_type* config = type->configs[m]; |