Lines Matching refs:fd
32 int fd = -1; in TEST_F() local
37 &HFP_UUID, 0, &fd, 0, getuid()); in TEST_F()
40 EXPECT_TRUE(fd != -1) << "Error creating RFCOMM socket: invalid fd"; in TEST_F()
44 len = read(fd, &channel, sizeof(channel)); in TEST_F()
47 len = read(fd, &signal, sizeof(signal)); in TEST_F()
57 len = write(fd, HANDSHAKE_COMMAND, sizeof(HANDSHAKE_COMMAND)); in TEST_F()
62 len = read(fd, response, sizeof(response)); in TEST_F()
65 close(fd); in TEST_F()
73 int fd = -1; in TEST_F() local
78 &HFP_UUID, 0, &fd, 0, getuid()); in TEST_F()
81 ASSERT_TRUE(fd != -1) << "Error creating RFCOMM socket: invalid fd"; in TEST_F()
85 len = read(fd, &channel, sizeof(channel)); in TEST_F()
92 len = read(fd, &signal, sizeof(signal)); in TEST_F()
105 len = write(fd, HANDSHAKE_COMMAND, sizeof(HANDSHAKE_COMMAND)); in TEST_F()
112 len = read(fd, response, sizeof(response)); in TEST_F()
118 close(fd); in TEST_F()