• Home
  • Raw
  • Download

Lines Matching refs:env

65     JNIEnv* env = AndroidRuntime::getJNIEnv();  in checkCallbackThread()  local
66 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
219 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
227 env->GetMethodID(clazz, "onConnectionStateChanged", "(I[B)V"); in classInitNative()
228 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
229 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I)V"); in classInitNative()
230 method_onAnswerCall = env->GetMethodID(clazz, "onAnswerCall", "()V"); in classInitNative()
231 method_onHangupCall = env->GetMethodID(clazz, "onHangupCall", "()V"); in classInitNative()
232 method_onVolumeChanged = env->GetMethodID(clazz, "onVolumeChanged", "(II)V"); in classInitNative()
233 method_onDialCall = env->GetMethodID(clazz, "onDialCall", "(Ljava/lang/String;)V"); in classInitNative()
234 method_onSendDtmf = env->GetMethodID(clazz, "onSendDtmf", "(I)V"); in classInitNative()
235 method_onNoiceReductionEnable = env->GetMethodID(clazz, "onNoiceReductionEnable", "(Z)V"); in classInitNative()
236 method_onAtChld = env->GetMethodID(clazz, "onAtChld", "(I)V"); in classInitNative()
237 method_onAtCnum = env->GetMethodID(clazz, "onAtCnum", "()V"); in classInitNative()
238 method_onAtCind = env->GetMethodID(clazz, "onAtCind", "()V"); in classInitNative()
239 method_onAtCops = env->GetMethodID(clazz, "onAtCops", "()V"); in classInitNative()
240 method_onAtClcc = env->GetMethodID(clazz, "onAtClcc", "()V"); in classInitNative()
241 method_onUnknownAt = env->GetMethodID(clazz, "onUnknownAt", "(Ljava/lang/String;)V"); in classInitNative()
242 method_onKeyPressed = env->GetMethodID(clazz, "onKeyPressed", "()V"); in classInitNative()
268 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument
285 env->DeleteGlobalRef(mCallbacksObj); in initializeNative()
301 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
304 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument
321 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative()
326 static jboolean connectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in connectHfpNative() argument
333 addr = env->GetByteArrayElements(address, NULL); in connectHfpNative()
335 jniThrowIOException(env, EINVAL); in connectHfpNative()
342 env->ReleaseByteArrayElements(address, addr, 0); in connectHfpNative()
346 static jboolean disconnectHfpNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectHfpNative() argument
352 addr = env->GetByteArrayElements(address, NULL); in disconnectHfpNative()
354 jniThrowIOException(env, EINVAL); in disconnectHfpNative()
361 env->ReleaseByteArrayElements(address, addr, 0); in disconnectHfpNative()
365 static jboolean connectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in connectAudioNative() argument
371 addr = env->GetByteArrayElements(address, NULL); in connectAudioNative()
373 jniThrowIOException(env, EINVAL); in connectAudioNative()
381 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative()
385 static jboolean disconnectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectAudioNative() argument
391 addr = env->GetByteArrayElements(address, NULL); in disconnectAudioNative()
393 jniThrowIOException(env, EINVAL); in disconnectAudioNative()
401 env->ReleaseByteArrayElements(address, addr, 0); in disconnectAudioNative()
405 static jboolean startVoiceRecognitionNative(JNIEnv *env, jobject object) { in startVoiceRecognitionNative() argument
415 static jboolean stopVoiceRecognitionNative(JNIEnv *env, jobject object) { in stopVoiceRecognitionNative() argument
425 static jboolean setVolumeNative(JNIEnv *env, jobject object, jint volume_type, jint volume) { in setVolumeNative() argument
436 static jboolean notifyDeviceStatusNative(JNIEnv *env, jobject object, in notifyDeviceStatusNative() argument
450 static jboolean copsResponseNative(JNIEnv *env, jobject object, jstring operator_str) { in copsResponseNative() argument
455 operator_name = env->GetStringUTFChars(operator_str, NULL); in copsResponseNative()
460 env->ReleaseStringUTFChars(operator_str, operator_name); in copsResponseNative()
464 static jboolean cindResponseNative(JNIEnv *env, jobject object, in cindResponseNative() argument
479 static jboolean atResponseStringNative(JNIEnv *env, jobject object, jstring response_str) { in atResponseStringNative() argument
484 response = env->GetStringUTFChars(response_str, NULL); in atResponseStringNative()
489 env->ReleaseStringUTFChars(response_str, response); in atResponseStringNative()
493 static jboolean atResponseCodeNative(JNIEnv *env, jobject object, jint response_code, jint cmee_cod… in atResponseCodeNative() argument
504 static jboolean clccResponseNative(JNIEnv *env, jobject object, jint index, jint dir, in clccResponseNative() argument
512 number = env->GetStringUTFChars(number_str, NULL); in clccResponseNative()
521 env->ReleaseStringUTFChars(number_str, number); in clccResponseNative()
525 static jboolean phoneStateChangeNative(JNIEnv *env, jobject object, jint num_active, jint num_held, in phoneStateChangeNative() argument
531 number = env->GetStringUTFChars(number_str, NULL); in phoneStateChangeNative()
538 env->ReleaseStringUTFChars(number_str, number); in phoneStateChangeNative()
562 int register_com_android_bluetooth_hfp(JNIEnv* env) in register_com_android_bluetooth_hfp() argument
564 return jniRegisterNativeMethods(env, "com/android/bluetooth/hfp/HeadsetStateMachine", in register_com_android_bluetooth_hfp()