Searched refs:peer (Results 1 - 13 of 13) sorted by relevance

/system/bt/device/src/classic/
H A Dpeer.c27 #include "device/include/classic/peer.h"
88 classic_peer_t *peer = hash_map_get(peers_by_address, address); local
90 if (!peer) {
94 peer = hash_map_get(peers_by_address, address);
95 if (peer)
98 // Splice in a new peer struct on behalf of the caller.
99 peer = osi_calloc(sizeof(classic_peer_t));
100 peer->address = *address;
101 hash_map_set(peers_by_address, &peer->address, peer);
110 classic_peer_get_address(classic_peer_t *peer) argument
[all...]
/system/bt/device/include/classic/
H A Dpeer.h27 // Returns a classic_peer_t for the provided |address|. If the peer
33 // Returns the bluetooth address of the |peer|. |peer| may not be NULL.
34 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer);
/system/bt/device/test/classic/
H A Dpeer_test.cpp26 #include "device/include/classic/peer.h"
52 classic_peer_t *peer = classic_peer_by_address(&test_address); local
54 EXPECT_TRUE(peer != NULL);
56 EXPECT_NE(&test_address, classic_peer_get_address(peer));
57 EXPECT_TRUE(bdaddr_equals(&test_address, classic_peer_get_address(peer)));
64 classic_peer_t *peer = classic_peer_by_address(&test_address); local
67 EXPECT_TRUE(peer != NULL);
69 EXPECT_EQ(peer, peer_again);
/system/core/adb/
H A Dsockets.cpp48 ** these have no peer anymore, but still packets to
57 // If |peer_id| is not 0, also check that it is connected to a peer
68 if (peer_id == 0 || (s->peer && s->peer->id == peer_id)) {
126 if(s->transport == t || (s->peer && s->peer->transport == t)) {
233 if(s->peer) {
234 D("LS(%d): closing peer. peer->id=%d peer
532 asocket* peer = s->peer; local
[all...]
H A Djdwp_service.cpp579 asocket* peer = s->peer; local
583 if (peer) {
584 peer->peer = NULL;
585 peer->close(peer);
595 s->peer->close(s->peer);
604 asocket* peer local
664 asocket* peer = t->socket.peer; local
675 asocket* peer = s->peer; local
[all...]
H A Dadb.cpp464 s->peer = create_remote_socket(p->msg.arg0, t);
465 s->peer->peer = s;
466 send_ready(s->id, s->peer->id, t);
475 if(s->peer == 0) {
477 s->peer = create_remote_socket(p->msg.arg0, t);
478 s->peer->peer = s;
480 } else if (s->peer->id == p->msg.arg0) {
485 p->msg.arg0, p->msg.arg1, s->peer
[all...]
H A Dtransport.cpp396 asocket* peer = socket->peer; local
399 if (peer) {
400 peer->peer = NULL;
401 peer->close(peer);
418 asocket* peer = tracker->socket.peer; local
423 return peer
[all...]
H A Dadb.h84 /* flag: set when the socket's peer has closed
97 asocket *peer; member in struct:asocket
111 /* enqueue is called by our peer when it has data
114 ** peer->ready() when we once again are ready to
119 /* ready is called by the peer when it is ready for
124 /* shutdown is called by the peer before it goes away.
125 ** the socket should not do any further calls on its peer.
130 /* close is called by the peer when it has gone away.
132 ** peer once our close method is called.
/system/bt/btif/include/
H A Dbtif_pan_internal.h70 BD_ADDR peer; member in struct:__anon636
/system/bt/doc/
H A 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/src/
H A Dbtif_pan.c260 (const bt_bdaddr_t*)conn->peer, btpan_conn_local_role, btpan_remote_role);
485 if (memcmp(btpan_cb.conns[i].peer, addr, sizeof(BD_ADDR)) == 0)
553 memset(&conn->peer, 0, sizeof(conn->peer));
569 bdcpy(btpan_cb.conns[i].peer, addr);
585 memset(&p->peer, 0, 6);
606 || memcmp(btpan_cb.conns[i].peer, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0)) {
698 callback.connection_state_cb(BTPAN_STATE_DISCONNECTED, 0, (const bt_bdaddr_t*)conn->peer,
/system/bt/device/
H A DAndroid.mk38 src/classic/peer.c \
/system/bt/btif/co/
H A Dbta_pan_co.c93 //bdcpy(conn->peer, peer_addr);
114 ** peer is closed.
194 BTIF_TRACE_DEBUG("%s pan bt peer addr: %s", __func__,
195 bdaddr_to_string((bt_bdaddr_t *)conn->peer, bdstr, sizeof(bdstr)));
320 ** Description protocol filter indication from peer device
341 ** Description multicast filter indication from peer device

Completed in 533 milliseconds