Lines Matching refs:peer_id

226              tBTA_AV_HNDL bta_handle, uint8_t peer_id);
371 BtifAvPeer* FindPeerByPeerId(uint8_t peer_id);
522 void BtaHandleRegistered(uint8_t peer_id, tBTA_AV_HNDL bta_handle);
557 BtifAvPeer* FindPeerByPeerId(uint8_t peer_id);
641 void BtaHandleRegistered(uint8_t peer_id, tBTA_AV_HNDL bta_handle);
871 tBTA_AV_HNDL bta_handle, uint8_t peer_id) in BtifAvPeer() argument
875 peer_id_(peer_id), in BtifAvPeer()
1027 BtifAvPeer* BtifAvSource::FindPeerByPeerId(uint8_t peer_id) { in FindPeerByPeerId() argument
1030 if (peer->PeerId() == peer_id) { in FindPeerByPeerId()
1046 uint8_t peer_id; in FindOrCreatePeer() local
1047 for (peer_id = kPeerIdMin; peer_id < kPeerIdMax; peer_id++) { in FindOrCreatePeer()
1048 if (FindPeerByPeerId(peer_id) == nullptr) break; in FindOrCreatePeer()
1050 if (peer_id == kPeerIdMax) { in FindOrCreatePeer()
1060 auto it = peer_id2bta_handle_.find(peer_id); in FindOrCreatePeer()
1065 __PRETTY_FUNCTION__, peer_address.ToString().c_str(), peer_id); in FindOrCreatePeer()
1073 peer_id); in FindOrCreatePeer()
1074 peer = new BtifAvPeer(peer_address, AVDT_TSEP_SNK, bta_handle, peer_id); in FindOrCreatePeer()
1136 for (int peer_id = kPeerIdMin; peer_id < kPeerIdMax; peer_id++) { in RegisterAllBtaHandles() local
1137 BTA_AvRegister(BTA_AV_CHNL_AUDIO, kBtifAvSourceServiceName.c_str(), peer_id, in RegisterAllBtaHandles()
1150 void BtifAvSource::BtaHandleRegistered(uint8_t peer_id, in BtaHandleRegistered() argument
1152 peer_id2bta_handle_.insert(std::make_pair(peer_id, bta_handle)); in BtaHandleRegistered()
1155 BtifAvPeer* peer = FindPeerByPeerId(peer_id); in BtaHandleRegistered()
1161 bta_handle, peer_id); in BtaHandleRegistered()
1166 peer->BtaHandle(), bta_handle, peer_id); in BtaHandleRegistered()
1230 BtifAvPeer* BtifAvSink::FindPeerByPeerId(uint8_t peer_id) { in FindPeerByPeerId() argument
1233 if (peer->PeerId() == peer_id) { in FindPeerByPeerId()
1249 uint8_t peer_id; in FindOrCreatePeer() local
1250 for (peer_id = kPeerIdMin; peer_id < kPeerIdMax; peer_id++) { in FindOrCreatePeer()
1251 if (FindPeerByPeerId(peer_id) == nullptr) break; in FindOrCreatePeer()
1253 if (peer_id == kPeerIdMax) { in FindOrCreatePeer()
1263 auto it = peer_id2bta_handle_.find(peer_id); in FindOrCreatePeer()
1268 __PRETTY_FUNCTION__, peer_address.ToString().c_str(), peer_id); in FindOrCreatePeer()
1276 peer_id); in FindOrCreatePeer()
1277 peer = new BtifAvPeer(peer_address, AVDT_TSEP_SRC, bta_handle, peer_id); in FindOrCreatePeer()
1342 for (int peer_id = kPeerIdMin; peer_id < kPeerIdMax; peer_id++) { in RegisterAllBtaHandles() local
1343 BTA_AvRegister(BTA_AV_CHNL_AUDIO, kBtifAvSinkServiceName.c_str(), peer_id, in RegisterAllBtaHandles()
1356 void BtifAvSink::BtaHandleRegistered(uint8_t peer_id, tBTA_AV_HNDL bta_handle) { in BtaHandleRegistered() argument
1357 peer_id2bta_handle_.insert(std::make_pair(peer_id, bta_handle)); in BtaHandleRegistered()
1360 BtifAvPeer* peer = FindPeerByPeerId(peer_id); in BtaHandleRegistered()
1366 bta_handle, peer_id); in BtaHandleRegistered()
1371 peer->BtaHandle(), bta_handle, peer_id); in BtaHandleRegistered()
2555 uint8_t peer_id = registr.app_id; // The PeerId is used as AppId in btif_av_handle_bta_av_event() local
2559 btif_av_source.BtaHandleRegistered(peer_id, bta_handle); in btif_av_handle_bta_av_event()
2561 btif_av_sink.BtaHandleRegistered(peer_id, bta_handle); in btif_av_handle_bta_av_event()