Home
last modified time | relevance | path

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

/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Log.cpp54 int create_socket(int *sockfd) in create_socket() argument
57 if ((*sockfd = socket(AF_UNIX, SOCK_DGRAM, 0)) == IPACM_FAILURE) in create_socket()
63 if(fcntl(*sockfd, F_SETFD, FD_CLOEXEC) < 0) in create_socket()
/hardware/interfaces/bluetooth/1.0/default/test/
Dh4_protocol_unittest.cc76 int sockfd[2]; in SetUp() local
77 socketpair(AF_LOCAL, SOCK_STREAM, 0, sockfd); in SetUp()
79 new H4Protocol(sockfd[0], event_cb_.AsStdFunction(), in SetUp()
82 sockfd[0], [h4_hci](int fd) { h4_hci->OnDataReady(fd); }); in SetUp()
85 fake_uart_ = sockfd[1]; in SetUp()
Dasync_fd_watcher_unittest.cc276 int sockfd[2]; in TEST_F() local
277 socketpair(AF_LOCAL, SOCK_STREAM, 0, sockfd); in TEST_F()
284 watcher.WatchFdForNonBlockingReads(sockfd[0], [cb1_called_ptr](int fd) { in TEST_F()
292 watcher.WatchFdForNonBlockingReads(sockfd[1], [cb2_called_ptr](int fd) { in TEST_F()
310 TEMP_FAILURE_RETRY(write(sockfd[1], one_buf, sizeof(one_buf))); in TEST_F()
318 TEMP_FAILURE_RETRY(write(sockfd[0], two_buf, sizeof(two_buf))); in TEST_F()
Dmct_protocol_unittest.cc89 int sockfd[2]; in MakeFakeUartFd() local
90 socketpair(AF_LOCAL, SOCK_STREAM, 0, sockfd); in MakeFakeUartFd()
91 host_side[index] = sockfd[0]; in MakeFakeUartFd()
92 controller_side[index] = sockfd[1]; in MakeFakeUartFd()