Home
last modified time | relevance | path

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

123

/system/core/adb/
Dsockets.cpp69 if (peer_id == 0 || (s->peer && s->peer->id == peer_id)) { in find_local_socket()
106 if (s->transport == t || (s->peer && s->peer->transport == t)) { in close_all_sockets()
181 if (avail != max_payload && s->peer) { in local_socket_flush_outgoing()
188 r = s->peer->enqueue(s->peer, std::move(data)); in local_socket_flush_outgoing()
315 if (s->peer) { in local_socket_close()
316 D("LS(%d): closing peer. peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in local_socket_close()
321 if (s->peer->shutdown) { in local_socket_close()
322 s->peer->shutdown(s->peer); in local_socket_close()
324 s->peer->peer = nullptr; in local_socket_close()
325 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.cpp378 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
379 s->peer->peer = s; in handle_packet()
380 send_ready(s->id, s->peer->id, t); in handle_packet()
390 if(s->peer == nullptr) { in handle_packet()
392 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
393 s->peer->peer = s; in handle_packet()
395 } else if (s->peer->id == p->msg.arg0) { in handle_packet()
400 p->msg.arg1, s->peer->id, p->msg.arg1, t->serial.c_str()); in handle_packet()
425 if (p->msg.arg0 == 0 && s->peer && s->peer->transport != t) { in handle_packet()
427 t->serial.c_str(), s->peer->transport->serial.c_str()); in handle_packet()
Dtransport.cpp509 asocket* peer = socket->peer; in device_tracker_close() local
512 if (peer) { in device_tracker_close()
513 peer->peer = nullptr; in device_tracker_close()
514 peer->close(peer); in device_tracker_close()
527 asocket* peer = tracker->socket.peer; in device_tracker_send() local
535 return peer->enqueue(peer, std::move(data)); in device_tracker_send()
/system/core/adb/daemon/
Djdwp_service.cpp390 if (s->peer) { in jdwp_socket_close()
391 D("LS(%d) peer->close()ing peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in jdwp_socket_close()
392 s->peer->peer = nullptr; in jdwp_socket_close()
393 s->peer->close(s->peer); in jdwp_socket_close()
394 s->peer = nullptr; in jdwp_socket_close()
404 s->peer->close(s->peer); in jdwp_socket_enqueue()
410 asocket* peer = jdwp->peer; in jdwp_socket_ready() local
420 peer->enqueue(peer, std::move(data)); in jdwp_socket_ready()
423 peer->close(peer); in jdwp_socket_ready()
461 if (t->peer) { in jdwp_process_list_updated()
[all …]
Dservices.cpp160 if (peer) { in Close()
161 peer->peer = nullptr; in Close()
162 if (peer->shutdown) { in Close()
163 peer->shutdown(peer); in Close()
165 peer->close(peer); in Close()
212 peer->enqueue(peer, std::move(block)); in Ready()
/system/bt/btif/src/
Dbtif_av.cc402 BtifAvPeer* peer = FindPeer(peer_address); in IsPeerSilenced() local
403 if (peer == nullptr) { in IsPeerSilenced()
407 if (!peer->IsConnected()) { in IsPeerSilenced()
411 return peer->IsInSilenceMode(); in IsPeerSilenced()
427 BtifAvPeer* peer = FindPeer(peer_address); in SetSilencePeer() local
428 if (peer == nullptr) { in SetSilencePeer()
432 if (!peer->IsConnected()) { in SetSilencePeer()
436 peer->SetSilence(silence); in SetSilencePeer()
469 BtifAvPeer* peer = FindPeer(peer_address); in SetActivePeer() local
470 if (peer != nullptr && !peer->IsConnected()) { in SetActivePeer()
[all …]
Dbtif_pan.cc245 BT_STATUS_SUCCESS, &conn->peer, in btif_in_pan_generic_evt()
453 if (btpan_cb.conns[i].peer == addr) return &btpan_cb.conns[i]; in btpan_find_conn_addr()
511 memset(&conn->peer, 0, sizeof(conn->peer)); in btpan_cleanup_conn()
526 btpan_cb.conns[i].peer = addr; in btpan_new_conn()
542 memset(&p->peer, 0, 6); in btpan_close_handle()
561 btpan_cb.conns[i].peer == eth_hdr->h_dest)) { in forward_bnep()
650 &conn->peer, btpan_conn_local_role, in bta_pan_callback_transfer()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.cc279 Address peer = incoming.GetSourceAddress(); in IncomingDisconnectPacket() local
280 uint16_t handle = classic_connections_.GetHandle(peer); in IncomingDisconnectPacket()
282 LOG_INFO(LOG_TAG, "%s: Unknown connection @%s", __func__, peer.ToString().c_str()); in IncomingDisconnectPacket()
294 Address peer = incoming.GetSourceAddress(); in IncomingEncryptConnection() local
295 uint16_t handle = classic_connections_.GetHandle(peer); in IncomingEncryptConnection()
297 LOG_INFO(LOG_TAG, "%s: Unknown connection @%s", __func__, peer.ToString().c_str()); in IncomingEncryptConnection()
302 …EncryptConnectionBuilder::Create(security_manager_.GetKey(peer)), properties_.GetAddress(), peer)); in IncomingEncryptConnection()
394 Address peer = incoming.GetSourceAddress(); in IncomingIoCapabilityRequestPacket() local
400 uint16_t handle = classic_connections_.GetHandle(peer); in IncomingIoCapabilityRequestPacket()
402 LOG_INFO(LOG_TAG, "%s: Device not connected %s", __func__, peer.ToString().c_str()); in IncomingIoCapabilityRequestPacket()
[all …]
Dlink_layer_controller.h50 …hci::Status IoCapabilityRequestReply(const Address& peer, uint8_t io_capability, uint8_t oob_data_…
52 hci::Status IoCapabilityRequestNegativeReply(const Address& peer, hci::Status reason);
53 hci::Status UserConfirmationRequestReply(const Address& peer);
54 hci::Status UserConfirmationRequestNegativeReply(const Address& peer);
55 hci::Status UserPasskeyRequestReply(const Address& peer, uint32_t numeric_value);
56 hci::Status UserPasskeyRequestNegativeReply(const Address& peer);
57 hci::Status RemoteOobDataRequestReply(const Address& peer, const std::vector<uint8_t>& c,
59 hci::Status RemoteOobDataRequestNegativeReply(const Address& peer);
Ddual_mode_controller.cc415 Address peer = args_itr.extract<Address>(); in HciIoCapabilityRequestReply() local
420 …hci::Status status = link_layer_controller_.IoCapabilityRequestReply(peer, io_capability, oob_data… in HciIoCapabilityRequestReply()
423 SendCommandCompleteStatusAndAddress(OpCode::IO_CAPABILITY_REQUEST_REPLY, status, peer); in HciIoCapabilityRequestReply()
429 Address peer = args.begin().extract<Address>(); in HciUserConfirmationRequestReply() local
431 hci::Status status = link_layer_controller_.UserConfirmationRequestReply(peer); in HciUserConfirmationRequestReply()
433 SendCommandCompleteStatusAndAddress(OpCode::USER_CONFIRMATION_REQUEST_REPLY, status, peer); in HciUserConfirmationRequestReply()
439 Address peer = args.begin().extract<Address>(); in HciUserConfirmationRequestNegativeReply() local
441 hci::Status status = link_layer_controller_.UserConfirmationRequestNegativeReply(peer); in HciUserConfirmationRequestNegativeReply()
443 …endCommandCompleteStatusAndAddress(OpCode::USER_CONFIRMATION_REQUEST_NEGATIVE_REPLY, status, peer); in HciUserConfirmationRequestNegativeReply()
450 Address peer = args_itr.extract<Address>(); in HciUserPasskeyRequestReply() local
[all …]
Dsecurity_manager.cc103 void SecurityManager::SetLocalIoCapability(const Address& peer, uint8_t io_capability, uint8_t oob_… in SetLocalIoCapability() argument
105 CHECK_EQ(peer, peer_address_); in SetLocalIoCapability()
/system/bt/vendor_libs/test_vendor_lib/packets/hci/
Devent_packet_builder.h207 static std::unique_ptr<EventPacketBuilder> CreateIoCapabilityRequestEvent(const Address& peer);
210 …static std::unique_ptr<EventPacketBuilder> CreateIoCapabilityResponseEvent(const Address& peer, ui…
215 static std::unique_ptr<EventPacketBuilder> CreateUserConfirmationRequestEvent(const Address& peer,
219 static std::unique_ptr<EventPacketBuilder> CreateUserPasskeyRequestEvent(const Address& peer);
222 static std::unique_ptr<EventPacketBuilder> CreateRemoteOobDataRequestEvent(const Address& peer);
225 …_ptr<EventPacketBuilder> CreateSimplePairingCompleteEvent(hci::Status status, const Address& peer);
228 …static std::unique_ptr<EventPacketBuilder> CreateUserPasskeyNotificationEvent(const Address& peer,…
231 static std::unique_ptr<EventPacketBuilder> CreateKeypressNotificationEvent(const Address& peer,
238 … const Address& peer, uint16_t interval,
264 … hci::Status status, uint16_t handle, uint8_t role, uint8_t peer_address_type, const Address& peer,
Devent_packet_builder.cc479 …e_ptr<EventPacketBuilder> EventPacketBuilder::CreateIoCapabilityRequestEvent(const Address& peer) { in CreateIoCapabilityRequestEvent() argument
483 CHECK(evt_ptr->AddPayloadAddress(peer)); in CreateIoCapabilityRequestEvent()
489 …const Address& peer, uint8_t io_capability, bool oob_data_present, uint8_t authentication_requirem… in CreateIoCapabilityResponseEvent() argument
493 CHECK(evt_ptr->AddPayloadAddress(peer)); in CreateIoCapabilityResponseEvent()
501 …ptr<EventPacketBuilder> EventPacketBuilder::CreateUserConfirmationRequestEvent(const Address& peer, in CreateUserConfirmationRequestEvent() argument
506 CHECK(evt_ptr->AddPayloadAddress(peer)); in CreateUserConfirmationRequestEvent()
512 …ue_ptr<EventPacketBuilder> EventPacketBuilder::CreateUserPasskeyRequestEvent(const Address& peer) { in CreateUserPasskeyRequestEvent() argument
516 CHECK(evt_ptr->AddPayloadAddress(peer)); in CreateUserPasskeyRequestEvent()
521 …_ptr<EventPacketBuilder> EventPacketBuilder::CreateRemoteOobDataRequestEvent(const Address& peer) { in CreateRemoteOobDataRequestEvent() argument
525 CHECK(evt_ptr->AddPayloadAddress(peer)); in CreateRemoteOobDataRequestEvent()
[all …]
Dle_meta_event_builder.cc36 …Status status, uint16_t handle, uint8_t role, uint8_t peer_address_type, const Address& peer, uint… in CreateLeConnectionCompleteEvent() argument
45 CHECK(evt_ptr->AddAddress(peer)); in CreateLeConnectionCompleteEvent()
55 Status status, uint16_t handle, uint8_t role, uint8_t peer_address_type, const Address& peer, in CreateLeEnhancedConnectionCompleteEvent() argument
65 CHECK(evt_ptr->AddAddress(peer)); in CreateLeEnhancedConnectionCompleteEvent()
Dle_meta_event_builder.h48 … const Address& peer, uint16_t interval,
74 … hci::Status status, uint16_t handle, uint8_t role, uint8_t peer_address_type, const Address& peer,
/system/bt/btif/co/
Dbta_av_co.cc800 BtaAvCoPeer* peer = FindPeer(peer_address); in GetPeerCurrentCodec() local
801 if (peer == nullptr || peer->GetCodecs() == nullptr) { in GetPeerCurrentCodec()
804 return peer->GetCodecs()->getCurrentCodecConfig(); in GetPeerCurrentCodec()
1667 const BtaAvCoPeer& peer = peers_[i]; in DebugDump() local
1668 if (peer.addr.IsEmpty()) { in DebugDump()
1671 dprintf(fd, " Peer: %s\n", peer.addr.ToString().c_str()); in DebugDump()
1672 dprintf(fd, " Number of sinks: %u\n", peer.num_sinks); in DebugDump()
1673 dprintf(fd, " Number of sources: %u\n", peer.num_sources); in DebugDump()
1674 dprintf(fd, " Number of SEPs: %u\n", peer.num_seps); in DebugDump()
1675 dprintf(fd, " Number of received sinks: %u\n", peer.num_rx_sinks); in DebugDump()
[all …]
/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/sepolicy/prebuilts/api/28.0/private/
Dsecurity_classes73 # network peer labels
74 class peer
/system/sepolicy/reqd_mask/
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/private/
Dsecurity_classes72 # network peer labels
73 class peer
/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/bt/btif/include/
Dbtif_pan_internal.h68 RawAddress peer; member

123