Home
last modified time | relevance | path

Searched refs:IsValid (Results 1 – 25 of 162) sorted by relevance

1234567

/system/bt/stack/test/
Dad_parser_unittest.cc24 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/
Dadvertise_data_unittest.cc28 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/
Dsignal_id_test.cc30 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()
Dl2cap_packet_test.cc82 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/
Dclass_of_device_unittest.cc76 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/
Dclass_of_device_unittest.cc79 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()
Dhci_packets_test.cc237 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 …]
Dacl_manager_test.cc164 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/
Dfuzz_hci_hal.cc52 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/
Ddual_mode_controller.cc256 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/
Devent_checkers.h25 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()
Dclassic_impl.h135 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/
Dsecurity_manager_channel_unittest.cc85 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/
Dset_absolute_volume_packet_test.cc54 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()
Dregister_notification_packet_test.cc40 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()
Dpass_through_packet_test.cc56 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()
Dset_addressed_player_packet_test.cc48 ASSERT_TRUE(test_packet->IsValid()); in TEST()
55 ASSERT_FALSE(test_packet->IsValid()); in TEST()
59 ASSERT_FALSE(test_packet->IsValid()); in TEST()
Dplay_item_packet_test.cc48 ASSERT_TRUE(test_packet->IsValid()); in TEST()
55 ASSERT_FALSE(test_packet->IsValid()); in TEST()
59 ASSERT_FALSE(test_packet->IsValid()); in TEST()
Dset_browsed_player_packet_test.cc59 ASSERT_TRUE(test_packet->IsValid()); in TEST()
66 ASSERT_FALSE(test_packet->IsValid()); in TEST()
70 ASSERT_FALSE(test_packet->IsValid()); in TEST()
Dget_total_number_of_items_packet_test.cc59 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/
Dclassic_pairing_handler.cc99 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 …]
Dclassic_pairing_handler_unittest.cc70 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/
Dhelpers.h36 if (!name->IsValid()) { \
43 if (!packet.IsValid()) { in InvokeIfValid()
52 if (!packet.IsValid()) { in InvokeIfValid()
/system/bt/gd/packet/parser/test/
Dgenerated_packet_test.cc84 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/
Dnl80211_packet_unittest.cpp96 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()

1234567