Home
last modified time | relevance | path

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

12

/system/bt/device/src/classic/
Dpeer.c89 classic_peer_t *peer = hash_map_get(peers_by_address, address); in classic_peer_by_address() local
91 if (!peer) { in classic_peer_by_address()
95 peer = hash_map_get(peers_by_address, address); in classic_peer_by_address()
96 if (peer) in classic_peer_by_address()
100 peer = osi_calloc(sizeof(classic_peer_t)); in classic_peer_by_address()
101 peer->address = *address; in classic_peer_by_address()
102 hash_map_set(peers_by_address, &peer->address, peer); in classic_peer_by_address()
108 return peer; in classic_peer_by_address()
111 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer) { in classic_peer_get_address() argument
112 assert(peer != NULL); in classic_peer_get_address()
[all …]
/system/core/adb/
Dsockets.cpp69 if (peer_id == 0 || (s->peer && s->peer->id == peer_id)) { in find_local_socket()
118 if (s->transport == t || (s->peer && s->peer->transport == t)) { in close_all_sockets()
215 if (s->peer) { in local_socket_close()
216 D("LS(%d): closing peer. peer->id=%d peer->fd=%d", s->id, s->peer->id, s->peer->fd); in local_socket_close()
221 if (s->peer->shutdown) { in local_socket_close()
222 s->peer->shutdown(s->peer); in local_socket_close()
224 s->peer->peer = nullptr; in local_socket_close()
225 s->peer->close(s->peer); in local_socket_close()
226 s->peer = nullptr; in local_socket_close()
304 s->peer->ready(s->peer); in local_socket_event_func()
[all …]
Djdwp_service.cpp571 asocket* peer = s->peer; in jdwp_socket_close() local
575 if (peer) { in jdwp_socket_close()
576 peer->peer = NULL; in jdwp_socket_close()
577 peer->close(peer); in jdwp_socket_close()
587 s->peer->close(s->peer); in jdwp_socket_enqueue()
596 asocket* peer = jdwp->socket.peer; in jdwp_socket_ready() local
604 peer->enqueue(peer, p); in jdwp_socket_ready()
608 peer->close(peer); in jdwp_socket_ready()
656 asocket* peer = t->socket.peer; in jdwp_process_list_updated() local
659 peer->enqueue( peer, p ); in jdwp_process_list_updated()
[all …]
Dadb.cpp377 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
378 s->peer->peer = s; in handle_packet()
379 send_ready(s->id, s->peer->id, t); in handle_packet()
388 if(s->peer == 0) { in handle_packet()
390 s->peer = create_remote_socket(p->msg.arg0, t); in handle_packet()
391 s->peer->peer = s; in handle_packet()
393 } else if (s->peer->id == p->msg.arg0) { in handle_packet()
398 p->msg.arg0, p->msg.arg1, s->peer->id, p->msg.arg1, t->serial); in handle_packet()
422 if (p->msg.arg0 == 0 && s->peer && s->peer->transport != t) { in handle_packet()
424 p->msg.arg1, t->serial, s->peer->transport->serial); in handle_packet()
Dtransport.cpp351 asocket* peer = socket->peer; in device_tracker_close() local
354 if (peer) { in device_tracker_close()
355 peer->peer = NULL; in device_tracker_close()
356 peer->close(peer); in device_tracker_close()
373 asocket* peer = tracker->socket.peer; in device_tracker_send() local
378 return peer->enqueue(peer, p); in device_tracker_send()
Dsocket_test.cpp64 tail->peer = head; in TEST_F()
65 head->peer = tail; in TEST_F()
129 cause_close_s->peer = s; in CloseWithPacketThreadFunc()
130 s->peer = cause_close_s; in CloseWithPacketThreadFunc()
Dsocket.h59 asocket *peer; member
/system/bt/device/test/classic/
Dpeer_test.cpp52 classic_peer_t *peer = classic_peer_by_address(&test_address); in TEST_F() local
54 EXPECT_TRUE(peer != NULL); in TEST_F()
56 EXPECT_NE(&test_address, classic_peer_get_address(peer)); in TEST_F()
57 EXPECT_TRUE(bdaddr_equals(&test_address, classic_peer_get_address(peer))); in TEST_F()
64 classic_peer_t *peer = classic_peer_by_address(&test_address); in TEST_F() local
67 EXPECT_TRUE(peer != NULL); in TEST_F()
69 EXPECT_EQ(peer, peer_again); in TEST_F()
/system/connectivity/shill/supplicant/
Dsupplicant_interface_proxy_interface.h56 virtual bool TDLSDiscover(const std::string& peer) = 0;
57 virtual bool TDLSSetup(const std::string& peer) = 0;
58 virtual bool TDLSStatus(const std::string& peer,
60 virtual bool TDLSTeardown(const std::string& peer) = 0;
Dmock_supplicant_interface_proxy.h59 MOCK_METHOD1(TDLSDiscover, bool(const std::string& peer));
60 MOCK_METHOD1(TDLSSetup, bool(const std::string& peer));
61 MOCK_METHOD2(TDLSStatus, bool(const std::string& peer, std::string* status));
62 MOCK_METHOD1(TDLSTeardown, bool(const std::string& peer));
/system/connectivity/shill/
Dconnection.cc220 IPAddress peer(properties.address_family); in UpdateFromIPConfig() local
222 !peer.SetAddressFromString(properties.peer_address)) { in UpdateFromIPConfig()
228 if (!FixGatewayReachability(local, &peer, &gateway, trusted_ip)) { in UpdateFromIPConfig()
243 << " peer=" << peer.ToString() in UpdateFromIPConfig()
245 rtnl_handler_->AddInterfaceAddress(interface_index_, local, broadcast, peer); in UpdateFromIPConfig()
299 has_broadcast_domain_ = !peer.IsValid(); in UpdateFromIPConfig()
450 IPAddress* peer, in FixGatewayReachability() argument
455 << ", peer " << peer->ToString() in FixGatewayReachability()
463 if (peer->IsValid()) { in FixGatewayReachability()
464 if (!gateway->HasSameAddressAs(*peer)) { in FixGatewayReachability()
[all …]
Dconnection_unittest.cc841 IPAddress peer(IPAddress::kFamilyIPv4); in TEST_F() local
846 local, &peer, &gateway, trusted_ip)); in TEST_F()
848 EXPECT_FALSE(peer.IsValid()); in TEST_F()
855 peer = IPAddress(IPAddress::kFamilyIPv4); in TEST_F()
857 local, &peer, &gateway, trusted_ip)); in TEST_F()
861 EXPECT_FALSE(peer.IsValid()); in TEST_F()
869 peer = IPAddress(IPAddress::kFamilyIPv4); in TEST_F()
874 local, &peer, &gateway, trusted_ip)); in TEST_F()
877 EXPECT_FALSE(peer.IsValid()); in TEST_F()
886 local, &peer, &gateway, trusted_ip)); in TEST_F()
[all …]
/system/connectivity/shill/dbus/
Dchromeos_supplicant_interface_proxy.cc344 bool ChromeosSupplicantInterfaceProxy::TDLSDiscover(const string& peer) { in TDLSDiscover() argument
345 SLOG(&interface_proxy_->GetObjectPath(), 2) << __func__ << ": " << peer; in TDLSDiscover()
347 if (!interface_proxy_->TDLSDiscover(peer, &error)) { in TDLSDiscover()
355 bool ChromeosSupplicantInterfaceProxy::TDLSSetup(const string& peer) { in TDLSSetup() argument
356 SLOG(&interface_proxy_->GetObjectPath(), 2) << __func__ << ": " << peer; in TDLSSetup()
358 if (!interface_proxy_->TDLSSetup(peer, &error)) { in TDLSSetup()
366 bool ChromeosSupplicantInterfaceProxy::TDLSStatus(const string& peer, in TDLSStatus() argument
368 SLOG(&interface_proxy_->GetObjectPath(), 2) << __func__ << ": " << peer; in TDLSStatus()
370 if (!interface_proxy_->TDLSStatus(peer, status, &error)) { in TDLSStatus()
378 bool ChromeosSupplicantInterfaceProxy::TDLSTeardown(const string& peer) { in TDLSTeardown() argument
[all …]
Dchromeos_supplicant_interface_proxy.h64 bool TDLSDiscover(const std::string& peer) override;
65 bool TDLSSetup(const std::string& peer) override;
66 bool TDLSStatus(const std::string& peer, std::string* status) override;
67 bool TDLSTeardown(const std::string& peer) override;
/system/connectivity/shill/net/
Drtnl_handler.cc354 const IPAddress& peer) { in AddressRequest() argument
356 CHECK(local.family() == peer.family()); in AddressRequest()
376 if (!peer.IsDefault()) { in AddressRequest()
377 msg.SetAttribute(IFA_ADDRESS, peer.address()); in AddressRequest()
386 const IPAddress& peer) { in AddInterfaceAddress() argument
392 peer); in AddInterfaceAddress()
Drtnl_handler.h93 const IPAddress& peer);
164 const IPAddress& peer);
Dmock_rtnl_handler.h44 const IPAddress& peer));
/system/bt/device/include/classic/
Dpeer.h34 const bt_bdaddr_t *classic_peer_get_address(classic_peer_t *peer);
/system/sepolicy/
Dsecurity_classes74 # network peer labels
75 class peer
/system/bt/btif/src/
Dbtif_pan.c265 (const bt_bdaddr_t*)conn->peer, btpan_conn_local_role, btpan_remote_role); in btif_in_pan_generic_evt()
491 if (memcmp(btpan_cb.conns[i].peer, addr, sizeof(BD_ADDR)) == 0) in btpan_find_conn_addr()
559 memset(&conn->peer, 0, sizeof(conn->peer)); in btpan_cleanup_conn()
575 bdcpy(btpan_cb.conns[i].peer, addr); in btpan_new_conn()
591 memset(&p->peer, 0, 6); in btpan_close_handle()
612 || memcmp(btpan_cb.conns[i].peer, eth_hdr->h_dest, sizeof(BD_ADDR)) == 0)) { in forward_bnep()
703 … callback.connection_state_cb(BTPAN_STATE_DISCONNECTED, 0, (const bt_bdaddr_t*)conn->peer, in bta_pan_callback_transfer()
/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/connectivity/shill/test-scripts/
Dveth27 ip link add name "$iface" type veth peer name "$peer_iface"
/system/bt/device/
DAndroid.mk35 src/classic/peer.c \
DBUILD.gn19 "src/classic/peer.c",
/system/bt/btif/include/
Dbtif_pan_internal.h70 BD_ADDR peer; member

12