/packages/apps/Bluetooth/jni/ |
D | com_android_bluetooth_avrcp_controller.cpp | 64 CallbackEnv sCallbackEnv(__func__); in btavrcp_passthrough_response_callback() local 65 if (!sCallbackEnv.valid()) return; in btavrcp_passthrough_response_callback() 72 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in btavrcp_passthrough_response_callback() 78 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_passthrough_response_callback() 80 sCallbackEnv->CallVoidMethod(sCallbacksObj, method_handlePassthroughRsp, in btavrcp_passthrough_response_callback() 87 CallbackEnv sCallbackEnv(__func__); in btavrcp_groupnavigation_response_callback() local 88 if (!sCallbackEnv.valid()) return; in btavrcp_groupnavigation_response_callback() 94 sCallbackEnv->CallVoidMethod(sCallbacksObj, method_handleGroupNavigationRsp, in btavrcp_groupnavigation_response_callback() 102 CallbackEnv sCallbackEnv(__func__); in btavrcp_connection_state_callback() local 103 if (!sCallbackEnv.valid()) return; in btavrcp_connection_state_callback() [all …]
|
D | com_android_bluetooth_gatt.cpp | 202 CallbackEnv sCallbackEnv(__func__); in btgattc_register_app_cb() local 203 if (!sCallbackEnv.valid()) return; in btgattc_register_app_cb() 204 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb() 214 CallbackEnv sCallbackEnv(__func__); in btgattc_scan_result_cb() local 215 if (!sCallbackEnv.valid()) return; in btgattc_scan_result_cb() 217 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_scan_result_cb() 218 bdaddr2newjstr(sCallbackEnv.get(), bda)); in btgattc_scan_result_cb() 219 ScopedLocalRef<jbyteArray> jb(sCallbackEnv.get(), in btgattc_scan_result_cb() 220 sCallbackEnv->NewByteArray(adv_data.size())); in btgattc_scan_result_cb() 221 sCallbackEnv->SetByteArrayRegion(jb.get(), 0, adv_data.size(), in btgattc_scan_result_cb() [all …]
|
D | com_android_bluetooth_hfpclient.cpp | 54 CallbackEnv sCallbackEnv(__func__); in marshall_bda() local 55 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 57 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() 62 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda() 71 CallbackEnv sCallbackEnv(__func__); in connection_state_cb() local 72 if (!sCallbackEnv.valid()) return; in connection_state_cb() 74 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_cb() 78 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in connection_state_cb() 85 CallbackEnv sCallbackEnv(__func__); in audio_state_cb() local 86 if (!sCallbackEnv.valid()) return; in audio_state_cb() [all …]
|
D | com_android_bluetooth_hfp.cpp | 61 CallbackEnv sCallbackEnv(__func__); in marshall_bda() local 62 if (!sCallbackEnv.valid()) return nullptr; in marshall_bda() 64 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() 69 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda() 87 CallbackEnv sCallbackEnv(__func__); in ConnectionStateCallback() local 88 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in ConnectionStateCallback() 90 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in ConnectionStateCallback() 93 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in ConnectionStateCallback() 102 CallbackEnv sCallbackEnv(__func__); in AudioStateCallback() local 103 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AudioStateCallback() [all …]
|
D | com_android_bluetooth_avrcp_target.cpp | 313 CallbackEnv sCallbackEnv(__func__); in sendMediaKeyEvent() local 314 if (!sCallbackEnv.valid() || !mJavaInterface) return; in sendMediaKeyEvent() 315 sCallbackEnv->CallVoidMethod( in sendMediaKeyEvent() 449 CallbackEnv sCallbackEnv(__func__); in getSongInfo() local 450 if (!sCallbackEnv.valid() || !mJavaInterface) return SongInfo(); in getSongInfo() 453 sCallbackEnv->CallObjectMethod(mJavaInterface, method_getCurrentSongInfo); in getSongInfo() 454 return getSongInfoFromJavaObj(sCallbackEnv.get(), metadata); in getSongInfo() 460 CallbackEnv sCallbackEnv(__func__); in getCurrentPlayStatus() local 461 if (!sCallbackEnv.valid() || !mJavaInterface) return PlayStatus(); in getCurrentPlayStatus() 465 sCallbackEnv->CallObjectMethod(mJavaInterface, method_getPlaybackStatus); in getCurrentPlayStatus() [all …]
|
D | com_android_bluetooth_btservice_AdapterService.cpp | 89 CallbackEnv sCallbackEnv(__func__); in adapter_state_change_callback() local 90 if (!sCallbackEnv.valid()) return; in adapter_state_change_callback() 93 sCallbackEnv->CallVoidMethod(sJniCallbacksObj, method_stateChangeCallback, in adapter_state_change_callback() 117 CallbackEnv sCallbackEnv(__func__); in adapter_properties_callback() local 118 if (!sCallbackEnv.valid()) return; in adapter_properties_callback() 128 sCallbackEnv.get(), in adapter_properties_callback() 129 (jbyteArray)sCallbackEnv->NewByteArray(num_properties)); in adapter_properties_callback() 135 ScopedLocalRef<jclass> mclass(sCallbackEnv.get(), in adapter_properties_callback() 136 sCallbackEnv->GetObjectClass(val.get())); in adapter_properties_callback() 142 sCallbackEnv.get(), in adapter_properties_callback() [all …]
|
D | com_android_bluetooth_hid_host.cpp | 41 CallbackEnv sCallbackEnv(__func__); in marshall_bda() local 42 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 44 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() 49 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda() 56 CallbackEnv sCallbackEnv(__func__); in connection_state_callback() local 57 if (!sCallbackEnv.valid()) return; in connection_state_callback() 62 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback() 68 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() 75 CallbackEnv sCallbackEnv(__func__); in get_protocol_mode_callback() local 76 if (!sCallbackEnv.valid()) return; in get_protocol_mode_callback() [all …]
|
D | com_android_bluetooth_hid_device.cpp | 42 CallbackEnv sCallbackEnv(__func__); in marshall_bda() local 43 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 45 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() 50 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda() 59 CallbackEnv sCallbackEnv(__func__); in application_state_callback() local 65 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in application_state_callback() 75 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onApplicationStateChanged, in application_state_callback() 81 CallbackEnv sCallbackEnv(__func__); in connection_state_callback() local 83 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback() 89 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback() [all …]
|
D | com_android_bluetooth_a2dp_sink.cpp | 39 CallbackEnv sCallbackEnv(__func__); in bta2dp_connection_state_callback() local 40 if (!sCallbackEnv.valid()) return; in bta2dp_connection_state_callback() 43 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_connection_state_callback() 49 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_connection_state_callback() 51 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback() 58 CallbackEnv sCallbackEnv(__func__); in bta2dp_audio_state_callback() local 59 if (!sCallbackEnv.valid()) return; in bta2dp_audio_state_callback() 62 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_audio_state_callback() 68 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_audio_state_callback() 70 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback() [all …]
|
D | com_android_bluetooth_a2dp.cpp | 59 CallbackEnv sCallbackEnv(__func__); in bta2dp_connection_state_callback() local 60 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_connection_state_callback() 63 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_connection_state_callback() 69 sCallbackEnv->SetByteArrayRegion( in bta2dp_connection_state_callback() 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback() 81 CallbackEnv sCallbackEnv(__func__); in bta2dp_audio_state_callback() local 82 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in bta2dp_audio_state_callback() 85 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_audio_state_callback() 91 sCallbackEnv->SetByteArrayRegion( in bta2dp_audio_state_callback() 94 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback() [all …]
|
D | com_android_bluetooth_sdp.cpp | 136 CallbackEnv sCallbackEnv(__func__); in sdp_search_callback() local 137 if (!sCallbackEnv.valid()) return; in sdp_search_callback() 140 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in sdp_search_callback() 143 ScopedLocalRef<jbyteArray> uuid(sCallbackEnv.get(), in sdp_search_callback() 144 sCallbackEnv->NewByteArray(sizeof(Uuid))); in sdp_search_callback() 147 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in sdp_search_callback() 149 sCallbackEnv->SetByteArrayRegion(uuid.get(), 0, sizeof(Uuid), in sdp_search_callback() 158 ScopedLocalRef<jstring> service_name(sCallbackEnv.get(), NULL); in sdp_search_callback() 162 (jstring)sCallbackEnv->NewStringUTF(record->mas.hdr.service_name)); in sdp_search_callback() 167 sCallbackEnv->CallVoidMethod( in sdp_search_callback() [all …]
|
D | com_android_bluetooth_pan.cpp | 48 CallbackEnv sCallbackEnv(__func__); in marshall_bda() local 49 if (!sCallbackEnv.valid()) return NULL; in marshall_bda() 51 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda() 56 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda() 68 CallbackEnv sCallbackEnv(__func__); in control_state_callback() local 69 if (!sCallbackEnv.valid()) return; in control_state_callback() 70 ScopedLocalRef<jstring> js_ifname(sCallbackEnv.get(), in control_state_callback() 71 sCallbackEnv->NewStringUTF(ifname)); in control_state_callback() 72 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, in control_state_callback() 87 CallbackEnv sCallbackEnv(__func__); in connection_state_callback() local [all …]
|
D | com_android_bluetooth_hearing_aid.cpp | 51 CallbackEnv sCallbackEnv(__func__); in OnConnectionState() local 52 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState() 55 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in OnConnectionState() 61 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in OnConnectionState() 63 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState() 73 CallbackEnv sCallbackEnv(__func__); in OnDeviceAvailable() local 74 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable() 77 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in OnDeviceAvailable() 83 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in OnDeviceAvailable() 85 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable()
|