• Home
  • Raw
  • Download

Lines Matching refs:env

46     JNIEnv* env = AndroidRuntime::getJNIEnv();  in checkCallbackThread()  local
47 if (sCallbackEnv != env || sCallbackEnv == NULL) { in checkCallbackThread()
48 ALOGE("Callback env check fail: env: %p, callback: %p", env, sCallbackEnv); in checkCallbackThread()
100 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
105 method_onAppRegistrationState = env->GetMethodID(clazz, "onAppRegistrationState", "(II)V"); in classInitNative()
106 method_onChannelStateChanged = env->GetMethodID(clazz, "onChannelStateChanged", in classInitNative()
133 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument
150 env->DeleteGlobalRef(mCallbacksObj); in initializeNative()
166 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
169 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument
186 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative()
191 static jint registerHealthAppNative(JNIEnv *env, jobject object, jint data_type, in registerHealthAppNative() argument
204 mdep_cfg.mdep_description = env->GetStringUTFChars(name, NULL); in registerHealthAppNative()
205 reg_param.application_name = env->GetStringUTFChars(name, NULL); in registerHealthAppNative()
218 env->ReleaseStringUTFChars(name, mdep_cfg.mdep_description); in registerHealthAppNative()
219 env->ReleaseStringUTFChars(name, reg_param.application_name); in registerHealthAppNative()
223 static jboolean unregisterHealthAppNative(JNIEnv *env, jobject object, int app_id) { in unregisterHealthAppNative() argument
233 static jint connectChannelNative(JNIEnv *env, jobject object, in connectChannelNative() argument
240 addr = env->GetByteArrayElements(address, NULL); in connectChannelNative()
252 env->ReleaseByteArrayElements(address, addr, 0); in connectChannelNative()
257 static jboolean disconnectChannelNative(JNIEnv *env, jobject object, jint channel_id) { in disconnectChannelNative() argument
279 int register_com_android_bluetooth_hdp(JNIEnv* env) in register_com_android_bluetooth_hdp() argument
281 return jniRegisterNativeMethods(env, "com/android/bluetooth/hdp/HealthService", in register_com_android_bluetooth_hdp()