Home
last modified time | relevance | path

Searched refs:hal (Results 1 – 25 of 37) sorted by relevance

12

/system/bt/test/suite/gatt/
Dgatt_test.h27 public bluetooth::hal::BluetoothGattInterface::ClientObserver,
28 public bluetooth::hal::BluetoothGattInterface::ServerObserver {
57 bluetooth::hal::BluetoothGattInterface* /* unused */,
60 bluetooth::hal::BluetoothGattInterface* /* unused */,
63 bluetooth::hal::BluetoothGattInterface* /* unused */,
68 bluetooth::hal::BluetoothGattInterface* /* unused */,
71 bluetooth::hal::BluetoothGattInterface* /* unused */,
75 bluetooth::hal::BluetoothGattInterface* /* unused */,
79 bluetooth::hal::BluetoothGattInterface* /* unused */,
83 bluetooth::hal::BluetoothGattInterface* /* unused */,
[all …]
Dgatt_test.cpp56 bluetooth::hal::BluetoothGattInterface::Initialize(); in SetUp()
57 ASSERT_TRUE(bluetooth::hal::BluetoothGattInterface::IsInitialized()); in SetUp()
58 auto gatt_interface = bluetooth::hal::BluetoothGattInterface::Get(); in SetUp()
85 bluetooth::hal::BluetoothGattInterface::CleanUp(); in TearDown()
101 bluetooth::hal::BluetoothGattInterface* /* unused */, in RegisterClientCallback()
109 bluetooth::hal::BluetoothGattInterface* /* unused */, in ScanResultCallback()
115 bluetooth::hal::BluetoothGattInterface* /* unused */, in ListenCallback()
124 bluetooth::hal::BluetoothGattInterface* /* unused */, in RegisterServerCallback()
132 bluetooth::hal::BluetoothGattInterface* /* unused */, in ServiceAddedCallback()
142 bluetooth::hal::BluetoothGattInterface* /* unused */, in CharacteristicAddedCallback()
[all …]
/system/bt/service/
Dlow_energy_client.h49 class LowEnergyClient : private hal::BluetoothGattInterface::ClientObserver,
151 hal::BluetoothGattInterface* gatt_iface,
155 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status,
158 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status,
161 hal::BluetoothGattInterface* gatt_iface, int conn_id, int status,
164 hal::BluetoothGattInterface* gatt_iface,
167 hal::BluetoothGattInterface* gatt_iface,
170 hal::BluetoothGattInterface* gatt_iface,
175 hal::BluetoothGattInterface* gatt_iface,
182 void HandleDeferredAdvertiseData(hal::BluetoothGattInterface* gatt_iface);
[all …]
Dgatt_server.h39 private hal::BluetoothGattInterface::ServerObserver {
258 hal::BluetoothGattInterface* gatt_iface,
263 hal::BluetoothGattInterface* gatt_iface,
268 hal::BluetoothGattInterface* gatt_iface,
274 hal::BluetoothGattInterface* gatt_iface,
280 hal::BluetoothGattInterface* gatt_iface,
284 hal::BluetoothGattInterface* gatt_iface,
288 hal::BluetoothGattInterface* gatt_iface,
294 hal::BluetoothGattInterface* gatt_iface,
300 hal::BluetoothGattInterface* gatt_iface,
[all …]
Ddaemon.cpp62 if (!hal::BluetoothInterface::Initialize()) in StartUpBluetoothInterfaces()
65 if (!hal::BluetoothGattInterface::Initialize()) in StartUpBluetoothInterfaces()
76 if (hal::BluetoothGattInterface::IsInitialized()) in ShutDownBluetoothInterfaces()
77 hal::BluetoothGattInterface::CleanUp(); in ShutDownBluetoothInterfaces()
78 if (hal::BluetoothInterface::IsInitialized()) in ShutDownBluetoothInterfaces()
79 hal::BluetoothInterface::CleanUp(); in ShutDownBluetoothInterfaces()
Dgatt_client.cpp38 hal::BluetoothGattInterface::Get()->GetClientHALInterface()-> in ~GattClient()
54 hal::BluetoothGattInterface::Get()->AddClientObserver(this); in GattClientFactory()
58 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~GattClientFactory()
74 hal::BluetoothGattInterface::Get()->GetClientHALInterface(); in RegisterInstance()
86 hal::BluetoothGattInterface* /* gatt_iface */, in RegisterClientCallback()
Dlow_energy_client.cpp324 hal::BluetoothGattInterface::Get()->RemoveClientObserver(this); in ~LowEnergyClient()
327 hal::BluetoothGattInterface::Get()-> in ~LowEnergyClient()
329 hal::BluetoothGattInterface::Get()-> in ~LowEnergyClient()
343 bt_status_t status = hal::BluetoothGattInterface::Get()-> in Connect()
370 bt_status_t status = hal::BluetoothGattInterface::Get()-> in Disconnect()
397 bt_status_t status = hal::BluetoothGattInterface::Get()-> in SetMtu()
423 bt_status_t status = hal::BluetoothGattInterface::Get()-> in StartScan()
440 bt_status_t status = hal::BluetoothGattInterface::Get()-> in StopScan()
488 bt_status_t status = hal::BluetoothGattInterface::Get()-> in StartAdvertising()
532 bt_status_t status = hal::BluetoothGattInterface::Get()-> in StopAdvertising()
[all …]
Dgatt_server.cpp54 hal::BluetoothGattInterface::Get()->RemoveServerObserver(this); in ~GattServer()
59 hal::BluetoothGattInterface::Get()-> in ~GattServer()
197 hal::GetHALServiceId(*service_id, &hal_id); in EndServiceDeclaration()
199 bt_status_t status = hal::BluetoothGattInterface::Get()-> in EndServiceDeclaration()
356 bt_status_t result = hal::BluetoothGattInterface::Get()-> in SendResponse()
418 bt_status_t status = hal::BluetoothGattInterface::Get()-> in SendNotification()
449 hal::BluetoothGattInterface* /* gatt_iface */, in ConnectionCallback()
498 hal::BluetoothGattInterface* gatt_iface, in ServiceAddedCallback()
508 auto gatt_id = hal::GetServiceIdFromHAL(srvc_id); in ServiceAddedCallback()
533 hal::BluetoothGattInterface* gatt_iface, in CharacteristicAddedCallback()
[all …]
DBUILD.gn37 "hal/bluetooth_interface.cpp",
38 "hal/bluetooth_gatt_interface.cpp",
39 "hal/fake_bluetooth_gatt_interface.cpp",
40 "hal/fake_bluetooth_interface.cpp",
41 "hal/gatt_helpers.cpp",
Dadapter.cpp72 public hal::BluetoothInterface::Observer {
79 hal::BluetoothInterface::Get()->AddObserver(this); in AdapterImpl()
83 hal::BluetoothInterface::Get()->GetHALInterface()->get_adapter_properties(); in AdapterImpl()
87 hal::BluetoothInterface::Get()->RemoveObserver(this); in ~AdapterImpl()
121 int status = hal::BluetoothInterface::Get()->GetHALInterface()->enable(start_restricted); in Enable()
146 int status = hal::BluetoothInterface::Get()->GetHALInterface()->disable(); in Disable()
340 int status = hal::BluetoothInterface::Get()->GetHALInterface()-> in SetAdapterProperty()
Dgatt_client.h59 private hal::BluetoothGattInterface::ClientObserver {
73 hal::BluetoothGattInterface* gatt_iface,
DAndroid.mk70 hal/gatt_helpers.cpp \
71 hal/bluetooth_gatt_interface.cpp \
72 hal/bluetooth_interface.cpp \
102 hal/fake_bluetooth_gatt_interface.cpp \
103 hal/fake_bluetooth_interface.cpp \
/system/bt/hci/test/
Dhci_hal_h4_test.cpp59 static const hci_hal_t *hal; variable
70 EXPECT_EQ((size_t)1, hal->read_data(type, &byte, 1)); in expect_packet_synchronous()
74 hal->packet_finished(type); in expect_packet_synchronous()
119 while ((bytes_read = hal->read_data(type, &byte, 1)) != 0) {
124 hal->packet_finished(type);
145 hal = hci_hal_h4_get_test_interface(&vendor);
155 EXPECT_TRUE(hal->init(&callbacks, thread));
158 EXPECT_TRUE(hal->open());
164 hal->close();
214 hal->transmit_data(DATA_TYPE_COMMAND, (uint8_t *)(sample_data1 + 1), strlen(sample_data1 + 1));
[all …]
Dhci_hal_mct_test.cpp51 static const hci_hal_t *hal; variable
65 EXPECT_EQ((size_t)1, hal->read_data(type, &byte, 1)); in expect_packet_synchronous()
69 hal->packet_finished(type); in expect_packet_synchronous()
112 while ((bytes_read = hal->read_data(type, &byte, 1)) != 0) {
117 hal->packet_finished(type);
138 hal = hci_hal_mct_get_test_interface(&vendor);
155 EXPECT_TRUE(hal->init(&callbacks, thread));
158 EXPECT_TRUE(hal->open());
164 hal->close();
214 hal->transmit_data(DATA_TYPE_COMMAND, (uint8_t *)(sample_data1), strlen(sample_data1));
[all …]
Dhci_layer_test.cpp535 &hal,
551 hal.init = hal_init;
552 hal.open = hal_open;
553 hal.close = hal_close;
554 hal.read_data = hal_read_data;
555 hal.packet_finished = hal_packet_finished;
556 hal.transmit_data = hal_transmit_data;
597 hci_hal_t hal;
/system/bt/service/test/
Dgatt_client_unittest.cpp31 : public hal::FakeBluetoothGattInterface::TestClientHandler {
70 fake_hal_gatt_iface_ = new hal::FakeBluetoothGattInterface( in SetUp()
72 hal::FakeBluetoothGattInterface::TestClientHandler>(mock_handler_), in SetUp()
74 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
81 hal::BluetoothGattInterface::CleanUp(); in TearDown()
85 hal::FakeBluetoothGattInterface* fake_hal_gatt_iface_;
186 hal::BluetoothGattInterface::Get()->StartScan(i); in TEST_F()
189 hal::BluetoothGattInterface::Get()->StopScan(i); in TEST_F()
Dadapter_unittest.cpp34 fake_hal_manager_ = hal::FakeBluetoothInterface::GetManager(); in SetUp()
35 fake_hal_iface_ = new hal::FakeBluetoothInterface(); in SetUp()
36 hal::BluetoothInterface::InitializeForTesting(fake_hal_iface_); in SetUp()
39 hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
40 new hal::FakeBluetoothGattInterface(nullptr, nullptr)); in SetUp()
47 hal::BluetoothGattInterface::CleanUp(); in TearDown()
48 hal::BluetoothInterface::CleanUp(); in TearDown()
52 hal::FakeBluetoothInterface* fake_hal_iface_;
53 hal::FakeBluetoothInterface::Manager* fake_hal_manager_;
Dipc_linux_unittest.cpp59 bluetooth::hal::BluetoothInterface::InitializeForTesting( in SetUp()
60 new bluetooth::hal::FakeBluetoothInterface()); in SetUp()
61 bluetooth::hal::BluetoothGattInterface::InitializeForTesting( in SetUp()
62 new bluetooth::hal::FakeBluetoothGattInterface(nullptr, nullptr)); in SetUp()
72 bluetooth::hal::BluetoothGattInterface::CleanUp(); in TearDown()
73 bluetooth::hal::BluetoothInterface::CleanUp(); in TearDown()
Dgatt_server_unittest.cpp32 : public hal::FakeBluetoothGattInterface::TestServerHandler {
166 fake_hal_gatt_iface_ = new hal::FakeBluetoothGattInterface( in SetUp()
169 hal::FakeBluetoothGattInterface::TestServerHandler>(mock_handler_)); in SetUp()
171 hal::BluetoothGattInterface::InitializeForTesting(fake_hal_gatt_iface_); in SetUp()
177 hal::BluetoothGattInterface::CleanUp(); in TearDown()
181 hal::FakeBluetoothGattInterface* fake_hal_gatt_iface_;
263 hal::GetHALServiceId(test_service_id_, &hal_srvc_id); in SetUpTestService()
434 hal::GetHALServiceId(*service_id, &hal_id); in TEST_F()
484 hal::GetHALServiceId(*service_id, &hal_id); in TEST_F()
553 hal::GetHALServiceId(*service_id, &hal_id); in TEST_F()
[all …]
/system/bt/test/suite/adapter/
Dbluetooth_test.cpp50 bluetooth::hal::BluetoothInterface::Initialize(); in SetUp()
51 ASSERT_TRUE(bluetooth::hal::BluetoothInterface::IsInitialized()); in SetUp()
52 auto bt_hal_interface = bluetooth::hal::BluetoothInterface::Get(); in SetUp()
63 auto bt_hal_interface = bluetooth::hal::BluetoothInterface::Get(); in TearDown()
/system/bt/test/suite/
DAndroid.mk30 ../../service/hal/bluetooth_gatt_interface.cpp \
31 ../../service/hal/bluetooth_interface.cpp \
/system/bt/hci/src/
Dhci_layer.c112 static const hci_hal_t *hal; variable
245 hal->init(&hal_callbacks, thread); in start_up()
317 hal->close(); in shut_down()
406 hal->open(); in event_finish_startup()
508 hal->transmit_data(type, packet->data + packet->offset, packet->len); in transmit_fragment()
552 while (hal->read_data(type, &byte, 1) != 0) { in hal_says_data_ready()
595 …size_t bytes_read = hal->read_data(type, (incoming->buffer->data + incoming->index), incoming->byt… in hal_says_data_ready()
608 hal->packet_finished(type); in hal_says_data_ready()
640 hal->packet_finished(type); in hal_says_data_ready()
828 hal = hci_hal_get_interface(); in hci_layer_get_interface()
[all …]
/system/bt/service/hal/
Dgatt_helpers.h29 namespace hal {
Dgatt_helpers.cpp20 namespace hal { namespace
Dfake_bluetooth_interface.h23 namespace hal {

12