Home
last modified time | relevance | path

Searched refs:sockfd (Results 1 – 4 of 4) sorted by relevance

/system/bt/hci/test/
Dhci_hal_h4_test.cpp143 socketpair(AF_LOCAL, SOCK_STREAM, 0, sockfd);
144 dummy_serial_fd = sockfd[0];
166 int sockfd[2];
209 expect_socket_data(sockfd[1], DATA_TYPE_COMMAND, sample_data1 + 1);
213 expect_socket_data(sockfd[1], DATA_TYPE_ACL, sample_data2 + 1);
217 expect_socket_data(sockfd[1], DATA_TYPE_SCO, sample_data3 + 1);
223 write_packet(sockfd[1], DATA_TYPE_ACL, acl_data);
224 write_packet(sockfd[1], DATA_TYPE_SCO, sco_data);
225 write_packet(sockfd[1], DATA_TYPE_EVENT, event_data);
238 write_packet_reentry(sockfd[1], DATA_TYPE_ACL, sample_data3);
[all …]
/system/core/libcutils/
Dqtaguid.c100 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { in qtaguid_tagSocket() argument
107 snprintf(lineBuf, sizeof(lineBuf), "t %d %" PRIu64 " %d", sockfd, kTag, uid); in qtaguid_tagSocket()
109 ALOGV("Tagging socket %d with tag %" PRIx64 "{%u,0} for uid %d", sockfd, kTag, tag, uid); in qtaguid_tagSocket()
114 sockfd, kTag, tag, uid, res); in qtaguid_tagSocket()
120 int qtaguid_untagSocket(int sockfd) { in qtaguid_untagSocket() argument
124 ALOGV("Untagging socket %d", sockfd); in qtaguid_untagSocket()
126 snprintf(lineBuf, sizeof(lineBuf), "u %d", sockfd); in qtaguid_untagSocket()
129 ALOGI("Untagging socket %d failed errno=%d", sockfd, res); in qtaguid_untagSocket()
/system/netd/client/
DNetdClient.cpp52 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { in netdClientAccept4() argument
53 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags); in netdClientAccept4()
75 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { in netdClientConnect() argument
76 if (sockfd >= 0 && addr && FwmarkClient::shouldSetFwmark(addr->sa_family)) { in netdClientConnect()
78 if (int error = FwmarkClient().send(&command, sockfd)) { in netdClientConnect()
83 return libcConnect(sockfd, addr, addrlen); in netdClientConnect()
/system/core/include/cutils/
Dqtaguid.h31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid);
36 extern int qtaguid_untagSocket(int sockfd);