summaryrefslogtreecommitdiffstats
path: root/core/jni/android_util_StringBlock.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use jniThrowException for exception throwing from native code.Elliott Hughes2011-04-071-29/+18
| | | | | | | | I'll do media and the generated gl stuff separately. Otherwise, this cleans up all direct calls of ThrowNew/Throw except the one in the binder that needs to remain. Change-Id: I8f95a5f020f53b25926ad31ac0c9477ddf85d04b
* Improve performance when getting styled string.Peter Eliasson2010-11-181-21/+0
| | | | | | | | | | | | The style used in the composing text for input methods takes a long time to create. This is experienced as a lag when composing the first word. The bottleneck lies in the 10 calls to nativeIndexOfString which does a linear search through thousands of strings. Change-Id: I3184b2be3673d384cca19e9a70ad94b4d3085576
* Use UTF-8 strings to avoid duplicate caching, part 1Kenny Root2010-02-231-0/+5
| | | | | | | | | | | | 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
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+204
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-204/+0
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+204