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
97 method_onConnectStateChanged = env->GetMethodID(clazz, "onConnectStateChanged", in classInitNative()
99 method_onControlStateChanged = env->GetMethodID(clazz, "onControlStateChanged", in classInitNative()
106 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument
124 env->DeleteGlobalRef(mCallbacksObj); in initializeNative()
134 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
142 env->DeleteGlobalRef(mCallbacksObj); in initializeNative()
149 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument
160 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative()
166 static jboolean enablePanNative(JNIEnv *env, jobject object, jint local_role) { in enablePanNative() argument
174 static jint getPanLocalRoleNative(JNIEnv *env, jobject object) { in getPanLocalRoleNative() argument
185 static jboolean connectPanNative(JNIEnv *env, jobject object, jbyteArray address, in connectPanNative() argument
193 addr = env->GetByteArrayElements(address, NULL); in connectPanNative()
204 env->ReleaseByteArrayElements(address, addr, 0); in connectPanNative()
209 static jboolean disconnectPanNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectPanNative() argument
215 addr = env->GetByteArrayElements(address, NULL); in disconnectPanNative()
226 env->ReleaseByteArrayElements(address, addr, 0); in disconnectPanNative()
242 int register_com_android_bluetooth_pan(JNIEnv* env) in register_com_android_bluetooth_pan() argument
244 return jniRegisterNativeMethods(env, "com/android/bluetooth/pan/PanService", in register_com_android_bluetooth_pan()