/system/bt/test/suite/gatt/ |
D | gatt_test.cpp | 134 int srvc_handle) { in ServiceAddedCallback() argument 137 service_handle_ = srvc_handle; in ServiceAddedCallback() 144 int srvc_handle, int char_handle) { in CharacteristicAddedCallback() argument 147 service_handle_ = srvc_handle; in CharacteristicAddedCallback() 155 int srvc_handle, int descr_handle) { in DescriptorAddedCallback() argument 158 service_handle_ = srvc_handle; in DescriptorAddedCallback() 165 int status, int server_if, int srvc_handle) { in ServiceStartedCallback() argument 168 service_handle_ = srvc_handle; in ServiceStartedCallback() 174 int status, int server_if, int srvc_handle) { in ServiceStoppedCallback() argument 177 service_handle_ = srvc_handle; in ServiceStoppedCallback() [all …]
|
D | gatt_test.h | 73 int srvc_handle) override; 77 int srvc_handle, int char_handle) override; 81 int srvc_handle, int descr_handle) override; 84 int status, int server_if, int srvc_handle) override; 87 int status, int server_if, int srvc_handle) override; 90 int status, int server_if, int srvc_handle) override;
|
D | gatt_unittest.cpp | 130 int srvc_handle = service_handle(); in TEST_F() local 131 gatt_server_interface()->add_characteristic(server_if, srvc_handle, in TEST_F() 138 gatt_server_interface()->add_descriptor(server_if, srvc_handle, in TEST_F() 145 gatt_server_interface()->start_service(server_if, srvc_handle, 2 /*BREDR/LE*/); in TEST_F() 150 gatt_server_interface()->stop_service(server_if, srvc_handle); in TEST_F() 155 gatt_server_interface()->delete_service(server_if, srvc_handle); in TEST_F()
|
/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.cpp | 122 bt_status_t FakeAddCharacteristic(int server_if, int srvc_handle, in FakeAddCharacteristic() argument 126 return g_server_handler->AddCharacteristic(server_if, srvc_handle, uuid, in FakeAddCharacteristic() 132 bt_status_t FakeAddDescriptor(int server_if, int srvc_handle, in FakeAddDescriptor() argument 137 server_if, srvc_handle, uuid, permissions); in FakeAddDescriptor() 143 int server_if, int srvc_handle, int transport) { in FakeStartService() argument 145 return g_server_handler->StartService(server_if, srvc_handle, transport); in FakeStartService() 150 bt_status_t FakeDeleteService(int server_if, int srvc_handle) { in FakeDeleteService() argument 152 return g_server_handler->DeleteService(server_if, srvc_handle); in FakeDeleteService() 316 int srvc_handle) { in NotifyServiceAddedCallback() argument 319 ServiceAddedCallback(this, status, server_if, srvc_id, srvc_handle)); in NotifyServiceAddedCallback() [all …]
|
D | fake_bluetooth_gatt_interface.h | 68 virtual bt_status_t AddCharacteristic(int server_if, int srvc_handle, 71 virtual bt_status_t AddDescriptor(int server_if, int srvc_handle, 75 int server_if, int srvc_handle, int transport) = 0; 76 virtual bt_status_t DeleteService(int server_if, int srvc_handle) = 0; 115 int srvc_handle); 118 int srvc_handle, int char_handle); 121 int srvc_handle, int desc_handle); 122 void NotifyServiceStartedCallback(int status, int server_if, int srvc_handle);
|
D | bluetooth_gatt_interface.cpp | 293 int srvc_handle) { in ServiceAddedCallback() argument 296 << " handle: " << srvc_handle; in ServiceAddedCallback() 301 g_interface, status, server_if, *srvc_id, srvc_handle)); in ServiceAddedCallback() 307 int srvc_handle, in CharacteristicAddedCallback() argument 311 << " srvc_handle: " << srvc_handle << " char_handle: " << char_handle; in CharacteristicAddedCallback() 316 g_interface, status, server_if, *uuid, srvc_handle, char_handle)); in CharacteristicAddedCallback() 322 int srvc_handle, in DescriptorAddedCallback() argument 326 << " srvc_handle: " << srvc_handle << " desc_handle: " << desc_handle; in DescriptorAddedCallback() 331 g_interface, status, server_if, *uuid, srvc_handle, desc_handle)); in DescriptorAddedCallback() 334 void ServiceStartedCallback(int status, int server_if, int srvc_handle) { in ServiceStartedCallback() argument [all …]
|
D | bluetooth_gatt_interface.h | 162 int srvc_handle); 168 int srvc_handle, 175 int srvc_handle, 181 int srvc_handle); 186 int srvc_handle); 191 int srvc_handle);
|
/system/bt/service/test/ |
D | gatt_server_unittest.cpp | 435 int srvc_handle = 0x0001; in TEST_F() local 439 BT_STATUS_SUCCESS, kDefaultServerId + 1, hal_id, srvc_handle); in TEST_F() 443 EXPECT_CALL(*mock_handler_, StartService(kDefaultServerId, srvc_handle, _)) in TEST_F() 448 BT_STATUS_SUCCESS, kDefaultServerId, hal_id, srvc_handle); in TEST_F() 453 BT_STATUS_SUCCESS, kDefaultServerId + 1, srvc_handle); in TEST_F() 458 BT_STATUS_SUCCESS, kDefaultServerId, srvc_handle); in TEST_F() 485 int srvc_handle = 0x0001; in TEST_F() local 494 BT_STATUS_FAIL, kDefaultServerId, hal_id, srvc_handle); in TEST_F() 511 BT_STATUS_SUCCESS, kDefaultServerId, hal_id, srvc_handle); in TEST_F() 522 BT_STATUS_SUCCESS, kDefaultServerId, hal_id, srvc_handle); in TEST_F() [all …]
|
/system/bt/btif/src/ |
D | btif_gatt_server.c | 93 uint16_t srvc_handle; member 455 BTA_GATTS_AddIncludeService(p_cb->srvc_handle, p_cb->incl_handle); in btgatts_handle_event() 463 BTA_GATTS_AddCharacteristic(p_cb->srvc_handle, &uuid, in btgatts_handle_event() 473 BTA_GATTS_AddCharDescriptor(p_cb->srvc_handle, p_cb->permissions, in btgatts_handle_event() 479 BTA_GATTS_StartService(p_cb->srvc_handle, p_cb->transport); in btgatts_handle_event() 483 BTA_GATTS_StopService(p_cb->srvc_handle); in btgatts_handle_event() 487 BTA_GATTS_DeleteService(p_cb->srvc_handle); in btgatts_handle_event() 581 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_add_included_service() 594 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_add_characteristic() 608 btif_cb.srvc_handle = (uint16_t) service_handle; in btif_gatts_add_descriptor() [all …]
|
/system/bt/service/ |
D | gatt_server_old.cpp | 149 int srvc_handle) { in ServiceAddedCallback() argument 151 __func__, status, server_if, srvc_id->id.inst_id, srvc_handle); in ServiceAddedCallback() 155 g_internal->service_handle = srvc_handle; in ServiceAddedCallback() 297 int srvc_handle, int char_handle) { in CharacteristicAddedCallback() argument 300 status, server_if, srvc_handle, char_handle); in CharacteristicAddedCallback() 315 int srvc_handle, int descr_handle) { in DescriptorAddedCallback() argument 319 __func__, status, server_if, srvc_handle, uuid->uu[0], descr_handle); in DescriptorAddedCallback() 322 void ServiceStartedCallback(int status, int server_if, int srvc_handle) { in ServiceStartedCallback() argument 324 status, server_if, srvc_handle); in ServiceStartedCallback() 373 void ServiceStoppedCallback(int status, int server_if, int srvc_handle) { in ServiceStoppedCallback() argument [all …]
|