Home
last modified time | relevance | path

Searched refs:sCallbackEnv (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Bluetooth/jni/
Dcom_android_bluetooth_avrcp_controller.cpp65 CallbackEnv sCallbackEnv(__func__); in btavrcp_passthrough_response_callback() local
66 if (!sCallbackEnv.valid()) return; in btavrcp_passthrough_response_callback()
73 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in btavrcp_passthrough_response_callback()
79 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in btavrcp_passthrough_response_callback()
81 sCallbackEnv->CallVoidMethod(sCallbacksObj, method_handlePassthroughRsp, in btavrcp_passthrough_response_callback()
88 CallbackEnv sCallbackEnv(__func__); in btavrcp_groupnavigation_response_callback() local
89 if (!sCallbackEnv.valid()) return; in btavrcp_groupnavigation_response_callback()
95 sCallbackEnv->CallVoidMethod(sCallbacksObj, method_handleGroupNavigationRsp, in btavrcp_groupnavigation_response_callback()
103 CallbackEnv sCallbackEnv(__func__); in btavrcp_connection_state_callback() local
104 if (!sCallbackEnv.valid()) return; in btavrcp_connection_state_callback()
[all …]
Dcom_android_bluetooth_hfpclient.cpp54 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 …]
Dcom_android_bluetooth_gatt.cpp201 CallbackEnv sCallbackEnv(__func__); in btgattc_register_app_cb() local
202 if (!sCallbackEnv.valid()) return; in btgattc_register_app_cb()
203 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onClientRegistered, status, in btgattc_register_app_cb()
213 CallbackEnv sCallbackEnv(__func__); in btgattc_scan_result_cb() local
214 if (!sCallbackEnv.valid()) return; in btgattc_scan_result_cb()
216 ScopedLocalRef<jstring> address(sCallbackEnv.get(), in btgattc_scan_result_cb()
217 bdaddr2newjstr(sCallbackEnv.get(), bda)); in btgattc_scan_result_cb()
218 ScopedLocalRef<jbyteArray> jb(sCallbackEnv.get(), in btgattc_scan_result_cb()
219 sCallbackEnv->NewByteArray(adv_data.size())); in btgattc_scan_result_cb()
220 sCallbackEnv->SetByteArrayRegion(jb.get(), 0, adv_data.size(), in btgattc_scan_result_cb()
[all …]
Dcom_android_bluetooth_hfp.cpp60 CallbackEnv sCallbackEnv(__func__); in marshall_bda() local
61 if (!sCallbackEnv.valid()) return nullptr; in marshall_bda()
63 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda()
68 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
86 CallbackEnv sCallbackEnv(__func__); in ConnectionStateCallback() local
87 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in ConnectionStateCallback()
89 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in ConnectionStateCallback()
92 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in ConnectionStateCallback()
101 CallbackEnv sCallbackEnv(__func__); in AudioStateCallback() local
102 if (!sCallbackEnv.valid() || !mCallbacksObj) return; in AudioStateCallback()
[all …]
Dcom_android_bluetooth_avrcp_target.cpp312 CallbackEnv sCallbackEnv(__func__); in sendMediaKeyEvent() local
313 if (!sCallbackEnv.valid() || !mJavaInterface) return; in sendMediaKeyEvent()
314 sCallbackEnv->CallVoidMethod( in sendMediaKeyEvent()
448 CallbackEnv sCallbackEnv(__func__); in getSongInfo() local
449 if (!sCallbackEnv.valid() || !mJavaInterface) return SongInfo(); in getSongInfo()
452 sCallbackEnv->CallObjectMethod(mJavaInterface, method_getCurrentSongInfo); in getSongInfo()
453 return getSongInfoFromJavaObj(sCallbackEnv.get(), metadata); in getSongInfo()
459 CallbackEnv sCallbackEnv(__func__); in getCurrentPlayStatus() local
460 if (!sCallbackEnv.valid() || !mJavaInterface) return PlayStatus(); in getCurrentPlayStatus()
464 sCallbackEnv->CallObjectMethod(mJavaInterface, method_getPlaybackStatus); in getCurrentPlayStatus()
[all …]
Dcom_android_bluetooth_btservice_AdapterService.cpp88 CallbackEnv sCallbackEnv(__func__); in adapter_state_change_callback() local
89 if (!sCallbackEnv.valid()) return; in adapter_state_change_callback()
92 sCallbackEnv->CallVoidMethod(sJniCallbacksObj, method_stateChangeCallback, in adapter_state_change_callback()
116 CallbackEnv sCallbackEnv(__func__); in adapter_properties_callback() local
117 if (!sCallbackEnv.valid()) return; in adapter_properties_callback()
127 sCallbackEnv.get(), in adapter_properties_callback()
128 (jbyteArray)sCallbackEnv->NewByteArray(num_properties)); in adapter_properties_callback()
134 ScopedLocalRef<jclass> mclass(sCallbackEnv.get(), in adapter_properties_callback()
135 sCallbackEnv->GetObjectClass(val.get())); in adapter_properties_callback()
141 sCallbackEnv.get(), in adapter_properties_callback()
[all …]
Dcom_android_bluetooth_hid_host.cpp41 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()
57 CallbackEnv sCallbackEnv(__func__); in connection_state_callback() local
58 if (!sCallbackEnv.valid()) return; in connection_state_callback()
63 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback()
69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback()
77 CallbackEnv sCallbackEnv(__func__); in get_protocol_mode_callback() local
78 if (!sCallbackEnv.valid()) return; in get_protocol_mode_callback()
[all …]
Dcom_android_bluetooth_a2dp.cpp59 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 …]
Dcom_android_bluetooth_hid_device.cpp41 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()
58 CallbackEnv sCallbackEnv(__func__); in application_state_callback() local
64 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), NULL); in application_state_callback()
74 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onApplicationStateChanged, in application_state_callback()
80 CallbackEnv sCallbackEnv(__func__); in connection_state_callback() local
82 ScopedLocalRef<jbyteArray> addr(sCallbackEnv.get(), marshall_bda(bd_addr)); in connection_state_callback()
88 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectStateChanged, in connection_state_callback()
[all …]
Dcom_android_bluetooth_a2dp_sink.cpp38 CallbackEnv sCallbackEnv(__func__); in bta2dp_connection_state_callback() local
39 if (!sCallbackEnv.valid()) return; in bta2dp_connection_state_callback()
42 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_connection_state_callback()
48 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_connection_state_callback()
50 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in bta2dp_connection_state_callback()
57 CallbackEnv sCallbackEnv(__func__); in bta2dp_audio_state_callback() local
58 if (!sCallbackEnv.valid()) return; in bta2dp_audio_state_callback()
61 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in bta2dp_audio_state_callback()
67 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in bta2dp_audio_state_callback()
69 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onAudioStateChanged, in bta2dp_audio_state_callback()
[all …]
Dcom_android_bluetooth_sdp.cpp135 CallbackEnv sCallbackEnv(__func__); in sdp_search_callback() local
136 if (!sCallbackEnv.valid()) return; in sdp_search_callback()
139 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in sdp_search_callback()
142 ScopedLocalRef<jbyteArray> uuid(sCallbackEnv.get(), in sdp_search_callback()
143 sCallbackEnv->NewByteArray(sizeof(Uuid))); in sdp_search_callback()
146 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in sdp_search_callback()
148 sCallbackEnv->SetByteArrayRegion(uuid.get(), 0, sizeof(Uuid), in sdp_search_callback()
157 ScopedLocalRef<jstring> service_name(sCallbackEnv.get(), NULL); in sdp_search_callback()
161 (jstring)sCallbackEnv->NewStringUTF(record->mas.hdr.service_name)); in sdp_search_callback()
166 sCallbackEnv->CallVoidMethod( in sdp_search_callback()
[all …]
Dcom_android_bluetooth_pan.cpp47 CallbackEnv sCallbackEnv(__func__); in marshall_bda() local
48 if (!sCallbackEnv.valid()) return NULL; in marshall_bda()
50 jbyteArray addr = sCallbackEnv->NewByteArray(sizeof(RawAddress)); in marshall_bda()
55 sCallbackEnv->SetByteArrayRegion(addr, 0, sizeof(RawAddress), in marshall_bda()
67 CallbackEnv sCallbackEnv(__func__); in control_state_callback() local
68 if (!sCallbackEnv.valid()) return; in control_state_callback()
69 ScopedLocalRef<jstring> js_ifname(sCallbackEnv.get(), in control_state_callback()
70 sCallbackEnv->NewStringUTF(ifname)); in control_state_callback()
71 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onControlStateChanged, in control_state_callback()
86 CallbackEnv sCallbackEnv(__func__); in connection_state_callback() local
[all …]
Dcom_android_bluetooth_btservice_BluetoothKeystore.cpp50 CallbackEnv sCallbackEnv(__func__); in set_encrypt_key_or_remove_key() local
51 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in set_encrypt_key_or_remove_key()
53 jstring j_prefixString = sCallbackEnv->NewStringUTF(prefixString.c_str()); in set_encrypt_key_or_remove_key()
55 sCallbackEnv->NewStringUTF(decryptedString.c_str()); in set_encrypt_key_or_remove_key()
57 sCallbackEnv->CallVoidMethod(mCallbacksObj, in set_encrypt_key_or_remove_key()
66 CallbackEnv sCallbackEnv(__func__); in get_key() local
67 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return ""; in get_key()
69 jstring j_prefixString = sCallbackEnv->NewStringUTF(prefixString.c_str()); in get_key()
71 jstring j_decrypt_str = (jstring)sCallbackEnv->CallObjectMethod( in get_key()
79 const char* value = sCallbackEnv->GetStringUTFChars(j_decrypt_str, nullptr); in get_key()
[all …]
Dcom_android_bluetooth_hearing_aid.cpp50 CallbackEnv sCallbackEnv(__func__); in OnConnectionState() local
51 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnConnectionState()
54 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in OnConnectionState()
60 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in OnConnectionState()
62 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onConnectionStateChanged, in OnConnectionState()
72 CallbackEnv sCallbackEnv(__func__); in OnDeviceAvailable() local
73 if (!sCallbackEnv.valid() || mCallbacksObj == nullptr) return; in OnDeviceAvailable()
76 sCallbackEnv.get(), sCallbackEnv->NewByteArray(sizeof(RawAddress))); in OnDeviceAvailable()
82 sCallbackEnv->SetByteArrayRegion(addr.get(), 0, sizeof(RawAddress), in OnDeviceAvailable()
84 sCallbackEnv->CallVoidMethod(mCallbacksObj, method_onDeviceAvailable, in OnDeviceAvailable()