Searched defs:peer (Results 1 - 7 of 7) 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/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/bt/btif/include/
H A Dbtif_pan_internal.h70 BD_ADDR peer; member in struct:__anon636
/system/core/adb/
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 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 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.
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...]

Completed in 4258 milliseconds