Home
last modified time | relevance | path

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

123

/system/bt/gd/security/
Dfacade.cc51 hci::Address peer; in CreateBond() local
52 ASSERT(hci::Address::FromString(request->address().address(), peer)); in CreateBond()
54 security_module_->GetSecurityManager()->CreateBond(hci::AddressWithType(peer, peer_type)); in CreateBond()
60 hci::Address peer; in CreateBondLe() local
61 ASSERT(hci::Address::FromString(request->address().address(), peer)); in CreateBondLe()
63 security_module_->GetSecurityManager()->CreateBondLe(hci::AddressWithType(peer, peer_type)); in CreateBondLe()
69 hci::Address peer; in CancelBond() local
70 ASSERT(hci::Address::FromString(request->address().address(), peer)); in CancelBond()
72 security_module_->GetSecurityManager()->CancelBond(hci::AddressWithType(peer, peer_type)); in CancelBond()
78 hci::Address peer; in RemoveBond() local
[all …]
Dfacade.proto48 facade.BluetoothAddressWithType peer = 2; field
75 facade.BluetoothAddressWithType peer = 2; field
/system/core/adb/
Dsockets.cpp71 if (peer_id == 0 || (s->peer && s->peer->id == peer_id)) { in find_local_socket()
108 if (s->transport == t || (s->peer && s->peer->transport == t)) { in close_all_sockets()
182 if (avail != max_payload && s->peer) { in local_socket_flush_outgoing()
189 r = s->peer->enqueue(s->peer, std::move(data)); in local_socket_flush_outgoing()
316 if (s->peer) { in local_socket_close()
317 D("LS(%d): closing peer. peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in local_socket_close()
322 if (s->peer->shutdown) { in local_socket_close()
323 s->peer->shutdown(s->peer); in local_socket_close()
325 s->peer->peer = nullptr; in local_socket_close()
326 s->peer->close(s->peer); in local_socket_close()
[all …]
Dsocket_test.cpp65 tail->peer = head; in TEST_F()
66 head->peer = tail; in TEST_F()
140 cause_close_s->peer = s; in CreateCloser()
141 s->peer = cause_close_s; in CreateCloser()
241 head->peer = tail; in TEST_F()
244 tail->peer = head; in TEST_F()
Dadb.cpp422 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
423 s->peer->peer = s; in handle_packet()
424 send_ready(s->id, s->peer->id, t); in handle_packet()
434 if(s->peer == nullptr) { in handle_packet()
436 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
437 s->peer->peer = s; in handle_packet()
439 } else if (s->peer->id == p->msg.arg0) { in handle_packet()
444 p->msg.arg1, s->peer->id, p->msg.arg1, t->serial.c_str()); in handle_packet()
469 if (p->msg.arg0 == 0 && s->peer && s->peer->transport != t) { in handle_packet()
471 t->serial.c_str(), s->peer->transport->serial.c_str()); in handle_packet()
Dtransport.cpp626 asocket* peer = socket->peer; in device_tracker_close() local
629 if (peer) { in device_tracker_close()
630 peer->peer = nullptr; in device_tracker_close()
631 peer->close(peer); in device_tracker_close()
644 asocket* peer = tracker->socket.peer; in device_tracker_send() local
652 return peer->enqueue(peer, std::move(data)); in device_tracker_send()
Dsocket.h56 asocket* peer = nullptr; member
/system/bt/btif/src/
Dbtif_av.cc415 BtifAvPeer* peer = FindPeer(peer_address); in IsPeerSilenced() local
416 if (peer == nullptr) { in IsPeerSilenced()
420 if (!peer->IsConnected()) { in IsPeerSilenced()
424 return peer->IsInSilenceMode(); in IsPeerSilenced()
440 BtifAvPeer* peer = FindPeer(peer_address); in SetSilencePeer() local
441 if (peer == nullptr) { in SetSilencePeer()
445 if (!peer->IsConnected()) { in SetSilencePeer()
449 peer->SetSilence(silence); in SetSilencePeer()
482 BtifAvPeer* peer = FindPeer(peer_address); in SetActivePeer() local
483 if (peer != nullptr && !peer->IsConnected()) { in SetActivePeer()
[all …]
Dbtif_pan.cc245 BT_STATUS_SUCCESS, &conn->peer, in btif_in_pan_generic_evt()
452 if (btpan_cb.conns[i].peer == addr) return &btpan_cb.conns[i]; in btpan_find_conn_addr()
510 memset(&conn->peer, 0, sizeof(conn->peer)); in btpan_cleanup_conn()
525 btpan_cb.conns[i].peer = addr; in btpan_new_conn()
541 memset(&p->peer, 0, 6); in btpan_close_handle()
560 btpan_cb.conns[i].peer == eth_hdr->h_dest)) { in forward_bnep()
649 &conn->peer, btpan_conn_local_role, in bta_pan_callback_transfer()
/system/core/adb/daemon/
Djdwp_service.cpp336 if (s->peer) { in jdwp_socket_close()
337 D("LS(%d) peer->close()ing peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in jdwp_socket_close()
338 s->peer->peer = nullptr; in jdwp_socket_close()
339 s->peer->close(s->peer); in jdwp_socket_close()
340 s->peer = nullptr; in jdwp_socket_close()
350 s->peer->close(s->peer); in jdwp_socket_enqueue()
356 asocket* peer = jdwp->peer; in jdwp_socket_ready() local
366 peer->enqueue(peer, std::move(data)); in jdwp_socket_ready()
369 peer->close(peer); in jdwp_socket_ready()
411 if (t->kind == kind && t->peer) { in process_list_updated()
[all …]
Dservices.cpp178 if (peer) { in Close()
179 peer->peer = nullptr; in Close()
180 if (peer->shutdown) { in Close()
181 peer->shutdown(peer); in Close()
183 peer->close(peer); in Close()
230 peer->enqueue(peer, std::move(block)); in Ready()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.cc504 Address peer = incoming.GetSourceAddress(); in IncomingDisconnectPacket() local
505 uint16_t handle = connections_.GetHandleOnlyAddress(peer); in IncomingDisconnectPacket()
508 peer.ToString().c_str()); in IncomingDisconnectPacket()
524 Address peer = incoming.GetSourceAddress(); in IncomingEncryptConnection() local
525 uint16_t handle = connections_.GetHandleOnlyAddress(peer); in IncomingEncryptConnection()
527 LOG_INFO("Unknown connection @%s", peer.ToString().c_str()); in IncomingEncryptConnection()
533 uint16_t count = security_manager_.ReadKey(peer); in IncomingEncryptConnection()
535 LOG_ERROR("NO KEY HERE for %s", peer.ToString().c_str()); in IncomingEncryptConnection()
538 auto array = security_manager_.GetKey(peer); in IncomingEncryptConnection()
541 properties_.GetAddress(), peer, key_vec); in IncomingEncryptConnection()
[all …]
Dlink_layer_controller.h57 ErrorCode IoCapabilityRequestReply(const Address& peer, uint8_t io_capability,
60 ErrorCode IoCapabilityRequestNegativeReply(const Address& peer,
62 ErrorCode UserConfirmationRequestReply(const Address& peer);
63 ErrorCode UserConfirmationRequestNegativeReply(const Address& peer);
64 ErrorCode UserPasskeyRequestReply(const Address& peer,
66 ErrorCode UserPasskeyRequestNegativeReply(const Address& peer);
67 ErrorCode RemoteOobDataRequestReply(const Address& peer,
70 ErrorCode RemoteOobDataRequestNegativeReply(const Address& peer);
140 bluetooth::hci::PeerAddressType peer_address_type, Address peer,
Dsecurity_manager.cc103 void SecurityManager::SetLocalIoCapability(const Address& peer, uint8_t io_capability, uint8_t oob_… in SetLocalIoCapability() argument
105 ASSERT(peer == peer_address_); in SetLocalIoCapability()
/system/bt/btif/co/
Dbta_av_co.cc804 BtaAvCoPeer* peer = FindPeer(peer_address); in GetPeerCurrentCodec() local
805 if (peer == nullptr || peer->GetCodecs() == nullptr) { in GetPeerCurrentCodec()
808 return peer->GetCodecs()->getCurrentCodecConfig(); in GetPeerCurrentCodec()
1703 const BtaAvCoPeer& peer = peers_[i]; in DebugDump() local
1704 if (peer.addr.IsEmpty()) { in DebugDump()
1707 dprintf(fd, " Peer: %s\n", peer.addr.ToString().c_str()); in DebugDump()
1708 dprintf(fd, " Number of sinks: %u\n", peer.num_sinks); in DebugDump()
1709 dprintf(fd, " Number of sources: %u\n", peer.num_sources); in DebugDump()
1710 dprintf(fd, " Number of SEPs: %u\n", peer.num_seps); in DebugDump()
1711 dprintf(fd, " Number of received sinks: %u\n", peer.num_rx_sinks); in DebugDump()
[all …]
/system/sepolicy/prebuilts/api/26.0/private/
Dsecurity_classes72 # network peer labels
73 class peer
/system/sepolicy/prebuilts/api/27.0/private/
Dsecurity_classes72 # network peer labels
73 class peer
/system/sepolicy/prebuilts/api/29.0/private/
Dsecurity_classes72 # network peer labels
73 class peer
/system/sepolicy/prebuilts/api/28.0/private/
Dsecurity_classes73 # network peer labels
74 class peer
/system/bt/doc/
Dpower_management.md113 peer `BD_ADDR`.
119 4. `bta_dm_pm_cback` calls `bta_dm_pm_set_mode` with the peer address and the
136 request to enable PARK for the given peer and connection.
137 - If the action chosen is `BTA_DM_PM_SNIFF`, the peer device's link policy
170 `bta_dm_pm_set_mode`, clears some status bits in the peer device
171 structure, and then calls back into `bta_dm_pm_set_mode` with the peer
173 - If the status is zero, and if the peer device `tBTA_DM_PEER_DEVICE`
180 previous low power mode in the peer device's `prev_low` field.
/system/bt/btif/include/
Dbtif_pan_internal.h68 RawAddress peer; member
/system/sepolicy/reqd_mask/
Dsecurity_classes72 # network peer labels
73 class peer
/system/sepolicy/private/
Dsecurity_classes72 # network peer labels
73 class peer
/system/sepolicy/prebuilts/api/30.0/private/
Dsecurity_classes72 # network peer labels
73 class peer
/system/bt/gd/hci/facade/
Dle_acl_manager_facade.cc68 AddressWithType peer(peer_address, static_cast<AddressType>(request->type())); in CreateConnection() local
69 acl_manager_->CreateLeConnection(peer); in CreateConnection()
84 AddressWithType peer(peer_address, static_cast<AddressType>(request->type())); in CancelConnection() local
89 acl_manager_->CancelLeConnect(peer); in CancelConnection()

123