Home
last modified time | relevance | path

Searched refs:fake_uart_ (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/bluetooth/1.0/default/test/
Dmct_protocol_unittest.cc74 MakeFakeUartFd(CH_CMD, mct_fds, fake_uart_); in SetUp()
75 MakeFakeUartFd(CH_EVT, mct_fds, fake_uart_); in SetUp()
76 MakeFakeUartFd(CH_ACL_IN, mct_fds, fake_uart_); in SetUp()
77 MakeFakeUartFd(CH_ACL_OUT, mct_fds, fake_uart_); in SetUp()
128 write(fake_uart_[CH_ACL_IN], preamble, sizeof(preamble))); in WriteAndExpectInboundAclData()
129 TEMP_FAILURE_RETRY(write(fake_uart_[CH_ACL_IN], payload, strlen(payload))); in WriteAndExpectInboundAclData()
153 TEMP_FAILURE_RETRY(write(fake_uart_[CH_EVT], preamble, sizeof(preamble))); in WriteAndExpectInboundEvent()
154 TEMP_FAILURE_RETRY(write(fake_uart_[CH_EVT], payload, strlen(payload))); in WriteAndExpectInboundEvent()
176 int fake_uart_[CH_MAX]; member in android::hardware::bluetooth::V1_0::implementation::MctProtocolTest
182 fake_uart_[CH_CMD]); in TEST_F()
[all …]
Dh4_protocol_unittest.cc89 fake_uart_ = sockfd[1]; in SetUp()
106 FD_SET(fake_uart_, &read_fds); in SendAndReadUartOutbound()
107 TEMP_FAILURE_RETRY(select(fake_uart_ + 1, &read_fds, NULL, NULL, NULL)); in SendAndReadUartOutbound()
110 TEMP_FAILURE_RETRY(read(fake_uart_, &byte, 1)); in SendAndReadUartOutbound()
126 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundAclData()
127 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundAclData()
151 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundScoData()
152 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundScoData()
175 TEMP_FAILURE_RETRY(write(fake_uart_, preamble, sizeof(preamble))); in WriteAndExpectInboundEvent()
176 TEMP_FAILURE_RETRY(write(fake_uart_, payload, strlen(payload))); in WriteAndExpectInboundEvent()
[all …]