/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/gatt/ |
D | gatt_connect_test.py | 86 for bluetooth_gatt in self.bluetooth_gatt_list: 87 self.central.sl4a.gattClientClose(bluetooth_gatt) 95 def _orchestrate_gatt_disconnection(self, bluetooth_gatt, gatt_callback): argument 98 disconnect_gatt_connection(self.central, bluetooth_gatt, gatt_callback) 100 close_gatt_client(self.central, bluetooth_gatt) 102 if bluetooth_gatt in self.bluetooth_gatt_list: 103 self.bluetooth_gatt_list.remove(bluetooth_gatt) 175 …bluetooth_gatt, gatt_callback, adv_callback = (orchestrate_gatt_connection(self.central, self.peri… 176 self.bluetooth_gatt_list.append(bluetooth_gatt) 182 assertThat(self._orchestrate_gatt_disconnection(bluetooth_gatt, gatt_callback)).isTrue() [all …]
|
D | gatt_notify_test.py | 60 …self.bluetooth_gatt, self.discovered_services_index, self.test_service_index, self.NOTIFIABLE_CHAR… 63 … self.central.sl4a.gattClientWriteDescriptor(self.bluetooth_gatt, self.discovered_services_index, 68 …self.central.sl4a.gattClientSetCharacteristicNotification(self.bluetooth_gatt, self.discovered_ser…
|
D | gatt_connect_with_irk_test.py | 134 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, mac_address, False, 136 assertThat(bluetooth_gatt).isNotNone()
|
/packages/modules/Bluetooth/system/blueberry/utils/ |
D | bt_gatt_utils.py | 55 …bluetooth_gatt = central.sl4a.gattClientConnectGatt(gatt_callback, mac_address, autoconnect, trans… 61 close_gatt_client(central, bluetooth_gatt) 66 close_gatt_client(central, bluetooth_gatt) 69 return bluetooth_gatt, gatt_callback 72 def wait_for_gatt_connection(central: AndroidDevice, gatt_callback, bluetooth_gatt, timeout): argument 77 close_gatt_client(central, bluetooth_gatt) 81 close_gatt_client(central, bluetooth_gatt) 83 central.sl4a.gattClientClose(bluetooth_gatt) 90 def close_gatt_client(central: AndroidDevice, bluetooth_gatt): argument 92 central.sl4a.gattClientClose(bluetooth_gatt) [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/ |
D | gatt_connect_low_layer_test.py | 58 for bluetooth_gatt in self.bluetooth_gatt_list: 59 self.dut.sl4a.gattClientClose(bluetooth_gatt) 128 def _disconnect_gatt(self, device: AndroidDevice, bluetooth_gatt, gatt_callback): argument 130 disconnect_gatt_connection(device, bluetooth_gatt, gatt_callback) 135 close_gatt_client(device, bluetooth_gatt) 136 if bluetooth_gatt in self.bluetooth_gatt_list: 137 self.bluetooth_gatt_list.remove(bluetooth_gatt) 139 def _wait_for_gatt_connection(self, device: AndroidDevice, gatt_callback, bluetooth_gatt): argument 141 … wait_for_gatt_connection(device, gatt_callback, bluetooth_gatt, timeout=self.default_timeout) 191 bluetooth_gatt, gatt_callback = setup_gatt_connection(self.dut, [all …]
|
/packages/modules/Bluetooth/system/gd/rust/linux/stack/src/ |
D | lib.rs | 13 pub mod bluetooth_gatt; module 40 use crate::bluetooth_gatt::{ 215 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, in dispatch() 299 dispatch_gatt_client_callbacks(bluetooth_gatt.lock().unwrap().as_mut(), m); in dispatch() 303 dispatch_gatt_server_callbacks(bluetooth_gatt.lock().unwrap().as_mut(), m); in dispatch() 319 dispatch_le_scanner_callbacks(bluetooth_gatt.lock().unwrap().as_mut(), m); in dispatch() 324 bluetooth_gatt.lock().unwrap().as_mut(), in dispatch() 334 dispatch_le_adv_callbacks(bluetooth_gatt.lock().unwrap().as_mut(), m); in dispatch() 420 bluetooth_gatt.lock().unwrap().remove_scanner_callback(id); in dispatch() 424 bluetooth_gatt.lock().unwrap().remove_adv_callback(id); in dispatch() [all …]
|
D | dis.rs | 7 use crate::bluetooth_gatt::{ 26 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, field 39 pub fn new(bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, tx: Sender<Message>) -> Self { in new() 40 Self { bluetooth_gatt, gatt_server_id: None, pnp_id_handle: None, tx } in new() 47 self.bluetooth_gatt.lock().unwrap().register_server( in initialize() 80 self.bluetooth_gatt.lock().unwrap().add_service(*server_id, service); in handle_callbacks() 126 self.bluetooth_gatt.lock().unwrap().send_response( in handle_callbacks()
|
D | bluetooth.rs | 49 use crate::bluetooth_gatt::{ 594 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, field 643 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, in new() 659 bluetooth_gatt, in new() 841 self.bluetooth_gatt.lock().unwrap().enable(true); in init_profiles() 1591 let callback_id = self.bluetooth_gatt.lock().unwrap().register_scanner_callback( in adapter_state_changed() 1595 Some(self.bluetooth_gatt.lock().unwrap().register_scanner(callback_id)); in adapter_state_changed() 1761 self.bluetooth_gatt.lock().unwrap().start_active_scan(scanner_id); in discovery_state() 1763 self.bluetooth_gatt.lock().unwrap().stop_active_scan(scanner_id); in discovery_state() 2189 self.bluetooth_gatt.lock().unwrap().enable(false); in disable()
|
D | battery_service.rs | 6 use crate::bluetooth_gatt::{
|
/packages/modules/Bluetooth/system/gd/rust/linux/service/src/ |
D | main.rs | 23 bluetooth_gatt::BluetoothGatt, 135 let bluetooth_gatt = in main() localVariable 140 bluetooth_gatt.clone(), in main() 166 bluetooth_gatt.clone(), in main() 172 bluetooth_gatt.clone(), in main() 183 Arc::new(Mutex::new(Box::new(DeviceInformation::new(bluetooth_gatt.clone(), tx.clone())))); in main() 205 bluetooth_gatt.clone(), in main() 230 bluetooth_gatt.clone(), in main() 252 bluetooth_gatt.lock().unwrap().init_profiles(tx.clone(), api_tx.clone()); in main()
|
D | interface_manager.rs | 11 bluetooth_admin::BluetoothAdmin, bluetooth_gatt::BluetoothGatt, 61 bluetooth_gatt: Arc<Mutex<Box<BluetoothGatt>>>, in dispatch() 214 let gatt_clone = bluetooth_gatt.clone(); in dispatch() 228 bluetooth_gatt.clone(), in dispatch()
|
D | iface_bluetooth_gatt.rs | 8 use btstack::bluetooth_gatt::{
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/lib/ |
D | gatt_connected_base_test.py | 66 self.bluetooth_gatt, self.gatt_callback, self.adv_callback = (orchestrate_gatt_connection( 72 if self.central.sl4a.gattClientDiscoverServices(self.bluetooth_gatt): 102 self._orchestrate_gatt_disconnection(self.bluetooth_gatt, self.gatt_callback) 152 def _orchestrate_gatt_disconnection(self, bluetooth_gatt, gatt_callback): argument 155 disconnect_gatt_connection(self.central, bluetooth_gatt, gatt_callback) 159 self.central.sl4a.gattClientClose(bluetooth_gatt)
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/security/ |
D | irk_rotation_test.py | 140 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, connect_address, False, 142 assertThat(bluetooth_gatt).isNotNone() 148 self.dut.sl4a.gattClientClose(bluetooth_gatt) 153 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, connect_address, False, 155 assertThat(bluetooth_gatt).isNotNone()
|
/packages/modules/Bluetooth/system/gd/rust/linux/client/src/ |
D | bt_adv.rs | 10 use btstack::bluetooth_gatt::IBluetoothGatt;
|
D | command_handler.rs | 21 use btstack::bluetooth_gatt::{ 1574 Some(btstack::bluetooth_gatt::ScanFilter { in cmd_le_scan() 1579 condition: btstack::bluetooth_gatt::ScanFilterCondition::Patterns(vec![]), in cmd_le_scan()
|
D | callbacks.rs | 27 use btstack::bluetooth_gatt::{
|
D | dbus_iface.rs | 38 use btstack::bluetooth_gatt::{
|