Home
last modified time | relevance | path

Searched refs:mCallbacksObj (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_hfp.cpp56 static jobject mCallbacksObj = nullptr; variable
87 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in ConnectionStateCallback()
92 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in ConnectionStateCallback()
102 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AudioStateCallback()
107 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in AudioStateCallback()
115 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in VoiceRecognitionCallback()
123 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, in VoiceRecognitionCallback()
130 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AnswerCallCallback()
138 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAnswerCall, in AnswerCallCallback()
145 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in HangupCallCallback()
[all …]
Dcom_android_bluetooth_pan.cpp44 static jobject mCallbacksObj = NULL; variable
63 if (mCallbacksObj == NULL) { in control_state_callback()
71 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, in control_state_callback()
82 if (mCallbacksObj == NULL) { in connection_state_callback()
93 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback()
130 if (mCallbacksObj != NULL) { in initializeNative()
132 env->DeleteGlobalRef(mCallbacksObj); in initializeNative()
133 mCallbacksObj = NULL; in initializeNative()
142 mCallbacksObj = env->NewGlobalRef(object); in initializeNative()
148 if (mCallbacksObj != NULL) { in initializeNative()
[all …]
Dcom_android_bluetooth_btservice_BluetoothKeystore.cpp36 static jobject mCallbacksObj = nullptr; variable
51 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in set_encrypt_key_or_remove_key()
57 sCallbackEnv->CallVoidMethod(mCallbacksObj, in set_encrypt_key_or_remove_key()
67 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return ""; in get_key()
72 mCallbacksObj, method_getKeyCallback, j_prefixString); in get_key()
116 if (mCallbacksObj != nullptr) { in initNative()
118 env->DeleteGlobalRef(mCallbacksObj); in initNative()
119 mCallbacksObj = nullptr; in initNative()
122 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { in initNative()
152 if (mCallbacksObj != nullptr) { in cleanupNative()
[all …]
Dcom_android_bluetooth_hfpclient.cpp28 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 …]
Dcom_android_bluetooth_hid_host.cpp37 static jobject mCallbacksObj = NULL; variable
59 if (!mCallbacksObj) { in connection_state_callback()
69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback()
79 if (!mCallbacksObj) { in get_protocol_mode_callback()
94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, in get_protocol_mode_callback()
103 if (!mCallbacksObj) { in get_report_callback()
125 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, addr.get(), in get_report_callback()
135 if (!mCallbacksObj) { in virtual_unplug_callback()
144 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualUnplug, in virtual_unplug_callback()
152 if (!mCallbacksObj) { in handshake_callback()
[all …]
Dcom_android_bluetooth_hearing_aid.cpp39 static jobject mCallbacksObj = nullptr; variable
51 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState()
62 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState()
73 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable()
84 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable()
118 if (mCallbacksObj != nullptr) { in initNative()
120 env->DeleteGlobalRef(mCallbacksObj); in initNative()
121 mCallbacksObj = nullptr; in initNative()
124 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { in initNative()
154 if (mCallbacksObj != nullptr) { in cleanupNative()
[all …]
Dcom_android_bluetooth_gatt.cpp192 static jobject mCallbacksObj = NULL; variable
203 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb()
223 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onScanResult, event_type, in btgattc_scan_result_cb()
236 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnected, clientIf, in btgattc_open_cb()
247 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDisconnected, clientIf, in btgattc_close_cb()
255 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchCompleted, conn_id, in btgattc_search_complete_cb()
264 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onRegisterForNotifications, in btgattc_register_for_notification_cb()
279 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNotify, conn_id, in btgattc_notify_cb()
300 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onReadCharacteristic, in btgattc_read_characteristic_cb()
308 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onWriteCharacteristic, in btgattc_write_characteristic_cb()
[all …]
Dcom_android_bluetooth_hid_device.cpp38 static jobject mCallbacksObj = NULL; variable
74 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onApplicationStateChanged, in application_state_callback()
88 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback()
96 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, type, id, in get_report_callback()
112 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetReport, (jbyte)type, in set_report_callback()
119 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetProtocol, protocol); in set_protocol_callback()
134 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onInterruptData, in intr_data_callback()
140 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualCableUnplug); in vc_unplug_callback()
187 if (mCallbacksObj != NULL) { in initNative()
189 env->DeleteGlobalRef(mCallbacksObj); in initNative()
[all …]
Dcom_android_bluetooth_a2dp_sink.cpp33 static jobject mCallbacksObj = NULL; variable
50 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback()
69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback()
89 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioConfigChanged, in bta2dp_audio_config_callback()
125 if (mCallbacksObj != NULL) { in initNative()
127 env->DeleteGlobalRef(mCallbacksObj); in initNative()
128 mCallbacksObj = NULL; in initNative()
146 mCallbacksObj = env->NewGlobalRef(object); in initNative()
162 if (mCallbacksObj != NULL) { in cleanupNative()
163 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative()
[all …]
Dcom_android_bluetooth_a2dp.cpp51 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()
172 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return false; in bta2dp_mandatory_codec_preferred_callback()
184 mCallbacksObj, method_isMandatoryCodecPreferred, addr.get()); in bta2dp_mandatory_codec_preferred_callback()
307 if (mCallbacksObj != nullptr) { in initNative()
[all …]