summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorPeng Xu <pengxu@google.com>2017-04-17 17:45:24 -0700
committerPeng Xu <pengxu@google.com>2017-04-18 12:49:06 -0700
commit3e13204989f0ebb1706cf44223b2ed28968ea46b (patch)
treef29f44335a53910ca724183b0d9a2ec7cd345d9b /tools/aapt2/java/JavaClassGenerator.cpp
parent38323f50c7f92491d7a7a89768275e0460370ab6 (diff)
Intern Sensor object string using java String.intern()
At JNI initialization of Sensor object, call Java String.intern() to intern strings to save memory. Interned empty string, a commo case in sensor permission field, is cached to save a call to NewStringUTF. Also changed nativeInit to use helpers in core_jni_helpers.h. Bug: 36002383 Test: cts passes Change-Id: Id98e777ef2c105bd296133a70df611afb226ba74
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions