Lines Matching refs:bdaddr
46 bool IsAbsoluteVolumeEnabled(const RawAddress* bdaddr) { in IsAbsoluteVolumeEnabled() argument
53 if (interop_match_addr(INTEROP_DISABLE_ABSOLUTE_VOLUME, bdaddr)) { in IsAbsoluteVolumeEnabled()
108 bool ConnectionHandler::ConnectDevice(const RawAddress& bdaddr) { in ConnectDevice() argument
109 LOG(INFO) << "Attempting to connect to device " << bdaddr; in ConnectDevice()
112 if (bdaddr == pair.second->GetAddress()) { in ConnectDevice()
113 LOG(WARNING) << "Already connected to device with address " << bdaddr; in ConnectDevice()
119 const RawAddress& bdaddr, uint16_t status, in ConnectDevice()
130 instance_->feature_map_.emplace(bdaddr, features); in ConnectDevice()
131 instance_->AvrcpConnect(true, bdaddr); in ConnectDevice()
135 return SdpLookup(bdaddr, base::Bind(connection_lambda, this, bdaddr)); in ConnectDevice()
138 bool ConnectionHandler::DisconnectDevice(const RawAddress& bdaddr) { in DisconnectDevice() argument
140 if (bdaddr == it->second->GetAddress()) { in DisconnectDevice()
160 bool ConnectionHandler::SdpLookup(const RawAddress& bdaddr, SdpCallback cb) { in SdpLookup() argument
178 UUID_SERVCLASS_AV_REMOTE_CONTROL, bdaddr, &db_params, in SdpLookup()
180 weak_ptr_factory_.GetWeakPtr(), bdaddr, cb, disc_db)) == in SdpLookup()
184 bool ConnectionHandler::AvrcpConnect(bool initiator, const RawAddress& bdaddr) { in AvrcpConnect() argument
185 LOG(INFO) << "Connect to device " << bdaddr.ToString(); in AvrcpConnect()
205 uint16_t status = avrc_->Open(&handle, &open_cb, bdaddr); in AvrcpConnect()
410 void ConnectionHandler::SdpCb(const RawAddress& bdaddr, SdpCallback cb, in SdpCb() argument
431 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
440 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
446 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
460 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
462 if (IsAbsoluteVolumeEnabled(&bdaddr)) { in SdpCb()
467 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
479 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
485 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
501 LOG(INFO) << __PRETTY_FUNCTION__ << ": Device " << bdaddr.ToString() in SdpCb()
503 if (IsAbsoluteVolumeEnabled(&bdaddr)) { in SdpCb()