diff options
| author | Dianne Hackborn <hackbod@google.com> | 2009-07-17 11:13:48 -0700 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2009-07-17 16:59:08 -0700 |
| commit | a53b828635fce8b6b2d3e3377d74d72070056623 (patch) | |
| tree | 42f4ba9bbf7d8656a4761d6fe5dcd4976cf19369 /tools/aapt | |
| parent | 09a903ab5b8d940605783ae4ee591c0f090a31d1 (diff) | |
| download | frameworks_base-a53b828635fce8b6b2d3e3377d74d72070056623.zip frameworks_base-a53b828635fce8b6b2d3e3377d74d72070056623.tar.gz frameworks_base-a53b828635fce8b6b2d3e3377d74d72070056623.tar.bz2 | |
Add "nodpi" density, and expose a bunch of density-related APIs.
Also update the DpiTest app to use nodpi images, and try to have a mode
where it turns off compatibility though it's not quite working.
Diffstat (limited to 'tools/aapt')
| -rw-r--r-- | tools/aapt/AaptAssets.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/aapt/AaptAssets.cpp b/tools/aapt/AaptAssets.cpp index 67af116..14cad2f 100644 --- a/tools/aapt/AaptAssets.cpp +++ b/tools/aapt/AaptAssets.cpp @@ -654,9 +654,15 @@ bool AaptGroupEntry::getDensityName(const char* name, ResTable_config* out) { if (strcmp(name, kWildcardName) == 0) { - if (out) out->density = 0; + if (out) out->density = ResTable_config::DENSITY_DEFAULT; return true; } + + if (strcmp(name, "nodpi") == 0) { + if (out) out->density = ResTable_config::DENSITY_NONE; + return true; + } + char* c = (char*)name; while (*c >= '0' && *c <= '9') { c++; |
