Lines Matching refs:device_address
106 bool GattServer::SendResponse(const std::string& device_address, int request_id, in SendResponse() argument
110 << " device_address: " << device_address in SendResponse()
116 if (!RawAddress::FromString(device_address, addr)) { in SendResponse()
117 LOG(ERROR) << "Invalid device address given: " << device_address; in SendResponse()
132 auto iter = conn_addr_map_.find(device_address); in SendResponse()
134 LOG(ERROR) << "No known connections for device address: " << device_address; in SendResponse()
149 << " not found for device with BD_ADDR: " << device_address; in SendResponse()
181 bool GattServer::SendNotification(const std::string& device_address, in SendNotification() argument
186 << " device_address: " << device_address << " confirm: " << confirm; in SendNotification()
190 if (!RawAddress::FromString(device_address, addr)) { in SendNotification()
191 LOG(ERROR) << "Invalid device address given: " << device_address; in SendNotification()
196 auto conn_iter = conn_addr_map_.find(device_address); in SendNotification()
199 << device_address; in SendNotification()
238 << device_address; in SendNotification()
252 std::string device_address = BtAddrString(&bda); in ConnectionCallback() local
255 << " BD_ADDR: " << device_address; in ConnectionCallback()
259 VLOG(1) << "No longer connected: " << device_address; in ConnectionCallback()
261 auto iter = conn_addr_map_.find(device_address); in ConnectionCallback()
274 delegate_->OnConnectionStateChanged(this, device_address, false); in ConnectionCallback()
286 << " device address: " << device_address; in ConnectionCallback()
289 conn_addr_map_[device_address].push_back(connection); in ConnectionCallback()
292 delegate_->OnConnectionStateChanged(this, device_address, true); in ConnectionCallback()
347 std::string device_address = BtAddrString(&bda); in RequestReadCharacteristicCallback() local
350 << " BD_ADDR: " << device_address in RequestReadCharacteristicCallback()
367 delegate_->OnCharacteristicReadRequest(this, device_address, trans_id, offset, in RequestReadCharacteristicCallback()
380 std::string device_address = BtAddrString(&bda); in RequestReadDescriptorCallback() local
383 << " BD_ADDR: " << device_address in RequestReadDescriptorCallback()
400 delegate_->OnDescriptorReadRequest(this, device_address, trans_id, offset, in RequestReadDescriptorCallback()
415 std::string device_address = BtAddrString(&bda); in RequestWriteCharacteristicCallback() local
418 << " BD_ADDR: " << device_address << " attr_handle: " << attr_handle in RequestWriteCharacteristicCallback()
438 delegate_->OnCharacteristicWriteRequest(this, device_address, trans_id, in RequestWriteCharacteristicCallback()
454 std::string device_address = BtAddrString(&bda); in RequestWriteDescriptorCallback() local
457 << " BD_ADDR: " << device_address << " attr_handle: " << attr_handle in RequestWriteDescriptorCallback()
477 delegate_->OnDescriptorWriteRequest(this, device_address, trans_id, offset, in RequestWriteDescriptorCallback()
492 std::string device_address = BtAddrString(&bda); in RequestExecWriteCallback() local
495 << " BD_ADDR: " << device_address << " exec_write: " << exec_write; in RequestExecWriteCallback()
512 delegate_->OnExecuteWriteRequest(this, device_address, trans_id, exec_write); in RequestExecWriteCallback()