commit | 62fbf97b3c30eb56f93ea563a21dbc401be1ac06 | [log] [tgz] |
---|---|---|
author | Dongwon Kang <dwkang@google.com> | Thu Jun 28 17:41:33 2018 -0700 |
committer | Dongwon Kang <dwkang@google.com> | Thu Jun 28 17:48:53 2018 -0700 |
tree | cc78fa255a91cf372415bd07550471880417dfb9 | |
parent | 10a67ef68ac40bf826d8d60ae337be5e0abda673 [diff] |
Remove AndroidRuntime::getJNIEnv() usage from libmedia2_jni JavaVMHelper keeps the vm instance supplied with JNI_OnLoad and it is reused whenever JniEnv is requested. Plus, AndroidRuntime::registerNativeMethods() is replaced with jniRegisterNativeMethods() in libnativehelper. Test: pass MediaPlayer2Test#testPlayVideo Bug: 63934228 Change-Id: Ia773afa93df00b32debd08f0a66893656f710341