Home
last modified time | relevance | path

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

/system/bt/service/hal/
Dbluetooth_gatt_interface.h40 class BluetoothGattInterface {
56 BluetoothGattInterface* gatt_iface, const RawAddress& bda, int rssi,
68 virtual void RegisterClientCallback(BluetoothGattInterface* gatt_iface,
72 virtual void ConnectCallback(BluetoothGattInterface* gatt_iface,
76 virtual void DisconnectCallback(BluetoothGattInterface* gatt_iface,
80 virtual void SearchCompleteCallback(BluetoothGattInterface* gatt_iface,
84 BluetoothGattInterface* gatt_iface, int conn_id, int registered,
87 virtual void NotifyCallback(BluetoothGattInterface* gatt_iface, int conn_id,
90 virtual void WriteCharacteristicCallback(BluetoothGattInterface* gatt_iface,
94 virtual void WriteDescriptorCallback(BluetoothGattInterface* gatt_iface,
[all …]
Dbluetooth_gatt_interface.cc44 BluetoothGattInterface* g_interface = nullptr;
54 base::ObserverList<BluetoothGattInterface::ScannerObserver>*
56 base::ObserverList<BluetoothGattInterface::ClientObserver>*
58 base::ObserverList<BluetoothGattInterface::ServerObserver>*
435 class BluetoothGattInterfaceImpl : public BluetoothGattInterface {
538 base::ObserverList<BluetoothGattInterface::ScannerObserver>*
545 base::ObserverList<BluetoothGattInterface::ClientObserver>*
552 base::ObserverList<BluetoothGattInterface::ServerObserver>*
564 void BluetoothGattInterface::ScannerObserver::ScanResultCallback( in ScanResultCallback()
565 BluetoothGattInterface* /* gatt_iface */, const RawAddress& /* bda */, in ScanResultCallback() argument
[all …]
Dfake_bluetooth_gatt_interface.h29 class FakeBluetoothGattInterface : public BluetoothGattInterface {
/system/bt/test/suite/gatt/
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,
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
/system/bt/service/
Dgatt_server.h40 private hal::BluetoothGattInterface::ServerObserver {
195 void ConnectionCallback(hal::BluetoothGattInterface* gatt_iface, int conn_id,
198 void ServiceAddedCallback(hal::BluetoothGattInterface* gatt_iface, int status,
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,
[all …]
Dlow_energy_client.cc46 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~LowEnergyClient()
48 hal::BluetoothGattInterface::Get() in ~LowEnergyClient()
60 hal::BluetoothGattInterface::Get()->GetClientHALInterface()->connect( in Connect()
87 hal::BluetoothGattInterface::Get()->GetClientHALInterface()->disconnect( in Disconnect()
113 bt_status_t status = hal::BluetoothGattInterface::Get() in SetMtu()
135 void LowEnergyClient::ConnectCallback(hal::BluetoothGattInterface* gatt_iface, in ConnectCallback()
156 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, in DisconnectCallback()
174 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status, int mtu) { in MtuChangedCallback()
200 hal::BluetoothGattInterface::Get()->AddClientObserver(this); in LowEnergyClientFactory()
204 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~LowEnergyClientFactory()
[all …]
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()
216 hal::BluetoothGattInterface::Get()->AddScannerObserver(scanner.get()); in RegisterScannerCallback()
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()
78 hal::BluetoothGattInterface* /* gatt_iface */, int status, int client_id, in RegisterClientCallback() argument
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,
Dgatt_server.cc41 hal::BluetoothGattInterface::Get()->RemoveServerObserver(this); in ~GattServer()
46 hal::BluetoothGattInterface::Get() in ~GattServer()
94 hal::BluetoothGattInterface::Get()->GetServerHALInterface()->add_service( in AddService()
168 hal::BluetoothGattInterface::Get() in SendResponse()
220 bt_status_t status = hal::BluetoothGattInterface::Get() in SendNotification()
246 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int server_id, in ConnectionCallback() argument
295 void GattServer::ServiceAddedCallback(hal::BluetoothGattInterface* gatt_iface, in ServiceAddedCallback()
332 hal::BluetoothGattInterface* /* gatt_iface */, int /* status */, in ServiceStoppedCallback() argument
338 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int trans_id, in RequestReadCharacteristicCallback() argument
371 hal::BluetoothGattInterface* /* gatt_iface */, int conn_id, int trans_id, in RequestReadDescriptorCallback() argument
[all …]
Dlow_energy_scanner.h43 class LowEnergyScanner : private hal::BluetoothGattInterface::ScannerObserver,
87 void ScanResultCallback(hal::BluetoothGattInterface* gatt_iface,
131 : private hal::BluetoothGattInterface::ScannerObserver,
Dgatt_client.h59 private hal::BluetoothGattInterface::ClientObserver {
72 void RegisterClientCallback(hal::BluetoothGattInterface* gatt_iface,
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()
Ddaemon.cc72 if (!hal::BluetoothGattInterface::Initialize()) goto failed; in StartUpBluetoothInterfaces()
86 if (hal::BluetoothGattInterface::IsInitialized()) in ShutDownBluetoothInterfaces()
87 hal::BluetoothGattInterface::CleanUp(); in ShutDownBluetoothInterfaces()
/system/bt/service/test/
Dgatt_client_unittest.cc60 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
67 hal::BluetoothGattInterface::CleanUp(); in TearDown()
Dipc_linux_unittest.cc61 bluetooth::hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
73 bluetooth::hal::BluetoothGattInterface::CleanUp(); in TearDown()
Dlow_energy_client_unittest.cc93 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
99 hal::BluetoothGattInterface::CleanUp(); in TearDown()
Dadapter_unittest.cc38 hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
47 hal::BluetoothGattInterface::CleanUp(); in TearDown()
Dlow_energy_scanner_unittest.cc119 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
125 hal::BluetoothGattInterface::CleanUp(); in TearDown()
Dlow_energy_advertiser_unittest.cc85 hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
94 hal::BluetoothGattInterface::CleanUp(); in TearDown()
Dgatt_server_unittest.cc188 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
194 hal::BluetoothGattInterface::CleanUp(); in TearDown()