Home
last modified time | relevance | path

Searched refs:BluetoothGattInterface (Results 1 – 22 of 22) sorted by relevance

/aosp12/system/bt/service/hal/
H A Dbluetooth_gatt_interface.h40 class BluetoothGattInterface {
72 virtual void ConnectCallback(BluetoothGattInterface* gatt_iface,
76 virtual void DisconnectCallback(BluetoothGattInterface* gatt_iface,
98 virtual void MtuChangedCallback(BluetoothGattInterface* gatt_iface,
101 virtual void GetGattDbCallback(BluetoothGattInterface* gatt_iface,
130 BluetoothGattInterface* gatt_iface, int status, int server_if,
167 BluetoothGattInterface* gatt_iface, int status, int handle);
196 static BluetoothGattInterface* Get();
252 BluetoothGattInterface() = default;
253 virtual ~BluetoothGattInterface() = default;
[all …]
H A Dbluetooth_gatt_interface.cc45 BluetoothGattInterface* g_interface = nullptr;
579 void BluetoothGattInterface::ClientObserver::ConnectCallback( in ConnectCallback()
603 void BluetoothGattInterface::ClientObserver::NotifyCallback( in NotifyCallback()
731 bool BluetoothGattInterface::Initialize() { in Initialize()
748 void BluetoothGattInterface::CleanUp() { in CleanUp()
757 bool BluetoothGattInterface::IsInitialized() { in IsInitialized()
764 BluetoothGattInterface* BluetoothGattInterface::Get() { in Get()
771 void BluetoothGattInterface::InitializeForTesting( in InitializeForTesting()
772 BluetoothGattInterface* test_instance) { in InitializeForTesting()
780 bt_status_t BluetoothGattInterface::StartScan(int client_id) { in StartScan()
[all …]
H A Dfake_bluetooth_gatt_interface.h30 class FakeBluetoothGattInterface : public BluetoothGattInterface {
/aosp12/system/bt/test/suite/gatt/
H A Dgatt_test.h27 public bluetooth::hal::BluetoothGattInterface::ClientObserver,
28 public bluetooth::hal::BluetoothGattInterface::ScannerObserver,
29 public bluetooth::hal::BluetoothGattInterface::ServerObserver {
61 bluetooth::hal::BluetoothGattInterface* /* unused */, int status,
63 void ScanResultCallback(bluetooth::hal::BluetoothGattInterface* /* unused */,
69 bluetooth::hal::BluetoothGattInterface* /* unused */, int status,
72 bluetooth::hal::BluetoothGattInterface* /* unused */, int status,
75 bluetooth::hal::BluetoothGattInterface* /* unused */, int status,
78 bluetooth::hal::BluetoothGattInterface* /* unused */, int status,
H A Dgatt_test.cc48 bluetooth::hal::BluetoothGattInterface::Initialize(); in SetUp()
49 ASSERT_TRUE(bluetooth::hal::BluetoothGattInterface::IsInitialized()); in SetUp()
50 auto gatt_interface = bluetooth::hal::BluetoothGattInterface::Get(); in SetUp()
73 bluetooth::hal::BluetoothGattInterface::CleanUp(); in TearDown()
93 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in RegisterClientCallback() argument
101 bluetooth::hal::BluetoothGattInterface* /* unused */, const RawAddress& bda, in ScanResultCallback() argument
108 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in RegisterServerCallback() argument
116 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in ServiceAddedCallback() argument
125 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in ServiceStoppedCallback() argument
134 bluetooth::hal::BluetoothGattInterface* /* unused */, int status, in ServiceDeletedCallback() argument
/aosp12/system/bt/service/
H A Dgatt_server.h40 private hal::BluetoothGattInterface::ServerObserver {
195 void ConnectionCallback(hal::BluetoothGattInterface* gatt_iface, int conn_id,
201 void ServiceStoppedCallback(hal::BluetoothGattInterface* gatt_iface,
205 hal::BluetoothGattInterface* gatt_iface, int conn_id, int trans_id,
208 void RequestReadDescriptorCallback(hal::BluetoothGattInterface* gatt_iface,
214 hal::BluetoothGattInterface* gatt_iface, int conn_id, int trans_id,
217 void RequestWriteDescriptorCallback(hal::BluetoothGattInterface* gatt_iface,
222 void RequestExecWriteCallback(hal::BluetoothGattInterface* gatt_iface,
225 void IndicationSentCallback(hal::BluetoothGattInterface* gatt_iface,
232 void HandleNextEntry(hal::BluetoothGattInterface* gatt_iface);
[all …]
H A Dlow_energy_client.cc49 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~LowEnergyClient()
51 hal::BluetoothGattInterface::Get() in ~LowEnergyClient()
63 hal::BluetoothGattInterface::Get()->GetClientHALInterface()->connect( in Connect()
90 hal::BluetoothGattInterface::Get()->GetClientHALInterface()->disconnect( in Disconnect()
116 bt_status_t status = hal::BluetoothGattInterface::Get() in SetMtu()
138 void LowEnergyClient::ConnectCallback(hal::BluetoothGattInterface* gatt_iface, in ConnectCallback()
159 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, in DisconnectCallback()
203 hal::BluetoothGattInterface::Get()->AddClientObserver(this); in LowEnergyClientFactory()
207 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~LowEnergyClientFactory()
222 hal::BluetoothGattInterface::Get()->GetClientHALInterface(); in RegisterInstance()
[all …]
H A Dlow_energy_scanner.cc82 hal::BluetoothGattInterface::Get()->RemoveScannerObserver(this); in ~LowEnergyScanner()
84 hal::BluetoothGattInterface::Get()->GetScannerHALInterface()->Unregister( in ~LowEnergyScanner()
108 hal::BluetoothGattInterface::Get()->StartScan(scanner_id_); in StartScan()
125 hal::BluetoothGattInterface::Get()->StopScan(scanner_id_); in StopScan()
142 hal::BluetoothGattInterface* gatt_iface, const RawAddress& bda, int rssi, in ScanResultCallback()
166 hal::BluetoothGattInterface::Get()->AddScannerObserver(this); in LowEnergyScannerFactory()
170 hal::BluetoothGattInterface::Get()->RemoveScannerObserver(this); in ~LowEnergyScannerFactory()
185 hal::BluetoothGattInterface::Get()->GetScannerHALInterface(); in RegisterInstance()
218 hal::BluetoothGattInterface::Get()->AddScannerObserver(scanner.get()); in RegisterScannerCallback()
H A Dgatt_server.cc40 hal::BluetoothGattInterface::Get()->RemoveServerObserver(this); in ~GattServer()
45 hal::BluetoothGattInterface::Get() in ~GattServer()
95 hal::BluetoothGattInterface::Get()->GetServerHALInterface()->add_service( in AddService()
168 hal::BluetoothGattInterface::Get() in SendResponse()
220 bt_status_t status = hal::BluetoothGattInterface::Get() in SendNotification()
332 hal::BluetoothGattInterface* /* gatt_iface */, int /* status */, in ServiceStoppedCallback() argument
338 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int trans_id, in RequestReadCharacteristicCallback() argument
572 hal::BluetoothGattInterface::Get()->AddServerObserver(this); in GattServerFactory()
576 hal::BluetoothGattInterface::Get()->RemoveServerObserver(this); in ~GattServerFactory()
591 hal::BluetoothGattInterface::Get()->GetServerHALInterface(); in RegisterInstance()
[all …]
H A Dlow_energy_client.h47 class LowEnergyClient : private hal::BluetoothGattInterface::ClientObserver,
105 void ConnectCallback(hal::BluetoothGattInterface* gatt_iface, int conn_id,
108 void DisconnectCallback(hal::BluetoothGattInterface* gatt_iface, int conn_id,
111 void MtuChangedCallback(hal::BluetoothGattInterface* gatt_iface, int conn_id,
145 : private hal::BluetoothGattInterface::ClientObserver,
161 void RegisterClientCallback(hal::BluetoothGattInterface* gatt_iface,
H A Dgatt_client.cc36 hal::BluetoothGattInterface::Get() in ~GattClient()
49 hal::BluetoothGattInterface::Get()->AddClientObserver(this); in GattClientFactory()
53 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~GattClientFactory()
68 hal::BluetoothGattInterface::Get()->GetClientHALInterface(); in RegisterInstance()
79 hal::BluetoothGattInterface* /* gatt_iface */, int status, int client_id, in RegisterClientCallback() argument
H A Dlow_energy_scanner.h43 class LowEnergyScanner : private hal::BluetoothGattInterface::ScannerObserver,
87 void ScanResultCallback(hal::BluetoothGattInterface* gatt_iface,
131 : private hal::BluetoothGattInterface::ScannerObserver,
H A Dlow_energy_advertiser.cc135 hal::BluetoothGattInterface::Get()->GetAdvertiserHALInterface()->Enable( in ~LowEnergyAdvertiser()
137 hal::BluetoothGattInterface::Get()->GetAdvertiserHALInterface()->Unregister( in ~LowEnergyAdvertiser()
173 hal::BluetoothGattInterface::Get() in StartAdvertising()
203 hal::BluetoothGattInterface::Get()->GetAdvertiserHALInterface()->Enable( in StopAdvertising()
307 hal::BluetoothGattInterface::Get()->GetAdvertiserHALInterface(); in RegisterInstance()
H A Ddaemon.cc73 if (!hal::BluetoothGattInterface::Initialize()) goto failed; in StartUpBluetoothInterfaces()
87 if (hal::BluetoothGattInterface::IsInitialized()) in ShutDownBluetoothInterfaces()
88 hal::BluetoothGattInterface::CleanUp(); in ShutDownBluetoothInterfaces()
H A Dgatt_client.h59 private hal::BluetoothGattInterface::ClientObserver {
72 void RegisterClientCallback(hal::BluetoothGattInterface* gatt_iface,
/aosp12/system/bt/service/test/
H A Dgatt_client_unittest.cc61 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
68 hal::BluetoothGattInterface::CleanUp(); in TearDown()
H A Dipc_linux_unittest.cc63 bluetooth::hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
75 bluetooth::hal::BluetoothGattInterface::CleanUp(); in TearDown()
H A Dadapter_unittest.cc38 hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
47 hal::BluetoothGattInterface::CleanUp(); in TearDown()
H A Dlow_energy_client_unittest.cc95 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
101 hal::BluetoothGattInterface::CleanUp(); in TearDown()
H A Dlow_energy_scanner_unittest.cc123 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
129 hal::BluetoothGattInterface::CleanUp(); in TearDown()
H A Dlow_energy_advertiser_unittest.cc87 hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
96 hal::BluetoothGattInterface::CleanUp(); in TearDown()
H A Dgatt_server_unittest.cc189 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
195 hal::BluetoothGattInterface::CleanUp(); in TearDown()