/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/gatt/ |
D | gatt_connect_test.py | 91 def _orchestrate_gatt_disconnection(self, bluetooth_gatt, gatt_callback): argument 94 disconnect_gatt_connection(self.central, bluetooth_gatt, gatt_callback) 117 …def _verify_mtu_changed_on_client_and_server(self, expected_mtu, gatt_callback, gatt_server_callba… argument 118 expected_event = GattCallbackString.MTU_CHANGED.format(gatt_callback) 171 …bluetooth_gatt, gatt_callback, adv_callback = (orchestrate_gatt_connection(self.central, self.peri… 178 assertThat(self._orchestrate_gatt_disconnection(bluetooth_gatt, gatt_callback)).isTrue() 212 …bluetooth_gatt, gatt_callback, adv_callback = (orchestrate_gatt_connection(self.central, self.peri… 221 GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback, self.default_timeout)) 228 self._orchestrate_gatt_disconnection(bluetooth_gatt, gatt_callback) 272 … bluetooth_gatt, gatt_callback = setup_gatt_connection(self.central, mac_address, autoconnect) [all …]
|
D | gatt_connect_with_irk_test.py | 134 gatt_callback = self.dut.sl4a.gattCreateGattCallback() 135 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, mac_address, False, 140 expected_event_name = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback)
|
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/gatt/ |
D | gatt_connect_low_layer_test.py | 129 def _disconnect_gatt(self, device: AndroidDevice, bluetooth_gatt, gatt_callback): argument 131 disconnect_gatt_connection(device, bluetooth_gatt, gatt_callback) 140 def _wait_for_gatt_connection(self, device: AndroidDevice, gatt_callback, bluetooth_gatt): argument 142 … wait_for_gatt_connection(device, gatt_callback, bluetooth_gatt, timeout=self.default_timeout) 147 def _wait_for_gatt_disconnection(self, device: AndroidDevice, gatt_callback): argument 149 wait_for_gatt_disconnect_event(device, gatt_callback) 192 bluetooth_gatt, gatt_callback = setup_gatt_connection( 203 self._disconnect_gatt(self.dut, bluetooth_gatt, gatt_callback) 251 bluetooth_gatt, gatt_callback = setup_gatt_connection( 264 self._disconnect_gatt(self.dut, bluetooth_gatt, gatt_callback) [all …]
|
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/security/ |
D | irk_rotation_test.py | 138 gatt_callback = self.dut.sl4a.gattCreateGattCallback() 139 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, connect_address, False, 142 expected_event_name = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback) 151 gatt_callback = self.dut.sl4a.gattCreateGattCallback() 152 bluetooth_gatt = self.dut.sl4a.gattClientConnectGatt(gatt_callback, connect_address, False, 155 expected_event_name = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback) 160 self.dut.sl4a.gattClientDisconnect(gatt_callback) 161 expected_event_name = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback) 166 self.dut.sl4a.gattClientReconnect(gatt_callback) 167 expected_event_name = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback)
|
/packages/modules/Bluetooth/system/blueberry/utils/ |
D | bt_gatt_utils.py | 53 gatt_callback = central.sl4a.gattCreateGattCallback() 55 …bluetooth_gatt = central.sl4a.gattClientConnectGatt(gatt_callback, mac_address, autoconnect, trans… 57 expected_event = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback) 69 return bluetooth_gatt, gatt_callback 72 def wait_for_gatt_connection(central: AndroidDevice, gatt_callback, bluetooth_gatt, timeout): argument 73 expected_event = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback) 97 def disconnect_gatt_connection(central: AndroidDevice, bluetooth_gatt, gatt_callback): argument 99 wait_for_gatt_disconnect_event(central, gatt_callback) 103 def wait_for_gatt_disconnect_event(central: AndroidDevice, gatt_callback): argument 104 expected_event = GattCallbackString.GATT_CONN_CHANGE.format(gatt_callback) [all …]
|
/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( 102 self._orchestrate_gatt_disconnection(self.bluetooth_gatt, self.gatt_callback) 110 return self._timed_pop(gatt_event, self.central, self.gatt_callback) 112 def _timed_pop(self, gatt_event: GattEvent, sl4a, gatt_callback): argument 113 expected_event = gatt_event["evt"].format(gatt_callback) 152 def _orchestrate_gatt_disconnection(self, bluetooth_gatt, gatt_callback): argument 155 disconnect_gatt_connection(self.central, bluetooth_gatt, gatt_callback)
|
/packages/modules/Bluetooth/system/bta/vc/ |
D | vc_test.cc | 319 .WillOnce(DoAll(SaveArg<0>(&gatt_callback), in TestAppRegister() 322 ASSERT_TRUE(gatt_callback); in TestAppRegister() 332 gatt_callback = nullptr; in TestAppUnregister() 424 gatt_callback(BTA_GATTC_OPEN_EVT, (tBTA_GATTC*)&event_data); in GetConnectedEvent() 436 gatt_callback(BTA_GATTC_CLOSE_EVT, (tBTA_GATTC*)&event_data); in GetDisconnectedEvent() 445 gatt_callback(BTA_GATTC_SEARCH_CMPL_EVT, (tBTA_GATTC*)&event_data); in GetSearchCompleteEvent() 453 gatt_callback(BTA_GATTC_ENC_CMPL_CB_EVT, &cb_data); in GetEncryptionCompleteEvt() 505 tBTA_GATTC_CBACK* gatt_callback; member in bluetooth::vc::internal::__anon9294a3d40111::VolumeControlTest 875 gatt_callback(BTA_GATTC_NOTIF_EVT, (tBTA_GATTC*)&event_data); in GetNotificationEvent() 1017 gatt_callback(BTA_GATTC_NOTIF_EVT, (tBTA_GATTC*)&event_data); in GetNotificationEvent() [all …]
|
/packages/modules/Bluetooth/system/bta/csis/ |
D | csis_client_test.cc | 406 .WillOnce(DoAll(SaveArg<0>(&gatt_callback), in TestAppRegister() 410 ASSERT_TRUE(gatt_callback); in TestAppRegister() 420 gatt_callback = nullptr; in TestAppUnregister() 474 gatt_callback(BTA_GATTC_OPEN_EVT, (tBTA_GATTC*)&event_data); in InjectConnectedEvent() 488 gatt_callback(BTA_GATTC_CLOSE_EVT, (tBTA_GATTC*)&event_data); in InjectDisconnectedEvent() 497 gatt_callback(BTA_GATTC_SEARCH_CMPL_EVT, (tBTA_GATTC*)&event_data); in GetSearchCompleteEvent() 527 gatt_callback(BTA_GATTC_CLOSE_EVT, (tBTA_GATTC*)&event_data); in GetDisconnectedEvent() 571 tBTA_GATTC_CBACK* gatt_callback; member in bluetooth::csis::internal::__anon188840a40111::CsisClientTest 710 gatt_callback(BTA_GATTC_NOTIF_EVT, (tBTA_GATTC*)&event_data); in GetNotificationEvent()
|
/packages/modules/Bluetooth/system/bta/le_audio/ |
D | le_audio_client_test.cc | 397 [](tBTA_GATTC_CBACK* gatt_callback, tBTA_GATTC_OPEN event_data) { in InjectConnectedEvent() argument 398 gatt_callback(BTA_GATTC_OPEN_EVT, (tBTA_GATTC*)&event_data); in InjectConnectedEvent() 400 base::Unretained(this->gatt_callback), event_data)); in InjectConnectedEvent() 421 [](tBTA_GATTC_CBACK* gatt_callback, tBTA_GATTC_CLOSE event_data) { in InjectDisconnectedEvent() argument 422 gatt_callback(BTA_GATTC_CLOSE_EVT, (tBTA_GATTC*)&event_data); in InjectDisconnectedEvent() 424 base::Unretained(this->gatt_callback), event_data)); in InjectDisconnectedEvent() 436 [](tBTA_GATTC_CBACK* gatt_callback, in InjectSearchCompleteEvent() 438 gatt_callback(BTA_GATTC_SEARCH_CMPL_EVT, in InjectSearchCompleteEvent() 441 base::Unretained(this->gatt_callback), event_data)); in InjectSearchCompleteEvent() 459 [](tBTA_GATTC_CBACK* gatt_callback, tBTA_GATTC_NOTIFY event_data) { in InjectNotificationEvent() argument [all …]
|
/packages/modules/Bluetooth/system/bta/has/ |
D | has_client_test.cc | 755 .WillOnce(DoAll(SaveArg<0>(&gatt_callback), in TestAppRegister() 758 ASSERT_TRUE(gatt_callback); in TestAppRegister() 769 gatt_callback = nullptr; in TestAppUnregister() 826 gatt_callback(BTA_GATTC_OPEN_EVT, (tBTA_GATTC*)&event_data); in InjectConnectedEvent() 844 gatt_callback(BTA_GATTC_CLOSE_EVT, (tBTA_GATTC*)&event_data); in InjectDisconnectedEvent() 853 gatt_callback(BTA_GATTC_SEARCH_CMPL_EVT, (tBTA_GATTC*)&event_data); in InjectSearchCompleteEvent() 869 gatt_callback(BTA_GATTC_NOTIF_EVT, (tBTA_GATTC*)&event_data); in InjectNotificationEvent() 1164 tBTA_GATTC_CBACK* gatt_callback; member in bluetooth::has::internal::__anon99444c580111::HasClientTestBase
|