Home
last modified time | relevance | path

Searched refs:peer (Results 1 – 25 of 121) sorted by relevance

12345

/packages/modules/Bluetooth/system/btif/src/
Dbtif_av.cc454 BtifAvPeer* peer = FindPeer(peer_address); in IsPeerSilenced() local
455 if (peer == nullptr) { in IsPeerSilenced()
459 if (!peer->IsConnected()) { in IsPeerSilenced()
463 return peer->IsInSilenceMode(); in IsPeerSilenced()
478 BtifAvPeer* peer = FindPeer(peer_address); in SetSilencePeer() local
479 if (peer == nullptr) { in SetSilencePeer()
483 if (!peer->IsConnected()) { in SetSilencePeer()
487 peer->SetSilence(silence); in SetSilencePeer()
541 BtifAvPeer* peer = FindPeer(peer_address); in SetActivePeer() local
542 if (peer == nullptr || !peer->IsConnected()) { in SetActivePeer()
[all …]
/packages/modules/adb/
Dsockets.cpp72 if (peer_id == 0 || (s->peer && s->peer->id == peer_id)) { in find_local_socket()
109 if (s->transport == t || (s->peer && s->peer->transport == t)) { in close_all_sockets()
147 if (s->transport && s->peer) { in local_socket_flush_incoming()
150 send_ready(s->id, s->peer->id, s->transport, bytes_flushed); in local_socket_flush_incoming()
155 send_ready(s->id, s->peer->id, s->transport, 0); in local_socket_flush_incoming()
205 if (avail != max_payload && s->peer) { in local_socket_flush_outgoing()
217 r = s->peer->enqueue(s->peer, std::move(data)); in local_socket_flush_outgoing()
347 if (s->peer) { in local_socket_close()
348 D("LS(%d): closing peer. peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in local_socket_close()
353 if (s->peer->shutdown) { in local_socket_close()
[all …]
/packages/modules/Bluetooth/system/gd/security/
Dfacade.cc112 hci::Address peer; in CreateBond() local
114 hci::Address::FromString(request->address().address(), peer), in CreateBond()
117 security_module_->GetSecurityManager()->CreateBond(hci::AddressWithType(peer, peer_type)); in CreateBond()
125 hci::Address peer; in CreateBondOutOfBand() local
127 hci::Address::FromString(request->address().address().address(), peer), in CreateBondOutOfBand()
145 hci::AddressWithType(peer, peer_type), p192_data, p256_data); in CreateBondOutOfBand()
169 hci::Address peer; in CreateBondLe() local
171 hci::Address::FromString(request->address().address(), peer), in CreateBondLe()
174 security_module_->GetSecurityManager()->CreateBondLe(hci::AddressWithType(peer, peer_type)); in CreateBondLe()
182 hci::Address peer; in CancelBond() local
[all …]
/packages/modules/adb/daemon/
Djdwp_service.cpp343 if (s->peer) { in jdwp_socket_close()
344 D("LS(%d) peer->close()ing peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in jdwp_socket_close()
345 s->peer->peer = nullptr; in jdwp_socket_close()
346 s->peer->close(s->peer); in jdwp_socket_close()
347 s->peer = nullptr; in jdwp_socket_close()
357 s->peer->close(s->peer); in jdwp_socket_enqueue()
363 asocket* peer = jdwp->peer; in jdwp_socket_ready() local
373 peer->enqueue(peer, std::move(data)); in jdwp_socket_ready()
376 peer->close(peer); in jdwp_socket_ready()
424 if (t->kind == kind && t->peer) { in process_list_updated()
[all …]
Dservices.cpp174 send_ready(self->id, self->peer->id, self->transport, data.size()); in ServiceSocket()
190 if (peer) { in Close()
191 peer->peer = nullptr; in Close()
192 if (peer->shutdown) { in Close()
193 peer->shutdown(peer); in Close()
195 peer->close(peer); in Close()
242 peer->enqueue(peer, std::move(block)); in Ready()
/packages/modules/Bluetooth/tools/rootcanal/model/controller/
Dsco_connection.cc235 ScoConnectionParameters const& peer) { in NegotiateLinkParameters() argument
236 if (peer.transmit_bandwidth != 0xffff && in NegotiateLinkParameters()
237 peer.transmit_bandwidth != parameters_.receive_bandwidth) { in NegotiateLinkParameters()
243 peer.receive_bandwidth != 0xffff && in NegotiateLinkParameters()
244 peer.receive_bandwidth != parameters_.transmit_bandwidth) { in NegotiateLinkParameters()
251 if ((peer.voice_setting & ~0x3) != (parameters_.voice_setting & ~0x3)) { in NegotiateLinkParameters()
254 WARNING("Local voice setting: 0x{:04x}", peer.voice_setting); in NegotiateLinkParameters()
258 uint16_t packet_type = (peer.packet_type & parameters_.packet_type) & 0x3f; in NegotiateLinkParameters()
259 packet_type |= (peer.packet_type | parameters_.packet_type) & 0x3c0; in NegotiateLinkParameters()
264 WARNING("Local packet type: 0x{:04x}", peer.packet_type); in NegotiateLinkParameters()
[all …]
/packages/modules/Bluetooth/system/gd/hci/facade/
Dle_acl_manager_facade.cc86 AddressWithType peer(peer_address, static_cast<AddressType>(request->peer_address().type())); in CreateConnection() local
88 acl_manager_->CreateLeConnection(peer, is_direct); in CreateConnection()
96 std::string("direct connection attempt ") + peer.ToString()); in CreateConnection()
97 direct_connection_address_ = peer; in CreateConnection()
101 peer, in CreateConnection()
103 std::string("connection attempt ") + peer.ToString())); in CreateConnection()
104 return per_connection_events_[peer]->RunLoop(context, writer); in CreateConnection()
116 AddressWithType peer(peer_address, static_cast<AddressType>(request->type())); in CancelConnection() local
117 if (peer == direct_connection_address_) { in CancelConnection()
121 if (per_connection_events_.count(peer) == 0) { in CancelConnection()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/classic/
Dfacade.cc92 hci::Address peer; in OpenChannel() local
94 hci::Address::FromString(request->remote().address(), peer), in OpenChannel()
96 dynamic_channel_helper_map_[request->psm()]->Connect(peer); in OpenChannel()
160 hci::Address peer; in InitiateConnectionForSecurity() local
162 hci::Address::FromString(request->address(), peer), in InitiateConnectionForSecurity()
164 outgoing_pairing_remote_devices_.insert(peer); in InitiateConnectionForSecurity()
165 security_interface_->InitiateConnectionForSecurity(peer); in InitiateConnectionForSecurity()
191 hci::Address peer; in SecurityLinkHold() local
193 hci::Address::FromString(request->address(), peer), in SecurityLinkHold()
195 auto entry = security_link_map_.find(peer); in SecurityLinkHold()
[all …]
/packages/modules/Bluetooth/tools/rootcanal/rust/src/lmp/
Dmanager.rs33 peer: Cell<hci::Address>, field
43 peer: Cell::new(hci::EMPTY_ADDRESS), in default()
83 self.peer.set(hci::EMPTY_ADDRESS); in reset()
113 fn get_link(&self, peer: hci::Address) -> Option<&Link> { in get_link()
114 self.links.iter().find(|link| link.peer.get() == peer) in get_link()
249 .and_then(|peer| self.get_link(peer)); in ingest_hci()
259 pub fn add_link(self: &Rc<Self>, peer: hci::Address) -> Result<(), LinkManagerError> { in add_link()
260 let index = self.links.iter().position(|link| link.peer.get().is_empty()); in add_link()
263 self.links[index].peer.set(peer); in add_link()
272 pub fn remove_link(&self, peer: hci::Address) -> Result<(), LinkManagerError> { in remove_link()
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/p2p/
DP2pPrinterConnection.java62 public P2pPrinterConnection(BuiltInPrintService service, WifiP2pDevice peer, in P2pPrinterConnection() argument
65 if (DEBUG) Log.d(TAG, "Connecting to " + P2pMonitor.toString(peer)); in P2pPrinterConnection()
66 connectToPeer(peer); in P2pPrinterConnection()
75 WifiP2pDevice peer = service.getP2pMonitor().getConnection().getPeer(); in P2pPrinterConnection() local
76 connectToPeer(peer); in P2pPrinterConnection()
84 private void connectToPeer(WifiP2pDevice peer) { in connectToPeer() argument
85 mPeer = peer; in connectToPeer()
90 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() argument
97 if (peer.deviceAddress.equals(address)) { in onPeerFound()
100 connectToPeer(peer); in onPeerFound()
[all …]
DP2pDiscoveryProcedure.java98 for (WifiP2pDevice peer : mPeers) { in addListener()
99 listener.onPeerFound(peer); in addListener()
120 for (WifiP2pDevice peer : newPeers) { in updatePeers()
121 if (PRINTER_PATTERN.matcher(peer.primaryDeviceType).find()) { in updatePeers()
122 mPeers.add(peer); in updatePeers()
128 for (WifiP2pDevice peer : mPeers) { in updatePeers()
129 foundAddresses.add(peer.deviceAddress); in updatePeers()
130 WifiP2pDevice old = getDevice(oldPeers, peer.deviceAddress); in updatePeers()
131 if (old == null || !old.equals(peer)) { in updatePeers()
133 listener.onPeerFound(peer); in updatePeers()
DP2pConnectionProcedure.java62 WifiP2pDevice peer, P2pConnectionListener listener) { in P2pConnectionProcedure() argument
65 mPeer = peer; in P2pConnectionProcedure()
72 mP2pManager.connect(mChannel, configForPeer(peer), null); in P2pConnectionProcedure()
75 private WifiP2pConfig configForPeer(WifiP2pDevice peer) { in configForPeer() argument
77 config.deviceAddress = peer.deviceAddress; in configForPeer()
78 if (peer.wpsPbcSupported()) { in configForPeer()
80 } else if (peer.wpsKeypadSupported()) { in configForPeer()
DP2pMonitor.java107 public void connect(WifiP2pDevice peer, P2pConnectionListener listener) { in connect() argument
108 if (DEBUG) Log.d(TAG, "connect(" + toString(peer) + ")"); in connect()
117 if (mConnection != null && !peer.deviceAddress.equals(mConnection.getPeer() in connect()
133 mConnection = new P2pConnectionProcedure(mService, mP2pManager, peer, in connect()
/packages/modules/Bluetooth/pandora/server/bumble_experimental/
Dgatt.py87 peer = self.peers[connection.handle]
89 mtu = await peer.request_mtu(request.mtu) # type: ignore
101 peer = self.peers[connection.handle]
104 … await peer.write_value(request.handle, request.value, with_response=True) # type: ignore
119 peer = self.peers[connection.handle]
121 services: List[ServiceProxy] = await peer.discover_service(request.uuid) # type: ignore
125 … for characteristic in await peer.discover_characteristics(service=service): # type: ignore
161 peer = self.peers[connection.handle]
163 services: List[ServiceProxy] = await peer.discover_services() # type: ignore
166 … for characteristic in await peer.discover_characteristics(service=service): # type: ignore
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/security/
Dcert_security.py197 peer = bluetooth.Address(address)
199 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.ENTRY_ST…
202 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.DIGIT_EN…
205 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.DIGIT_EN…
208 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.CLEARED)…
210 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.DIGIT_EN…
213 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.DIGIT_EN…
216 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.DIGIT_ER…
219 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.DIGIT_EN…
222 …hci.SendKeypressNotification(bd_addr=peer, notification_type=hci.KeypressNotificationType.DIGIT_EN…
[all …]
/packages/services/BuiltInPrintService/src/com/android/bips/ui/
DFindP2pPrintersFragment.java103 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() argument
104 if (DEBUG) Log.d(TAG, "onPeerFound: " + P2pMonitor.toString(peer)); in onPeerFound()
109 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); in onPeerFound()
125 if (DEBUG) Log.d(TAG, "add " + P2pDiscovery.toPrinter(peer)); in onPeerFound()
126 new AddP2pPrinterDialog(FindP2pPrintersFragment.this, mPrintService, peer) in onPeerFound()
135 public void onPeerLost(WifiP2pDevice peer) { in onPeerLost() argument
136 if (DEBUG) Log.d(TAG, "onPeerLost: " + P2pMonitor.toString(peer)); in onPeerLost()
141 DiscoveredPrinter printer = P2pDiscovery.toPrinter(peer); in onPeerLost()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiLinkLayerStats.java580 for (PeerInfo peer : link.peerInfo) { in toString()
581 sbuf.append(" staCount=").append(peer.staCount) in toString()
582 .append(" chanUtil=").append(peer.chanUtil).append('\n'); in toString()
583 if (peer.rateStats != null) { in toString()
584 for (RateStat rateStat : peer.rateStats) { in toString()
660 PeerInfo peer = this.peerInfo[i]; in toString() local
661 sbuf.append(" staCount=").append(peer.staCount) in toString()
662 .append(" chanUtil=").append(peer.chanUtil).append('\n'); in toString()
663 int numRateStats = peer.rateStats == null ? 0 : peer.rateStats.length; in toString()
665 RateStat rateStat = peer.rateStats[j]; in toString()
[all …]
/packages/apps/Dialer/java/com/android/dialer/common/
DFragmentUtils.java63 MainActivityPeer peer = ((MainActivityPeer.PeerSupplier) fragment.getActivity()).getPeer(); in getParent() local
64 if (peer instanceof FragmentUtilListener) { in getParent()
65 return ((FragmentUtilListener) peer).getImpl(callbackInterface); in getParent()
99 MainActivityPeer peer = ((MainActivityPeer.PeerSupplier) fragment.getActivity()).getPeer(); in getParent() local
100 if (peer instanceof FragmentUtilListener) { in getParent()
101 return ((FragmentUtilListener) peer).getImpl(callbackInterface); in getParent()
/packages/modules/Wifi/framework/java/android/net/wifi/aware/
DWifiAwareSession.java328 @WifiAwareManager.DataPathRole int role, @NonNull byte[] peer) { in createNetworkSpecifierOpen() argument
338 return mgr.createNetworkSpecifier(mClientId, role, peer, null, null); in createNetworkSpecifierOpen()
375 @WifiAwareManager.DataPathRole int role, @NonNull byte[] peer, in createNetworkSpecifierPassphrase() argument
390 return mgr.createNetworkSpecifier(mClientId, role, peer, null, passphrase); in createNetworkSpecifierPassphrase()
432 @WifiAwareManager.DataPathRole int role, @NonNull byte[] peer, @NonNull byte[] pmk) { in createNetworkSpecifierPmk() argument
445 return mgr.createNetworkSpecifier(mClientId, role, peer, pmk, null); in createNetworkSpecifierPmk()
/packages/services/BuiltInPrintService/src/com/android/bips/discovery/
DP2pDiscovery.java95 public void onPeerFound(WifiP2pDevice peer) { in onPeerFound() argument
96 DiscoveredPrinter printer = toPrinter(peer); in onPeerFound()
108 public void onPeerLost(WifiP2pDevice peer) { in onPeerLost() argument
109 DiscoveredPrinter printer = toPrinter(peer); in onPeerLost()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/rtt/
DRttTestUtils.java129 for (ResponderConfig peer : request.mRttPeers) { in getDummyRangingResults()
132 .setMacAddress(peer.getMacAddress()) in getDummyRangingResults()
154 if (peer.peerHandle == null) { in getDummyRangingResults()
155 builder.setMacAddress(peer.getMacAddress()); in getDummyRangingResults()
157 builder.setPeerHandle(peer.peerHandle); in getDummyRangingResults()
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareNativeApi.java600 int channel, byte[] peer, String interfaceName, in initiateDataPath() argument
606 + ", peer=" + String.valueOf(HexEncoding.encode(peer)) + ", interfaceName=" in initiateDataPath()
620 MacAddress peerMac = MacAddress.fromBytes(peer); in initiateDataPath()
625 Log.e(TAG, "Invalid peer mac received: " + Arrays.toString(peer)); in initiateDataPath()
724 public boolean initiatePairing(short transactionId, int peerId, byte[] peer, in initiatePairing() argument
730 + ", peer=" + String.valueOf(HexEncoding.encode(peer))); in initiatePairing()
741 MacAddress peerMac = MacAddress.fromBytes(peer); in initiatePairing()
745 Log.e(TAG, "Invalid peer mac received: " + Arrays.toString(peer)); in initiatePairing()
805 public boolean initiateBootstrapping(short transactionId, int peerId, byte[] peer, int method, in initiateBootstrapping() argument
810 + ", peer=" + String.valueOf(HexEncoding.encode(peer))); in initiateBootstrapping()
[all …]
/packages/modules/Bluetooth/system/blueberry/tests/gd/hci/
Dle_acl_manager_test.py122 peer=common.BluetoothAddressWithType(
150 assertThat(cert_le_acl.peer).isEqualTo(self.dut_random_address)
169 assertThat(cert_le_acl.peer).isNotEqualTo(self.dut_public_address)
170 assertThat(cert_le_acl.peer).isNotEqualTo(self.dut_random_address)
190 assertThat(cert_le_acl.peer).isNotEqualTo(self.dut_public_address)
191 assertThat(cert_le_acl.peer).isNotEqualTo(self.dut_random_address)
210 assertThat(cert_le_acl.peer).isNotEqualTo(self.dut_public_address)
211 assertThat(cert_le_acl.peer).isNotEqualTo(self.dut_random_address)
227 assertThat(cert_le_acl.peer).isEqualTo(self.dut_public_address)
244 assertThat(cert_le_acl.peer).isEqualTo(self.dut_public_address)
[all …]
/packages/modules/Bluetooth/system/btif/co/
Dbta_av_co.cc65 void BtaAvCoState::setActivePeer(BtaAvCoPeer* peer) { active_peer_ = peer; } in setActivePeer() argument
152 BtaAvCoPeer* peer = peer_cache_->FindPeer(peer_address); in GetPeerCurrentCodec() local
153 if (peer == nullptr || peer->GetCodecs() == nullptr) { in GetPeerCurrentCodec()
156 return peer->GetCodecs()->getCurrentCodecConfig(); in GetPeerCurrentCodec()
1090 const BtaAvCoPeer& peer = peer_cache_->peers_[i]; in DebugDump() local
1091 if (peer.addr.IsEmpty()) { in DebugDump()
1094 dprintf(fd, " Peer: %s\n", ADDRESS_TO_LOGGABLE_CSTR(peer.addr)); in DebugDump()
1095 dprintf(fd, " Number of sinks: %u\n", peer.num_sinks); in DebugDump()
1096 dprintf(fd, " Number of sources: %u\n", peer.num_sources); in DebugDump()
1097 dprintf(fd, " Number of SEPs: %u\n", peer.num_seps); in DebugDump()
[all …]
/packages/modules/Bluetooth/pandora/interfaces/pandora_experimental/
Dhfp.proto34 // Answer an incoming call from a peer device (as a handsfree)
36 // End a call from a peer device (as a handsfree)
38 // Decline an incoming call from a peer device (as a handsfree)
40 // Connect to an incoming audio stream from a peer device (as a handsfree)
42 // Disonnect from an incoming audio stream from a peer device (as a handsfree)

12345