/packages/modules/Bluetooth/android/app/jni/ |
D | com_android_bluetooth_pan.cpp | 30 static jobject mCallbacksObj = NULL; variable 49 if (mCallbacksObj == NULL) { in control_state_callback() 57 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, in control_state_callback() 68 if (mCallbacksObj == NULL) { in connection_state_callback() 79 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() 107 if (mCallbacksObj != NULL) { in initializeNative() 109 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 110 mCallbacksObj = NULL; in initializeNative() 119 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 126 if (mCallbacksObj != NULL) { in initializeNative() [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 31 static jobject mCallbacksObj = NULL; variable 77 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in connection_state_cb() 83 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in connection_state_cb() 92 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in audio_state_cb() 97 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in audio_state_cb() 104 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in vr_cmd_cb() 109 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, in vr_cmd_cb() 117 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in network_state_cb() 122 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkState, in network_state_cb() 130 if (!sCallbackEnv.valid() || mCallbacksObj == NULL) return; in network_roaming_cb() [all …]
|
D | com_android_bluetooth_btservice_BluetoothKeystore.cpp | 35 static jobject mCallbacksObj = nullptr; variable 50 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in set_encrypt_key_or_remove_key() 56 sCallbackEnv->CallVoidMethod(mCallbacksObj, in set_encrypt_key_or_remove_key() 66 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return ""; in get_key() 71 mCallbacksObj, method_getKeyCallback, j_prefixString); in get_key() 103 if (mCallbacksObj != nullptr) { in initNative() 105 env->DeleteGlobalRef(mCallbacksObj); in initNative() 106 mCallbacksObj = nullptr; in initNative() 109 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { in initNative() 138 if (mCallbacksObj != nullptr) { in cleanupNative() [all …]
|
D | com_android_bluetooth_hfp.cpp | 56 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 …]
|
D | com_android_bluetooth_csip_set_coordinator.cpp | 40 static jobject mCallbacksObj = nullptr; variable 82 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState() 93 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState() 102 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable() 113 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable() 123 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnSetMemberAvailable() 134 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetMemberAvailable, in OnSetMemberAvailable() 145 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupLockChanged() 147 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGroupLockChanged, in OnGroupLockChanged() 171 if (mCallbacksObj != nullptr) { in initNative() [all …]
|
D | com_android_bluetooth_hap_client.cpp | 52 static jobject mCallbacksObj = nullptr; variable 79 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState() 90 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState() 97 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable() 108 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable() 115 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnFeaturesUpdate() 126 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onFeaturesUpdate, in OnFeaturesUpdate() 134 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnActivePresetSelected() 147 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onActivePresetSelected, in OnActivePresetSelected() 151 mCallbacksObj, method_onGroupActivePresetSelected, in OnActivePresetSelected() [all …]
|
D | com_android_bluetooth_BluetoothQualityReport.cpp | 37 static jobject mCallbacksObj = nullptr; variable 54 if (mCallbacksObj == nullptr) return; in bqr_delivery_callback() 75 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_bqrDeliver, addr.get(), in bqr_delivery_callback() 99 if (mCallbacksObj != nullptr) { in initNative() 101 env->DeleteGlobalRef(mCallbacksObj); in initNative() 102 mCallbacksObj = nullptr; in initNative() 105 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { in initNative() 135 if (mCallbacksObj != nullptr) { in cleanupNative() 136 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() 137 mCallbacksObj = nullptr; in cleanupNative()
|
D | com_android_bluetooth_a2dp_sink.cpp | 33 static jobject mCallbacksObj = NULL; variable 41 if (!mCallbacksObj) return; in a2dp_sink_connection_state_callback() 55 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in a2dp_sink_connection_state_callback() 63 if (!mCallbacksObj) return; in a2dp_sink_audio_state_callback() 77 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in a2dp_sink_audio_state_callback() 86 if (!mCallbacksObj) return; in a2dp_sink_audio_config_callback() 100 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioConfigChanged, in a2dp_sink_audio_config_callback() 128 if (mCallbacksObj != NULL) { in initNative() 130 env->DeleteGlobalRef(mCallbacksObj); in initNative() 131 mCallbacksObj = NULL; in initNative() [all …]
|
D | com_android_bluetooth_hearing_aid.cpp | 36 static jobject mCallbacksObj = nullptr; variable 48 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState() 59 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState() 69 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable() 80 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable() 104 if (mCallbacksObj != nullptr) { in initNative() 106 env->DeleteGlobalRef(mCallbacksObj); in initNative() 107 mCallbacksObj = nullptr; in initNative() 110 if ((mCallbacksObj = env->NewGlobalRef(object)) == nullptr) { in initNative() 140 if (mCallbacksObj != nullptr) { in cleanupNative() [all …]
|
D | com_android_bluetooth_vc.cpp | 43 static jobject mCallbacksObj = nullptr; variable 56 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState() 67 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState() 77 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnVolumeStateChanged() 88 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVolumeStateChanged, in OnVolumeStateChanged() 98 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupVolumeStateChanged() 100 sCallbackEnv->CallVoidMethod(mCallbacksObj, in OnGroupVolumeStateChanged() 111 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable() 122 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable() 133 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnExtAudioOutVolumeOffsetChanged() [all …]
|
D | com_android_bluetooth_hid_host.cpp | 35 static jobject mCallbacksObj = NULL; variable 59 if (!mCallbacksObj) { in connection_state_callback() 69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() 82 if (!mCallbacksObj) { in get_protocol_mode_callback() 97 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, in get_protocol_mode_callback() 109 if (!mCallbacksObj) { in get_report_callback() 131 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, addr.get(), in get_report_callback() 144 if (!mCallbacksObj) { in virtual_unplug_callback() 153 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualUnplug, in virtual_unplug_callback() 164 if (!mCallbacksObj) { in handshake_callback() [all …]
|
D | com_android_bluetooth_hid_device.cpp | 35 static jobject mCallbacksObj = NULL; variable 71 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onApplicationStateChanged, in application_state_callback() 85 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() 93 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, type, id, in get_report_callback() 109 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetReport, (jbyte)type, in set_report_callback() 116 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSetProtocol, protocol); in set_protocol_callback() 131 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onInterruptData, in intr_data_callback() 137 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualCableUnplug); in vc_unplug_callback() 169 if (mCallbacksObj != NULL) { in initNative() 171 env->DeleteGlobalRef(mCallbacksObj); in initNative() [all …]
|
D | com_android_bluetooth_gatt.cpp | 203 static jobject mCallbacksObj = NULL; variable 217 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_register_app_cb() 218 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb() 253 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_open_cb() 257 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnected, clientIf, in btgattc_open_cb() 265 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_close_cb() 269 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDisconnected, clientIf, in btgattc_close_cb() 276 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_search_complete_cb() 278 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchCompleted, conn_id, in btgattc_search_complete_cb() 286 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in btgattc_register_for_notification_cb() [all …]
|
D | com_android_bluetooth_a2dp.cpp | 51 static jobject mCallbacksObj = nullptr; variable 61 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_connection_state_callback() 73 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback() 83 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_audio_state_callback() 95 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback() 111 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_audio_config_callback() 167 mCallbacksObj, method_onCodecConfigChanged, addr.get(), codecConfigObj, in bta2dp_audio_config_callback() 177 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return false; in bta2dp_mandatory_codec_preferred_callback() 189 mCallbacksObj, method_isMandatoryCodecPreferred, addr.get()); in bta2dp_mandatory_codec_preferred_callback() 270 if (mCallbacksObj != nullptr) { in initNative() [all …]
|
D | com_android_bluetooth_le_audio.cpp | 112 static jobject mCallbacksObj = nullptr; variable 160 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnInitialized() 161 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onInitialized); in OnInitialized() 171 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState() 182 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState() 191 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupStatus() 193 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGroupStatus, in OnGroupStatus() 203 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnGroupNodeStatus() 214 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGroupNodeStatus, in OnGroupNodeStatus() 225 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnAudioConf() [all …]
|