Lines Matching refs:device_address

107 bool GattServer::SendResponse(const std::string& device_address, int request_id,  in SendResponse()  argument
111 << " device_address: " << device_address in SendResponse()
117 if (!RawAddress::FromString(device_address, addr)) { in SendResponse()
118 LOG(ERROR) << "Invalid device address given: " << device_address; in SendResponse()
134 auto iter = conn_addr_map_.find(device_address); in SendResponse()
136 LOG(ERROR) << "No known connections for device address: " << device_address; in SendResponse()
151 << " not found for device with BD_ADDR: " << device_address; in SendResponse()
183 bool GattServer::SendNotification(const std::string& device_address, in SendNotification() argument
188 << " device_address: " << device_address << " confirm: " << confirm; in SendNotification()
192 if (!RawAddress::FromString(device_address, addr)) { in SendNotification()
193 LOG(ERROR) << "Invalid device address given: " << device_address; in SendNotification()
198 auto conn_iter = conn_addr_map_.find(device_address); in SendNotification()
201 << device_address; in SendNotification()
240 << device_address; in SendNotification()
254 std::string device_address = BtAddrString(&bda); in ConnectionCallback() local
257 << " BD_ADDR: " << device_address; in ConnectionCallback()
261 VLOG(1) << "No longer connected: " << device_address; in ConnectionCallback()
263 auto iter = conn_addr_map_.find(device_address); in ConnectionCallback()
276 delegate_->OnConnectionStateChanged(this, device_address, false); in ConnectionCallback()
288 << " device address: " << device_address; in ConnectionCallback()
291 conn_addr_map_[device_address].push_back(connection); in ConnectionCallback()
294 delegate_->OnConnectionStateChanged(this, device_address, true); in ConnectionCallback()
349 std::string device_address = BtAddrString(&bda); in RequestReadCharacteristicCallback() local
352 << " BD_ADDR: " << device_address in RequestReadCharacteristicCallback()
369 delegate_->OnCharacteristicReadRequest(this, device_address, trans_id, offset, in RequestReadCharacteristicCallback()
382 std::string device_address = BtAddrString(&bda); in RequestReadDescriptorCallback() local
385 << " BD_ADDR: " << device_address in RequestReadDescriptorCallback()
402 delegate_->OnDescriptorReadRequest(this, device_address, trans_id, offset, in RequestReadDescriptorCallback()
417 std::string device_address = BtAddrString(&bda); in RequestWriteCharacteristicCallback() local
420 << " BD_ADDR: " << device_address << " attr_handle: " << attr_handle in RequestWriteCharacteristicCallback()
440 delegate_->OnCharacteristicWriteRequest(this, device_address, trans_id, in RequestWriteCharacteristicCallback()
456 std::string device_address = BtAddrString(&bda); in RequestWriteDescriptorCallback() local
459 << " BD_ADDR: " << device_address << " attr_handle: " << attr_handle in RequestWriteDescriptorCallback()
479 delegate_->OnDescriptorWriteRequest(this, device_address, trans_id, offset, in RequestWriteDescriptorCallback()
494 std::string device_address = BtAddrString(&bda); in RequestExecWriteCallback() local
497 << " BD_ADDR: " << device_address << " exec_write: " << exec_write; in RequestExecWriteCallback()
514 delegate_->OnExecuteWriteRequest(this, device_address, trans_id, exec_write); in RequestExecWriteCallback()