Lines Matching refs:env

66     JNIEnv* env = AndroidRuntime::getJNIEnv();  in checkCallbackThread()  local
67 if (sCallbackEnv != env || sCallbackEnv == NULL) return false; in checkCallbackThread()
279 static void classInitNative(JNIEnv* env, jclass clazz) { in classInitNative() argument
280 … method_onConnectionStateChanged = env->GetMethodID(clazz, "onConnectionStateChanged", "(III[B)V"); in classInitNative()
281 method_onAudioStateChanged = env->GetMethodID(clazz, "onAudioStateChanged", "(I[B)V"); in classInitNative()
282 method_onVrStateChanged = env->GetMethodID(clazz, "onVrStateChanged", "(I)V"); in classInitNative()
283 method_onNetworkState = env->GetMethodID(clazz, "onNetworkState", "(I)V"); in classInitNative()
284 method_onNetworkRoaming = env->GetMethodID(clazz, "onNetworkRoaming", "(I)V"); in classInitNative()
285 method_onNetworkSignal = env->GetMethodID(clazz, "onNetworkSignal", "(I)V"); in classInitNative()
286 method_onBatteryLevel = env->GetMethodID(clazz, "onBatteryLevel", "(I)V"); in classInitNative()
287 … method_onCurrentOperator = env->GetMethodID(clazz, "onCurrentOperator", "(Ljava/lang/String;)V"); in classInitNative()
288 method_onCall = env->GetMethodID(clazz, "onCall", "(I)V"); in classInitNative()
289 method_onCallSetup = env->GetMethodID(clazz, "onCallSetup", "(I)V"); in classInitNative()
290 method_onCallHeld = env->GetMethodID(clazz, "onCallHeld", "(I)V"); in classInitNative()
291 method_onRespAndHold = env->GetMethodID(clazz, "onRespAndHold", "(I)V"); in classInitNative()
292 method_onClip = env->GetMethodID(clazz, "onClip", "(Ljava/lang/String;)V"); in classInitNative()
293 method_onCallWaiting = env->GetMethodID(clazz, "onCallWaiting", "(Ljava/lang/String;)V"); in classInitNative()
294 method_onCurrentCalls = env->GetMethodID(clazz, "onCurrentCalls", "(IIIILjava/lang/String;)V"); in classInitNative()
295 method_onVolumeChange = env->GetMethodID(clazz, "onVolumeChange", "(II)V"); in classInitNative()
296 method_onCmdResult = env->GetMethodID(clazz, "onCmdResult", "(II)V"); in classInitNative()
297 method_onSubscriberInfo = env->GetMethodID(clazz, "onSubscriberInfo", "(Ljava/lang/String;I)V"); in classInitNative()
298 method_onInBandRing = env->GetMethodID(clazz, "onInBandRing", "(I)V"); in classInitNative()
299 method_onLastVoiceTagNumber = env->GetMethodID(clazz, "onLastVoiceTagNumber", in classInitNative()
301 method_onRingIndication = env->GetMethodID(clazz, "onRingIndication","()V"); in classInitNative()
306 static void initializeNative(JNIEnv *env, jobject object) { in initializeNative() argument
324 env->DeleteGlobalRef(mCallbacksObj); in initializeNative()
342 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
345 static void cleanupNative(JNIEnv *env, jobject object) { in cleanupNative() argument
361 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative()
366 static jboolean connectNative(JNIEnv *env, jobject object, jbyteArray address) { in connectNative() argument
372 addr = env->GetByteArrayElements(address, NULL); in connectNative()
374 jniThrowIOException(env, EINVAL); in connectNative()
381 env->ReleaseByteArrayElements(address, addr, 0); in connectNative()
385 static jboolean disconnectNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectNative() argument
391 addr = env->GetByteArrayElements(address, NULL); in disconnectNative()
393 jniThrowIOException(env, EINVAL); in disconnectNative()
400 env->ReleaseByteArrayElements(address, addr, 0); in disconnectNative()
404 static jboolean connectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in connectAudioNative() argument
410 addr = env->GetByteArrayElements(address, NULL); in connectAudioNative()
412 jniThrowIOException(env, EINVAL); in connectAudioNative()
420 env->ReleaseByteArrayElements(address, addr, 0); in connectAudioNative()
424 static jboolean disconnectAudioNative(JNIEnv *env, jobject object, jbyteArray address) { in disconnectAudioNative() argument
430 addr = env->GetByteArrayElements(address, NULL); in disconnectAudioNative()
432 jniThrowIOException(env, EINVAL); in disconnectAudioNative()
440 env->ReleaseByteArrayElements(address, addr, 0); in disconnectAudioNative()
444 static jboolean startVoiceRecognitionNative(JNIEnv *env, jobject object) { in startVoiceRecognitionNative() argument
454 static jboolean stopVoiceRecognitionNative(JNIEnv *env, jobject object) { in stopVoiceRecognitionNative() argument
464 static jboolean setVolumeNative(JNIEnv *env, jobject object, jint volume_type, jint volume) { in setVolumeNative() argument
475 static jboolean dialNative(JNIEnv *env, jobject object, jstring number_str) { in dialNative() argument
481 number = env->GetStringUTFChars(number_str, NULL); in dialNative()
488 env->ReleaseStringUTFChars(number_str, number); in dialNative()
493 static jboolean dialMemoryNative(JNIEnv *env, jobject object, jint location) { in dialMemoryNative() argument
504 static jboolean handleCallActionNative(JNIEnv *env, jobject object, jint action, jint index) { in handleCallActionNative() argument
515 static jboolean queryCurrentCallsNative(JNIEnv *env, jobject object) { in queryCurrentCallsNative() argument
526 static jboolean queryCurrentOperatorNameNative(JNIEnv *env, jobject object) { in queryCurrentOperatorNameNative() argument
537 static jboolean retrieveSubscriberInfoNative(JNIEnv *env, jobject object) { in retrieveSubscriberInfoNative() argument
548 static jboolean sendDtmfNative(JNIEnv *env, jobject object, jbyte code) { in sendDtmfNative() argument
559 static jboolean requestLastVoiceTagNumberNative(JNIEnv *env, jobject object) { in requestLastVoiceTagNumberNative() argument
570 static jboolean sendATCmdNative(JNIEnv *env, jobject object, jint cmd, in sendATCmdNative() argument
578 arg = env->GetStringUTFChars(arg_str, NULL); in sendATCmdNative()
587 env->ReleaseStringUTFChars(arg_str, arg); in sendATCmdNative()
615 int register_com_android_bluetooth_hfpclient(JNIEnv* env) in register_com_android_bluetooth_hfpclient() argument
617 … return jniRegisterNativeMethods(env, "com/android/bluetooth/hfpclient/HeadsetClientStateMachine", in register_com_android_bluetooth_hfpclient()