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

/system/core/include/cutils/
H A Dqtaguid.h31 extern int qtaguid_tagSocket(int sockfd, int tag, uid_t uid);
36 extern int qtaguid_untagSocket(int sockfd);
/system/core/libcutils/
H A Dqtaguid.c100 int qtaguid_tagSocket(int sockfd, int tag, uid_t uid) { argument
107 snprintf(lineBuf, sizeof(lineBuf), "t %d %" PRIu64 " %d", sockfd, kTag, uid);
109 ALOGV("Tagging socket %d with tag %" PRIx64 "{%u,0} for uid %d", sockfd, kTag, tag, uid);
114 sockfd, kTag, tag, uid, res);
120 int qtaguid_untagSocket(int sockfd) { argument
124 ALOGV("Untagging socket %d", sockfd);
126 snprintf(lineBuf, sizeof(lineBuf), "u %d", sockfd);
129 ALOGI("Untagging socket %d failed errno=%d", sockfd, res);
/system/bt/hci/test/
H A 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[
[all...]
/system/netd/client/
H A DNetdClient.cpp52 int netdClientAccept4(int sockfd, sockaddr* addr, socklen_t* addrlen, int flags) { argument
53 int acceptedSocket = libcAccept4(sockfd, addr, addrlen, flags);
75 int netdClientConnect(int sockfd, const sockaddr* addr, socklen_t addrlen) { argument
76 if (sockfd >= 0 && addr && FwmarkClient::shouldSetFwmark(addr->sa_family)) {
78 if (int error = FwmarkClient().send(&command, sockfd)) {
83 return libcConnect(sockfd, addr, addrlen);

Completed in 261 milliseconds