Skip to content
Commit 3e132049 authored by Peng Xu's avatar Peng Xu
Browse files

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
parent 38323f50
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment