Lines Matching refs:j_env
150 JNIEnv* j_env = android::AndroidRuntime::getJNIEnv(); in AllocPlayerRoutingProxy() local
154 j_env->FindClass("android/media/AudioTrackRoutingProxy"); in AllocPlayerRoutingProxy()
156 j_env->GetMethodID(clsAudioTrackRoutingProxy, "<init>", "(J)V"); in AllocPlayerRoutingProxy()
158 j_env->ExceptionClear(); in AllocPlayerRoutingProxy()
161 j_env->NewObject(clsAudioTrackRoutingProxy, in AllocPlayerRoutingProxy()
165 *proxyObj = j_env->NewGlobalRef(localObjRef); in AllocPlayerRoutingProxy()
167 if (j_env->ExceptionCheck()) { in AllocPlayerRoutingProxy()
225 JNIEnv* j_env = android::AndroidRuntime::getJNIEnv(); in AllocRecorderRoutingProxy() local
229 j_env->FindClass("android/media/AudioRecordRoutingProxy"); in AllocRecorderRoutingProxy()
231 j_env->GetMethodID(clsAudioRecordRoutingProxy, "<init>", "(J)V"); in AllocRecorderRoutingProxy()
233 j_env->ExceptionClear(); in AllocRecorderRoutingProxy()
235 j_env->NewObject(clsAudioRecordRoutingProxy, in AllocRecorderRoutingProxy()
239 *proxyObj = j_env->NewGlobalRef(localObjRef); in AllocRecorderRoutingProxy()
240 if (j_env->ExceptionCheck()) { in AllocRecorderRoutingProxy()
331 JNIEnv* j_env = android::AndroidRuntime::getJNIEnv(); in IAndroidConfiguration_ReleaseJavaProxy() local
335 j_env->FindClass("android/media/AudioTrackRoutingProxy"); in IAndroidConfiguration_ReleaseJavaProxy()
337 j_env->GetMethodID(clsAudioTrackRoutingProxy, "native_release", "()V"); in IAndroidConfiguration_ReleaseJavaProxy()
339 j_env->ExceptionClear(); in IAndroidConfiguration_ReleaseJavaProxy()
340 j_env->CallVoidMethod(iConfig->mRoutingProxy, midAudioTrackRoutingProxy_release); in IAndroidConfiguration_ReleaseJavaProxy()
341 if (j_env->ExceptionCheck()) { in IAndroidConfiguration_ReleaseJavaProxy()
345 j_env->DeleteGlobalRef(iConfig->mRoutingProxy); in IAndroidConfiguration_ReleaseJavaProxy()
352 JNIEnv* j_env = android::AndroidRuntime::getJNIEnv(); in IAndroidConfiguration_ReleaseJavaProxy() local
356 j_env->FindClass("android/media/AudioRecordRoutingProxy"); in IAndroidConfiguration_ReleaseJavaProxy()
358 j_env->GetMethodID(clsAudioRecordRoutingProxy, "native_release", "()V"); in IAndroidConfiguration_ReleaseJavaProxy()
360 j_env->ExceptionClear(); in IAndroidConfiguration_ReleaseJavaProxy()
361 j_env->CallVoidMethod(iConfig->mRoutingProxy, midAudioRecordRoutingProxy_release); in IAndroidConfiguration_ReleaseJavaProxy()
362 if (j_env->ExceptionCheck()) { in IAndroidConfiguration_ReleaseJavaProxy()
366 j_env->DeleteGlobalRef(iConfig->mRoutingProxy); in IAndroidConfiguration_ReleaseJavaProxy()