Lines Matching refs:evt

1826   void OnGattConnected(const tBTA_GATTC_OPEN& evt) {  in OnGattConnected()  argument
1828 evt.remote_bda, evt.conn_id, bt_transport_text(evt.transport), in OnGattConnected()
1829 gatt_status_text(evt.status), evt.status); in OnGattConnected()
1831 if (evt.transport != BT_TRANSPORT_LE) { in OnGattConnected()
1833 bt_transport_text(evt.transport)); in OnGattConnected()
1834 BTA_GATTC_Close(evt.conn_id); in OnGattConnected()
1839 HasDevice::MatchAddress(evt.remote_bda)); in OnGattConnected()
1841 log::warn("Skipping unknown device, address={}", evt.remote_bda); in OnGattConnected()
1842 BTA_GATTC_Close(evt.conn_id); in OnGattConnected()
1846 if (evt.status != GATT_SUCCESS) { in OnGattConnected()
1855 evt.remote_bda); in OnGattConnected()
1859 device->conn_id = evt.conn_id; in OnGattConnected()
1887 void OnGattDisconnected(const tBTA_GATTC_CLOSE& evt) { in OnGattDisconnected() argument
1889 HasDevice::MatchAddress(evt.remote_bda)); in OnGattDisconnected()
1892 evt.conn_id); in OnGattDisconnected()
1896 static_cast<int>(evt.reason)); in OnGattDisconnected()
1901 evt.remote_bda); in OnGattDisconnected()
1903 auto peer_disconnected = (evt.reason == GATT_CONN_TIMEOUT) || in OnGattDisconnected()
1904 (evt.reason == GATT_CONN_TERMINATE_PEER_USER); in OnGattDisconnected()
1913 void OnGattServiceSearchComplete(const tBTA_GATTC_SEARCH_CMPL& evt) { in OnGattServiceSearchComplete() argument
1914 auto device = GetDevice(evt.conn_id); in OnGattServiceSearchComplete()
1916 log::warn("Skipping unknown device, conn_id=0x{:x}", evt.conn_id); in OnGattServiceSearchComplete()
1932 if (evt.status != GATT_SUCCESS) { in OnGattServiceSearchComplete()
1961 void OnGattNotification(const tBTA_GATTC_NOTIFY& evt) { in OnGattNotification() argument
1963 if (evt.len > GATT_MAX_ATTR_LEN) { in OnGattNotification()
1965 evt.is_notify, static_cast<int>(evt.len)); in OnGattNotification()
1967 if (!evt.is_notify) BTA_GATTC_SendIndConfirm(evt.conn_id, evt.cid); in OnGattNotification()
1969 OnHasNotification(evt.conn_id, evt.handle, evt.len, evt.value); in OnGattNotification()