commit | 3e13204989f0ebb1706cf44223b2ed28968ea46b | [log] [tgz] |
---|---|---|
author | Peng Xu <pengxu@google.com> | Mon Apr 17 17:45:24 2017 -0700 |
committer | Peng Xu <pengxu@google.com> | Tue Apr 18 12:49:06 2017 -0700 |
tree | f29f44335a53910ca724183b0d9a2ec7cd345d9b | |
parent | 38323f50c7f92491d7a7a89768275e0460370ab6 [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