/system/bt/bta/gatt/ |
D | bta_gatts_api.cc | 106 void BTA_GATTS_AppDeregister(tGATT_IF server_if) { in BTA_GATTS_AppDeregister() argument 111 p_buf->server_if = server_if; in BTA_GATTS_AppDeregister() 116 void bta_gatts_add_service_impl(tGATT_IF server_if, in bta_gatts_add_service_impl() argument 120 bta_gatts_find_app_rcb_idx_by_app_if(&bta_gatts_cb, server_if); in bta_gatts_add_service_impl() 125 cb.Run(GATT_ERROR, server_if, std::move(service)); in bta_gatts_add_service_impl() 131 cb.Run(GATT_ERROR, server_if, std::move(service)); in bta_gatts_add_service_impl() 135 uint16_t status = GATTS_AddService(server_if, service.data(), service.size()); in bta_gatts_add_service_impl() 139 cb.Run(GATT_ERROR, server_if, std::move(service)); in bta_gatts_add_service_impl() 149 cb.Run(GATT_SUCCESS, server_if, std::move(service)); in bta_gatts_add_service_impl() 168 extern void BTA_GATTS_AddService(tGATT_IF server_if, in BTA_GATTS_AddService() argument [all …]
|
D | bta_gatts_act.cc | 205 cb_data.reg_oper.server_if = BTA_GATTS_INVALID_IF; in bta_gatts_register() 213 cb_data.reg_oper.server_if = p_cb->rcb[first_unuse].gatt_if = in bta_gatts_register() 221 p_buf->server_if = p_cb->rcb[first_unuse].gatt_if; in bta_gatts_register() 245 if (bta_gatts_find_app_rcb_by_app_if(p_msg->int_start_if.server_if)) { in bta_gatts_start_if() 246 GATT_StartIf(p_msg->int_start_if.server_if); in bta_gatts_start_if() 249 << +p_msg->int_start_if.server_if; in bta_gatts_start_if() 267 cb_data.reg_oper.server_if = p_msg->api_dereg.server_if; in bta_gatts_deregister() 272 p_cb->rcb[i].gatt_if == p_msg->api_dereg.server_if) { in bta_gatts_deregister() 307 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_delete_service() 336 cb_data.srvc_oper.server_if = p_rcb->gatt_if; in bta_gatts_stop_service() [all …]
|
D | bta_gatts_int.h | 69 tGATT_IF server_if; member 76 tGATT_IF server_if; member 104 tGATT_IF server_if; member 179 extern tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if); 181 tGATT_IF server_if);
|
D | bta_gatts_utils.cc | 65 tBTA_GATTS_RCB* bta_gatts_find_app_rcb_by_app_if(tGATT_IF server_if) { in bta_gatts_find_app_rcb_by_app_if() argument 71 if (p_reg->in_use && p_reg->gatt_if == server_if) return p_reg; in bta_gatts_find_app_rcb_by_app_if() 88 tGATT_IF server_if) { in bta_gatts_find_app_rcb_idx_by_app_if() argument 92 if (p_cb->rcb[i].in_use && p_cb->rcb[i].gatt_if == server_if) return i; in bta_gatts_find_app_rcb_idx_by_app_if()
|
D | bta_gattc_act.cc | 1353 cb_data.phy_update.server_if = gatt_if; in bta_gattc_phy_update_cback()
|
/system/bt/include/hardware/ |
D | bt_gatt_server.h | 45 typedef void (*register_server_callback)(int status, int server_if, 50 typedef void (*connection_callback)(int conn_id, int server_if, int connected, 55 int status, int server_if, std::vector<btgatt_db_element_t> service); 58 typedef void (*service_stopped_callback)(int status, int server_if, 62 typedef void (*service_deleted_callback)(int status, int server_if, 144 bt_status_t (*unregister_server)(int server_if); 147 bt_status_t (*connect)(int server_if, const RawAddress& bd_addr, 151 bt_status_t (*disconnect)(int server_if, const RawAddress& bd_addr, 155 bt_status_t (*add_service)(int server_if, 159 bt_status_t (*stop_service)(int server_if, int service_handle); [all …]
|
/system/bt/btif/src/ |
D | btif_gatt_server.cc | 133 p_data->reg_oper.status, p_data->reg_oper.server_if, in btapp_gatts_handle_cback() 146 p_data->conn.server_if, true, p_data->conn.remote_bda); in btapp_gatts_handle_cback() 152 p_data->conn.server_if, false, p_data->conn.remote_bda); in btapp_gatts_handle_cback() 158 p_data->srvc_oper.status, p_data->srvc_oper.server_if, in btapp_gatts_handle_cback() 164 p_data->srvc_oper.status, p_data->srvc_oper.server_if, in btapp_gatts_handle_cback() 276 static bt_status_t btif_gatts_unregister_app(int server_if) { in btif_gatts_unregister_app() argument 278 return do_in_jni_thread(Bind(&BTA_GATTS_AppDeregister, server_if)); in btif_gatts_unregister_app() 281 static void btif_gatts_open_impl(int server_if, const RawAddress& address, in btif_gatts_open_impl() argument 317 BTA_GATTS_Open(server_if, address, is_direct, transport); in btif_gatts_open_impl() 320 static bt_status_t btif_gatts_open(int server_if, const RawAddress& bd_addr, in btif_gatts_open() argument [all …]
|
/system/bt/test/suite/gatt/ |
D | gatt_unittest.cc | 69 int server_if = server_interface_id(); in TEST_F() local 88 gatt_server_interface()->add_service(server_if, service); in TEST_F() 91 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if added."; in TEST_F() 95 gatt_server_interface()->stop_service(server_if, service_handle()); in TEST_F() 100 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if stopped."; in TEST_F() 103 gatt_server_interface()->delete_service(server_if, service_handle()); in TEST_F() 108 EXPECT_TRUE(server_interface_id() == server_if) << "Wrong server_if deleted."; in TEST_F() 111 gatt_server_interface()->unregister_server(server_if); in TEST_F()
|
D | gatt_test.cc | 109 int server_if, const bluetooth::Uuid& uuid) { in RegisterServerCallback() argument 111 server_interface_id_ = server_if; in RegisterServerCallback() 117 int server_if, std::vector<btgatt_db_element_t> service) { in ServiceAddedCallback() argument 119 server_interface_id_ = server_if; in ServiceAddedCallback() 126 int server_if, int srvc_handle) { in ServiceStoppedCallback() argument 128 server_interface_id_ = server_if; in ServiceStoppedCallback() 135 int server_if, int srvc_handle) { in ServiceDeletedCallback() argument 137 server_interface_id_ = server_if; in ServiceDeletedCallback()
|
D | gatt_test.h | 70 int server_if, const bluetooth::Uuid& uuid) override; 73 int server_if, std::vector<btgatt_db_element_t> service) override; 76 int server_if, int srvc_handle) override; 79 int server_if, int srvc_handle) override;
|
/system/bt/service/hal/ |
D | fake_bluetooth_gatt_interface.h | 55 virtual bt_status_t UnregisterServer(int server_if) = 0; 57 int server_if, std::vector<btgatt_db_element_t> service) = 0; 58 virtual bt_status_t DeleteService(int server_if, int srvc_handle) = 0; 59 virtual bt_status_t SendIndication(int server_if, int attribute_handle, 93 void NotifyRegisterServerCallback(int status, int server_if, 95 void NotifyServerConnectionCallback(int conn_id, int server_if, int connected, 97 void NotifyServiceAddedCallback(int status, int server_if, 99 void NotifyCharacteristicAddedCallback(int status, int server_if, 102 void NotifyDescriptorAddedCallback(int status, int server_if, 105 void NotifyServiceStartedCallback(int status, int server_if, int srvc_handle);
|
D | fake_bluetooth_gatt_interface.cc | 66 bt_status_t FakeUnregisterServer(int server_if) { in FakeUnregisterServer() argument 67 if (g_server_handler) return g_server_handler->UnregisterServer(server_if); in FakeUnregisterServer() 72 bt_status_t FakeAddService(int server_if, in FakeAddService() argument 75 return g_server_handler->AddService(server_if, std::move(service)); in FakeAddService() 80 bt_status_t FakeDeleteService(int server_if, int srvc_handle) { in FakeDeleteService() argument 82 return g_server_handler->DeleteService(server_if, srvc_handle); in FakeDeleteService() 87 bt_status_t FakeSendIndication(int server_if, int attribute_handle, int conn_id, in FakeSendIndication() argument 90 return g_server_handler->SendIndication(server_if, attribute_handle, in FakeSendIndication() 209 int status, int server_if, const Uuid& app_uuid) { in NotifyRegisterServerCallback() argument 211 observer.RegisterServerCallback(this, status, server_if, app_uuid); in NotifyRegisterServerCallback() [all …]
|
D | bluetooth_gatt_interface.cc | 227 void RegisterServerCallback(int status, int server_if, in RegisterServerCallback() argument 230 VLOG(2) << __func__ << " - status: " << status << " server_if: " << server_if; in RegisterServerCallback() 234 RegisterServerCallback(g_interface, status, server_if, app_uuid)); in RegisterServerCallback() 237 void ConnectionCallback(int conn_id, int server_if, int connected, in ConnectionCallback() argument 241 << " server_if: " << server_if << " connected: " << connected; in ConnectionCallback() 245 ConnectionCallback(g_interface, conn_id, server_if, connected, bda)); in ConnectionCallback() 249 int status, int server_if, in ServiceAddedCallback() argument 252 VLOG(2) << __func__ << " - status: " << status << " server_if: " << server_if in ServiceAddedCallback() 258 ServiceAddedCallback(g_interface, status, server_if, service)); in ServiceAddedCallback() 261 void ServiceStoppedCallback(int status, int server_if, int srvc_handle) { in ServiceStoppedCallback() argument [all …]
|
D | bluetooth_gatt_interface.h | 122 int status, int server_if, 126 int conn_id, int server_if, int connected, 130 BluetoothGattInterface* gatt_iface, int status, int server_if, 134 int status, int server_if, 138 int status, int server_if,
|
/system/bt/bta/include/ |
D | bta_gatt_api.h | 188 tGATT_IF server_if; member 196 tGATT_IF server_if; member 284 tGATT_IF server_if; member 290 tGATT_IF server_if; member 299 tGATT_IF server_if; member 305 tGATT_IF server_if; member 323 tGATT_IF server_if; member 331 tGATT_IF server_if; member 824 extern void BTA_GATTS_AppDeregister(tGATT_IF server_if); 841 typedef base::Callback<void(uint8_t status, int server_if, [all …]
|
/system/bt/service/ |
D | gatt_server_old.cc | 116 int server_if; member 132 void RegisterServerCallback(int status, int server_if, in RegisterServerCallback() argument 135 server_if, &app_uuid); in RegisterServerCallback() 137 g_internal->server_if = server_if; in RegisterServerCallback() 145 void ServiceAddedCallback(int status, int server_if, in ServiceAddedCallback() argument 148 status, server_if, service.size(), service[0].attribute_handle); in ServiceAddedCallback() 151 g_internal->server_if = server_if; in ServiceAddedCallback() 330 void ConnectionCallback(int conn_id, int server_if, int connected, in ConnectionCallback() argument 334 conn_id, server_if, connected, addr.c_str()); in ConnectionCallback() 365 void ServiceStoppedCallback(int status, int server_if, int srvc_handle) { in ServiceStoppedCallback() argument [all …]
|
D | gatt_server.h | 199 int server_if,
|
/system/bt/service/doc/ |
D | IBluetoothGattServer.txt | 32 * Unregisters a previously registered server with interface ID |server_if|. 34 void unregisterServer(in int server_if); 59 boolean sendResponse(in int server_if, in String device_address, 72 boolean sendNotification(in int server_if, in String device_address,
|
D | IBluetoothGattServerCallback.txt | 25 * BLE_STATUS_SUCCESS) if the server was successfully registered. |server_if| 29 void onServerRegistered(in int status, in int server_if);
|
/system/bt/service/example/heart_rate/ |
D | heart_rate_server.cc | 227 Status HeartRateServer::OnServerRegistered(int status, int server_if) { in OnServerRegistered() argument 238 server_if_ = server_if; in OnServerRegistered()
|