Lines Matching refs:env
54 JNIEnv* env = AndroidRuntime::getJNIEnv(); in checkCallbackThread() local
55 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
96 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
100 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", in classInitNative()
102 method_onControlStateChanged = env->GetMethodID(clazz, "onControlStateChanged", in classInitNative()
109 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument
127 env->DeleteGlobalRef(mCallbacksObj); in initializeNative()
144 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
147 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument
159 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative()
165 static jboolean enablePanNative(JNIEnv *env, jobject object, jint local_role) { in enablePanNative() argument
174 static jint getPanLocalRoleNative(JNIEnv *env, jobject object) { in getPanLocalRoleNative() argument
186 static jboolean connectPanNative(JNIEnv *env, jobject object, jbyteArray address, in connectPanNative() argument
194 addr = env->GetByteArrayElements(address, NULL); in connectPanNative()
205 env->ReleaseByteArrayElements(address, addr, 0); in connectPanNative()
210 static jboolean disconnectPanNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectPanNative() argument
216 addr = env->GetByteArrayElements(address, NULL); in disconnectPanNative()
227 env->ReleaseByteArrayElements(address, addr, 0); in disconnectPanNative()
243 int register_com_android_bluetooth_pan(JNIEnv* env) in register_com_android_bluetooth_pan() argument
245 return jniRegisterNativeMethods(env, "com/android/bluetooth/pan/PanService", in register_com_android_bluetooth_pan()