Home
last modified time | relevance | path

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

/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test_utils_test.cc57 uint8_t control_field = GetControlField(true, RFCOMM_SABME); in TEST() local
58 EXPECT_EQ(control_field, 0x3F); in TEST()
60 CreateRfcommPacket(address_field, control_field, -1, {}); in TEST()
81 uint8_t control_field = GetControlField(true, RFCOMM_UA); in TEST() local
82 EXPECT_EQ(control_field, 0x73); in TEST()
84 CreateRfcommPacket(address_field, control_field, -1, {}); in TEST()
106 uint8_t control_field = GetControlField(false, RFCOMM_UIH); in TEST() local
107 EXPECT_EQ(control_field, 0xEF); in TEST()
115 CreateRfcommPacket(address_field, control_field, -1, mcc_payload); in TEST()
137 uint8_t control_field = GetControlField(true, RFCOMM_SABME); in TEST() local
[all …]
Dstack_rfcomm_test_utils.cc57 uint8_t GetFrameTypeFromControlField(uint8_t control_field) { in GetFrameTypeFromControlField() argument
58 return static_cast<uint8_t>(control_field & ~(0b10000)); in GetFrameTypeFromControlField()
145 uint8_t control_field = GetControlField(true, RFCOMM_UA); in CreateQuickUaPacket() local
147 CreateRfcommPacket(address_field, control_field, -1, {}); in CreateQuickUaPacket()
156 uint8_t control_field = GetControlField(true, RFCOMM_SABME); in CreateQuickSabmPacket() local
158 CreateRfcommPacket(address_field, control_field, -1, {}); in CreateQuickSabmPacket()
170 uint8_t control_field = GetControlField(false, RFCOMM_UIH); in CreateQuickPnPacket() local
176 CreateRfcommPacket(address_field, control_field, -1, mcc_payload); in CreateQuickPnPacket()
188 uint8_t control_field = GetControlField(false, RFCOMM_UIH); in CreateQuickMscPacket() local
194 CreateRfcommPacket(address_field, control_field, -1, mcc_payload); in CreateQuickMscPacket()
[all …]