summaryrefslogtreecommitdiffstats
path: root/tools/aapt/StringPool.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use UTF-8 strings to avoid duplicate caching, part 1Kenny Root2010-02-231-2/+6
| | | | | | | | | | | | StringBlock instances containing UTF-8 strings use a cache to convert into UTF-16, but using that cache and then using a JNI call to NewString causes the UTF-8 string as well as two copies of the UTF-16 string to be held in memory. Getting the UTF-8 string directly from the StringPool eliminates one copy of the UTF-16 string being held in memory. This is part 1. Part 2 will include ResXMLParser optimizations. Change-Id: Ibd4509a485db746d59cd4b9501f544877139276c
* Add the --rename-manifest-package option to aapt.Jeff Hamilton2010-02-011-1/+1
| | | | | | | It allows you to force override the manifest package listed in the AndroidManifest.xml when creating an APK file. Change-Id: I7eac7943c4e56610b65728ae54773a273634fd9d
* Optional use of UTF-8 strings in resource bundlesKenny Root2009-12-071-12/+50
| | | | | | | | | | | | | | | Allows the use of UTF-8 for packing resources instead of the default of UTF-16 for Java. When strings are extracted from the ResStringPool, they are converted to UTF-16 and the result is cached for subsequent calls. When using aapt to package, add in the "-8" switch to pack the resources using UTF-8. This will result in the value, key, and type strings as well as the compiled XML string values taking significantly less space in the final application package in most scenarios. Change-Id: I129483f8b3d3b1c5869dced05cb525e494a6c83a
* Fix bitmask in aapt's StringPool length constructionKenny Root2009-12-041-1/+1
| | | | | | | | | | The StringPool indicates the length of a string with a 16-bit integer. If the length of the string is greater than 0x7FFF, it splits it into two 16-bit integers with the first one having the high bit set. The length calculation has a small bug that masks off the 19 bits instead of the first 15 bits as intended.
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+369
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-369/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+369