/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_hfpclient.cpp | 35 static jobject mCallbacksObj = NULL; variable 84 …sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, (jint) state, (jint) … in connection_state_cb() 102 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, (jint) state, addr); in audio_state_cb() 109 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, (jint) state); in vr_cmd_cb() 115 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkState, (jint) state); in network_state_cb() 121 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkRoaming, (jint) type); in network_roaming_cb() 127 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNetworkSignal, (jint) signal); in network_signal_cb() 133 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onBatteryLevel, (jint) level); in battery_level_cb() 143 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onCurrentOperator, js_name); in current_operator_cb() 150 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onCall, (jint) call); in call_cb() [all …]
|
D | com_android_bluetooth_gatt.cpp | 204 static jobject mCallbacksObj = NULL; variable 222 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb() 240 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onScanResult in btgattc_scan_result_cb() 258 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnected, in btgattc_open_cb() 273 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDisconnected, in btgattc_close_cb() 282 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchCompleted, in btgattc_search_complete_cb() 290 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSearchResult, conn_id, in btgattc_search_result_cb() 300 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetCharacteristic in btgattc_get_characteristic_cb() 311 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetDescriptor in btgattc_get_descriptor_cb() 321 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetIncludedService in btgattc_get_included_service_cb() [all …]
|
D | com_android_bluetooth_avrcp.cpp | 37 static jobject mCallbacksObj = NULL; variable 67 if (mCallbacksObj) { in btavrcp_remote_features_callback() 69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getRcFeatures, addr, (jint)features); in btavrcp_remote_features_callback() 86 if (mCallbacksObj) { in btavrcp_get_play_status_callback() 87 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getPlayStatus); in btavrcp_get_play_status_callback() 110 if (mCallbacksObj) { in btavrcp_get_element_attr_callback() 111 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_getElementAttr, (jbyte)num_attr, attrs); in btavrcp_get_element_attr_callback() 124 if (mCallbacksObj) { in btavrcp_register_notification_callback() 125 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_registerNotification, in btavrcp_register_notification_callback() 140 if (mCallbacksObj) { in btavrcp_volume_change_callback() [all …]
|
D | com_android_bluetooth_hfp.cpp | 55 static jobject mCallbacksObj = NULL; variable 98 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in connection_state_callback() 116 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, (jint) state, addr); in audio_state_callback() 133 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVrStateChanged, (jint) state, addr); in voice_recognition_callback() 150 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAnswerCall, addr); in answer_call_callback() 167 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onHangupCall, addr); in hangup_call_callback() 184 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVolumeChanged, (jint) type, in volume_control_callback() 203 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDialCall, in dial_call_callback() 223 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onSendDtmf, dtmf, addr); in dtmf_cmd_callback() 239 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onNoiceReductionEnable, in noice_reduction_callback() [all …]
|
D | com_android_bluetooth_pan.cpp | 48 static jobject mCallbacksObj = NULL; variable 64 …sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, (jint)local_role, (jint)… in control_state_callback() 82 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, addr, (jint) state, in connection_state_callback() 125 if (mCallbacksObj != NULL) { in initializeNative() 127 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 128 mCallbacksObj = NULL; in initializeNative() 137 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 143 if (mCallbacksObj != NULL) { in initializeNative() 145 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 146 mCallbacksObj = NULL; in initializeNative() [all …]
|
D | com_android_bluetooth_hid.cpp | 43 static jobject mCallbacksObj = NULL; variable 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, addr, (jint) state); in connection_state_callback() 95 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetProtocolMode, addr, (jint) mode); in get_protocol_mode_callback() 128 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onGetReport, addr, data, (jint) rpt_size); in get_report_callback() 147 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onVirtualUnplug, addr, (jint) hh_status); in virtual_unplug_callback() 180 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onHandshake, addr, (jint) hh_status); in handshake_callback() 248 if (mCallbacksObj != NULL) { in initializeNative() 250 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 251 mCallbacksObj = NULL; in initializeNative() 269 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() [all …]
|
D | com_android_bluetooth_a2dp_sink.cpp | 34 static jobject mCallbacksObj = NULL; variable 68 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, (jint) state, in bta2dp_connection_state_callback() 91 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, (jint) state, in bta2dp_audio_state_callback() 114 …sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioConfigChanged, addr, (jint)sample_rate, … in bta2dp_audio_config_callback() 158 if (mCallbacksObj != NULL) { in initNative() 160 env->DeleteGlobalRef(mCallbacksObj); in initNative() 161 mCallbacksObj = NULL; in initNative() 176 mCallbacksObj = env->NewGlobalRef(object); in initNative() 193 if (mCallbacksObj != NULL) { in cleanupNative() 194 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() [all …]
|
D | com_android_bluetooth_avrcp_controller.cpp | 33 static jobject mCallbacksObj = NULL; variable 57 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_handlePassthroughRsp, (jint)id, in btavrcp_passthrough_response_callback() 81 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, (jboolean) state, in btavrcp_connection_state_callback() 119 if (mCallbacksObj != NULL) { in initNative() 121 env->DeleteGlobalRef(mCallbacksObj); in initNative() 122 mCallbacksObj = NULL; in initNative() 138 mCallbacksObj = env->NewGlobalRef(object); in initNative() 154 if (mCallbacksObj != NULL) { in cleanupNative() 155 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() 156 mCallbacksObj = NULL; in cleanupNative()
|
D | com_android_bluetooth_a2dp.cpp | 33 static jobject mCallbacksObj = NULL; variable 67 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, (jint) state, in bta2dp_connection_state_callback() 90 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, (jint) state, in bta2dp_audio_state_callback() 152 if (mCallbacksObj != NULL) { in initNative() 154 env->DeleteGlobalRef(mCallbacksObj); in initNative() 155 mCallbacksObj = NULL; in initNative() 170 mCallbacksObj = env->NewGlobalRef(object); in initNative() 187 if (mCallbacksObj != NULL) { in cleanupNative() 188 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() 189 mCallbacksObj = NULL; in cleanupNative()
|
D | com_android_bluetooth_hdp.cpp | 40 static jobject mCallbacksObj = NULL; variable 57 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAppRegistrationState, app_id, in app_registration_state_callback() 86 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onChannelStateChanged, app_id, addr, in channel_state_callback() 148 if (mCallbacksObj != NULL) { in initializeNative() 150 env->DeleteGlobalRef(mCallbacksObj); in initializeNative() 151 mCallbacksObj = NULL; in initializeNative() 166 mCallbacksObj = env->NewGlobalRef(object); in initializeNative() 184 if (mCallbacksObj != NULL) { in cleanupNative() 186 env->DeleteGlobalRef(mCallbacksObj); in cleanupNative() 187 mCallbacksObj = NULL; in cleanupNative()
|