/system/bt/stack/test/ |
D | ad_parser_unittest.cc | 24 EXPECT_TRUE(AdvertiseDataParser::IsValid(data0)); in TEST() 28 EXPECT_TRUE(AdvertiseDataParser::IsValid(data1)); in TEST() 34 EXPECT_FALSE(AdvertiseDataParser::IsValid(data0)); in TEST() 38 EXPECT_FALSE(AdvertiseDataParser::IsValid(data1)); in TEST() 42 EXPECT_FALSE(AdvertiseDataParser::IsValid(data2)); in TEST() 46 EXPECT_FALSE(AdvertiseDataParser::IsValid(data3)); in TEST() 51 EXPECT_FALSE(AdvertiseDataParser::IsValid(data1)); in TEST() 56 EXPECT_FALSE(AdvertiseDataParser::IsValid(data1)); in TEST() 62 EXPECT_TRUE(AdvertiseDataParser::IsValid(data0)); in TEST() 66 EXPECT_TRUE(AdvertiseDataParser::IsValid(data1)); in TEST() [all …]
|
/system/bt/service/test/ |
D | advertise_data_unittest.cc | 28 EXPECT_TRUE(adv0.IsValid()); in TEST() 33 EXPECT_FALSE(adv1.IsValid()); in TEST() 40 EXPECT_FALSE(adv0.IsValid()); in TEST() 45 EXPECT_FALSE(adv1.IsValid()); in TEST() 50 EXPECT_FALSE(adv2.IsValid()); in TEST() 55 EXPECT_FALSE(adv3.IsValid()); in TEST() 62 EXPECT_TRUE(adv0.IsValid()); in TEST() 67 EXPECT_TRUE(adv0.IsValid()); in TEST() 74 EXPECT_FALSE(adv0.IsValid()); in TEST() 80 EXPECT_FALSE(adv1.IsValid()); in TEST() [all …]
|
/system/bt/gd/l2cap/ |
D | signal_id_test.cc | 30 if (signal_id.IsValid()) { in TEST() 39 ASSERT_FALSE(signal_id.IsValid()); in TEST() 44 ASSERT_FALSE(signal_id.IsValid()); in TEST() 53 ASSERT_FALSE(signal_id.IsValid()); in TEST() 62 ASSERT_FALSE(signal_id.IsValid()); in TEST() 72 ASSERT_FALSE(signal_id.IsValid()); in TEST() 82 ASSERT_FALSE(signal_id.IsValid()); in TEST() 91 ASSERT_FALSE(signal_id.IsValid()); in TEST() 100 ASSERT_FALSE(signal_id.IsValid()); in TEST() 110 ASSERT_FALSE(signal_id.IsValid()); in TEST()
|
D | l2cap_packet_test.cc | 82 ASSERT_TRUE(view.IsValid()); in TEST() 92 ASSERT_TRUE(view.IsValid()); in TEST() 102 ASSERT_TRUE(view.IsValid()); in TEST() 112 ASSERT_TRUE(view.IsValid()); in TEST() 122 ASSERT_TRUE(view.IsValid()); in TEST()
|
/system/bt/types/test/ |
D | class_of_device_unittest.cc | 76 TEST(ClassOfDeviceTest, IsValid) { in TEST() argument 77 EXPECT_FALSE(ClassOfDevice::IsValid("")); in TEST() 78 EXPECT_FALSE(ClassOfDevice::IsValid("000000")); in TEST() 79 EXPECT_FALSE(ClassOfDevice::IsValid("00-00-00")); in TEST() 80 EXPECT_FALSE(ClassOfDevice::IsValid("000-0-0")); in TEST() 81 EXPECT_TRUE(ClassOfDevice::IsValid("000-0-00")); in TEST() 82 EXPECT_TRUE(ClassOfDevice::IsValid("ABc-d-00")); in TEST() 83 EXPECT_TRUE(ClassOfDevice::IsValid("aBc-D-eF")); in TEST()
|
/system/bt/gd/hci/ |
D | class_of_device_unittest.cc | 79 TEST(ClassOfDeviceTest, IsValid) { in TEST() argument 80 ASSERT_FALSE(ClassOfDevice::IsValid("")); in TEST() 81 ASSERT_FALSE(ClassOfDevice::IsValid("000000")); in TEST() 82 ASSERT_FALSE(ClassOfDevice::IsValid("00-00-00")); in TEST() 83 ASSERT_FALSE(ClassOfDevice::IsValid("000-0-0")); in TEST() 84 ASSERT_TRUE(ClassOfDevice::IsValid("000-0-00")); in TEST() 85 ASSERT_TRUE(ClassOfDevice::IsValid("ABc-d-00")); in TEST() 86 ASSERT_TRUE(ClassOfDevice::IsValid("aBc-D-eF")); in TEST()
|
D | hci_packets_test.cc | 237 ASSERT_TRUE(view.IsValid()); in TEST() 274 ASSERT_TRUE(view.IsValid()); in TEST() 291 ASSERT_TRUE(view.IsValid()); in TEST() 308 ASSERT_TRUE(view.IsValid()); in TEST() 322 ASSERT_TRUE(view.IsValid()); in TEST() 344 ASSERT_TRUE(view.IsValid()); in TEST() 363 ASSERT_TRUE(view.IsValid()); in TEST() 389 ASSERT_TRUE(view.IsValid()); in TEST() 406 ASSERT_TRUE(view.IsValid()); in TEST() 433 ASSERT_TRUE(view.IsValid()); in TEST() [all …]
|
D | acl_manager_test.cc | 164 EXPECT_TRUE(command.IsValid()); in GetCommandPacket() 184 EXPECT_TRUE(command.IsValid()); in GetLastCommandPacket() 211 ASSERT_TRUE(event.IsValid()); in IncomingEvent() 221 EXPECT_TRUE(meta_event_view.IsValid()); in IncomingLeMetaEvent() 253 ASSERT_TRUE(complete_view.IsValid()); in CommandCompleteCallback() 260 ASSERT_TRUE(status_view.IsValid()); in CommandStatusCallback() 337 ASSERT_TRUE(set_random_address_packet.IsValid()); in SetUp() 450 while (!last_command.IsValid()) { in SetUp() 523 EXPECT_TRUE(command.IsValid()); in TEST_F() 536 while (!last_command.IsValid()) { in TEST_F() [all …]
|
/system/bt/gd/hal/fuzz/ |
D | fuzz_hci_hal.cc | 52 if (!command.IsValid()) { in sendHciCommand() 62 if (!event.IsValid()) { in injectHciEvent() 67 if (complete.IsValid()) { in injectHciEvent() 76 if (status.IsValid()) { in injectHciEvent() 89 if (!aclPacket.IsValid()) { in injectAclData() 98 if (!scoPacket.IsValid()) { in injectScoData()
|
/system/bt/vendor_libs/test_vendor_lib/model/controller/ |
D | dual_mode_controller.cc | 256 ASSERT(command_view.IsValid()); in SniffSubrating() 281 ASSERT(acl_packet.IsValid()); in HandleAcl() 323 ASSERT(command_packet.IsValid()); in HandleCommand() 390 ASSERT(command_view.IsValid()); in Reset() 402 ASSERT(command_view.IsValid()); in ReadBufferSize() 416 ASSERT(command_view.IsValid()); in ReadEncryptionKeySize() 426 ASSERT(command_view.IsValid()); in HostBufferSize() 435 ASSERT(command_view.IsValid()); in ReadLocalVersionInformation() 456 ASSERT(command_view.IsValid()); in ReadRemoteVersionInformation() 470 ASSERT(command_view.IsValid()); in ReadBdAddr() [all …]
|
/system/bt/gd/hci/acl_manager/ |
D | event_checkers.h | 25 ASSERT(view.IsValid()); in check_command_complete() 27 if (!status_view.IsValid()) { in check_command_complete() 42 ASSERT(view.IsValid()); in check_command_status() 44 if (!status_view.IsValid()) { in check_command_status()
|
D | classic_impl.h | 135 ASSERT(request.IsValid()); in on_incoming_connection() 182 ASSERT(status.IsValid()); in create_connection() 192 ASSERT(connection_complete.IsValid()); in on_connection_complete() 230 ASSERT(status.IsValid()); in on_connection_complete() 240 if (!packet_type_changed.IsValid()) { in on_connection_packet_type_changed() 257 if (!complete_view.IsValid()) { in on_master_link_key_complete() 274 if (!authentication_complete.IsValid()) { in on_authentication_complete() 326 if (!complete_view.IsValid()) { in on_change_connection_link_key_complete() 342 if (!complete_view.IsValid()) { in on_read_clock_offset_complete() 359 if (!mode_change_view.IsValid()) { in on_mode_change() [all …]
|
/system/bt/gd/security/channel/ |
D | security_manager_channel_unittest.cc | 85 ASSERT_TRUE(packet.IsValid()); in OnReceive() 89 ASSERT_TRUE(packet.IsValid()); in OnReceive() 93 ASSERT_TRUE(packet.IsValid()); in OnReceive() 97 ASSERT_TRUE(packet.IsValid()); in OnReceive() 101 ASSERT_TRUE(packet.IsValid()); in OnReceive() 105 ASSERT_TRUE(packet.IsValid()); in OnReceive() 109 ASSERT_TRUE(packet.IsValid()); in OnReceive() 113 ASSERT_TRUE(packet.IsValid()); in OnReceive() 117 ASSERT_TRUE(packet.IsValid()); in OnReceive() 121 ASSERT_TRUE(packet.IsValid()); in OnReceive() [all …]
|
/system/bt/packet/tests/avrcp/ |
D | set_absolute_volume_packet_test.cc | 54 ASSERT_TRUE(test_packet->IsValid()); in TEST() 61 ASSERT_FALSE(test_packet->IsValid()); in TEST() 65 ASSERT_FALSE(test_packet->IsValid()); in TEST() 70 ASSERT_FALSE(test_packet->IsValid()); in TEST()
|
D | register_notification_packet_test.cc | 40 ASSERT_TRUE(test_packet->IsValid()); in TEST() 47 ASSERT_FALSE(test_packet->IsValid()); in TEST() 51 ASSERT_FALSE(test_packet->IsValid()); in TEST() 77 ASSERT_TRUE(test_packet->IsValid()); in TEST() 84 ASSERT_FALSE(test_packet->IsValid()); in TEST() 88 ASSERT_FALSE(test_packet->IsValid()); in TEST() 93 ASSERT_FALSE(test_packet->IsValid()); in TEST()
|
D | pass_through_packet_test.cc | 56 ASSERT_TRUE(test_packet->IsValid()); in TEST() 59 ASSERT_TRUE(test_packet->IsValid()); in TEST() 66 ASSERT_FALSE(test_packet->IsValid()); in TEST() 70 ASSERT_FALSE(test_packet->IsValid()); in TEST()
|
D | set_addressed_player_packet_test.cc | 48 ASSERT_TRUE(test_packet->IsValid()); in TEST() 55 ASSERT_FALSE(test_packet->IsValid()); in TEST() 59 ASSERT_FALSE(test_packet->IsValid()); in TEST()
|
D | play_item_packet_test.cc | 48 ASSERT_TRUE(test_packet->IsValid()); in TEST() 55 ASSERT_FALSE(test_packet->IsValid()); in TEST() 59 ASSERT_FALSE(test_packet->IsValid()); in TEST()
|
D | set_browsed_player_packet_test.cc | 59 ASSERT_TRUE(test_packet->IsValid()); in TEST() 66 ASSERT_FALSE(test_packet->IsValid()); in TEST() 70 ASSERT_FALSE(test_packet->IsValid()); in TEST()
|
D | get_total_number_of_items_packet_test.cc | 59 ASSERT_TRUE(test_packet->IsValid()); in TEST() 66 ASSERT_FALSE(test_packet->IsValid()); in TEST() 69 ASSERT_FALSE(test_packet->IsValid()); in TEST()
|
/system/bt/gd/security/pairing/ |
D | classic_pairing_handler.cc | 99 ASSERT(packet.IsValid()); in OnReceive() 104 ASSERT(packet.IsValid()); in OnReceive() 109 ASSERT(packet.IsValid()); in OnReceive() 115 ASSERT(packet.IsValid()); in OnReceive() 136 ASSERT(packet.IsValid()); in OnReceive() 144 ASSERT(packet.IsValid()); in OnReceive() 156 ASSERT(packet.IsValid()); in OnReceive() 196 ASSERT(packet.IsValid()); in OnReceive() 208 ASSERT(packet.IsValid()); in OnReceive() 213 ASSERT(packet.IsValid()); in OnReceive() [all …]
|
D | classic_pairing_handler_unittest.cc | 70 ASSERT_LOG(event.IsValid(), "Received invalid packet"); in OnHciEventReceived() 233 if (!security_command_view.IsValid()) { in GetLastCommand() 252 ASSERT_TRUE(link_key_neg_reply.IsValid()); in TEST_F() 258 ASSERT_TRUE(io_cap_request_reply.IsValid()); in TEST_F() 269 ASSERT_TRUE(user_conf_request_reply.IsValid()); in TEST_F() 290 ASSERT_TRUE(link_key_neg_reply.IsValid()); in TEST_F() 296 ASSERT_TRUE(io_cap_request_reply.IsValid()); in TEST_F() 307 ASSERT_TRUE(user_conf_request_reply.IsValid()); in TEST_F() 328 ASSERT_TRUE(link_key_neg_reply.IsValid()); in TEST_F() 334 ASSERT_TRUE(io_cap_request_reply.IsValid()); in TEST_F() [all …]
|
/system/bt/gd/fuzz/ |
D | helpers.h | 36 if (!name->IsValid()) { \ 43 if (!packet.IsValid()) { in InvokeIfValid() 52 if (!packet.IsValid()) { in InvokeIfValid()
|
/system/bt/gd/packet/parser/test/ |
D | generated_packet_test.cc | 84 ASSERT_FALSE(wrong_view.IsValid()); in TEST() 87 ASSERT_TRUE(parent_view.IsValid()); in TEST() 91 ASSERT_TRUE(child_view.IsValid()); in TEST() 95 ASSERT_TRUE(grandchild_view.IsValid()); in TEST() 116 ASSERT_TRUE(parent_view.IsValid()); in TEST() 125 ASSERT_TRUE(child_view.IsValid()); in TEST() 135 ASSERT_FALSE(invalid_parent.IsValid()); in TEST() 138 ASSERT_FALSE(invalid.IsValid()); in TEST() 146 ASSERT_TRUE(valid_parent.IsValid()); in TEST() 149 ASSERT_FALSE(invalid.IsValid()); in TEST() [all …]
|
/system/connectivity/wificond/tests/ |
D | nl80211_packet_unittest.cpp | 96 EXPECT_TRUE(netlink_packet.IsValid()); in TEST() 119 EXPECT_TRUE(netlink_packet.IsValid()); in TEST() 137 EXPECT_TRUE(netlink_packet.IsValid()); in TEST() 180 EXPECT_TRUE(netlink_packet.IsValid()); in TEST() 197 EXPECT_TRUE(netlink_packet.IsValid()); in TEST() 220 EXPECT_TRUE(netlink_packet.IsValid()); in TEST() 238 EXPECT_TRUE(netlink_packet.IsValid()); in TEST() 262 EXPECT_TRUE(netlink_packet.IsValid()); in TEST()
|