/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_hfp.cpp | 57 static jobject mCallbacksObj = nullptr; variable 88 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in ConnectionStateCallback() 93 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in ConnectionStateCallback() 103 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AudioStateCallback() 108 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in AudioStateCallback() 116 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in VoiceRecognitionCallback() 124 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, in VoiceRecognitionCallback() 131 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AnswerCallCallback() 139 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAnswerCall, in AnswerCallCallback() 146 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in HangupCallCallback() [all …]
|
D | com_android_bluetooth_pan.cpp | 45 static jobject mCallbacksObj = NULL; variable 64 if (mCallbacksObj == NULL) { in control_state_callback() 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, in control_state_callback() 83 if (mCallbacksObj == NULL) { in connection_state_callback() 94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() 131 if (mCallbacksObj != NULL) { in initializeNative() 133 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 134 mCallbacksObj = NULL; in initializeNative() 143 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 149 if (mCallbacksObj != NULL) { in initializeNative() [all …]
|
D | com_android_bluetooth_hid_host.cpp | 38 static jobject mCallbacksObj = NULL; variable 58 if (!mCallbacksObj) { in connection_state_callback() 68 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() 77 if (!mCallbacksObj) { in get_protocol_mode_callback() 92 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, in get_protocol_mode_callback() 100 if (!mCallbacksObj) { in get_report_callback() 122 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, addr.get(), in get_report_callback() 131 if (!mCallbacksObj) { in virtual_unplug_callback() 140 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualUnplug, in virtual_unplug_callback() 147 if (!mCallbacksObj) { in handshake_callback() [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 29 static jobject mCallbacksObj = NULL; variable 78 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in connection_state_cb() 91 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in audio_state_cb() 102 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, in vr_cmd_cb() 114 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkState, in network_state_cb() 125 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkRoaming, in network_roaming_cb() 136 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkSignal, in network_signal_cb() 147 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onBatteryLevel, in battery_level_cb() 167 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onCurrentOperator, in current_operator_cb() 178 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onCall, (jint)call, in call_cb() [all …]
|
D | com_android_bluetooth_hearing_aid.cpp | 40 static jobject mCallbacksObj = nullptr; variable 52 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState() 63 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState() 74 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable() 85 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable() 119 if (mCallbacksObj != nullptr) { in initNative() 121 env->DeleteGlobalRef(mCallbacksObj); in initNative() 122 mCallbacksObj = nullptr; in initNative() 125 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { in initNative() 155 if (mCallbacksObj != nullptr) { in cleanupNative() [all …]
|
D | com_android_bluetooth_a2dp_sink.cpp | 34 static jobject mCallbacksObj = NULL; variable 51 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback() 70 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback() 90 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioConfigChanged, in bta2dp_audio_config_callback() 126 if (mCallbacksObj != NULL) { in initNative() 128 env->DeleteGlobalRef(mCallbacksObj); in initNative() 129 mCallbacksObj = NULL; in initNative() 147 mCallbacksObj = env->NewGlobalRef(object); in initNative() 163 if (mCallbacksObj != NULL) { in cleanupNative() 164 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() [all …]
|
D | com_android_bluetooth_gatt.cpp | 193 static jobject mCallbacksObj = NULL; variable 204 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb() 224 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onScanResult, event_type, in btgattc_scan_result_cb() 237 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnected, clientIf, in btgattc_open_cb() 248 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDisconnected, clientIf, in btgattc_close_cb() 256 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchCompleted, conn_id, in btgattc_search_complete_cb() 265 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onRegisterForNotifications, in btgattc_register_for_notification_cb() 280 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNotify, conn_id, in btgattc_notify_cb() 301 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onReadCharacteristic, in btgattc_read_characteristic_cb() 309 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onWriteCharacteristic, in btgattc_write_characteristic_cb() [all …]
|
D | com_android_bluetooth_hid_device.cpp | 39 static jobject mCallbacksObj = NULL; variable 75 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onApplicationStateChanged, in application_state_callback() 89 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() 97 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, type, id, in get_report_callback() 113 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetReport, (jbyte)type, in set_report_callback() 120 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetProtocol, protocol); in set_protocol_callback() 135 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onInterruptData, in intr_data_callback() 141 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualCableUnplug); in vc_unplug_callback() 188 if (mCallbacksObj != NULL) { in initNative() 190 env->DeleteGlobalRef(mCallbacksObj); in initNative() [all …]
|
D | com_android_bluetooth_a2dp.cpp | 51 static jobject mCallbacksObj = nullptr; variable 60 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_connection_state_callback() 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback() 82 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_audio_state_callback() 94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback() 106 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_audio_config_callback() 162 mCallbacksObj, method_onCodecConfigChanged, addr.get(), codecConfigObj, in bta2dp_audio_config_callback() 279 if (mCallbacksObj != nullptr) { in initNative() 281 env->DeleteGlobalRef(mCallbacksObj); in initNative() 282 mCallbacksObj = nullptr; in initNative() [all …]
|