summaryrefslogtreecommitdiff
path: root/tools/aapt/StringPool.h
AgeCommit message (Collapse)Author
2016-09-22Remove has_trivial_move trait from StringPool typesColin Cross
StringPool:entry* are not trivially moveable, as they contain Vector<> objects. The data in Vector<> is trivially moveable, but Vector<> itself is a dynamic type with a vtable, which is not trivially moveable. Impact on aapt for frameworks-res is negligible, ~3%. Bug: 31595853 Test: m -j framework-res Change-Id: I562a46ef8934aed7aab5c5377db53d9cf64a08b9
2016-08-11Fix clang-tidy warnings in aapt and aapt2.Chih-Hung Hsieh
* Add explicit keyword to conversion constructors. * Add NOLINT(implicit) comments for implicit conversion constructors. Bug: 28341362 * Use const reference type for read-only parameters. Bug: 30407689 * Use const reference type to avoid unnecessary copy. Bug: 30413862 Test: build with WITH_TIDY=1 Change-Id: Id6d21961f313a1ad92b15a37fdaa5be9e8ab48e1 Merged-In: Id6d21961f313a1ad92b15a37fdaa5be9e8ab48e1
2015-07-21aapt: expat exports its header files now.Elliott Hughes
(cherrypick of 51348d2007b801c7bd7350f72e2300f1a5a41dd1) Change-Id: Iddf0133919d38fc896f97c6796f8228a6decf174
2015-07-11Revert "frameworks/base: libexpat now exports its headers."Elliott Hughes
This reverts commit 2f31b66c04b1e80fd039418edf41e74f67b68143. Change-Id: Ib4ce610d1767db5c72c54d33520e8bdf50171a18
2015-07-10frameworks/base: libexpat now exports its headers.Elliott Hughes
Change-Id: Iaba3d57db18ebdd89e4a993436e9bf844722ff87
2014-11-03Merge commit '78be0498' into manualmergeAdam Lesinski
Conflicts: libs/androidfw/ResourceTypes.cpp tools/aapt/Android.mk tools/aapt/StringPool.cpp tools/aapt/StringPool.h Change-Id: I9d69efdfb892032895ace12159d193304f02dc6c
2014-11-03Fix issues that will be present in C++11Adam Lesinski
- char16_t is a distinct type, so stay consistent with it throughout the code base. - char16_t is defined as minimum size of 16 bits. Since we mmap and cast data structures onto raw memory, we need a precise definition (uint16_t), so we cast between that (and static_assert that they are the same size). Change-Id: I869c32637543bbcfb39d2643e7d9df10d33acd3c
2014-10-01Use std::sort instead of qsort_r wrapper.Dan Albert
The HAVE_(BSD|GNU)_QSORT_R in AndroidConfig.h has never worked, and we should just be using something standard anyway. Change-Id: I784d6212f6c890a11c4af2f83d1ce2d279708652
2014-09-08Use char16_t for char things.Dan Albert
When compiling in C++ mode, the compiler will complain about conversions from uint16_t to char16_t. Be consistent in using char16_t for strings. Change-Id: I052b6176ced635162920b31560052d9a64f92764
2014-01-27Revert "Move frameworks/base/tools/ to frameworks/tools/"Adam Lesinski
This reverts commit 9f6a119c8aa276432ece4fe2118bd8a3c9b1067e.
2013-08-28Move frameworks/base/tools/ to frameworks/tools/Mike Lockwood
Change-Id: I3ffafdab27cc4aca256c3a5806b630795b75d5c8
2013-05-07libutils clean-upMathias Agopian
Change-Id: I11ee943da23a66828455a9770fc3c5ceb4bbcaa9
2012-09-09Fix aapt to get expat header files from the approved location.Elliott Hughes
Change-Id: Ic7c796e048cfe98ee355c18b3708fee5ea716e2e
2012-03-19Use qsort_r_compat() as a portable wrapper for qsort_r().Jeff Brown
Change-Id: Ie79f81625947f4e95122047605d994c86e872e74
2012-03-19Fix build break on glibc, for real.Jeff Brown
Change-Id: I8bbec237229b05f96c708d41f3c4da17e2a90e2b
2012-03-16Use quicksort to sort the string pool.Jeff Brown
The current implementation of Vector::sort uses insertion sort on the assumption that the data is mostly sorted. It isn't. This change brings the total time spent sorting packages by config down to 500ms from about 93 seconds. Bug: 6186278 Change-Id: Iec8da11e09297acd6c73733d063b0fa9dacf69f7
2012-03-16Remove dead code in StringPool.Jeff Brown
The sorted string pool option was no longer used. Neither were strings with associated identifiers. Change-Id: Ic5f6368637fbeedfda873d63f4ad0f3ea9d0d603
2012-03-16Make StringPool entry types trivially movable.Jeff Brown
Change-Id: If93957a840a0f1cae2e6ef291eeeb1b0c7c20958
2012-02-17frameworks/base refactoring.Mathias Agopian
step 2: move libutils headers to their new home: androidfw Change-Id: I14624ba23db92a81f2cb929f104386e1fab293ef
2012-01-31aapt now sorts the strings in the resource string pool.Dianne Hackborn
In our current environment with very many translations, this can save a lot of RAM -- for example over 200K in Gmail just by sorting the strings in the Gmail .apk (not the framework). Also add a new aapt command to print the contents of the resource table string pool. Change-Id: I1da037b3e2c377b890833ff57ab158965314ac48
2009-12-07Optional use of UTF-8 strings in resource bundlesKenny Root
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
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2009-03-03auto import from //depot/cupcake/@135843The Android Open Source Project
2008-10-21Initial ContributionThe Android Open Source Project