/system/bt/test/suite/gatt/ |
D | gatt_test.h | 27 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 …]
|
D | gatt_test.cpp | 56 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/ |
D | low_energy_client.h | 49 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 …]
|
D | gatt_server.h | 39 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 …]
|
D | daemon.cpp | 62 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()
|
D | gatt_client.cpp | 38 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()
|
D | low_energy_client.cpp | 324 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 …]
|
D | gatt_server.cpp | 54 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 …]
|
D | BUILD.gn | 37 "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",
|
D | adapter.cpp | 72 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()
|
D | gatt_client.h | 59 private hal::BluetoothGattInterface::ClientObserver { 73 hal::BluetoothGattInterface* gatt_iface,
|
D | Android.mk | 70 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/ |
D | hci_hal_h4_test.cpp | 59 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 …]
|
D | hci_hal_mct_test.cpp | 51 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 …]
|
D | hci_layer_test.cpp | 535 &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/ |
D | gatt_client_unittest.cpp | 31 : 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()
|
D | adapter_unittest.cpp | 34 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_;
|
D | ipc_linux_unittest.cpp | 59 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()
|
D | gatt_server_unittest.cpp | 32 : 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/ |
D | bluetooth_test.cpp | 50 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/ |
D | Android.mk | 30 ../../service/hal/bluetooth_gatt_interface.cpp \ 31 ../../service/hal/bluetooth_interface.cpp \
|
/system/bt/hci/src/ |
D | hci_layer.c | 112 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/ |
D | gatt_helpers.h | 29 namespace hal {
|
D | gatt_helpers.cpp | 20 namespace hal { namespace
|
D | fake_bluetooth_interface.h | 23 namespace hal {
|