Home
last modified time | relevance | path

Searched refs:gatt_callback (Results 1 – 10 of 10) sorted by relevance

/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/gatt/
Dgatt_connect_test.py91 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 …]
Dgatt_connect_with_irk_test.py134 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/
Dgatt_connect_low_layer_test.py129 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/
Dirk_rotation_test.py138 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/
Dbt_gatt_utils.py53 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/
Dgatt_connected_base_test.py66 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/
Dvc_test.cc319 .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/
Dcsis_client_test.cc406 .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/
Dle_audio_client_test.cc397 [](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/
Dhas_client_test.cc755 .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