Home
last modified time | relevance | path

Searched refs:rx_buf (Results 1 – 3 of 3) sorted by relevance

/system/core/trusty/utils/trusty-ut-ctrl/
Dut-ctrl.c102 char rx_buf[1024]; in run_trusty_unitest() local
113 rc = read(fd, rx_buf, sizeof(rx_buf)); in run_trusty_unitest()
114 if (rc <= 0 || rc >= (int)sizeof(rx_buf)) { in run_trusty_unitest()
120 if (rx_buf[0] == TEST_PASSED) { in run_trusty_unitest()
122 } else if (rx_buf[0] == TEST_FAILED) { in run_trusty_unitest()
124 } else if (rx_buf[0] == TEST_MESSAGE) { in run_trusty_unitest()
125 write(STDOUT_FILENO, rx_buf + 1, rc - 1); in run_trusty_unitest()
127 fprintf(stderr, "%s: Bad message header: %d\n", __func__, rx_buf[0]); in run_trusty_unitest()
135 return rx_buf[0] == TEST_PASSED ? 0 : -1; in run_trusty_unitest()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c354 char rx_buf[msgsz]; in echo_test() local
382 rc = read(echo_fd, rx_buf, msg_len); in echo_test()
394 if (memcmp(tx_buf, rx_buf, (size_t) rc)) { in echo_test()
462 char rx_buf[msgsz]; in _wait_for_msg() local
490 rc = read(fd, rx_buf, sizeof(rx_buf)); in _wait_for_msg()
559 char rx_buf[512]; in blocked_read_test() local
573 rc = read(fd, rx_buf, sizeof(rx_buf)); in blocked_read_test()
603 unsigned char rx_buf[256]; in ta2ta_ipc_test() local
618 ret = read(fd, rx_buf, sizeof(rx_buf)); in ta2ta_ipc_test()
619 if (ret <= 0 || ret >= (int)sizeof(rx_buf)) { in ta2ta_ipc_test()
[all …]
/system/bt/vendor_libs/test_vendor_lib/test/
Dpolled_socket_test.cc61 std::vector<uint8_t> rx_buf(10); in TEST_F() local
64 server_.Receive(3, rx_buf.data()); in TEST_F()
66 server_.Receive(3, rx_buf.data()); in TEST_F()
67 EXPECT_EQ(rx_buf.size(), tx_buf.size()); in TEST_F()