1#!/usr/bin/env python3 2# 3# Copyright (C) 2016 The Android Open Source Project 4# 5# Licensed under the Apache License, Version 2.0 (the "License"); you may not 6# use this file except in compliance with the License. You may obtain a copy of 7# the License at 8# 9# http://www.apache.org/licenses/LICENSE-2.0 10# 11# Unless required by applicable law or agreed to in writing, software 12# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 13# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 14# License for the specific language governing permissions and limitations under 15# the License. 16 17import itertools as it 18import pprint 19 20from queue import Empty 21from acts.test_decorators import test_tracker_info 22from acts_contrib.test_utils.bt.BluetoothBaseTest import BluetoothBaseTest 23from acts_contrib.test_utils.bt.bt_constants import ble_advertise_settings_modes 24from acts_contrib.test_utils.bt.bt_constants import ble_advertise_settings_tx_powers 25from acts_contrib.test_utils.bt.bt_constants import java_integer 26from acts_contrib.test_utils.bt.bt_constants import ble_scan_settings_modes 27from acts_contrib.test_utils.bt.bt_constants import ble_scan_settings_modes 28from acts_contrib.test_utils.bt.bt_constants import small_timeout 29from acts_contrib.test_utils.bt.bt_constants import adv_fail 30from acts_contrib.test_utils.bt.bt_constants import adv_succ 31from acts_contrib.test_utils.bt.bt_test_utils import generate_ble_advertise_objects 32from acts_contrib.test_utils.bt.bt_test_utils import reset_bluetooth 33from acts_contrib.test_utils.bt.bt_constants import scan_result 34 35 36class FilteringTest(BluetoothBaseTest): 37 default_timeout = 30 38 default_callback = 1 39 default_is_connectable = True 40 default_advertise_mode = 0 41 default_tx_power_level = 2 42 43 #Data constant variants 44 manu_sepecific_data_small = [1] 45 manu_sepecific_data_small_2 = [1, 2] 46 manu_specific_data_small_3 = [127] 47 manu_sepecific_data_large = [14, 0, 54, 0, 0, 0, 0, 0] 48 manu_sepecific_data_mask_small = [1] 49 manu_specific_data_id_1 = 1 50 manu_specific_data_id_2 = 2 51 manu_specific_data_id_3 = 65535 52 53 service_data_small = [13] 54 service_data_small_2 = [127] 55 service_data_medium = [11, 14, 50] 56 service_data_large = [ 57 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 26, 17, 18, 19, 20, 58 21, 22, 23, 24 59 ] 60 61 service_mask_1 = "00000000-0000-1000-8000-00805f9b34fb" 62 service_uuid_1 = "00000000-0000-1000-8000-00805f9b34fb" 63 service_uuid_2 = "FFFFFFFF-0000-1000-8000-00805f9b34fb" 64 service_uuid_3 = "3846D7A0-69C8-11E4-BA00-0002A5D5C51B" 65 66 def setup_class(self): 67 super().setup_class() 68 self.scn_ad = self.android_devices[0] 69 self.adv_ad = self.android_devices[1] 70 self.log.info("Scanner device model: {}".format( 71 self.scn_ad.droid.getBuildModel())) 72 self.log.info("Advertiser device model: {}".format( 73 self.adv_ad.droid.getBuildModel())) 74 75 @BluetoothBaseTest.bt_test_wrap 76 @test_tracker_info(uuid='be72fc18-e7e9-41cf-80b5-e31babd763f6') 77 def test_filter_combo_0(self): 78 """Test a combination scan filter and advertisement 79 80 Test that an advertisement is found and matches corresponding 81 settings. 82 83 Steps: 84 1. Create a advertise data object 85 2. Create a advertise settings object. 86 3. Create a advertise callback object. 87 4. Start an LE advertising using the objects created in steps 1-3. 88 5. Find the onSuccess advertisement event. 89 90 Expected Result: 91 Advertisement is successfully advertising. 92 93 Returns: 94 Pass if True 95 Fail if False 96 97 TAGS: LE, Advertising, Filtering, Scanning 98 Priority: 2 99 """ 100 filters = { 101 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 102 'service_data_uuid': self.service_uuid_1, 103 'manufacturer_specific_data': self.manu_sepecific_data_small, 104 'include_tx_power_level': True, 105 'include_device_name': False, 106 'service_data': self.service_data_medium 107 } 108 settings_in_effect = { 109 'mode': ble_advertise_settings_modes['low_latency'] 110 } 111 return self._magic((filters, settings_in_effect)) 112 113 @BluetoothBaseTest.bt_test_wrap 114 @test_tracker_info(uuid='92e11460-1877-4dd1-998b-8f78354dd776') 115 def test_filter_combo_1(self): 116 """Test a combination scan filter and advertisement 117 118 Test that an advertisement is found and matches corresponding 119 settings. 120 121 Steps: 122 1. Create a advertise data object 123 2. Create a advertise settings object. 124 3. Create a advertise callback object. 125 4. Start an LE advertising using the objects created in steps 1-3. 126 5. Find the onSuccess advertisement event. 127 128 Expected Result: 129 Advertisement is successfully advertising. 130 131 Returns: 132 Pass if True 133 Fail if False 134 135 TAGS: LE, Advertising, Filtering, Scanning 136 Priority: 2 137 """ 138 filters = { 139 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 140 'service_data_uuid': self.service_uuid_1, 141 'manufacturer_specific_data': self.manu_sepecific_data_small, 142 'include_tx_power_level': True, 143 'include_device_name': False, 144 'service_data': [1] 145 } 146 settings_in_effect = { 147 'mode': ble_advertise_settings_modes['low_latency'] 148 } 149 return self._magic((filters, settings_in_effect)) 150 151 @BluetoothBaseTest.bt_test_wrap 152 @test_tracker_info(uuid='9cdb7ad3-9f1e-4cbc-ae3f-af27d9833ae3') 153 def test_filter_combo_2(self): 154 """Test a combination scan filter and advertisement 155 156 Test that an advertisement is found and matches corresponding 157 settings. 158 159 Steps: 160 1. Create a advertise data object 161 2. Create a advertise settings object. 162 3. Create a advertise callback object. 163 4. Start an LE advertising using the objects created in steps 1-3. 164 5. Find the onSuccess advertisement event. 165 166 Expected Result: 167 Advertisement is successfully advertising. 168 169 Returns: 170 Pass if True 171 Fail if False 172 173 TAGS: LE, Advertising, Filtering, Scanning 174 Priority: 2 175 """ 176 filters = { 177 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 178 'service_data_uuid': self.service_uuid_1, 179 'manufacturer_specific_data': self.manu_sepecific_data_small, 180 'include_tx_power_level': True, 181 'include_device_name': False, 182 'service_data': self.service_data_small_2 183 } 184 settings_in_effect = { 185 'mode': ble_advertise_settings_modes['low_latency'] 186 } 187 return self._magic((filters, settings_in_effect)) 188 189 @BluetoothBaseTest.bt_test_wrap 190 @test_tracker_info(uuid='ae06ece8-28ae-4c2f-a768-d0e1e60cc253') 191 def test_filter_combo_3(self): 192 """Test a combination scan filter and advertisement 193 194 Test that an advertisement is found and matches corresponding 195 settings. 196 197 Steps: 198 1. Create a advertise data object 199 2. Create a advertise settings object. 200 3. Create a advertise callback object. 201 4. Start an LE advertising using the objects created in steps 1-3. 202 5. Find the onSuccess advertisement event. 203 204 Expected Result: 205 Advertisement is successfully advertising. 206 207 Returns: 208 Pass if True 209 Fail if False 210 211 TAGS: LE, Advertising, Filtering, Scanning 212 Priority: 2 213 """ 214 filters = { 215 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 216 'service_data_uuid': self.service_uuid_1, 217 'manufacturer_specific_data': self.manu_sepecific_data_small, 218 'include_tx_power_level': True, 219 'include_device_name': False, 220 'service_data': self.service_data_medium 221 } 222 settings_in_effect = { 223 'mode': ble_advertise_settings_modes['low_latency'] 224 } 225 return self._magic((filters, settings_in_effect)) 226 227 @BluetoothBaseTest.bt_test_wrap 228 @test_tracker_info(uuid='7a7c40fb-1398-4659-af46-ba01ca23ba7f') 229 def test_filter_combo_4(self): 230 """Test a combination scan filter and advertisement 231 232 Test that an advertisement is found and matches corresponding 233 settings. 234 235 Steps: 236 1. Create a advertise data object 237 2. Create a advertise settings object. 238 3. Create a advertise callback object. 239 4. Start an LE advertising using the objects created in steps 1-3. 240 5. Find the onSuccess advertisement event. 241 242 Expected Result: 243 Advertisement is successfully advertising. 244 245 Returns: 246 Pass if True 247 Fail if False 248 249 TAGS: LE, Advertising, Filtering, Scanning 250 Priority: 2 251 """ 252 filters = { 253 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 254 'service_data_uuid': self.service_uuid_1, 255 'manufacturer_specific_data': self.manu_sepecific_data_small, 256 'include_tx_power_level': True, 257 'include_device_name': False, 258 'service_data': [1] 259 } 260 settings_in_effect = { 261 'mode': ble_advertise_settings_modes['low_latency'] 262 } 263 return self._magic((filters, settings_in_effect)) 264 265 @BluetoothBaseTest.bt_test_wrap 266 @test_tracker_info(uuid='85cab0b7-4ba2-408c-b78b-c45d0cad1d1e') 267 def test_filter_combo_5(self): 268 """Test a combination scan filter and advertisement 269 270 Test that an advertisement is found and matches corresponding 271 settings. 272 273 Steps: 274 1. Create a advertise data object 275 2. Create a advertise settings object. 276 3. Create a advertise callback object. 277 4. Start an LE advertising using the objects created in steps 1-3. 278 5. Find the onSuccess advertisement event. 279 280 Expected Result: 281 Advertisement is successfully advertising. 282 283 Returns: 284 Pass if True 285 Fail if False 286 287 TAGS: LE, Advertising, Filtering, Scanning 288 Priority: 2 289 """ 290 filters = { 291 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 292 'service_data_uuid': self.service_uuid_1, 293 'manufacturer_specific_data': self.manu_sepecific_data_small, 294 'include_tx_power_level': True, 295 'include_device_name': False, 296 'service_data': self.service_data_small_2 297 } 298 settings_in_effect = { 299 'mode': ble_advertise_settings_modes['low_latency'] 300 } 301 return self._magic((filters, settings_in_effect)) 302 303 @BluetoothBaseTest.bt_test_wrap 304 @test_tracker_info(uuid='31e7a496-6626-4d73-8337-b250f7386ab6') 305 def test_filter_combo_6(self): 306 """Test a combination scan filter and advertisement 307 308 Test that an advertisement is found and matches corresponding 309 settings. 310 311 Steps: 312 1. Create a advertise data object 313 2. Create a advertise settings object. 314 3. Create a advertise callback object. 315 4. Start an LE advertising using the objects created in steps 1-3. 316 5. Find the onSuccess advertisement event. 317 318 Expected Result: 319 Advertisement is successfully advertising. 320 321 Returns: 322 Pass if True 323 Fail if False 324 325 TAGS: LE, Advertising, Filtering, Scanning 326 Priority: 2 327 """ 328 filters = { 329 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 330 'service_data_uuid': self.service_uuid_1, 331 'manufacturer_specific_data': self.manu_sepecific_data_small, 332 'include_tx_power_level': True, 333 'include_device_name': False, 334 'service_data': self.service_data_medium 335 } 336 settings_in_effect = { 337 'mode': ble_advertise_settings_modes['low_latency'] 338 } 339 return self._magic((filters, settings_in_effect)) 340 341 @BluetoothBaseTest.bt_test_wrap 342 @test_tracker_info(uuid='465f5426-1157-4a6f-8c33-a266ee7439bc') 343 def test_filter_combo_7(self): 344 """Test a combination scan filter and advertisement 345 346 Test that an advertisement is found and matches corresponding 347 settings. 348 349 Steps: 350 1. Create a advertise data object 351 2. Create a advertise settings object. 352 3. Create a advertise callback object. 353 4. Start an LE advertising using the objects created in steps 1-3. 354 5. Find the onSuccess advertisement event. 355 356 Expected Result: 357 Advertisement is successfully advertising. 358 359 Returns: 360 Pass if True 361 Fail if False 362 363 TAGS: LE, Advertising, Filtering, Scanning 364 Priority: 2 365 """ 366 filters = { 367 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 368 'service_data_uuid': self.service_uuid_1, 369 'manufacturer_specific_data': self.manu_sepecific_data_small, 370 'include_tx_power_level': True, 371 'include_device_name': False, 372 'service_data': [1] 373 } 374 settings_in_effect = { 375 'mode': ble_advertise_settings_modes['low_latency'] 376 } 377 return self._magic((filters, settings_in_effect)) 378 379 @BluetoothBaseTest.bt_test_wrap 380 @test_tracker_info(uuid='77552584-74c7-4a1b-a98e-8863e91f4e74') 381 def test_filter_combo_8(self): 382 """Test a combination scan filter and advertisement 383 384 Test that an advertisement is found and matches corresponding 385 settings. 386 387 Steps: 388 1. Create a advertise data object 389 2. Create a advertise settings object. 390 3. Create a advertise callback object. 391 4. Start an LE advertising using the objects created in steps 1-3. 392 5. Find the onSuccess advertisement event. 393 394 Expected Result: 395 Advertisement is successfully advertising. 396 397 Returns: 398 Pass if True 399 Fail if False 400 401 TAGS: LE, Advertising, Filtering, Scanning 402 Priority: 2 403 """ 404 filters = { 405 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 406 'service_data_uuid': self.service_uuid_1, 407 'manufacturer_specific_data': self.manu_sepecific_data_small, 408 'include_tx_power_level': True, 409 'include_device_name': False, 410 'service_data': self.service_data_small_2 411 } 412 settings_in_effect = { 413 'mode': ble_advertise_settings_modes['low_latency'] 414 } 415 return self._magic((filters, settings_in_effect)) 416 417 @BluetoothBaseTest.bt_test_wrap 418 @test_tracker_info(uuid='fb2b5f08-53cd-400b-98a0-bbd96093e466') 419 def test_filter_combo_9(self): 420 """Test a combination scan filter and advertisement 421 422 Test that an advertisement is found and matches corresponding 423 settings. 424 425 Steps: 426 1. Create a advertise data object 427 2. Create a advertise settings object. 428 3. Create a advertise callback object. 429 4. Start an LE advertising using the objects created in steps 1-3. 430 5. Find the onSuccess advertisement event. 431 432 Expected Result: 433 Advertisement is successfully advertising. 434 435 Returns: 436 Pass if True 437 Fail if False 438 439 TAGS: LE, Advertising, Filtering, Scanning 440 Priority: 2 441 """ 442 filters = { 443 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 444 'service_data_uuid': self.service_uuid_1, 445 'manufacturer_specific_data': [1, 2], 446 'include_tx_power_level': True, 447 'include_device_name': False, 448 'service_data': self.service_data_medium 449 } 450 settings_in_effect = { 451 'mode': ble_advertise_settings_modes['low_latency'] 452 } 453 return self._magic((filters, settings_in_effect)) 454 455 @BluetoothBaseTest.bt_test_wrap 456 @test_tracker_info(uuid='edacb609-9508-4394-9c94-9ed13a4205b5') 457 def test_filter_combo_10(self): 458 """Test a combination scan filter and advertisement 459 460 Test that an advertisement is found and matches corresponding 461 settings. 462 463 Steps: 464 1. Create a advertise data object 465 2. Create a advertise settings object. 466 3. Create a advertise callback object. 467 4. Start an LE advertising using the objects created in steps 1-3. 468 5. Find the onSuccess advertisement event. 469 470 Expected Result: 471 Advertisement is successfully advertising. 472 473 Returns: 474 Pass if True 475 Fail if False 476 477 TAGS: LE, Advertising, Filtering, Scanning 478 Priority: 2 479 """ 480 filters = { 481 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 482 'service_data_uuid': self.service_uuid_1, 483 'manufacturer_specific_data': [1, 2], 484 'include_tx_power_level': True, 485 'include_device_name': False, 486 'service_data': [1] 487 } 488 settings_in_effect = { 489 'mode': ble_advertise_settings_modes['low_latency'] 490 } 491 return self._magic((filters, settings_in_effect)) 492 493 @BluetoothBaseTest.bt_test_wrap 494 @test_tracker_info(uuid='73a86198-3213-43c5-b083-0a37089b8e44') 495 def test_filter_combo_11(self): 496 """Test a combination scan filter and advertisement 497 498 Test that an advertisement is found and matches corresponding 499 settings. 500 501 Steps: 502 1. Create a advertise data object 503 2. Create a advertise settings object. 504 3. Create a advertise callback object. 505 4. Start an LE advertising using the objects created in steps 1-3. 506 5. Find the onSuccess advertisement event. 507 508 Expected Result: 509 Advertisement is successfully advertising. 510 511 Returns: 512 Pass if True 513 Fail if False 514 515 TAGS: LE, Advertising, Filtering, Scanning 516 Priority: 2 517 """ 518 filters = { 519 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 520 'service_data_uuid': self.service_uuid_1, 521 'manufacturer_specific_data': [1, 2], 522 'include_tx_power_level': True, 523 'include_device_name': False, 524 'service_data': self.service_data_small_2 525 } 526 settings_in_effect = { 527 'mode': ble_advertise_settings_modes['low_latency'] 528 } 529 return self._magic((filters, settings_in_effect)) 530 531 @BluetoothBaseTest.bt_test_wrap 532 @test_tracker_info(uuid='9ca92075-d22b-4e82-9e7b-495060f3af45') 533 def test_filter_combo_12(self): 534 """Test a combination scan filter and advertisement 535 536 Test that an advertisement is found and matches corresponding 537 settings. 538 539 Steps: 540 1. Create a advertise data object 541 2. Create a advertise settings object. 542 3. Create a advertise callback object. 543 4. Start an LE advertising using the objects created in steps 1-3. 544 5. Find the onSuccess advertisement event. 545 546 Expected Result: 547 Advertisement is successfully advertising. 548 549 Returns: 550 Pass if True 551 Fail if False 552 553 TAGS: LE, Advertising, Filtering, Scanning 554 Priority: 2 555 """ 556 filters = { 557 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 558 'service_data_uuid': self.service_uuid_1, 559 'manufacturer_specific_data': [1, 2], 560 'include_tx_power_level': True, 561 'include_device_name': False, 562 'service_data': self.service_data_medium 563 } 564 settings_in_effect = { 565 'mode': ble_advertise_settings_modes['low_latency'] 566 } 567 return self._magic((filters, settings_in_effect)) 568 569 @BluetoothBaseTest.bt_test_wrap 570 @test_tracker_info(uuid='a0689f97-c616-49a5-b690-00b6193ac822') 571 def test_filter_combo_13(self): 572 """Test a combination scan filter and advertisement 573 574 Test that an advertisement is found and matches corresponding 575 settings. 576 577 Steps: 578 1. Create a advertise data object 579 2. Create a advertise settings object. 580 3. Create a advertise callback object. 581 4. Start an LE advertising using the objects created in steps 1-3. 582 5. Find the onSuccess advertisement event. 583 584 Expected Result: 585 Advertisement is successfully advertising. 586 587 Returns: 588 Pass if True 589 Fail if False 590 591 TAGS: LE, Advertising, Filtering, Scanning 592 Priority: 2 593 """ 594 filters = { 595 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 596 'service_data_uuid': self.service_uuid_1, 597 'manufacturer_specific_data': [1, 2], 598 'include_tx_power_level': True, 599 'include_device_name': False, 600 'service_data': [1] 601 } 602 settings_in_effect = { 603 'mode': ble_advertise_settings_modes['low_latency'] 604 } 605 return self._magic((filters, settings_in_effect)) 606 607 @BluetoothBaseTest.bt_test_wrap 608 @test_tracker_info(uuid='dbdf3a68-c79a-43a6-89a7-5269a1fad9a5') 609 def test_filter_combo_14(self): 610 """Test a combination scan filter and advertisement 611 612 Test that an advertisement is found and matches corresponding 613 settings. 614 615 Steps: 616 1. Create a advertise data object 617 2. Create a advertise settings object. 618 3. Create a advertise callback object. 619 4. Start an LE advertising using the objects created in steps 1-3. 620 5. Find the onSuccess advertisement event. 621 622 Expected Result: 623 Advertisement is successfully advertising. 624 625 Returns: 626 Pass if True 627 Fail if False 628 629 TAGS: LE, Advertising, Filtering, Scanning 630 Priority: 2 631 """ 632 filters = { 633 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 634 'service_data_uuid': self.service_uuid_1, 635 'manufacturer_specific_data': [1, 2], 636 'include_tx_power_level': True, 637 'include_device_name': False, 638 'service_data': self.service_data_small_2 639 } 640 settings_in_effect = { 641 'mode': ble_advertise_settings_modes['low_latency'] 642 } 643 return self._magic((filters, settings_in_effect)) 644 645 @BluetoothBaseTest.bt_test_wrap 646 @test_tracker_info(uuid='93e45b16-dff0-4067-9c14-7adf32a0f484') 647 def test_filter_combo_15(self): 648 """Test a combination scan filter and advertisement 649 650 Test that an advertisement is found and matches corresponding 651 settings. 652 653 Steps: 654 1. Create a advertise data object 655 2. Create a advertise settings object. 656 3. Create a advertise callback object. 657 4. Start an LE advertising using the objects created in steps 1-3. 658 5. Find the onSuccess advertisement event. 659 660 Expected Result: 661 Advertisement is successfully advertising. 662 663 Returns: 664 Pass if True 665 Fail if False 666 667 TAGS: LE, Advertising, Filtering, Scanning 668 Priority: 2 669 """ 670 filters = { 671 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 672 'service_data_uuid': self.service_uuid_1, 673 'manufacturer_specific_data': [1, 2], 674 'include_tx_power_level': True, 675 'include_device_name': False, 676 'service_data': self.service_data_medium 677 } 678 settings_in_effect = { 679 'mode': ble_advertise_settings_modes['low_latency'] 680 } 681 return self._magic((filters, settings_in_effect)) 682 683 @BluetoothBaseTest.bt_test_wrap 684 @test_tracker_info(uuid='dace8a1c-e71a-4668-9e8f-b1cb19071087') 685 def test_filter_combo_16(self): 686 """Test a combination scan filter and advertisement 687 688 Test that an advertisement is found and matches corresponding 689 settings. 690 691 Steps: 692 1. Create a advertise data object 693 2. Create a advertise settings object. 694 3. Create a advertise callback object. 695 4. Start an LE advertising using the objects created in steps 1-3. 696 5. Find the onSuccess advertisement event. 697 698 Expected Result: 699 Advertisement is successfully advertising. 700 701 Returns: 702 Pass if True 703 Fail if False 704 705 TAGS: LE, Advertising, Filtering, Scanning 706 Priority: 2 707 """ 708 filters = { 709 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 710 'service_data_uuid': self.service_uuid_1, 711 'manufacturer_specific_data': [1, 2], 712 'include_tx_power_level': True, 713 'include_device_name': False, 714 'service_data': [1] 715 } 716 settings_in_effect = { 717 'mode': ble_advertise_settings_modes['low_latency'] 718 } 719 return self._magic((filters, settings_in_effect)) 720 721 @BluetoothBaseTest.bt_test_wrap 722 @test_tracker_info(uuid='192528e2-4a67-4984-9c68-f9d716470d5b') 723 def test_filter_combo_17(self): 724 """Test a combination scan filter and advertisement 725 726 Test that an advertisement is found and matches corresponding 727 settings. 728 729 Steps: 730 1. Create a advertise data object 731 2. Create a advertise settings object. 732 3. Create a advertise callback object. 733 4. Start an LE advertising using the objects created in steps 1-3. 734 5. Find the onSuccess advertisement event. 735 736 Expected Result: 737 Advertisement is successfully advertising. 738 739 Returns: 740 Pass if True 741 Fail if False 742 743 TAGS: LE, Advertising, Filtering, Scanning 744 Priority: 2 745 """ 746 filters = { 747 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 748 'service_data_uuid': self.service_uuid_1, 749 'manufacturer_specific_data': [1, 2], 750 'include_tx_power_level': True, 751 'include_device_name': False, 752 'service_data': self.service_data_small_2 753 } 754 settings_in_effect = { 755 'mode': ble_advertise_settings_modes['low_latency'] 756 } 757 return self._magic((filters, settings_in_effect)) 758 759 @BluetoothBaseTest.bt_test_wrap 760 @test_tracker_info(uuid='2a9ffd92-f02d-45bc-81f5-f398e2572f14') 761 def test_filter_combo_18(self): 762 """Test a combination scan filter and advertisement 763 764 Test that an advertisement is found and matches corresponding 765 settings. 766 767 Steps: 768 1. Create a advertise data object 769 2. Create a advertise settings object. 770 3. Create a advertise callback object. 771 4. Start an LE advertising using the objects created in steps 1-3. 772 5. Find the onSuccess advertisement event. 773 774 Expected Result: 775 Advertisement is successfully advertising. 776 777 Returns: 778 Pass if True 779 Fail if False 780 781 TAGS: LE, Advertising, Filtering, Scanning 782 Priority: 2 783 """ 784 filters = { 785 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 786 'service_data_uuid': self.service_uuid_1, 787 'manufacturer_specific_data': self.manu_specific_data_small_3, 788 'include_tx_power_level': True, 789 'include_device_name': False, 790 'service_data': self.service_data_medium 791 } 792 settings_in_effect = { 793 'mode': ble_advertise_settings_modes['low_latency'] 794 } 795 return self._magic((filters, settings_in_effect)) 796 797 @BluetoothBaseTest.bt_test_wrap 798 @test_tracker_info(uuid='ab98e5e5-ac35-4ebe-8b37-780b0ab56b82') 799 def test_filter_combo_19(self): 800 """Test a combination scan filter and advertisement 801 802 Test that an advertisement is found and matches corresponding 803 settings. 804 805 Steps: 806 1. Create a advertise data object 807 2. Create a advertise settings object. 808 3. Create a advertise callback object. 809 4. Start an LE advertising using the objects created in steps 1-3. 810 5. Find the onSuccess advertisement event. 811 812 Expected Result: 813 Advertisement is successfully advertising. 814 815 Returns: 816 Pass if True 817 Fail if False 818 819 TAGS: LE, Advertising, Filtering, Scanning 820 Priority: 2 821 """ 822 filters = { 823 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 824 'service_data_uuid': self.service_uuid_1, 825 'manufacturer_specific_data': self.manu_specific_data_small_3, 826 'include_tx_power_level': True, 827 'include_device_name': False, 828 'service_data': [1] 829 } 830 settings_in_effect = { 831 'mode': ble_advertise_settings_modes['low_latency'] 832 } 833 return self._magic((filters, settings_in_effect)) 834 835 @BluetoothBaseTest.bt_test_wrap 836 @test_tracker_info(uuid='0b4ca831-dbf6-44da-84b6-9425b7f50577') 837 def test_filter_combo_20(self): 838 """Test a combination scan filter and advertisement 839 840 Test that an advertisement is found and matches corresponding 841 settings. 842 843 Steps: 844 1. Create a advertise data object 845 2. Create a advertise settings object. 846 3. Create a advertise callback object. 847 4. Start an LE advertising using the objects created in steps 1-3. 848 5. Find the onSuccess advertisement event. 849 850 Expected Result: 851 Advertisement is successfully advertising. 852 853 Returns: 854 Pass if True 855 Fail if False 856 857 TAGS: LE, Advertising, Filtering, Scanning 858 Priority: 2 859 """ 860 filters = { 861 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 862 'service_data_uuid': self.service_uuid_1, 863 'manufacturer_specific_data': self.manu_specific_data_small_3, 864 'include_tx_power_level': True, 865 'include_device_name': False, 866 'service_data': self.service_data_small_2 867 } 868 settings_in_effect = { 869 'mode': ble_advertise_settings_modes['low_latency'] 870 } 871 return self._magic((filters, settings_in_effect)) 872 873 @BluetoothBaseTest.bt_test_wrap 874 @test_tracker_info(uuid='f615206a-16bf-4481-be31-7b2a28d8009b') 875 def test_filter_combo_21(self): 876 """Test a combination scan filter and advertisement 877 878 Test that an advertisement is found and matches corresponding 879 settings. 880 881 Steps: 882 1. Create a advertise data object 883 2. Create a advertise settings object. 884 3. Create a advertise callback object. 885 4. Start an LE advertising using the objects created in steps 1-3. 886 5. Find the onSuccess advertisement event. 887 888 Expected Result: 889 Advertisement is successfully advertising. 890 891 Returns: 892 Pass if True 893 Fail if False 894 895 TAGS: LE, Advertising, Filtering, Scanning 896 Priority: 2 897 """ 898 filters = { 899 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 900 'service_data_uuid': self.service_uuid_1, 901 'manufacturer_specific_data': self.manu_specific_data_small_3, 902 'include_tx_power_level': True, 903 'include_device_name': False, 904 'service_data': self.service_data_medium 905 } 906 settings_in_effect = { 907 'mode': ble_advertise_settings_modes['low_latency'] 908 } 909 return self._magic((filters, settings_in_effect)) 910 911 @BluetoothBaseTest.bt_test_wrap 912 @test_tracker_info(uuid='e9a0e69e-bc5c-479e-a716-cbb88180e719') 913 def test_filter_combo_22(self): 914 """Test a combination scan filter and advertisement 915 916 Test that an advertisement is found and matches corresponding 917 settings. 918 919 Steps: 920 1. Create a advertise data object 921 2. Create a advertise settings object. 922 3. Create a advertise callback object. 923 4. Start an LE advertising using the objects created in steps 1-3. 924 5. Find the onSuccess advertisement event. 925 926 Expected Result: 927 Advertisement is successfully advertising. 928 929 Returns: 930 Pass if True 931 Fail if False 932 933 TAGS: LE, Advertising, Filtering, Scanning 934 Priority: 2 935 """ 936 filters = { 937 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 938 'service_data_uuid': self.service_uuid_1, 939 'manufacturer_specific_data': self.manu_specific_data_small_3, 940 'include_tx_power_level': True, 941 'include_device_name': False, 942 'service_data': [1] 943 } 944 settings_in_effect = { 945 'mode': ble_advertise_settings_modes['low_latency'] 946 } 947 return self._magic((filters, settings_in_effect)) 948 949 @BluetoothBaseTest.bt_test_wrap 950 @test_tracker_info(uuid='16c2949d-e7c8-4fa1-a781-3ced2c902c4c') 951 def test_filter_combo_23(self): 952 """Test a combination scan filter and advertisement 953 954 Test that an advertisement is found and matches corresponding 955 settings. 956 957 Steps: 958 1. Create a advertise data object 959 2. Create a advertise settings object. 960 3. Create a advertise callback object. 961 4. Start an LE advertising using the objects created in steps 1-3. 962 5. Find the onSuccess advertisement event. 963 964 Expected Result: 965 Advertisement is successfully advertising. 966 967 Returns: 968 Pass if True 969 Fail if False 970 971 TAGS: LE, Advertising, Filtering, Scanning 972 Priority: 2 973 """ 974 filters = { 975 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 976 'service_data_uuid': self.service_uuid_1, 977 'manufacturer_specific_data': self.manu_specific_data_small_3, 978 'include_tx_power_level': True, 979 'include_device_name': False, 980 'service_data': self.service_data_small_2 981 } 982 settings_in_effect = { 983 'mode': ble_advertise_settings_modes['low_latency'] 984 } 985 return self._magic((filters, settings_in_effect)) 986 987 @BluetoothBaseTest.bt_test_wrap 988 @test_tracker_info(uuid='ffd7a3a8-b9b5-4bf0-84c1-ed3823b8a52c') 989 def test_filter_combo_24(self): 990 """Test a combination scan filter and advertisement 991 992 Test that an advertisement is found and matches corresponding 993 settings. 994 995 Steps: 996 1. Create a advertise data object 997 2. Create a advertise settings object. 998 3. Create a advertise callback object. 999 4. Start an LE advertising using the objects created in steps 1-3. 1000 5. Find the onSuccess advertisement event. 1001 1002 Expected Result: 1003 Advertisement is successfully advertising. 1004 1005 Returns: 1006 Pass if True 1007 Fail if False 1008 1009 TAGS: LE, Advertising, Filtering, Scanning 1010 Priority: 2 1011 """ 1012 filters = { 1013 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1014 'service_data_uuid': self.service_uuid_1, 1015 'manufacturer_specific_data': self.manu_specific_data_small_3, 1016 'include_tx_power_level': True, 1017 'include_device_name': False, 1018 'service_data': self.service_data_medium 1019 } 1020 settings_in_effect = { 1021 'mode': ble_advertise_settings_modes['low_latency'] 1022 } 1023 return self._magic((filters, settings_in_effect)) 1024 1025 @BluetoothBaseTest.bt_test_wrap 1026 @test_tracker_info(uuid='457b5dee-1034-4973-88c1-bde0a6ef700c') 1027 def test_filter_combo_25(self): 1028 """Test a combination scan filter and advertisement 1029 1030 Test that an advertisement is found and matches corresponding 1031 settings. 1032 1033 Steps: 1034 1. Create a advertise data object 1035 2. Create a advertise settings object. 1036 3. Create a advertise callback object. 1037 4. Start an LE advertising using the objects created in steps 1-3. 1038 5. Find the onSuccess advertisement event. 1039 1040 Expected Result: 1041 Advertisement is successfully advertising. 1042 1043 Returns: 1044 Pass if True 1045 Fail if False 1046 1047 TAGS: LE, Advertising, Filtering, Scanning 1048 Priority: 2 1049 """ 1050 filters = { 1051 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1052 'service_data_uuid': self.service_uuid_1, 1053 'manufacturer_specific_data': self.manu_specific_data_small_3, 1054 'include_tx_power_level': True, 1055 'include_device_name': False, 1056 'service_data': [1] 1057 } 1058 settings_in_effect = { 1059 'mode': ble_advertise_settings_modes['low_latency'] 1060 } 1061 return self._magic((filters, settings_in_effect)) 1062 1063 @BluetoothBaseTest.bt_test_wrap 1064 @test_tracker_info(uuid='b848e90c-37ed-4ecb-8c49-601f3b66a4cc') 1065 def test_filter_combo_26(self): 1066 """Test a combination scan filter and advertisement 1067 1068 Test that an advertisement is found and matches corresponding 1069 settings. 1070 1071 Steps: 1072 1. Create a advertise data object 1073 2. Create a advertise settings object. 1074 3. Create a advertise callback object. 1075 4. Start an LE advertising using the objects created in steps 1-3. 1076 5. Find the onSuccess advertisement event. 1077 1078 Expected Result: 1079 Advertisement is successfully advertising. 1080 1081 Returns: 1082 Pass if True 1083 Fail if False 1084 1085 TAGS: LE, Advertising, Filtering, Scanning 1086 Priority: 2 1087 """ 1088 filters = { 1089 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1090 'service_data_uuid': self.service_uuid_1, 1091 'manufacturer_specific_data': self.manu_specific_data_small_3, 1092 'include_tx_power_level': True, 1093 'include_device_name': False, 1094 'service_data': self.service_data_small_2 1095 } 1096 settings_in_effect = { 1097 'mode': ble_advertise_settings_modes['low_latency'] 1098 } 1099 return self._magic((filters, settings_in_effect)) 1100 1101 @BluetoothBaseTest.bt_test_wrap 1102 @test_tracker_info(uuid='c03df405-b7aa-42cf-b282-adf5c228e513') 1103 def test_filter_combo_27(self): 1104 """Test a combination scan filter and advertisement 1105 1106 Test that an advertisement is found and matches corresponding 1107 settings. 1108 1109 Steps: 1110 1. Create a advertise data object 1111 2. Create a advertise settings object. 1112 3. Create a advertise callback object. 1113 4. Start an LE advertising using the objects created in steps 1-3. 1114 5. Find the onSuccess advertisement event. 1115 1116 Expected Result: 1117 Advertisement is successfully advertising. 1118 1119 Returns: 1120 Pass if True 1121 Fail if False 1122 1123 TAGS: LE, Advertising, Filtering, Scanning 1124 Priority: 2 1125 """ 1126 filters = { 1127 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1128 'service_data_uuid': self.service_uuid_1, 1129 'manufacturer_specific_data': self.manu_sepecific_data_small, 1130 'include_tx_power_level': False, 1131 'include_device_name': False, 1132 'service_data': self.service_data_medium 1133 } 1134 settings_in_effect = { 1135 'mode': ble_advertise_settings_modes['low_latency'] 1136 } 1137 return self._magic((filters, settings_in_effect)) 1138 1139 @BluetoothBaseTest.bt_test_wrap 1140 @test_tracker_info(uuid='83de681d-89fb-45e1-b8e0-0488e43b3248') 1141 def test_filter_combo_28(self): 1142 """Test a combination scan filter and advertisement 1143 1144 Test that an advertisement is found and matches corresponding 1145 settings. 1146 1147 Steps: 1148 1. Create a advertise data object 1149 2. Create a advertise settings object. 1150 3. Create a advertise callback object. 1151 4. Start an LE advertising using the objects created in steps 1-3. 1152 5. Find the onSuccess advertisement event. 1153 1154 Expected Result: 1155 Advertisement is successfully advertising. 1156 1157 Returns: 1158 Pass if True 1159 Fail if False 1160 1161 TAGS: LE, Advertising, Filtering, Scanning 1162 Priority: 2 1163 """ 1164 filters = { 1165 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1166 'service_data_uuid': self.service_uuid_1, 1167 'manufacturer_specific_data': self.manu_sepecific_data_small, 1168 'include_tx_power_level': False, 1169 'include_device_name': False, 1170 'service_data': [1] 1171 } 1172 settings_in_effect = { 1173 'mode': ble_advertise_settings_modes['low_latency'] 1174 } 1175 return self._magic((filters, settings_in_effect)) 1176 1177 @BluetoothBaseTest.bt_test_wrap 1178 @test_tracker_info(uuid='712bf6b2-0cdc-4782-b593-17a846fd1c65') 1179 def test_filter_combo_29(self): 1180 """Test a combination scan filter and advertisement 1181 1182 Test that an advertisement is found and matches corresponding 1183 settings. 1184 1185 Steps: 1186 1. Create a advertise data object 1187 2. Create a advertise settings object. 1188 3. Create a advertise callback object. 1189 4. Start an LE advertising using the objects created in steps 1-3. 1190 5. Find the onSuccess advertisement event. 1191 1192 Expected Result: 1193 Advertisement is successfully advertising. 1194 1195 Returns: 1196 Pass if True 1197 Fail if False 1198 1199 TAGS: LE, Advertising, Filtering, Scanning 1200 Priority: 2 1201 """ 1202 filters = { 1203 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1204 'service_data_uuid': self.service_uuid_1, 1205 'manufacturer_specific_data': self.manu_sepecific_data_small, 1206 'include_tx_power_level': False, 1207 'include_device_name': False, 1208 'service_data': self.service_data_small_2 1209 } 1210 settings_in_effect = { 1211 'mode': ble_advertise_settings_modes['low_latency'] 1212 } 1213 return self._magic((filters, settings_in_effect)) 1214 1215 @BluetoothBaseTest.bt_test_wrap 1216 @test_tracker_info(uuid='725c37e5-046b-4234-a7eb-ad8836531a74') 1217 def test_filter_combo_30(self): 1218 """Test a combination scan filter and advertisement 1219 1220 Test that an advertisement is found and matches corresponding 1221 settings. 1222 1223 Steps: 1224 1. Create a advertise data object 1225 2. Create a advertise settings object. 1226 3. Create a advertise callback object. 1227 4. Start an LE advertising using the objects created in steps 1-3. 1228 5. Find the onSuccess advertisement event. 1229 1230 Expected Result: 1231 Advertisement is successfully advertising. 1232 1233 Returns: 1234 Pass if True 1235 Fail if False 1236 1237 TAGS: LE, Advertising, Filtering, Scanning 1238 Priority: 2 1239 """ 1240 filters = { 1241 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1242 'service_data_uuid': self.service_uuid_1, 1243 'manufacturer_specific_data': self.manu_sepecific_data_small, 1244 'include_tx_power_level': False, 1245 'include_device_name': False, 1246 'service_data': self.service_data_medium 1247 } 1248 settings_in_effect = { 1249 'mode': ble_advertise_settings_modes['low_latency'] 1250 } 1251 return self._magic((filters, settings_in_effect)) 1252 1253 @BluetoothBaseTest.bt_test_wrap 1254 @test_tracker_info(uuid='665344f9-c246-4b08-aff6-73f7ff35431b') 1255 def test_filter_combo_31(self): 1256 """Test a combination scan filter and advertisement 1257 1258 Test that an advertisement is found and matches corresponding 1259 settings. 1260 1261 Steps: 1262 1. Create a advertise data object 1263 2. Create a advertise settings object. 1264 3. Create a advertise callback object. 1265 4. Start an LE advertising using the objects created in steps 1-3. 1266 5. Find the onSuccess advertisement event. 1267 1268 Expected Result: 1269 Advertisement is successfully advertising. 1270 1271 Returns: 1272 Pass if True 1273 Fail if False 1274 1275 TAGS: LE, Advertising, Filtering, Scanning 1276 Priority: 2 1277 """ 1278 filters = { 1279 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1280 'service_data_uuid': self.service_uuid_1, 1281 'manufacturer_specific_data': self.manu_sepecific_data_small, 1282 'include_tx_power_level': False, 1283 'include_device_name': False, 1284 'service_data': [1] 1285 } 1286 settings_in_effect = { 1287 'mode': ble_advertise_settings_modes['low_latency'] 1288 } 1289 return self._magic((filters, settings_in_effect)) 1290 1291 @BluetoothBaseTest.bt_test_wrap 1292 @test_tracker_info(uuid='6994ceff-fed8-42e4-a3cb-be6ed3a9a5c9') 1293 def test_filter_combo_32(self): 1294 """Test a combination scan filter and advertisement 1295 1296 Test that an advertisement is found and matches corresponding 1297 settings. 1298 1299 Steps: 1300 1. Create a advertise data object 1301 2. Create a advertise settings object. 1302 3. Create a advertise callback object. 1303 4. Start an LE advertising using the objects created in steps 1-3. 1304 5. Find the onSuccess advertisement event. 1305 1306 Expected Result: 1307 Advertisement is successfully advertising. 1308 1309 Returns: 1310 Pass if True 1311 Fail if False 1312 1313 TAGS: LE, Advertising, Filtering, Scanning 1314 Priority: 2 1315 """ 1316 filters = { 1317 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1318 'service_data_uuid': self.service_uuid_1, 1319 'manufacturer_specific_data': self.manu_sepecific_data_small, 1320 'include_tx_power_level': False, 1321 'include_device_name': False, 1322 'service_data': self.service_data_small_2 1323 } 1324 settings_in_effect = { 1325 'mode': ble_advertise_settings_modes['low_latency'] 1326 } 1327 return self._magic((filters, settings_in_effect)) 1328 1329 @BluetoothBaseTest.bt_test_wrap 1330 @test_tracker_info(uuid='2fb756c0-8b72-403a-a769-d22d31376037') 1331 def test_filter_combo_33(self): 1332 """Test a combination scan filter and advertisement 1333 1334 Test that an advertisement is found and matches corresponding 1335 settings. 1336 1337 Steps: 1338 1. Create a advertise data object 1339 2. Create a advertise settings object. 1340 3. Create a advertise callback object. 1341 4. Start an LE advertising using the objects created in steps 1-3. 1342 5. Find the onSuccess advertisement event. 1343 1344 Expected Result: 1345 Advertisement is successfully advertising. 1346 1347 Returns: 1348 Pass if True 1349 Fail if False 1350 1351 TAGS: LE, Advertising, Filtering, Scanning 1352 Priority: 2 1353 """ 1354 filters = { 1355 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1356 'service_data_uuid': self.service_uuid_1, 1357 'manufacturer_specific_data': self.manu_sepecific_data_small, 1358 'include_tx_power_level': False, 1359 'include_device_name': False, 1360 'service_data': self.service_data_medium 1361 } 1362 settings_in_effect = { 1363 'mode': ble_advertise_settings_modes['low_latency'] 1364 } 1365 return self._magic((filters, settings_in_effect)) 1366 1367 @BluetoothBaseTest.bt_test_wrap 1368 @test_tracker_info(uuid='146203bb-04cc-4b3d-b372-66e1b8da3e08') 1369 def test_filter_combo_34(self): 1370 """Test a combination scan filter and advertisement 1371 1372 Test that an advertisement is found and matches corresponding 1373 settings. 1374 1375 Steps: 1376 1. Create a advertise data object 1377 2. Create a advertise settings object. 1378 3. Create a advertise callback object. 1379 4. Start an LE advertising using the objects created in steps 1-3. 1380 5. Find the onSuccess advertisement event. 1381 1382 Expected Result: 1383 Advertisement is successfully advertising. 1384 1385 Returns: 1386 Pass if True 1387 Fail if False 1388 1389 TAGS: LE, Advertising, Filtering, Scanning 1390 Priority: 2 1391 """ 1392 filters = { 1393 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1394 'service_data_uuid': self.service_uuid_1, 1395 'manufacturer_specific_data': self.manu_sepecific_data_small, 1396 'include_tx_power_level': False, 1397 'include_device_name': False, 1398 'service_data': [1] 1399 } 1400 settings_in_effect = { 1401 'mode': ble_advertise_settings_modes['low_latency'] 1402 } 1403 return self._magic((filters, settings_in_effect)) 1404 1405 @BluetoothBaseTest.bt_test_wrap 1406 @test_tracker_info(uuid='1e123df5-db37-4e8d-ac1f-9399fe8487f9') 1407 def test_filter_combo_35(self): 1408 """Test a combination scan filter and advertisement 1409 1410 Test that an advertisement is found and matches corresponding 1411 settings. 1412 1413 Steps: 1414 1. Create a advertise data object 1415 2. Create a advertise settings object. 1416 3. Create a advertise callback object. 1417 4. Start an LE advertising using the objects created in steps 1-3. 1418 5. Find the onSuccess advertisement event. 1419 1420 Expected Result: 1421 Advertisement is successfully advertising. 1422 1423 Returns: 1424 Pass if True 1425 Fail if False 1426 1427 TAGS: LE, Advertising, Filtering, Scanning 1428 Priority: 2 1429 """ 1430 filters = { 1431 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1432 'service_data_uuid': self.service_uuid_1, 1433 'manufacturer_specific_data': self.manu_sepecific_data_small, 1434 'include_tx_power_level': False, 1435 'include_device_name': False, 1436 'service_data': self.service_data_small_2 1437 } 1438 settings_in_effect = { 1439 'mode': ble_advertise_settings_modes['low_latency'] 1440 } 1441 return self._magic((filters, settings_in_effect)) 1442 1443 @BluetoothBaseTest.bt_test_wrap 1444 @test_tracker_info(uuid='886f0978-a2df-4005-810b-5e2cc0c2a5a4') 1445 def test_filter_combo_36(self): 1446 """Test a combination scan filter and advertisement 1447 1448 Test that an advertisement is found and matches corresponding 1449 settings. 1450 1451 Steps: 1452 1. Create a advertise data object 1453 2. Create a advertise settings object. 1454 3. Create a advertise callback object. 1455 4. Start an LE advertising using the objects created in steps 1-3. 1456 5. Find the onSuccess advertisement event. 1457 1458 Expected Result: 1459 Advertisement is successfully advertising. 1460 1461 Returns: 1462 Pass if True 1463 Fail if False 1464 1465 TAGS: LE, Advertising, Filtering, Scanning 1466 Priority: 2 1467 """ 1468 filters = { 1469 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1470 'service_data_uuid': self.service_uuid_1, 1471 'manufacturer_specific_data': [1, 2], 1472 'include_tx_power_level': False, 1473 'include_device_name': False, 1474 'service_data': self.service_data_medium 1475 } 1476 settings_in_effect = { 1477 'mode': ble_advertise_settings_modes['low_latency'] 1478 } 1479 return self._magic((filters, settings_in_effect)) 1480 1481 @BluetoothBaseTest.bt_test_wrap 1482 @test_tracker_info(uuid='94f61b07-e90a-42e3-b97b-07afc73755e6') 1483 def test_filter_combo_37(self): 1484 """Test a combination scan filter and advertisement 1485 1486 Test that an advertisement is found and matches corresponding 1487 settings. 1488 1489 Steps: 1490 1. Create a advertise data object 1491 2. Create a advertise settings object. 1492 3. Create a advertise callback object. 1493 4. Start an LE advertising using the objects created in steps 1-3. 1494 5. Find the onSuccess advertisement event. 1495 1496 Expected Result: 1497 Advertisement is successfully advertising. 1498 1499 Returns: 1500 Pass if True 1501 Fail if False 1502 1503 TAGS: LE, Advertising, Filtering, Scanning 1504 Priority: 2 1505 """ 1506 filters = { 1507 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1508 'service_data_uuid': self.service_uuid_1, 1509 'manufacturer_specific_data': [1, 2], 1510 'include_tx_power_level': False, 1511 'include_device_name': False, 1512 'service_data': [1] 1513 } 1514 settings_in_effect = { 1515 'mode': ble_advertise_settings_modes['low_latency'] 1516 } 1517 return self._magic((filters, settings_in_effect)) 1518 1519 @BluetoothBaseTest.bt_test_wrap 1520 @test_tracker_info(uuid='1dbb67ed-2f9e-464d-8ba8-dd7ac668d765') 1521 def test_filter_combo_38(self): 1522 """Test a combination scan filter and advertisement 1523 1524 Test that an advertisement is found and matches corresponding 1525 settings. 1526 1527 Steps: 1528 1. Create a advertise data object 1529 2. Create a advertise settings object. 1530 3. Create a advertise callback object. 1531 4. Start an LE advertising using the objects created in steps 1-3. 1532 5. Find the onSuccess advertisement event. 1533 1534 Expected Result: 1535 Advertisement is successfully advertising. 1536 1537 Returns: 1538 Pass if True 1539 Fail if False 1540 1541 TAGS: LE, Advertising, Filtering, Scanning 1542 Priority: 2 1543 """ 1544 filters = { 1545 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1546 'service_data_uuid': self.service_uuid_1, 1547 'manufacturer_specific_data': [1, 2], 1548 'include_tx_power_level': False, 1549 'include_device_name': False, 1550 'service_data': self.service_data_small_2 1551 } 1552 settings_in_effect = { 1553 'mode': ble_advertise_settings_modes['low_latency'] 1554 } 1555 return self._magic((filters, settings_in_effect)) 1556 1557 @BluetoothBaseTest.bt_test_wrap 1558 @test_tracker_info(uuid='3a3e5aa9-a5cc-4e99-aeb4-b32357186e1d') 1559 def test_filter_combo_39(self): 1560 """Test a combination scan filter and advertisement 1561 1562 Test that an advertisement is found and matches corresponding 1563 settings. 1564 1565 Steps: 1566 1. Create a advertise data object 1567 2. Create a advertise settings object. 1568 3. Create a advertise callback object. 1569 4. Start an LE advertising using the objects created in steps 1-3. 1570 5. Find the onSuccess advertisement event. 1571 1572 Expected Result: 1573 Advertisement is successfully advertising. 1574 1575 Returns: 1576 Pass if True 1577 Fail if False 1578 1579 TAGS: LE, Advertising, Filtering, Scanning 1580 Priority: 2 1581 """ 1582 filters = { 1583 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1584 'service_data_uuid': self.service_uuid_1, 1585 'manufacturer_specific_data': [1, 2], 1586 'include_tx_power_level': False, 1587 'include_device_name': False, 1588 'service_data': self.service_data_medium 1589 } 1590 settings_in_effect = { 1591 'mode': ble_advertise_settings_modes['low_latency'] 1592 } 1593 return self._magic((filters, settings_in_effect)) 1594 1595 @BluetoothBaseTest.bt_test_wrap 1596 @test_tracker_info(uuid='2c51245a-7be3-4dfb-87c5-7c4530ab5908') 1597 def test_filter_combo_40(self): 1598 """Test a combination scan filter and advertisement 1599 1600 Test that an advertisement is found and matches corresponding 1601 settings. 1602 1603 Steps: 1604 1. Create a advertise data object 1605 2. Create a advertise settings object. 1606 3. Create a advertise callback object. 1607 4. Start an LE advertising using the objects created in steps 1-3. 1608 5. Find the onSuccess advertisement event. 1609 1610 Expected Result: 1611 Advertisement is successfully advertising. 1612 1613 Returns: 1614 Pass if True 1615 Fail if False 1616 1617 TAGS: LE, Advertising, Filtering, Scanning 1618 Priority: 2 1619 """ 1620 filters = { 1621 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1622 'service_data_uuid': self.service_uuid_1, 1623 'manufacturer_specific_data': [1, 2], 1624 'include_tx_power_level': False, 1625 'include_device_name': False, 1626 'service_data': [1] 1627 } 1628 settings_in_effect = { 1629 'mode': ble_advertise_settings_modes['low_latency'] 1630 } 1631 return self._magic((filters, settings_in_effect)) 1632 1633 @BluetoothBaseTest.bt_test_wrap 1634 @test_tracker_info(uuid='9d33bae5-0a5f-4d2c-96fc-fc1ec8107814') 1635 def test_filter_combo_41(self): 1636 """Test a combination scan filter and advertisement 1637 1638 Test that an advertisement is found and matches corresponding 1639 settings. 1640 1641 Steps: 1642 1. Create a advertise data object 1643 2. Create a advertise settings object. 1644 3. Create a advertise callback object. 1645 4. Start an LE advertising using the objects created in steps 1-3. 1646 5. Find the onSuccess advertisement event. 1647 1648 Expected Result: 1649 Advertisement is successfully advertising. 1650 1651 Returns: 1652 Pass if True 1653 Fail if False 1654 1655 TAGS: LE, Advertising, Filtering, Scanning 1656 Priority: 2 1657 """ 1658 filters = { 1659 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1660 'service_data_uuid': self.service_uuid_1, 1661 'manufacturer_specific_data': [1, 2], 1662 'include_tx_power_level': False, 1663 'include_device_name': False, 1664 'service_data': self.service_data_small_2 1665 } 1666 settings_in_effect = { 1667 'mode': ble_advertise_settings_modes['low_latency'] 1668 } 1669 return self._magic((filters, settings_in_effect)) 1670 1671 @BluetoothBaseTest.bt_test_wrap 1672 @test_tracker_info(uuid='05b5ee9e-9a64-4bf8-91ab-a7762358d25e') 1673 def test_filter_combo_42(self): 1674 """Test a combination scan filter and advertisement 1675 1676 Test that an advertisement is found and matches corresponding 1677 settings. 1678 1679 Steps: 1680 1. Create a advertise data object 1681 2. Create a advertise settings object. 1682 3. Create a advertise callback object. 1683 4. Start an LE advertising using the objects created in steps 1-3. 1684 5. Find the onSuccess advertisement event. 1685 1686 Expected Result: 1687 Advertisement is successfully advertising. 1688 1689 Returns: 1690 Pass if True 1691 Fail if False 1692 1693 TAGS: LE, Advertising, Filtering, Scanning 1694 Priority: 2 1695 """ 1696 filters = { 1697 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1698 'service_data_uuid': self.service_uuid_1, 1699 'manufacturer_specific_data': [1, 2], 1700 'include_tx_power_level': False, 1701 'include_device_name': False, 1702 'service_data': self.service_data_medium 1703 } 1704 settings_in_effect = { 1705 'mode': ble_advertise_settings_modes['low_latency'] 1706 } 1707 return self._magic((filters, settings_in_effect)) 1708 1709 @BluetoothBaseTest.bt_test_wrap 1710 @test_tracker_info(uuid='589f4d3f-c644-4981-a0f8-cd9bcf4d5142') 1711 def test_filter_combo_43(self): 1712 """Test a combination scan filter and advertisement 1713 1714 Test that an advertisement is found and matches corresponding 1715 settings. 1716 1717 Steps: 1718 1. Create a advertise data object 1719 2. Create a advertise settings object. 1720 3. Create a advertise callback object. 1721 4. Start an LE advertising using the objects created in steps 1-3. 1722 5. Find the onSuccess advertisement event. 1723 1724 Expected Result: 1725 Advertisement is successfully advertising. 1726 1727 Returns: 1728 Pass if True 1729 Fail if False 1730 1731 TAGS: LE, Advertising, Filtering, Scanning 1732 Priority: 2 1733 """ 1734 filters = { 1735 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1736 'service_data_uuid': self.service_uuid_1, 1737 'manufacturer_specific_data': [1, 2], 1738 'include_tx_power_level': False, 1739 'include_device_name': False, 1740 'service_data': [1] 1741 } 1742 settings_in_effect = { 1743 'mode': ble_advertise_settings_modes['low_latency'] 1744 } 1745 return self._magic((filters, settings_in_effect)) 1746 1747 @BluetoothBaseTest.bt_test_wrap 1748 @test_tracker_info(uuid='10ce4d36-081f-4353-a484-2c7988e7cda8') 1749 def test_filter_combo_44(self): 1750 """Test a combination scan filter and advertisement 1751 1752 Test that an advertisement is found and matches corresponding 1753 settings. 1754 1755 Steps: 1756 1. Create a advertise data object 1757 2. Create a advertise settings object. 1758 3. Create a advertise callback object. 1759 4. Start an LE advertising using the objects created in steps 1-3. 1760 5. Find the onSuccess advertisement event. 1761 1762 Expected Result: 1763 Advertisement is successfully advertising. 1764 1765 Returns: 1766 Pass if True 1767 Fail if False 1768 1769 TAGS: LE, Advertising, Filtering, Scanning 1770 Priority: 2 1771 """ 1772 filters = { 1773 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 1774 'service_data_uuid': self.service_uuid_1, 1775 'manufacturer_specific_data': [1, 2], 1776 'include_tx_power_level': False, 1777 'include_device_name': False, 1778 'service_data': self.service_data_small_2 1779 } 1780 settings_in_effect = { 1781 'mode': ble_advertise_settings_modes['low_latency'] 1782 } 1783 return self._magic((filters, settings_in_effect)) 1784 1785 @BluetoothBaseTest.bt_test_wrap 1786 @test_tracker_info(uuid='6f52f24d-adda-4e2d-b52e-1b24b978c343') 1787 def test_filter_combo_45(self): 1788 """Test a combination scan filter and advertisement 1789 1790 Test that an advertisement is found and matches corresponding 1791 settings. 1792 1793 Steps: 1794 1. Create a advertise data object 1795 2. Create a advertise settings object. 1796 3. Create a advertise callback object. 1797 4. Start an LE advertising using the objects created in steps 1-3. 1798 5. Find the onSuccess advertisement event. 1799 1800 Expected Result: 1801 Advertisement is successfully advertising. 1802 1803 Returns: 1804 Pass if True 1805 Fail if False 1806 1807 TAGS: LE, Advertising, Filtering, Scanning 1808 Priority: 2 1809 """ 1810 filters = { 1811 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1812 'service_data_uuid': self.service_uuid_1, 1813 'manufacturer_specific_data': self.manu_specific_data_small_3, 1814 'include_tx_power_level': False, 1815 'include_device_name': False, 1816 'service_data': self.service_data_medium 1817 } 1818 settings_in_effect = { 1819 'mode': ble_advertise_settings_modes['low_latency'] 1820 } 1821 return self._magic((filters, settings_in_effect)) 1822 1823 @BluetoothBaseTest.bt_test_wrap 1824 @test_tracker_info(uuid='5aacbec9-4a8b-4c76-9684-590a29f73854') 1825 def test_filter_combo_46(self): 1826 """Test a combination scan filter and advertisement 1827 1828 Test that an advertisement is found and matches corresponding 1829 settings. 1830 1831 Steps: 1832 1. Create a advertise data object 1833 2. Create a advertise settings object. 1834 3. Create a advertise callback object. 1835 4. Start an LE advertising using the objects created in steps 1-3. 1836 5. Find the onSuccess advertisement event. 1837 1838 Expected Result: 1839 Advertisement is successfully advertising. 1840 1841 Returns: 1842 Pass if True 1843 Fail if False 1844 1845 TAGS: LE, Advertising, Filtering, Scanning 1846 Priority: 2 1847 """ 1848 filters = { 1849 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1850 'service_data_uuid': self.service_uuid_1, 1851 'manufacturer_specific_data': self.manu_specific_data_small_3, 1852 'include_tx_power_level': False, 1853 'include_device_name': False, 1854 'service_data': [1] 1855 } 1856 settings_in_effect = { 1857 'mode': ble_advertise_settings_modes['low_latency'] 1858 } 1859 return self._magic((filters, settings_in_effect)) 1860 1861 @BluetoothBaseTest.bt_test_wrap 1862 @test_tracker_info(uuid='e1fa3728-9acb-47e9-bea4-3ac886c68a22') 1863 def test_filter_combo_47(self): 1864 """Test a combination scan filter and advertisement 1865 1866 Test that an advertisement is found and matches corresponding 1867 settings. 1868 1869 Steps: 1870 1. Create a advertise data object 1871 2. Create a advertise settings object. 1872 3. Create a advertise callback object. 1873 4. Start an LE advertising using the objects created in steps 1-3. 1874 5. Find the onSuccess advertisement event. 1875 1876 Expected Result: 1877 Advertisement is successfully advertising. 1878 1879 Returns: 1880 Pass if True 1881 Fail if False 1882 1883 TAGS: LE, Advertising, Filtering, Scanning 1884 Priority: 2 1885 """ 1886 filters = { 1887 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 1888 'service_data_uuid': self.service_uuid_1, 1889 'manufacturer_specific_data': self.manu_specific_data_small_3, 1890 'include_tx_power_level': False, 1891 'include_device_name': False, 1892 'service_data': self.service_data_small_2 1893 } 1894 settings_in_effect = { 1895 'mode': ble_advertise_settings_modes['low_latency'] 1896 } 1897 return self._magic((filters, settings_in_effect)) 1898 1899 @BluetoothBaseTest.bt_test_wrap 1900 @test_tracker_info(uuid='9ce98edd-5f94-456c-8083-3dd37eefe086') 1901 def test_filter_combo_48(self): 1902 """Test a combination scan filter and advertisement 1903 1904 Test that an advertisement is found and matches corresponding 1905 settings. 1906 1907 Steps: 1908 1. Create a advertise data object 1909 2. Create a advertise settings object. 1910 3. Create a advertise callback object. 1911 4. Start an LE advertising using the objects created in steps 1-3. 1912 5. Find the onSuccess advertisement event. 1913 1914 Expected Result: 1915 Advertisement is successfully advertising. 1916 1917 Returns: 1918 Pass if True 1919 Fail if False 1920 1921 TAGS: LE, Advertising, Filtering, Scanning 1922 Priority: 2 1923 """ 1924 filters = { 1925 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1926 'service_data_uuid': self.service_uuid_1, 1927 'manufacturer_specific_data': self.manu_specific_data_small_3, 1928 'include_tx_power_level': False, 1929 'include_device_name': False, 1930 'service_data': self.service_data_medium 1931 } 1932 settings_in_effect = { 1933 'mode': ble_advertise_settings_modes['low_latency'] 1934 } 1935 return self._magic((filters, settings_in_effect)) 1936 1937 @BluetoothBaseTest.bt_test_wrap 1938 @test_tracker_info(uuid='cb93cdab-6443-4946-a7f6-9c34e0b21272') 1939 def test_filter_combo_49(self): 1940 """Test a combination scan filter and advertisement 1941 1942 Test that an advertisement is found and matches corresponding 1943 settings. 1944 1945 Steps: 1946 1. Create a advertise data object 1947 2. Create a advertise settings object. 1948 3. Create a advertise callback object. 1949 4. Start an LE advertising using the objects created in steps 1-3. 1950 5. Find the onSuccess advertisement event. 1951 1952 Expected Result: 1953 Advertisement is successfully advertising. 1954 1955 Returns: 1956 Pass if True 1957 Fail if False 1958 1959 TAGS: LE, Advertising, Filtering, Scanning 1960 Priority: 2 1961 """ 1962 filters = { 1963 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 1964 'service_data_uuid': self.service_uuid_1, 1965 'manufacturer_specific_data': self.manu_specific_data_small_3, 1966 'include_tx_power_level': False, 1967 'include_device_name': False, 1968 'service_data': [1] 1969 } 1970 settings_in_effect = { 1971 'mode': ble_advertise_settings_modes['low_latency'] 1972 } 1973 return self._magic((filters, settings_in_effect)) 1974 1975 @BluetoothBaseTest.bt_test_wrap 1976 @test_tracker_info(uuid='d9069a4d-8635-4b91-9a0f-31a64586a216') 1977 def test_filter_combo_50(self): 1978 """Test a combination scan filter and advertisement 1979 1980 Test that an advertisement is found and matches corresponding 1981 settings. 1982 1983 Steps: 1984 1. Create a advertise data object 1985 2. Create a advertise settings object. 1986 3. Create a advertise callback object. 1987 4. Start an LE advertising using the objects created in steps 1-3. 1988 5. Find the onSuccess advertisement event. 1989 1990 Expected Result: 1991 Advertisement is successfully advertising. 1992 1993 Returns: 1994 Pass if True 1995 Fail if False 1996 1997 TAGS: LE, Advertising, Filtering, Scanning 1998 Priority: 2 1999 """ 2000 filters = { 2001 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2002 'service_data_uuid': self.service_uuid_1, 2003 'manufacturer_specific_data': self.manu_specific_data_small_3, 2004 'include_tx_power_level': False, 2005 'include_device_name': False, 2006 'service_data': self.service_data_small_2 2007 } 2008 settings_in_effect = { 2009 'mode': ble_advertise_settings_modes['low_latency'] 2010 } 2011 return self._magic((filters, settings_in_effect)) 2012 2013 @BluetoothBaseTest.bt_test_wrap 2014 @test_tracker_info(uuid='559f4f49-bd6a-4490-b8b3-da13ef57eb83') 2015 def test_filter_combo_51(self): 2016 """Test a combination scan filter and advertisement 2017 2018 Test that an advertisement is found and matches corresponding 2019 settings. 2020 2021 Steps: 2022 1. Create a advertise data object 2023 2. Create a advertise settings object. 2024 3. Create a advertise callback object. 2025 4. Start an LE advertising using the objects created in steps 1-3. 2026 5. Find the onSuccess advertisement event. 2027 2028 Expected Result: 2029 Advertisement is successfully advertising. 2030 2031 Returns: 2032 Pass if True 2033 Fail if False 2034 2035 TAGS: LE, Advertising, Filtering, Scanning 2036 Priority: 2 2037 """ 2038 filters = { 2039 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2040 'service_data_uuid': self.service_uuid_1, 2041 'manufacturer_specific_data': self.manu_specific_data_small_3, 2042 'include_tx_power_level': False, 2043 'include_device_name': False, 2044 'service_data': self.service_data_medium 2045 } 2046 settings_in_effect = { 2047 'mode': ble_advertise_settings_modes['low_latency'] 2048 } 2049 return self._magic((filters, settings_in_effect)) 2050 2051 @BluetoothBaseTest.bt_test_wrap 2052 @test_tracker_info(uuid='d769aa3c-c039-45f3-8ef7-f91ccbbcdfaf') 2053 def test_filter_combo_52(self): 2054 """Test a combination scan filter and advertisement 2055 2056 Test that an advertisement is found and matches corresponding 2057 settings. 2058 2059 Steps: 2060 1. Create a advertise data object 2061 2. Create a advertise settings object. 2062 3. Create a advertise callback object. 2063 4. Start an LE advertising using the objects created in steps 1-3. 2064 5. Find the onSuccess advertisement event. 2065 2066 Expected Result: 2067 Advertisement is successfully advertising. 2068 2069 Returns: 2070 Pass if True 2071 Fail if False 2072 2073 TAGS: LE, Advertising, Filtering, Scanning 2074 Priority: 2 2075 """ 2076 filters = { 2077 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2078 'service_data_uuid': self.service_uuid_1, 2079 'manufacturer_specific_data': self.manu_specific_data_small_3, 2080 'include_tx_power_level': False, 2081 'include_device_name': False, 2082 'service_data': [1] 2083 } 2084 settings_in_effect = { 2085 'mode': ble_advertise_settings_modes['low_latency'] 2086 } 2087 return self._magic((filters, settings_in_effect)) 2088 2089 @BluetoothBaseTest.bt_test_wrap 2090 @test_tracker_info(uuid='4c6adf11-7c79-4a97-b507-cc8044d2c7c6') 2091 def test_filter_combo_53(self): 2092 """Test a combination scan filter and advertisement 2093 2094 Test that an advertisement is found and matches corresponding 2095 settings. 2096 2097 Steps: 2098 1. Create a advertise data object 2099 2. Create a advertise settings object. 2100 3. Create a advertise callback object. 2101 4. Start an LE advertising using the objects created in steps 1-3. 2102 5. Find the onSuccess advertisement event. 2103 2104 Expected Result: 2105 Advertisement is successfully advertising. 2106 2107 Returns: 2108 Pass if True 2109 Fail if False 2110 2111 TAGS: LE, Advertising, Filtering, Scanning 2112 Priority: 2 2113 """ 2114 filters = { 2115 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2116 'service_data_uuid': self.service_uuid_1, 2117 'manufacturer_specific_data': self.manu_specific_data_small_3, 2118 'include_tx_power_level': False, 2119 'include_device_name': False, 2120 'service_data': self.service_data_small_2 2121 } 2122 settings_in_effect = { 2123 'mode': ble_advertise_settings_modes['low_latency'] 2124 } 2125 return self._magic((filters, settings_in_effect)) 2126 2127 @BluetoothBaseTest.bt_test_wrap 2128 @test_tracker_info(uuid='b99f7238-197b-4fb0-80a9-a51a20c00093') 2129 def test_filter_combo_54(self): 2130 """Test a combination scan filter and advertisement 2131 2132 Test that an advertisement is found and matches corresponding 2133 settings. 2134 2135 Steps: 2136 1. Create a advertise data object 2137 2. Create a advertise settings object. 2138 3. Create a advertise callback object. 2139 4. Start an LE advertising using the objects created in steps 1-3. 2140 5. Find the onSuccess advertisement event. 2141 2142 Expected Result: 2143 Advertisement is successfully advertising. 2144 2145 Returns: 2146 Pass if True 2147 Fail if False 2148 2149 TAGS: LE, Advertising, Filtering, Scanning 2150 Priority: 2 2151 """ 2152 filters = { 2153 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2154 'service_data_uuid': self.service_uuid_1, 2155 'manufacturer_specific_data': self.manu_sepecific_data_small, 2156 'include_tx_power_level': True, 2157 'include_device_name': True, 2158 'service_data': self.service_data_medium 2159 } 2160 settings_in_effect = { 2161 'mode': ble_advertise_settings_modes['low_latency'] 2162 } 2163 return self._magic((filters, settings_in_effect)) 2164 2165 @BluetoothBaseTest.bt_test_wrap 2166 @test_tracker_info(uuid='f1e3e036-b611-4325-81e2-114ad777d00e') 2167 def test_filter_combo_55(self): 2168 """Test a combination scan filter and advertisement 2169 2170 Test that an advertisement is found and matches corresponding 2171 settings. 2172 2173 Steps: 2174 1. Create a advertise data object 2175 2. Create a advertise settings object. 2176 3. Create a advertise callback object. 2177 4. Start an LE advertising using the objects created in steps 1-3. 2178 5. Find the onSuccess advertisement event. 2179 2180 Expected Result: 2181 Advertisement is successfully advertising. 2182 2183 Returns: 2184 Pass if True 2185 Fail if False 2186 2187 TAGS: LE, Advertising, Filtering, Scanning 2188 Priority: 2 2189 """ 2190 filters = { 2191 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2192 'service_data_uuid': self.service_uuid_1, 2193 'manufacturer_specific_data': self.manu_sepecific_data_small, 2194 'include_tx_power_level': True, 2195 'include_device_name': True, 2196 'service_data': [1] 2197 } 2198 settings_in_effect = { 2199 'mode': ble_advertise_settings_modes['low_latency'] 2200 } 2201 return self._magic((filters, settings_in_effect)) 2202 2203 @BluetoothBaseTest.bt_test_wrap 2204 @test_tracker_info(uuid='9f786760-8a33-4076-b33e-38acc6689b5c') 2205 def test_filter_combo_56(self): 2206 """Test a combination scan filter and advertisement 2207 2208 Test that an advertisement is found and matches corresponding 2209 settings. 2210 2211 Steps: 2212 1. Create a advertise data object 2213 2. Create a advertise settings object. 2214 3. Create a advertise callback object. 2215 4. Start an LE advertising using the objects created in steps 1-3. 2216 5. Find the onSuccess advertisement event. 2217 2218 Expected Result: 2219 Advertisement is successfully advertising. 2220 2221 Returns: 2222 Pass if True 2223 Fail if False 2224 2225 TAGS: LE, Advertising, Filtering, Scanning 2226 Priority: 2 2227 """ 2228 filters = { 2229 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2230 'service_data_uuid': self.service_uuid_1, 2231 'manufacturer_specific_data': self.manu_sepecific_data_small, 2232 'include_tx_power_level': True, 2233 'include_device_name': True, 2234 'service_data': self.service_data_small_2 2235 } 2236 settings_in_effect = { 2237 'mode': ble_advertise_settings_modes['low_latency'] 2238 } 2239 return self._magic((filters, settings_in_effect)) 2240 2241 @BluetoothBaseTest.bt_test_wrap 2242 @test_tracker_info(uuid='9e6466c3-ce73-471e-8b4a-dce1a1c9d046') 2243 def test_filter_combo_57(self): 2244 """Test a combination scan filter and advertisement 2245 2246 Test that an advertisement is found and matches corresponding 2247 settings. 2248 2249 Steps: 2250 1. Create a advertise data object 2251 2. Create a advertise settings object. 2252 3. Create a advertise callback object. 2253 4. Start an LE advertising using the objects created in steps 1-3. 2254 5. Find the onSuccess advertisement event. 2255 2256 Expected Result: 2257 Advertisement is successfully advertising. 2258 2259 Returns: 2260 Pass if True 2261 Fail if False 2262 2263 TAGS: LE, Advertising, Filtering, Scanning 2264 Priority: 2 2265 """ 2266 filters = { 2267 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2268 'service_data_uuid': self.service_uuid_1, 2269 'manufacturer_specific_data': self.manu_sepecific_data_small, 2270 'include_tx_power_level': True, 2271 'include_device_name': True, 2272 'service_data': self.service_data_medium 2273 } 2274 settings_in_effect = { 2275 'mode': ble_advertise_settings_modes['low_latency'] 2276 } 2277 return self._magic((filters, settings_in_effect)) 2278 2279 @BluetoothBaseTest.bt_test_wrap 2280 @test_tracker_info(uuid='b44f6d43-07cb-477d-bcc8-460cc2094475') 2281 def test_filter_combo_58(self): 2282 """Test a combination scan filter and advertisement 2283 2284 Test that an advertisement is found and matches corresponding 2285 settings. 2286 2287 Steps: 2288 1. Create a advertise data object 2289 2. Create a advertise settings object. 2290 3. Create a advertise callback object. 2291 4. Start an LE advertising using the objects created in steps 1-3. 2292 5. Find the onSuccess advertisement event. 2293 2294 Expected Result: 2295 Advertisement is successfully advertising. 2296 2297 Returns: 2298 Pass if True 2299 Fail if False 2300 2301 TAGS: LE, Advertising, Filtering, Scanning 2302 Priority: 2 2303 """ 2304 filters = { 2305 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2306 'service_data_uuid': self.service_uuid_1, 2307 'manufacturer_specific_data': self.manu_sepecific_data_small, 2308 'include_tx_power_level': True, 2309 'include_device_name': True, 2310 'service_data': [1] 2311 } 2312 settings_in_effect = { 2313 'mode': ble_advertise_settings_modes['low_latency'] 2314 } 2315 return self._magic((filters, settings_in_effect)) 2316 2317 @BluetoothBaseTest.bt_test_wrap 2318 @test_tracker_info(uuid='38dcb64b-6564-4116-8abb-3a8e8ed530a9') 2319 def test_filter_combo_59(self): 2320 """Test a combination scan filter and advertisement 2321 2322 Test that an advertisement is found and matches corresponding 2323 settings. 2324 2325 Steps: 2326 1. Create a advertise data object 2327 2. Create a advertise settings object. 2328 3. Create a advertise callback object. 2329 4. Start an LE advertising using the objects created in steps 1-3. 2330 5. Find the onSuccess advertisement event. 2331 2332 Expected Result: 2333 Advertisement is successfully advertising. 2334 2335 Returns: 2336 Pass if True 2337 Fail if False 2338 2339 TAGS: LE, Advertising, Filtering, Scanning 2340 Priority: 2 2341 """ 2342 filters = { 2343 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2344 'service_data_uuid': self.service_uuid_1, 2345 'manufacturer_specific_data': self.manu_sepecific_data_small, 2346 'include_tx_power_level': True, 2347 'include_device_name': True, 2348 'service_data': self.service_data_small_2 2349 } 2350 settings_in_effect = { 2351 'mode': ble_advertise_settings_modes['low_latency'] 2352 } 2353 return self._magic((filters, settings_in_effect)) 2354 2355 @BluetoothBaseTest.bt_test_wrap 2356 @test_tracker_info(uuid='b0918c1a-1291-482c-9ecb-2df085ec036f') 2357 def test_filter_combo_60(self): 2358 """Test a combination scan filter and advertisement 2359 2360 Test that an advertisement is found and matches corresponding 2361 settings. 2362 2363 Steps: 2364 1. Create a advertise data object 2365 2. Create a advertise settings object. 2366 3. Create a advertise callback object. 2367 4. Start an LE advertising using the objects created in steps 1-3. 2368 5. Find the onSuccess advertisement event. 2369 2370 Expected Result: 2371 Advertisement is successfully advertising. 2372 2373 Returns: 2374 Pass if True 2375 Fail if False 2376 2377 TAGS: LE, Advertising, Filtering, Scanning 2378 Priority: 2 2379 """ 2380 filters = { 2381 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2382 'service_data_uuid': self.service_uuid_1, 2383 'manufacturer_specific_data': self.manu_sepecific_data_small, 2384 'include_tx_power_level': True, 2385 'include_device_name': True, 2386 'service_data': self.service_data_medium 2387 } 2388 settings_in_effect = { 2389 'mode': ble_advertise_settings_modes['low_latency'] 2390 } 2391 return self._magic((filters, settings_in_effect)) 2392 2393 @BluetoothBaseTest.bt_test_wrap 2394 @test_tracker_info(uuid='6c317053-6fdc-45e1-9109-bd2726b2490f') 2395 def test_filter_combo_61(self): 2396 """Test a combination scan filter and advertisement 2397 2398 Test that an advertisement is found and matches corresponding 2399 settings. 2400 2401 Steps: 2402 1. Create a advertise data object 2403 2. Create a advertise settings object. 2404 3. Create a advertise callback object. 2405 4. Start an LE advertising using the objects created in steps 1-3. 2406 5. Find the onSuccess advertisement event. 2407 2408 Expected Result: 2409 Advertisement is successfully advertising. 2410 2411 Returns: 2412 Pass if True 2413 Fail if False 2414 2415 TAGS: LE, Advertising, Filtering, Scanning 2416 Priority: 2 2417 """ 2418 filters = { 2419 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2420 'service_data_uuid': self.service_uuid_1, 2421 'manufacturer_specific_data': self.manu_sepecific_data_small, 2422 'include_tx_power_level': True, 2423 'include_device_name': True, 2424 'service_data': [1] 2425 } 2426 settings_in_effect = { 2427 'mode': ble_advertise_settings_modes['low_latency'] 2428 } 2429 return self._magic((filters, settings_in_effect)) 2430 2431 @BluetoothBaseTest.bt_test_wrap 2432 @test_tracker_info(uuid='af057157-3ef5-48af-918d-53ba6b2e8405') 2433 def test_filter_combo_62(self): 2434 """Test a combination scan filter and advertisement 2435 2436 Test that an advertisement is found and matches corresponding 2437 settings. 2438 2439 Steps: 2440 1. Create a advertise data object 2441 2. Create a advertise settings object. 2442 3. Create a advertise callback object. 2443 4. Start an LE advertising using the objects created in steps 1-3. 2444 5. Find the onSuccess advertisement event. 2445 2446 Expected Result: 2447 Advertisement is successfully advertising. 2448 2449 Returns: 2450 Pass if True 2451 Fail if False 2452 2453 TAGS: LE, Advertising, Filtering, Scanning 2454 Priority: 2 2455 """ 2456 filters = { 2457 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2458 'service_data_uuid': self.service_uuid_1, 2459 'manufacturer_specific_data': self.manu_sepecific_data_small, 2460 'include_tx_power_level': True, 2461 'include_device_name': True, 2462 'service_data': self.service_data_small_2 2463 } 2464 settings_in_effect = { 2465 'mode': ble_advertise_settings_modes['low_latency'] 2466 } 2467 return self._magic((filters, settings_in_effect)) 2468 2469 @BluetoothBaseTest.bt_test_wrap 2470 @test_tracker_info(uuid='4693bb43-a4b6-4595-a75b-ff18c4be50c7') 2471 def test_filter_combo_63(self): 2472 """Test a combination scan filter and advertisement 2473 2474 Test that an advertisement is found and matches corresponding 2475 settings. 2476 2477 Steps: 2478 1. Create a advertise data object 2479 2. Create a advertise settings object. 2480 3. Create a advertise callback object. 2481 4. Start an LE advertising using the objects created in steps 1-3. 2482 5. Find the onSuccess advertisement event. 2483 2484 Expected Result: 2485 Advertisement is successfully advertising. 2486 2487 Returns: 2488 Pass if True 2489 Fail if False 2490 2491 TAGS: LE, Advertising, Filtering, Scanning 2492 Priority: 2 2493 """ 2494 filters = { 2495 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2496 'service_data_uuid': self.service_uuid_1, 2497 'manufacturer_specific_data': [1, 2], 2498 'include_tx_power_level': True, 2499 'include_device_name': True, 2500 'service_data': self.service_data_medium 2501 } 2502 settings_in_effect = { 2503 'mode': ble_advertise_settings_modes['low_latency'] 2504 } 2505 return self._magic((filters, settings_in_effect)) 2506 2507 @BluetoothBaseTest.bt_test_wrap 2508 @test_tracker_info(uuid='6e2037c1-5e99-4dc7-8950-5fd3df29fa08') 2509 def test_filter_combo_64(self): 2510 """Test a combination scan filter and advertisement 2511 2512 Test that an advertisement is found and matches corresponding 2513 settings. 2514 2515 Steps: 2516 1. Create a advertise data object 2517 2. Create a advertise settings object. 2518 3. Create a advertise callback object. 2519 4. Start an LE advertising using the objects created in steps 1-3. 2520 5. Find the onSuccess advertisement event. 2521 2522 Expected Result: 2523 Advertisement is successfully advertising. 2524 2525 Returns: 2526 Pass if True 2527 Fail if False 2528 2529 TAGS: LE, Advertising, Filtering, Scanning 2530 Priority: 2 2531 """ 2532 filters = { 2533 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2534 'service_data_uuid': self.service_uuid_1, 2535 'manufacturer_specific_data': [1, 2], 2536 'include_tx_power_level': True, 2537 'include_device_name': True, 2538 'service_data': [1] 2539 } 2540 settings_in_effect = { 2541 'mode': ble_advertise_settings_modes['low_latency'] 2542 } 2543 return self._magic((filters, settings_in_effect)) 2544 2545 @BluetoothBaseTest.bt_test_wrap 2546 @test_tracker_info(uuid='a85acfbb-e6d2-42f4-b917-6b0bac26e457') 2547 def test_filter_combo_65(self): 2548 """Test a combination scan filter and advertisement 2549 2550 Test that an advertisement is found and matches corresponding 2551 settings. 2552 2553 Steps: 2554 1. Create a advertise data object 2555 2. Create a advertise settings object. 2556 3. Create a advertise callback object. 2557 4. Start an LE advertising using the objects created in steps 1-3. 2558 5. Find the onSuccess advertisement event. 2559 2560 Expected Result: 2561 Advertisement is successfully advertising. 2562 2563 Returns: 2564 Pass if True 2565 Fail if False 2566 2567 TAGS: LE, Advertising, Filtering, Scanning 2568 Priority: 2 2569 """ 2570 filters = { 2571 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2572 'service_data_uuid': self.service_uuid_1, 2573 'manufacturer_specific_data': [1, 2], 2574 'include_tx_power_level': True, 2575 'include_device_name': True, 2576 'service_data': self.service_data_small_2 2577 } 2578 settings_in_effect = { 2579 'mode': ble_advertise_settings_modes['low_latency'] 2580 } 2581 return self._magic((filters, settings_in_effect)) 2582 2583 @BluetoothBaseTest.bt_test_wrap 2584 @test_tracker_info(uuid='d05f3aaa-833c-40a1-b3a0-c69756919218') 2585 def test_filter_combo_66(self): 2586 """Test a combination scan filter and advertisement 2587 2588 Test that an advertisement is found and matches corresponding 2589 settings. 2590 2591 Steps: 2592 1. Create a advertise data object 2593 2. Create a advertise settings object. 2594 3. Create a advertise callback object. 2595 4. Start an LE advertising using the objects created in steps 1-3. 2596 5. Find the onSuccess advertisement event. 2597 2598 Expected Result: 2599 Advertisement is successfully advertising. 2600 2601 Returns: 2602 Pass if True 2603 Fail if False 2604 2605 TAGS: LE, Advertising, Filtering, Scanning 2606 Priority: 2 2607 """ 2608 filters = { 2609 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2610 'service_data_uuid': self.service_uuid_1, 2611 'manufacturer_specific_data': [1, 2], 2612 'include_tx_power_level': True, 2613 'include_device_name': True, 2614 'service_data': self.service_data_medium 2615 } 2616 settings_in_effect = { 2617 'mode': ble_advertise_settings_modes['low_latency'] 2618 } 2619 return self._magic((filters, settings_in_effect)) 2620 2621 @BluetoothBaseTest.bt_test_wrap 2622 @test_tracker_info(uuid='1dd2b27b-f9fe-41e3-b884-3500d6bf9a38') 2623 def test_filter_combo_67(self): 2624 """Test a combination scan filter and advertisement 2625 2626 Test that an advertisement is found and matches corresponding 2627 settings. 2628 2629 Steps: 2630 1. Create a advertise data object 2631 2. Create a advertise settings object. 2632 3. Create a advertise callback object. 2633 4. Start an LE advertising using the objects created in steps 1-3. 2634 5. Find the onSuccess advertisement event. 2635 2636 Expected Result: 2637 Advertisement is successfully advertising. 2638 2639 Returns: 2640 Pass if True 2641 Fail if False 2642 2643 TAGS: LE, Advertising, Filtering, Scanning 2644 Priority: 2 2645 """ 2646 filters = { 2647 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2648 'service_data_uuid': self.service_uuid_1, 2649 'manufacturer_specific_data': [1, 2], 2650 'include_tx_power_level': True, 2651 'include_device_name': True, 2652 'service_data': [1] 2653 } 2654 settings_in_effect = { 2655 'mode': ble_advertise_settings_modes['low_latency'] 2656 } 2657 return self._magic((filters, settings_in_effect)) 2658 2659 @BluetoothBaseTest.bt_test_wrap 2660 @test_tracker_info(uuid='e31e7d9d-878b-442e-9ae9-b07d5e903df3') 2661 def test_filter_combo_68(self): 2662 """Test a combination scan filter and advertisement 2663 2664 Test that an advertisement is found and matches corresponding 2665 settings. 2666 2667 Steps: 2668 1. Create a advertise data object 2669 2. Create a advertise settings object. 2670 3. Create a advertise callback object. 2671 4. Start an LE advertising using the objects created in steps 1-3. 2672 5. Find the onSuccess advertisement event. 2673 2674 Expected Result: 2675 Advertisement is successfully advertising. 2676 2677 Returns: 2678 Pass if True 2679 Fail if False 2680 2681 TAGS: LE, Advertising, Filtering, Scanning 2682 Priority: 2 2683 """ 2684 filters = { 2685 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2686 'service_data_uuid': self.service_uuid_1, 2687 'manufacturer_specific_data': [1, 2], 2688 'include_tx_power_level': True, 2689 'include_device_name': True, 2690 'service_data': self.service_data_small_2 2691 } 2692 settings_in_effect = { 2693 'mode': ble_advertise_settings_modes['low_latency'] 2694 } 2695 return self._magic((filters, settings_in_effect)) 2696 2697 @BluetoothBaseTest.bt_test_wrap 2698 @test_tracker_info(uuid='05c05a71-27a4-4620-940b-ce3747d4e6c5') 2699 def test_filter_combo_69(self): 2700 """Test a combination scan filter and advertisement 2701 2702 Test that an advertisement is found and matches corresponding 2703 settings. 2704 2705 Steps: 2706 1. Create a advertise data object 2707 2. Create a advertise settings object. 2708 3. Create a advertise callback object. 2709 4. Start an LE advertising using the objects created in steps 1-3. 2710 5. Find the onSuccess advertisement event. 2711 2712 Expected Result: 2713 Advertisement is successfully advertising. 2714 2715 Returns: 2716 Pass if True 2717 Fail if False 2718 2719 TAGS: LE, Advertising, Filtering, Scanning 2720 Priority: 2 2721 """ 2722 filters = { 2723 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2724 'service_data_uuid': self.service_uuid_1, 2725 'manufacturer_specific_data': [1, 2], 2726 'include_tx_power_level': True, 2727 'include_device_name': True, 2728 'service_data': self.service_data_medium 2729 } 2730 settings_in_effect = { 2731 'mode': ble_advertise_settings_modes['low_latency'] 2732 } 2733 return self._magic((filters, settings_in_effect)) 2734 2735 @BluetoothBaseTest.bt_test_wrap 2736 @test_tracker_info(uuid='c4bb2251-1246-466b-a6bb-76ae13089101') 2737 def test_filter_combo_70(self): 2738 """Test a combination scan filter and advertisement 2739 2740 Test that an advertisement is found and matches corresponding 2741 settings. 2742 2743 Steps: 2744 1. Create a advertise data object 2745 2. Create a advertise settings object. 2746 3. Create a advertise callback object. 2747 4. Start an LE advertising using the objects created in steps 1-3. 2748 5. Find the onSuccess advertisement event. 2749 2750 Expected Result: 2751 Advertisement is successfully advertising. 2752 2753 Returns: 2754 Pass if True 2755 Fail if False 2756 2757 TAGS: LE, Advertising, Filtering, Scanning 2758 Priority: 2 2759 """ 2760 filters = { 2761 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2762 'service_data_uuid': self.service_uuid_1, 2763 'manufacturer_specific_data': [1, 2], 2764 'include_tx_power_level': True, 2765 'include_device_name': True, 2766 'service_data': [1] 2767 } 2768 settings_in_effect = { 2769 'mode': ble_advertise_settings_modes['low_latency'] 2770 } 2771 return self._magic((filters, settings_in_effect)) 2772 2773 @BluetoothBaseTest.bt_test_wrap 2774 @test_tracker_info(uuid='b284008a-81be-42b6-8176-906a780f92a2') 2775 def test_filter_combo_71(self): 2776 """Test a combination scan filter and advertisement 2777 2778 Test that an advertisement is found and matches corresponding 2779 settings. 2780 2781 Steps: 2782 1. Create a advertise data object 2783 2. Create a advertise settings object. 2784 3. Create a advertise callback object. 2785 4. Start an LE advertising using the objects created in steps 1-3. 2786 5. Find the onSuccess advertisement event. 2787 2788 Expected Result: 2789 Advertisement is successfully advertising. 2790 2791 Returns: 2792 Pass if True 2793 Fail if False 2794 2795 TAGS: LE, Advertising, Filtering, Scanning 2796 Priority: 2 2797 """ 2798 filters = { 2799 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 2800 'service_data_uuid': self.service_uuid_1, 2801 'manufacturer_specific_data': [1, 2], 2802 'include_tx_power_level': True, 2803 'include_device_name': True, 2804 'service_data': self.service_data_small_2 2805 } 2806 settings_in_effect = { 2807 'mode': ble_advertise_settings_modes['low_latency'] 2808 } 2809 return self._magic((filters, settings_in_effect)) 2810 2811 @BluetoothBaseTest.bt_test_wrap 2812 @test_tracker_info(uuid='01bc025f-4696-4e80-a590-ec7b0eeea1a3') 2813 def test_filter_combo_72(self): 2814 """Test a combination scan filter and advertisement 2815 2816 Test that an advertisement is found and matches corresponding 2817 settings. 2818 2819 Steps: 2820 1. Create a advertise data object 2821 2. Create a advertise settings object. 2822 3. Create a advertise callback object. 2823 4. Start an LE advertising using the objects created in steps 1-3. 2824 5. Find the onSuccess advertisement event. 2825 2826 Expected Result: 2827 Advertisement is successfully advertising. 2828 2829 Returns: 2830 Pass if True 2831 Fail if False 2832 2833 TAGS: LE, Advertising, Filtering, Scanning 2834 Priority: 2 2835 """ 2836 filters = { 2837 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2838 'service_data_uuid': self.service_uuid_1, 2839 'manufacturer_specific_data': self.manu_specific_data_small_3, 2840 'include_tx_power_level': True, 2841 'include_device_name': True, 2842 'service_data': self.service_data_medium 2843 } 2844 settings_in_effect = { 2845 'mode': ble_advertise_settings_modes['low_latency'] 2846 } 2847 return self._magic((filters, settings_in_effect)) 2848 2849 @BluetoothBaseTest.bt_test_wrap 2850 @test_tracker_info(uuid='ef674d1e-f3b1-43fc-a037-718ffe650d12') 2851 def test_filter_combo_73(self): 2852 """Test a combination scan filter and advertisement 2853 2854 Test that an advertisement is found and matches corresponding 2855 settings. 2856 2857 Steps: 2858 1. Create a advertise data object 2859 2. Create a advertise settings object. 2860 3. Create a advertise callback object. 2861 4. Start an LE advertising using the objects created in steps 1-3. 2862 5. Find the onSuccess advertisement event. 2863 2864 Expected Result: 2865 Advertisement is successfully advertising. 2866 2867 Returns: 2868 Pass if True 2869 Fail if False 2870 2871 TAGS: LE, Advertising, Filtering, Scanning 2872 Priority: 2 2873 """ 2874 filters = { 2875 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2876 'service_data_uuid': self.service_uuid_1, 2877 'manufacturer_specific_data': self.manu_specific_data_small_3, 2878 'include_tx_power_level': True, 2879 'include_device_name': True, 2880 'service_data': [1] 2881 } 2882 settings_in_effect = { 2883 'mode': ble_advertise_settings_modes['low_latency'] 2884 } 2885 return self._magic((filters, settings_in_effect)) 2886 2887 @BluetoothBaseTest.bt_test_wrap 2888 @test_tracker_info(uuid='cbc29a50-76fe-40b8-93fa-b274605660b2') 2889 def test_filter_combo_74(self): 2890 """Test a combination scan filter and advertisement 2891 2892 Test that an advertisement is found and matches corresponding 2893 settings. 2894 2895 Steps: 2896 1. Create a advertise data object 2897 2. Create a advertise settings object. 2898 3. Create a advertise callback object. 2899 4. Start an LE advertising using the objects created in steps 1-3. 2900 5. Find the onSuccess advertisement event. 2901 2902 Expected Result: 2903 Advertisement is successfully advertising. 2904 2905 Returns: 2906 Pass if True 2907 Fail if False 2908 2909 TAGS: LE, Advertising, Filtering, Scanning 2910 Priority: 2 2911 """ 2912 filters = { 2913 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 2914 'service_data_uuid': self.service_uuid_1, 2915 'manufacturer_specific_data': self.manu_specific_data_small_3, 2916 'include_tx_power_level': True, 2917 'include_device_name': True, 2918 'service_data': self.service_data_small_2 2919 } 2920 settings_in_effect = { 2921 'mode': ble_advertise_settings_modes['low_latency'] 2922 } 2923 return self._magic((filters, settings_in_effect)) 2924 2925 @BluetoothBaseTest.bt_test_wrap 2926 @test_tracker_info(uuid='0674b703-2571-4bcf-91f2-a34a323e179b') 2927 def test_filter_combo_75(self): 2928 """Test a combination scan filter and advertisement 2929 2930 Test that an advertisement is found and matches corresponding 2931 settings. 2932 2933 Steps: 2934 1. Create a advertise data object 2935 2. Create a advertise settings object. 2936 3. Create a advertise callback object. 2937 4. Start an LE advertising using the objects created in steps 1-3. 2938 5. Find the onSuccess advertisement event. 2939 2940 Expected Result: 2941 Advertisement is successfully advertising. 2942 2943 Returns: 2944 Pass if True 2945 Fail if False 2946 2947 TAGS: LE, Advertising, Filtering, Scanning 2948 Priority: 2 2949 """ 2950 filters = { 2951 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2952 'service_data_uuid': self.service_uuid_1, 2953 'manufacturer_specific_data': self.manu_specific_data_small_3, 2954 'include_tx_power_level': True, 2955 'include_device_name': True, 2956 'service_data': self.service_data_medium 2957 } 2958 settings_in_effect = { 2959 'mode': ble_advertise_settings_modes['low_latency'] 2960 } 2961 return self._magic((filters, settings_in_effect)) 2962 2963 @BluetoothBaseTest.bt_test_wrap 2964 @test_tracker_info(uuid='a65046b3-4aed-47f3-86cd-838155dfd309') 2965 def test_filter_combo_76(self): 2966 """Test a combination scan filter and advertisement 2967 2968 Test that an advertisement is found and matches corresponding 2969 settings. 2970 2971 Steps: 2972 1. Create a advertise data object 2973 2. Create a advertise settings object. 2974 3. Create a advertise callback object. 2975 4. Start an LE advertising using the objects created in steps 1-3. 2976 5. Find the onSuccess advertisement event. 2977 2978 Expected Result: 2979 Advertisement is successfully advertising. 2980 2981 Returns: 2982 Pass if True 2983 Fail if False 2984 2985 TAGS: LE, Advertising, Filtering, Scanning 2986 Priority: 2 2987 """ 2988 filters = { 2989 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 2990 'service_data_uuid': self.service_uuid_1, 2991 'manufacturer_specific_data': self.manu_specific_data_small_3, 2992 'include_tx_power_level': True, 2993 'include_device_name': True, 2994 'service_data': [1] 2995 } 2996 settings_in_effect = { 2997 'mode': ble_advertise_settings_modes['low_latency'] 2998 } 2999 return self._magic((filters, settings_in_effect)) 3000 3001 @BluetoothBaseTest.bt_test_wrap 3002 @test_tracker_info(uuid='a379dfdd-8924-4e62-95ac-14fe3ae358da') 3003 def test_filter_combo_77(self): 3004 """Test a combination scan filter and advertisement 3005 3006 Test that an advertisement is found and matches corresponding 3007 settings. 3008 3009 Steps: 3010 1. Create a advertise data object 3011 2. Create a advertise settings object. 3012 3. Create a advertise callback object. 3013 4. Start an LE advertising using the objects created in steps 1-3. 3014 5. Find the onSuccess advertisement event. 3015 3016 Expected Result: 3017 Advertisement is successfully advertising. 3018 3019 Returns: 3020 Pass if True 3021 Fail if False 3022 3023 TAGS: LE, Advertising, Filtering, Scanning 3024 Priority: 2 3025 """ 3026 filters = { 3027 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3028 'service_data_uuid': self.service_uuid_1, 3029 'manufacturer_specific_data': self.manu_specific_data_small_3, 3030 'include_tx_power_level': True, 3031 'include_device_name': True, 3032 'service_data': self.service_data_small_2 3033 } 3034 settings_in_effect = { 3035 'mode': ble_advertise_settings_modes['low_latency'] 3036 } 3037 return self._magic((filters, settings_in_effect)) 3038 3039 @BluetoothBaseTest.bt_test_wrap 3040 @test_tracker_info(uuid='3ed6b73f-23fb-4ef2-8bd5-e59a34f362cd') 3041 def test_filter_combo_78(self): 3042 """Test a combination scan filter and advertisement 3043 3044 Test that an advertisement is found and matches corresponding 3045 settings. 3046 3047 Steps: 3048 1. Create a advertise data object 3049 2. Create a advertise settings object. 3050 3. Create a advertise callback object. 3051 4. Start an LE advertising using the objects created in steps 1-3. 3052 5. Find the onSuccess advertisement event. 3053 3054 Expected Result: 3055 Advertisement is successfully advertising. 3056 3057 Returns: 3058 Pass if True 3059 Fail if False 3060 3061 TAGS: LE, Advertising, Filtering, Scanning 3062 Priority: 2 3063 """ 3064 filters = { 3065 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3066 'service_data_uuid': self.service_uuid_1, 3067 'manufacturer_specific_data': self.manu_specific_data_small_3, 3068 'include_tx_power_level': True, 3069 'include_device_name': True, 3070 'service_data': self.service_data_medium 3071 } 3072 settings_in_effect = { 3073 'mode': ble_advertise_settings_modes['low_latency'] 3074 } 3075 return self._magic((filters, settings_in_effect)) 3076 3077 @BluetoothBaseTest.bt_test_wrap 3078 @test_tracker_info(uuid='9d3fc46a-07b7-48ad-9a31-fcdba259c670') 3079 def test_filter_combo_79(self): 3080 """Test a combination scan filter and advertisement 3081 3082 Test that an advertisement is found and matches corresponding 3083 settings. 3084 3085 Steps: 3086 1. Create a advertise data object 3087 2. Create a advertise settings object. 3088 3. Create a advertise callback object. 3089 4. Start an LE advertising using the objects created in steps 1-3. 3090 5. Find the onSuccess advertisement event. 3091 3092 Expected Result: 3093 Advertisement is successfully advertising. 3094 3095 Returns: 3096 Pass if True 3097 Fail if False 3098 3099 TAGS: LE, Advertising, Filtering, Scanning 3100 Priority: 2 3101 """ 3102 filters = { 3103 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3104 'service_data_uuid': self.service_uuid_1, 3105 'manufacturer_specific_data': self.manu_specific_data_small_3, 3106 'include_tx_power_level': True, 3107 'include_device_name': True, 3108 'service_data': [1] 3109 } 3110 settings_in_effect = { 3111 'mode': ble_advertise_settings_modes['low_latency'] 3112 } 3113 return self._magic((filters, settings_in_effect)) 3114 3115 @BluetoothBaseTest.bt_test_wrap 3116 @test_tracker_info(uuid='9ba5e905-634f-485b-829c-1ef79fa5f116') 3117 def test_filter_combo_80(self): 3118 """Test a combination scan filter and advertisement 3119 3120 Test that an advertisement is found and matches corresponding 3121 settings. 3122 3123 Steps: 3124 1. Create a advertise data object 3125 2. Create a advertise settings object. 3126 3. Create a advertise callback object. 3127 4. Start an LE advertising using the objects created in steps 1-3. 3128 5. Find the onSuccess advertisement event. 3129 3130 Expected Result: 3131 Advertisement is successfully advertising. 3132 3133 Returns: 3134 Pass if True 3135 Fail if False 3136 3137 TAGS: LE, Advertising, Filtering, Scanning 3138 Priority: 2 3139 """ 3140 filters = { 3141 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3142 'service_data_uuid': self.service_uuid_1, 3143 'manufacturer_specific_data': self.manu_specific_data_small_3, 3144 'include_tx_power_level': True, 3145 'include_device_name': True, 3146 'service_data': self.service_data_small_2 3147 } 3148 settings_in_effect = { 3149 'mode': ble_advertise_settings_modes['low_latency'] 3150 } 3151 return self._magic((filters, settings_in_effect)) 3152 3153 @BluetoothBaseTest.bt_test_wrap 3154 @test_tracker_info(uuid='b275ff76-eec5-467b-b12d-7440ff588cec') 3155 def test_filter_combo_81(self): 3156 """Test a combination scan filter and advertisement 3157 3158 Test that an advertisement is found and matches corresponding 3159 settings. 3160 3161 Steps: 3162 1. Create a advertise data object 3163 2. Create a advertise settings object. 3164 3. Create a advertise callback object. 3165 4. Start an LE advertising using the objects created in steps 1-3. 3166 5. Find the onSuccess advertisement event. 3167 3168 Expected Result: 3169 Advertisement is successfully advertising. 3170 3171 Returns: 3172 Pass if True 3173 Fail if False 3174 3175 TAGS: LE, Advertising, Filtering, Scanning 3176 Priority: 2 3177 """ 3178 filters = { 3179 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3180 'service_data_uuid': self.service_uuid_1, 3181 'manufacturer_specific_data': self.manu_sepecific_data_small, 3182 'include_tx_power_level': False, 3183 'include_device_name': True, 3184 'service_data': self.service_data_medium 3185 } 3186 settings_in_effect = { 3187 'mode': ble_advertise_settings_modes['low_latency'] 3188 } 3189 return self._magic((filters, settings_in_effect)) 3190 3191 @BluetoothBaseTest.bt_test_wrap 3192 @test_tracker_info(uuid='009ecb1c-2860-4a4e-867b-c712569ddfd1') 3193 def test_filter_combo_82(self): 3194 """Test a combination scan filter and advertisement 3195 3196 Test that an advertisement is found and matches corresponding 3197 settings. 3198 3199 Steps: 3200 1. Create a advertise data object 3201 2. Create a advertise settings object. 3202 3. Create a advertise callback object. 3203 4. Start an LE advertising using the objects created in steps 1-3. 3204 5. Find the onSuccess advertisement event. 3205 3206 Expected Result: 3207 Advertisement is successfully advertising. 3208 3209 Returns: 3210 Pass if True 3211 Fail if False 3212 3213 TAGS: LE, Advertising, Filtering, Scanning 3214 Priority: 2 3215 """ 3216 filters = { 3217 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3218 'service_data_uuid': self.service_uuid_1, 3219 'manufacturer_specific_data': self.manu_sepecific_data_small, 3220 'include_tx_power_level': False, 3221 'include_device_name': True, 3222 'service_data': [1] 3223 } 3224 settings_in_effect = { 3225 'mode': ble_advertise_settings_modes['low_latency'] 3226 } 3227 return self._magic((filters, settings_in_effect)) 3228 3229 @BluetoothBaseTest.bt_test_wrap 3230 @test_tracker_info(uuid='61c7da36-6b19-49d2-9981-120bb0b76372') 3231 def test_filter_combo_83(self): 3232 """Test a combination scan filter and advertisement 3233 3234 Test that an advertisement is found and matches corresponding 3235 settings. 3236 3237 Steps: 3238 1. Create a advertise data object 3239 2. Create a advertise settings object. 3240 3. Create a advertise callback object. 3241 4. Start an LE advertising using the objects created in steps 1-3. 3242 5. Find the onSuccess advertisement event. 3243 3244 Expected Result: 3245 Advertisement is successfully advertising. 3246 3247 Returns: 3248 Pass if True 3249 Fail if False 3250 3251 TAGS: LE, Advertising, Filtering, Scanning 3252 Priority: 2 3253 """ 3254 filters = { 3255 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3256 'service_data_uuid': self.service_uuid_1, 3257 'manufacturer_specific_data': self.manu_sepecific_data_small, 3258 'include_tx_power_level': False, 3259 'include_device_name': True, 3260 'service_data': self.service_data_small_2 3261 } 3262 settings_in_effect = { 3263 'mode': ble_advertise_settings_modes['low_latency'] 3264 } 3265 return self._magic((filters, settings_in_effect)) 3266 3267 @BluetoothBaseTest.bt_test_wrap 3268 @test_tracker_info(uuid='4c22688a-4d03-4145-aa2f-f989832f8086') 3269 def test_filter_combo_84(self): 3270 """Test a combination scan filter and advertisement 3271 3272 Test that an advertisement is found and matches corresponding 3273 settings. 3274 3275 Steps: 3276 1. Create a advertise data object 3277 2. Create a advertise settings object. 3278 3. Create a advertise callback object. 3279 4. Start an LE advertising using the objects created in steps 1-3. 3280 5. Find the onSuccess advertisement event. 3281 3282 Expected Result: 3283 Advertisement is successfully advertising. 3284 3285 Returns: 3286 Pass if True 3287 Fail if False 3288 3289 TAGS: LE, Advertising, Filtering, Scanning 3290 Priority: 2 3291 """ 3292 filters = { 3293 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3294 'service_data_uuid': self.service_uuid_1, 3295 'manufacturer_specific_data': self.manu_sepecific_data_small, 3296 'include_tx_power_level': False, 3297 'include_device_name': True, 3298 'service_data': self.service_data_medium 3299 } 3300 settings_in_effect = { 3301 'mode': ble_advertise_settings_modes['low_latency'] 3302 } 3303 return self._magic((filters, settings_in_effect)) 3304 3305 @BluetoothBaseTest.bt_test_wrap 3306 @test_tracker_info(uuid='cc159f43-5619-46fe-b8ad-209a446f10c0') 3307 def test_filter_combo_85(self): 3308 """Test a combination scan filter and advertisement 3309 3310 Test that an advertisement is found and matches corresponding 3311 settings. 3312 3313 Steps: 3314 1. Create a advertise data object 3315 2. Create a advertise settings object. 3316 3. Create a advertise callback object. 3317 4. Start an LE advertising using the objects created in steps 1-3. 3318 5. Find the onSuccess advertisement event. 3319 3320 Expected Result: 3321 Advertisement is successfully advertising. 3322 3323 Returns: 3324 Pass if True 3325 Fail if False 3326 3327 TAGS: LE, Advertising, Filtering, Scanning 3328 Priority: 2 3329 """ 3330 filters = { 3331 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3332 'service_data_uuid': self.service_uuid_1, 3333 'manufacturer_specific_data': self.manu_sepecific_data_small, 3334 'include_tx_power_level': False, 3335 'include_device_name': True, 3336 'service_data': [1] 3337 } 3338 settings_in_effect = { 3339 'mode': ble_advertise_settings_modes['low_latency'] 3340 } 3341 return self._magic((filters, settings_in_effect)) 3342 3343 @BluetoothBaseTest.bt_test_wrap 3344 @test_tracker_info(uuid='9a81d52e-cd46-4e2b-9ac1-ecebcc04d788') 3345 def test_filter_combo_86(self): 3346 """Test a combination scan filter and advertisement 3347 3348 Test that an advertisement is found and matches corresponding 3349 settings. 3350 3351 Steps: 3352 1. Create a advertise data object 3353 2. Create a advertise settings object. 3354 3. Create a advertise callback object. 3355 4. Start an LE advertising using the objects created in steps 1-3. 3356 5. Find the onSuccess advertisement event. 3357 3358 Expected Result: 3359 Advertisement is successfully advertising. 3360 3361 Returns: 3362 Pass if True 3363 Fail if False 3364 3365 TAGS: LE, Advertising, Filtering, Scanning 3366 Priority: 2 3367 """ 3368 filters = { 3369 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3370 'service_data_uuid': self.service_uuid_1, 3371 'manufacturer_specific_data': self.manu_sepecific_data_small, 3372 'include_tx_power_level': False, 3373 'include_device_name': True, 3374 'service_data': self.service_data_small_2 3375 } 3376 settings_in_effect = { 3377 'mode': ble_advertise_settings_modes['low_latency'] 3378 } 3379 return self._magic((filters, settings_in_effect)) 3380 3381 @BluetoothBaseTest.bt_test_wrap 3382 @test_tracker_info(uuid='938c404f-8dd8-46a5-afe4-f87559bb2c9d') 3383 def test_filter_combo_87(self): 3384 """Test a combination scan filter and advertisement 3385 3386 Test that an advertisement is found and matches corresponding 3387 settings. 3388 3389 Steps: 3390 1. Create a advertise data object 3391 2. Create a advertise settings object. 3392 3. Create a advertise callback object. 3393 4. Start an LE advertising using the objects created in steps 1-3. 3394 5. Find the onSuccess advertisement event. 3395 3396 Expected Result: 3397 Advertisement is successfully advertising. 3398 3399 Returns: 3400 Pass if True 3401 Fail if False 3402 3403 TAGS: LE, Advertising, Filtering, Scanning 3404 Priority: 2 3405 """ 3406 filters = { 3407 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3408 'service_data_uuid': self.service_uuid_1, 3409 'manufacturer_specific_data': self.manu_sepecific_data_small, 3410 'include_tx_power_level': False, 3411 'include_device_name': True, 3412 'service_data': self.service_data_medium 3413 } 3414 settings_in_effect = { 3415 'mode': ble_advertise_settings_modes['low_latency'] 3416 } 3417 return self._magic((filters, settings_in_effect)) 3418 3419 @BluetoothBaseTest.bt_test_wrap 3420 @test_tracker_info(uuid='4bc6a2db-e845-435d-8d8e-a990f4b1fcdc') 3421 def test_filter_combo_88(self): 3422 """Test a combination scan filter and advertisement 3423 3424 Test that an advertisement is found and matches corresponding 3425 settings. 3426 3427 Steps: 3428 1. Create a advertise data object 3429 2. Create a advertise settings object. 3430 3. Create a advertise callback object. 3431 4. Start an LE advertising using the objects created in steps 1-3. 3432 5. Find the onSuccess advertisement event. 3433 3434 Expected Result: 3435 Advertisement is successfully advertising. 3436 3437 Returns: 3438 Pass if True 3439 Fail if False 3440 3441 TAGS: LE, Advertising, Filtering, Scanning 3442 Priority: 2 3443 """ 3444 filters = { 3445 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3446 'service_data_uuid': self.service_uuid_1, 3447 'manufacturer_specific_data': self.manu_sepecific_data_small, 3448 'include_tx_power_level': False, 3449 'include_device_name': True, 3450 'service_data': [1] 3451 } 3452 settings_in_effect = { 3453 'mode': ble_advertise_settings_modes['low_latency'] 3454 } 3455 return self._magic((filters, settings_in_effect)) 3456 3457 @BluetoothBaseTest.bt_test_wrap 3458 @test_tracker_info(uuid='e245fb6a-35fc-488f-ada6-393fe4a09134') 3459 def test_filter_combo_89(self): 3460 """Test a combination scan filter and advertisement 3461 3462 Test that an advertisement is found and matches corresponding 3463 settings. 3464 3465 Steps: 3466 1. Create a advertise data object 3467 2. Create a advertise settings object. 3468 3. Create a advertise callback object. 3469 4. Start an LE advertising using the objects created in steps 1-3. 3470 5. Find the onSuccess advertisement event. 3471 3472 Expected Result: 3473 Advertisement is successfully advertising. 3474 3475 Returns: 3476 Pass if True 3477 Fail if False 3478 3479 TAGS: LE, Advertising, Filtering, Scanning 3480 Priority: 2 3481 """ 3482 filters = { 3483 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3484 'service_data_uuid': self.service_uuid_1, 3485 'manufacturer_specific_data': self.manu_sepecific_data_small, 3486 'include_tx_power_level': False, 3487 'include_device_name': True, 3488 'service_data': self.service_data_small_2 3489 } 3490 settings_in_effect = { 3491 'mode': ble_advertise_settings_modes['low_latency'] 3492 } 3493 return self._magic((filters, settings_in_effect)) 3494 3495 @BluetoothBaseTest.bt_test_wrap 3496 @test_tracker_info(uuid='4dd70ebf-ec85-4e95-a9f5-a10e1791293c') 3497 def test_filter_combo_90(self): 3498 """Test a combination scan filter and advertisement 3499 3500 Test that an advertisement is found and matches corresponding 3501 settings. 3502 3503 Steps: 3504 1. Create a advertise data object 3505 2. Create a advertise settings object. 3506 3. Create a advertise callback object. 3507 4. Start an LE advertising using the objects created in steps 1-3. 3508 5. Find the onSuccess advertisement event. 3509 3510 Expected Result: 3511 Advertisement is successfully advertising. 3512 3513 Returns: 3514 Pass if True 3515 Fail if False 3516 3517 TAGS: LE, Advertising, Filtering, Scanning 3518 Priority: 2 3519 """ 3520 filters = { 3521 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3522 'service_data_uuid': self.service_uuid_1, 3523 'manufacturer_specific_data': [1, 2], 3524 'include_tx_power_level': False, 3525 'include_device_name': True, 3526 'service_data': self.service_data_medium 3527 } 3528 settings_in_effect = { 3529 'mode': ble_advertise_settings_modes['low_latency'] 3530 } 3531 return self._magic((filters, settings_in_effect)) 3532 3533 @BluetoothBaseTest.bt_test_wrap 3534 @test_tracker_info(uuid='b0085042-0fd6-4ff3-af69-156f270953b1') 3535 def test_filter_combo_91(self): 3536 """Test a combination scan filter and advertisement 3537 3538 Test that an advertisement is found and matches corresponding 3539 settings. 3540 3541 Steps: 3542 1. Create a advertise data object 3543 2. Create a advertise settings object. 3544 3. Create a advertise callback object. 3545 4. Start an LE advertising using the objects created in steps 1-3. 3546 5. Find the onSuccess advertisement event. 3547 3548 Expected Result: 3549 Advertisement is successfully advertising. 3550 3551 Returns: 3552 Pass if True 3553 Fail if False 3554 3555 TAGS: LE, Advertising, Filtering, Scanning 3556 Priority: 2 3557 """ 3558 filters = { 3559 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3560 'service_data_uuid': self.service_uuid_1, 3561 'manufacturer_specific_data': [1, 2], 3562 'include_tx_power_level': False, 3563 'include_device_name': True, 3564 'service_data': [1] 3565 } 3566 settings_in_effect = { 3567 'mode': ble_advertise_settings_modes['low_latency'] 3568 } 3569 return self._magic((filters, settings_in_effect)) 3570 3571 @BluetoothBaseTest.bt_test_wrap 3572 @test_tracker_info(uuid='6b9a539b-b6cc-46b1-a9a5-ef20808f5e74') 3573 def test_filter_combo_92(self): 3574 """Test a combination scan filter and advertisement 3575 3576 Test that an advertisement is found and matches corresponding 3577 settings. 3578 3579 Steps: 3580 1. Create a advertise data object 3581 2. Create a advertise settings object. 3582 3. Create a advertise callback object. 3583 4. Start an LE advertising using the objects created in steps 1-3. 3584 5. Find the onSuccess advertisement event. 3585 3586 Expected Result: 3587 Advertisement is successfully advertising. 3588 3589 Returns: 3590 Pass if True 3591 Fail if False 3592 3593 TAGS: LE, Advertising, Filtering, Scanning 3594 Priority: 2 3595 """ 3596 filters = { 3597 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3598 'service_data_uuid': self.service_uuid_1, 3599 'manufacturer_specific_data': [1, 2], 3600 'include_tx_power_level': False, 3601 'include_device_name': True, 3602 'service_data': self.service_data_small_2 3603 } 3604 settings_in_effect = { 3605 'mode': ble_advertise_settings_modes['low_latency'] 3606 } 3607 return self._magic((filters, settings_in_effect)) 3608 3609 @BluetoothBaseTest.bt_test_wrap 3610 @test_tracker_info(uuid='1f18a94c-a72e-4912-a91a-0be96e708be4') 3611 def test_filter_combo_93(self): 3612 """Test a combination scan filter and advertisement 3613 3614 Test that an advertisement is found and matches corresponding 3615 settings. 3616 3617 Steps: 3618 1. Create a advertise data object 3619 2. Create a advertise settings object. 3620 3. Create a advertise callback object. 3621 4. Start an LE advertising using the objects created in steps 1-3. 3622 5. Find the onSuccess advertisement event. 3623 3624 Expected Result: 3625 Advertisement is successfully advertising. 3626 3627 Returns: 3628 Pass if True 3629 Fail if False 3630 3631 TAGS: LE, Advertising, Filtering, Scanning 3632 Priority: 2 3633 """ 3634 filters = { 3635 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3636 'service_data_uuid': self.service_uuid_1, 3637 'manufacturer_specific_data': [1, 2], 3638 'include_tx_power_level': False, 3639 'include_device_name': True, 3640 'service_data': self.service_data_medium 3641 } 3642 settings_in_effect = { 3643 'mode': ble_advertise_settings_modes['low_latency'] 3644 } 3645 return self._magic((filters, settings_in_effect)) 3646 3647 @BluetoothBaseTest.bt_test_wrap 3648 @test_tracker_info(uuid='9f2d3923-a932-40c8-b527-8baedcf3254c') 3649 def test_filter_combo_94(self): 3650 """Test a combination scan filter and advertisement 3651 3652 Test that an advertisement is found and matches corresponding 3653 settings. 3654 3655 Steps: 3656 1. Create a advertise data object 3657 2. Create a advertise settings object. 3658 3. Create a advertise callback object. 3659 4. Start an LE advertising using the objects created in steps 1-3. 3660 5. Find the onSuccess advertisement event. 3661 3662 Expected Result: 3663 Advertisement is successfully advertising. 3664 3665 Returns: 3666 Pass if True 3667 Fail if False 3668 3669 TAGS: LE, Advertising, Filtering, Scanning 3670 Priority: 2 3671 """ 3672 filters = { 3673 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3674 'service_data_uuid': self.service_uuid_1, 3675 'manufacturer_specific_data': [1, 2], 3676 'include_tx_power_level': False, 3677 'include_device_name': True, 3678 'service_data': [1] 3679 } 3680 settings_in_effect = { 3681 'mode': ble_advertise_settings_modes['low_latency'] 3682 } 3683 return self._magic((filters, settings_in_effect)) 3684 3685 @BluetoothBaseTest.bt_test_wrap 3686 @test_tracker_info(uuid='edf61fa9-b51f-41fd-b3ca-0035ee7dbd65') 3687 def test_filter_combo_95(self): 3688 """Test a combination scan filter and advertisement 3689 3690 Test that an advertisement is found and matches corresponding 3691 settings. 3692 3693 Steps: 3694 1. Create a advertise data object 3695 2. Create a advertise settings object. 3696 3. Create a advertise callback object. 3697 4. Start an LE advertising using the objects created in steps 1-3. 3698 5. Find the onSuccess advertisement event. 3699 3700 Expected Result: 3701 Advertisement is successfully advertising. 3702 3703 Returns: 3704 Pass if True 3705 Fail if False 3706 3707 TAGS: LE, Advertising, Filtering, Scanning 3708 Priority: 2 3709 """ 3710 filters = { 3711 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3712 'service_data_uuid': self.service_uuid_1, 3713 'manufacturer_specific_data': [1, 2], 3714 'include_tx_power_level': False, 3715 'include_device_name': True, 3716 'service_data': self.service_data_small_2 3717 } 3718 settings_in_effect = { 3719 'mode': ble_advertise_settings_modes['low_latency'] 3720 } 3721 return self._magic((filters, settings_in_effect)) 3722 3723 @BluetoothBaseTest.bt_test_wrap 3724 @test_tracker_info(uuid='8b8adcf5-adb9-4a48-8570-4e1d2e6b47c6') 3725 def test_filter_combo_96(self): 3726 """Test a combination scan filter and advertisement 3727 3728 Test that an advertisement is found and matches corresponding 3729 settings. 3730 3731 Steps: 3732 1. Create a advertise data object 3733 2. Create a advertise settings object. 3734 3. Create a advertise callback object. 3735 4. Start an LE advertising using the objects created in steps 1-3. 3736 5. Find the onSuccess advertisement event. 3737 3738 Expected Result: 3739 Advertisement is successfully advertising. 3740 3741 Returns: 3742 Pass if True 3743 Fail if False 3744 3745 TAGS: LE, Advertising, Filtering, Scanning 3746 Priority: 2 3747 """ 3748 filters = { 3749 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3750 'service_data_uuid': self.service_uuid_1, 3751 'manufacturer_specific_data': [1, 2], 3752 'include_tx_power_level': False, 3753 'include_device_name': True, 3754 'service_data': self.service_data_medium 3755 } 3756 settings_in_effect = { 3757 'mode': ble_advertise_settings_modes['low_latency'] 3758 } 3759 return self._magic((filters, settings_in_effect)) 3760 3761 @BluetoothBaseTest.bt_test_wrap 3762 @test_tracker_info(uuid='cc7857e0-5a5b-468f-bf5e-dc1478716715') 3763 def test_filter_combo_97(self): 3764 """Test a combination scan filter and advertisement 3765 3766 Test that an advertisement is found and matches corresponding 3767 settings. 3768 3769 Steps: 3770 1. Create a advertise data object 3771 2. Create a advertise settings object. 3772 3. Create a advertise callback object. 3773 4. Start an LE advertising using the objects created in steps 1-3. 3774 5. Find the onSuccess advertisement event. 3775 3776 Expected Result: 3777 Advertisement is successfully advertising. 3778 3779 Returns: 3780 Pass if True 3781 Fail if False 3782 3783 TAGS: LE, Advertising, Filtering, Scanning 3784 Priority: 2 3785 """ 3786 filters = { 3787 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3788 'service_data_uuid': self.service_uuid_1, 3789 'manufacturer_specific_data': [1, 2], 3790 'include_tx_power_level': False, 3791 'include_device_name': True, 3792 'service_data': [1] 3793 } 3794 settings_in_effect = { 3795 'mode': ble_advertise_settings_modes['low_latency'] 3796 } 3797 return self._magic((filters, settings_in_effect)) 3798 3799 @BluetoothBaseTest.bt_test_wrap 3800 @test_tracker_info(uuid='b4c9e01f-944c-4d8e-9a3f-49efaa22887c') 3801 def test_filter_combo_98(self): 3802 """Test a combination scan filter and advertisement 3803 3804 Test that an advertisement is found and matches corresponding 3805 settings. 3806 3807 Steps: 3808 1. Create a advertise data object 3809 2. Create a advertise settings object. 3810 3. Create a advertise callback object. 3811 4. Start an LE advertising using the objects created in steps 1-3. 3812 5. Find the onSuccess advertisement event. 3813 3814 Expected Result: 3815 Advertisement is successfully advertising. 3816 3817 Returns: 3818 Pass if True 3819 Fail if False 3820 3821 TAGS: LE, Advertising, Filtering, Scanning 3822 Priority: 2 3823 """ 3824 filters = { 3825 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 3826 'service_data_uuid': self.service_uuid_1, 3827 'manufacturer_specific_data': [1, 2], 3828 'include_tx_power_level': False, 3829 'include_device_name': True, 3830 'service_data': self.service_data_small_2 3831 } 3832 settings_in_effect = { 3833 'mode': ble_advertise_settings_modes['low_latency'] 3834 } 3835 return self._magic((filters, settings_in_effect)) 3836 3837 @BluetoothBaseTest.bt_test_wrap 3838 @test_tracker_info(uuid='951e19cf-c138-4d8e-92e6-b42410b8114f') 3839 def test_filter_combo_99(self): 3840 """Test a combination scan filter and advertisement 3841 3842 Test that an advertisement is found and matches corresponding 3843 settings. 3844 3845 Steps: 3846 1. Create a advertise data object 3847 2. Create a advertise settings object. 3848 3. Create a advertise callback object. 3849 4. Start an LE advertising using the objects created in steps 1-3. 3850 5. Find the onSuccess advertisement event. 3851 3852 Expected Result: 3853 Advertisement is successfully advertising. 3854 3855 Returns: 3856 Pass if True 3857 Fail if False 3858 3859 TAGS: LE, Advertising, Filtering, Scanning 3860 Priority: 2 3861 """ 3862 filters = { 3863 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3864 'service_data_uuid': self.service_uuid_1, 3865 'manufacturer_specific_data': self.manu_specific_data_small_3, 3866 'include_tx_power_level': False, 3867 'include_device_name': True, 3868 'service_data': self.service_data_medium 3869 } 3870 settings_in_effect = { 3871 'mode': ble_advertise_settings_modes['low_latency'] 3872 } 3873 return self._magic((filters, settings_in_effect)) 3874 3875 @BluetoothBaseTest.bt_test_wrap 3876 @test_tracker_info(uuid='ad50f0c0-c19e-45b8-8fb2-95afe81f7620') 3877 def test_filter_combo_100(self): 3878 """Test a combination scan filter and advertisement 3879 3880 Test that an advertisement is found and matches corresponding 3881 settings. 3882 3883 Steps: 3884 1. Create a advertise data object 3885 2. Create a advertise settings object. 3886 3. Create a advertise callback object. 3887 4. Start an LE advertising using the objects created in steps 1-3. 3888 5. Find the onSuccess advertisement event. 3889 3890 Expected Result: 3891 Advertisement is successfully advertising. 3892 3893 Returns: 3894 Pass if True 3895 Fail if False 3896 3897 TAGS: LE, Advertising, Filtering, Scanning 3898 Priority: 2 3899 """ 3900 filters = { 3901 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3902 'service_data_uuid': self.service_uuid_1, 3903 'manufacturer_specific_data': self.manu_specific_data_small_3, 3904 'include_tx_power_level': False, 3905 'include_device_name': True, 3906 'service_data': [1] 3907 } 3908 settings_in_effect = { 3909 'mode': ble_advertise_settings_modes['low_latency'] 3910 } 3911 return self._magic((filters, settings_in_effect)) 3912 3913 @BluetoothBaseTest.bt_test_wrap 3914 @test_tracker_info(uuid='a7fd36d6-77ec-453e-a67c-0c2fc78e572a') 3915 def test_filter_combo_101(self): 3916 """Test a combination scan filter and advertisement 3917 3918 Test that an advertisement is found and matches corresponding 3919 settings. 3920 3921 Steps: 3922 1. Create a advertise data object 3923 2. Create a advertise settings object. 3924 3. Create a advertise callback object. 3925 4. Start an LE advertising using the objects created in steps 1-3. 3926 5. Find the onSuccess advertisement event. 3927 3928 Expected Result: 3929 Advertisement is successfully advertising. 3930 3931 Returns: 3932 Pass if True 3933 Fail if False 3934 3935 TAGS: LE, Advertising, Filtering, Scanning 3936 Priority: 2 3937 """ 3938 filters = { 3939 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 3940 'service_data_uuid': self.service_uuid_1, 3941 'manufacturer_specific_data': self.manu_specific_data_small_3, 3942 'include_tx_power_level': False, 3943 'include_device_name': True, 3944 'service_data': self.service_data_small_2 3945 } 3946 settings_in_effect = { 3947 'mode': ble_advertise_settings_modes['low_latency'] 3948 } 3949 return self._magic((filters, settings_in_effect)) 3950 3951 @BluetoothBaseTest.bt_test_wrap 3952 @test_tracker_info(uuid='d661aafd-005d-4a31-88b0-a238e328b16d') 3953 def test_filter_combo_102(self): 3954 """Test a combination scan filter and advertisement 3955 3956 Test that an advertisement is found and matches corresponding 3957 settings. 3958 3959 Steps: 3960 1. Create a advertise data object 3961 2. Create a advertise settings object. 3962 3. Create a advertise callback object. 3963 4. Start an LE advertising using the objects created in steps 1-3. 3964 5. Find the onSuccess advertisement event. 3965 3966 Expected Result: 3967 Advertisement is successfully advertising. 3968 3969 Returns: 3970 Pass if True 3971 Fail if False 3972 3973 TAGS: LE, Advertising, Filtering, Scanning 3974 Priority: 2 3975 """ 3976 filters = { 3977 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 3978 'service_data_uuid': self.service_uuid_1, 3979 'manufacturer_specific_data': self.manu_specific_data_small_3, 3980 'include_tx_power_level': False, 3981 'include_device_name': True, 3982 'service_data': self.service_data_medium 3983 } 3984 settings_in_effect = { 3985 'mode': ble_advertise_settings_modes['low_latency'] 3986 } 3987 return self._magic((filters, settings_in_effect)) 3988 3989 @BluetoothBaseTest.bt_test_wrap 3990 @test_tracker_info(uuid='7fe951d2-28c5-43a9-af79-c0fbf3a3388f') 3991 def test_filter_combo_103(self): 3992 """Test a combination scan filter and advertisement 3993 3994 Test that an advertisement is found and matches corresponding 3995 settings. 3996 3997 Steps: 3998 1. Create a advertise data object 3999 2. Create a advertise settings object. 4000 3. Create a advertise callback object. 4001 4. Start an LE advertising using the objects created in steps 1-3. 4002 5. Find the onSuccess advertisement event. 4003 4004 Expected Result: 4005 Advertisement is successfully advertising. 4006 4007 Returns: 4008 Pass if True 4009 Fail if False 4010 4011 TAGS: LE, Advertising, Filtering, Scanning 4012 Priority: 2 4013 """ 4014 filters = { 4015 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4016 'service_data_uuid': self.service_uuid_1, 4017 'manufacturer_specific_data': self.manu_specific_data_small_3, 4018 'include_tx_power_level': False, 4019 'include_device_name': True, 4020 'service_data': [1] 4021 } 4022 settings_in_effect = { 4023 'mode': ble_advertise_settings_modes['low_latency'] 4024 } 4025 return self._magic((filters, settings_in_effect)) 4026 4027 @BluetoothBaseTest.bt_test_wrap 4028 @test_tracker_info(uuid='d802f38b-830f-4cd2-af2c-a44ba625a401') 4029 def test_filter_combo_104(self): 4030 """Test a combination scan filter and advertisement 4031 4032 Test that an advertisement is found and matches corresponding 4033 settings. 4034 4035 Steps: 4036 1. Create a advertise data object 4037 2. Create a advertise settings object. 4038 3. Create a advertise callback object. 4039 4. Start an LE advertising using the objects created in steps 1-3. 4040 5. Find the onSuccess advertisement event. 4041 4042 Expected Result: 4043 Advertisement is successfully advertising. 4044 4045 Returns: 4046 Pass if True 4047 Fail if False 4048 4049 TAGS: LE, Advertising, Filtering, Scanning 4050 Priority: 2 4051 """ 4052 filters = { 4053 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4054 'service_data_uuid': self.service_uuid_1, 4055 'manufacturer_specific_data': self.manu_specific_data_small_3, 4056 'include_tx_power_level': False, 4057 'include_device_name': True, 4058 'service_data': self.service_data_small_2 4059 } 4060 settings_in_effect = { 4061 'mode': ble_advertise_settings_modes['low_latency'] 4062 } 4063 return self._magic((filters, settings_in_effect)) 4064 4065 @BluetoothBaseTest.bt_test_wrap 4066 @test_tracker_info(uuid='e1a30f67-1577-4cfb-9a0d-c07493a341b2') 4067 def test_filter_combo_105(self): 4068 """Test a combination scan filter and advertisement 4069 4070 Test that an advertisement is found and matches corresponding 4071 settings. 4072 4073 Steps: 4074 1. Create a advertise data object 4075 2. Create a advertise settings object. 4076 3. Create a advertise callback object. 4077 4. Start an LE advertising using the objects created in steps 1-3. 4078 5. Find the onSuccess advertisement event. 4079 4080 Expected Result: 4081 Advertisement is successfully advertising. 4082 4083 Returns: 4084 Pass if True 4085 Fail if False 4086 4087 TAGS: LE, Advertising, Filtering, Scanning 4088 Priority: 2 4089 """ 4090 filters = { 4091 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4092 'service_data_uuid': self.service_uuid_1, 4093 'manufacturer_specific_data': self.manu_specific_data_small_3, 4094 'include_tx_power_level': False, 4095 'include_device_name': True, 4096 'service_data': self.service_data_medium 4097 } 4098 settings_in_effect = { 4099 'mode': ble_advertise_settings_modes['low_latency'] 4100 } 4101 return self._magic((filters, settings_in_effect)) 4102 4103 @BluetoothBaseTest.bt_test_wrap 4104 @test_tracker_info(uuid='774a6bf9-cfd6-40ef-8b91-3576f23eb01b') 4105 def test_filter_combo_106(self): 4106 """Test a combination scan filter and advertisement 4107 4108 Test that an advertisement is found and matches corresponding 4109 settings. 4110 4111 Steps: 4112 1. Create a advertise data object 4113 2. Create a advertise settings object. 4114 3. Create a advertise callback object. 4115 4. Start an LE advertising using the objects created in steps 1-3. 4116 5. Find the onSuccess advertisement event. 4117 4118 Expected Result: 4119 Advertisement is successfully advertising. 4120 4121 Returns: 4122 Pass if True 4123 Fail if False 4124 4125 TAGS: LE, Advertising, Filtering, Scanning 4126 Priority: 2 4127 """ 4128 filters = { 4129 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4130 'service_data_uuid': self.service_uuid_1, 4131 'manufacturer_specific_data': self.manu_specific_data_small_3, 4132 'include_tx_power_level': False, 4133 'include_device_name': True, 4134 'service_data': [1] 4135 } 4136 settings_in_effect = { 4137 'mode': ble_advertise_settings_modes['low_latency'] 4138 } 4139 return self._magic((filters, settings_in_effect)) 4140 4141 @BluetoothBaseTest.bt_test_wrap 4142 @test_tracker_info(uuid='b85d0c78-69bc-42e3-ac78-61ad8176a1d0') 4143 def test_filter_combo_107(self): 4144 """Test a combination scan filter and advertisement 4145 4146 Test that an advertisement is found and matches corresponding 4147 settings. 4148 4149 Steps: 4150 1. Create a advertise data object 4151 2. Create a advertise settings object. 4152 3. Create a advertise callback object. 4153 4. Start an LE advertising using the objects created in steps 1-3. 4154 5. Find the onSuccess advertisement event. 4155 4156 Expected Result: 4157 Advertisement is successfully advertising. 4158 4159 Returns: 4160 Pass if True 4161 Fail if False 4162 4163 TAGS: LE, Advertising, Filtering, Scanning 4164 Priority: 2 4165 """ 4166 filters = { 4167 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4168 'service_data_uuid': self.service_uuid_1, 4169 'manufacturer_specific_data': self.manu_specific_data_small_3, 4170 'include_tx_power_level': False, 4171 'include_device_name': True, 4172 'service_data': self.service_data_small_2 4173 } 4174 settings_in_effect = { 4175 'mode': ble_advertise_settings_modes['low_latency'] 4176 } 4177 return self._magic((filters, settings_in_effect)) 4178 4179 @BluetoothBaseTest.bt_test_wrap 4180 @test_tracker_info(uuid='bd93c530-4ab0-4d9b-b202-ea6dd1c8a27d') 4181 def test_filter_combo_108(self): 4182 """Test a combination scan filter and advertisement 4183 4184 Test that an advertisement is found and matches corresponding 4185 settings. 4186 4187 Steps: 4188 1. Create a advertise data object 4189 2. Create a advertise settings object. 4190 3. Create a advertise callback object. 4191 4. Start an LE advertising using the objects created in steps 1-3. 4192 5. Find the onSuccess advertisement event. 4193 4194 Expected Result: 4195 Advertisement is successfully advertising. 4196 4197 Returns: 4198 Pass if True 4199 Fail if False 4200 4201 TAGS: LE, Advertising, Filtering, Scanning 4202 Priority: 2 4203 """ 4204 filters = { 4205 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4206 'service_data_uuid': self.service_uuid_1, 4207 'manufacturer_specific_data': self.manu_sepecific_data_small, 4208 'include_tx_power_level': True, 4209 'include_device_name': False, 4210 'service_data': self.service_data_medium 4211 } 4212 settings_in_effect = { 4213 'scan_mode': ble_scan_settings_modes['low_latency'], 4214 'mode': ble_advertise_settings_modes['low_latency'] 4215 } 4216 return self._magic((filters, settings_in_effect)) 4217 4218 @BluetoothBaseTest.bt_test_wrap 4219 @test_tracker_info(uuid='4590bfbb-006f-46be-bd03-5afe8b81ac52') 4220 def test_filter_combo_109(self): 4221 """Test a combination scan filter and advertisement 4222 4223 Test that an advertisement is found and matches corresponding 4224 settings. 4225 4226 Steps: 4227 1. Create a advertise data object 4228 2. Create a advertise settings object. 4229 3. Create a advertise callback object. 4230 4. Start an LE advertising using the objects created in steps 1-3. 4231 5. Find the onSuccess advertisement event. 4232 4233 Expected Result: 4234 Advertisement is successfully advertising. 4235 4236 Returns: 4237 Pass if True 4238 Fail if False 4239 4240 TAGS: LE, Advertising, Filtering, Scanning 4241 Priority: 2 4242 """ 4243 filters = { 4244 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4245 'service_data_uuid': self.service_uuid_1, 4246 'manufacturer_specific_data': self.manu_sepecific_data_small, 4247 'include_tx_power_level': True, 4248 'include_device_name': False, 4249 'service_data': [1] 4250 } 4251 settings_in_effect = { 4252 'scan_mode': ble_scan_settings_modes['low_latency'], 4253 'mode': ble_advertise_settings_modes['low_latency'] 4254 } 4255 return self._magic((filters, settings_in_effect)) 4256 4257 @BluetoothBaseTest.bt_test_wrap 4258 @test_tracker_info(uuid='2626f60e-cb01-45a1-a23e-f1eaa85ac9ce') 4259 def test_filter_combo_110(self): 4260 """Test a combination scan filter and advertisement 4261 4262 Test that an advertisement is found and matches corresponding 4263 settings. 4264 4265 Steps: 4266 1. Create a advertise data object 4267 2. Create a advertise settings object. 4268 3. Create a advertise callback object. 4269 4. Start an LE advertising using the objects created in steps 1-3. 4270 5. Find the onSuccess advertisement event. 4271 4272 Expected Result: 4273 Advertisement is successfully advertising. 4274 4275 Returns: 4276 Pass if True 4277 Fail if False 4278 4279 TAGS: LE, Advertising, Filtering, Scanning 4280 Priority: 2 4281 """ 4282 filters = { 4283 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4284 'service_data_uuid': self.service_uuid_1, 4285 'manufacturer_specific_data': self.manu_sepecific_data_small, 4286 'include_tx_power_level': True, 4287 'include_device_name': False, 4288 'service_data': self.service_data_small_2 4289 } 4290 settings_in_effect = { 4291 'scan_mode': ble_scan_settings_modes['low_latency'], 4292 'mode': ble_advertise_settings_modes['low_latency'] 4293 } 4294 return self._magic((filters, settings_in_effect)) 4295 4296 @BluetoothBaseTest.bt_test_wrap 4297 @test_tracker_info(uuid='24cf16ac-10a6-4a02-9b72-84c280fa77a2') 4298 def test_filter_combo_111(self): 4299 """Test a combination scan filter and advertisement 4300 4301 Test that an advertisement is found and matches corresponding 4302 settings. 4303 4304 Steps: 4305 1. Create a advertise data object 4306 2. Create a advertise settings object. 4307 3. Create a advertise callback object. 4308 4. Start an LE advertising using the objects created in steps 1-3. 4309 5. Find the onSuccess advertisement event. 4310 4311 Expected Result: 4312 Advertisement is successfully advertising. 4313 4314 Returns: 4315 Pass if True 4316 Fail if False 4317 4318 TAGS: LE, Advertising, Filtering, Scanning 4319 Priority: 2 4320 """ 4321 filters = { 4322 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4323 'service_data_uuid': self.service_uuid_1, 4324 'manufacturer_specific_data': self.manu_sepecific_data_small, 4325 'include_tx_power_level': True, 4326 'include_device_name': False, 4327 'service_data': self.service_data_medium 4328 } 4329 settings_in_effect = { 4330 'scan_mode': ble_scan_settings_modes['low_latency'], 4331 'mode': ble_advertise_settings_modes['low_latency'] 4332 } 4333 return self._magic((filters, settings_in_effect)) 4334 4335 @BluetoothBaseTest.bt_test_wrap 4336 @test_tracker_info(uuid='6242aadb-028b-4932-9024-8b6d2148c458') 4337 def test_filter_combo_112(self): 4338 """Test a combination scan filter and advertisement 4339 4340 Test that an advertisement is found and matches corresponding 4341 settings. 4342 4343 Steps: 4344 1. Create a advertise data object 4345 2. Create a advertise settings object. 4346 3. Create a advertise callback object. 4347 4. Start an LE advertising using the objects created in steps 1-3. 4348 5. Find the onSuccess advertisement event. 4349 4350 Expected Result: 4351 Advertisement is successfully advertising. 4352 4353 Returns: 4354 Pass if True 4355 Fail if False 4356 4357 TAGS: LE, Advertising, Filtering, Scanning 4358 Priority: 2 4359 """ 4360 filters = { 4361 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4362 'service_data_uuid': self.service_uuid_1, 4363 'manufacturer_specific_data': self.manu_sepecific_data_small, 4364 'include_tx_power_level': True, 4365 'include_device_name': False, 4366 'service_data': [1] 4367 } 4368 settings_in_effect = { 4369 'scan_mode': ble_scan_settings_modes['low_latency'], 4370 'mode': ble_advertise_settings_modes['low_latency'] 4371 } 4372 return self._magic((filters, settings_in_effect)) 4373 4374 @BluetoothBaseTest.bt_test_wrap 4375 @test_tracker_info(uuid='5918fef7-0578-4999-b331-d2948e62e720') 4376 def test_filter_combo_113(self): 4377 """Test a combination scan filter and advertisement 4378 4379 Test that an advertisement is found and matches corresponding 4380 settings. 4381 4382 Steps: 4383 1. Create a advertise data object 4384 2. Create a advertise settings object. 4385 3. Create a advertise callback object. 4386 4. Start an LE advertising using the objects created in steps 1-3. 4387 5. Find the onSuccess advertisement event. 4388 4389 Expected Result: 4390 Advertisement is successfully advertising. 4391 4392 Returns: 4393 Pass if True 4394 Fail if False 4395 4396 TAGS: LE, Advertising, Filtering, Scanning 4397 Priority: 2 4398 """ 4399 filters = { 4400 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4401 'service_data_uuid': self.service_uuid_1, 4402 'manufacturer_specific_data': self.manu_sepecific_data_small, 4403 'include_tx_power_level': True, 4404 'include_device_name': False, 4405 'service_data': self.service_data_small_2 4406 } 4407 settings_in_effect = { 4408 'scan_mode': ble_scan_settings_modes['low_latency'], 4409 'mode': ble_advertise_settings_modes['low_latency'] 4410 } 4411 return self._magic((filters, settings_in_effect)) 4412 4413 @BluetoothBaseTest.bt_test_wrap 4414 @test_tracker_info(uuid='63160fc2-306f-46a4-bf1f-b512642478c4') 4415 def test_filter_combo_114(self): 4416 """Test a combination scan filter and advertisement 4417 4418 Test that an advertisement is found and matches corresponding 4419 settings. 4420 4421 Steps: 4422 1. Create a advertise data object 4423 2. Create a advertise settings object. 4424 3. Create a advertise callback object. 4425 4. Start an LE advertising using the objects created in steps 1-3. 4426 5. Find the onSuccess advertisement event. 4427 4428 Expected Result: 4429 Advertisement is successfully advertising. 4430 4431 Returns: 4432 Pass if True 4433 Fail if False 4434 4435 TAGS: LE, Advertising, Filtering, Scanning 4436 Priority: 2 4437 """ 4438 filters = { 4439 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4440 'service_data_uuid': self.service_uuid_1, 4441 'manufacturer_specific_data': self.manu_sepecific_data_small, 4442 'include_tx_power_level': True, 4443 'include_device_name': False, 4444 'service_data': self.service_data_medium 4445 } 4446 settings_in_effect = { 4447 'scan_mode': ble_scan_settings_modes['low_latency'], 4448 'mode': ble_advertise_settings_modes['low_latency'] 4449 } 4450 return self._magic((filters, settings_in_effect)) 4451 4452 @BluetoothBaseTest.bt_test_wrap 4453 @test_tracker_info(uuid='849749ae-e5f3-4029-be92-66a1353ba165') 4454 def test_filter_combo_115(self): 4455 """Test a combination scan filter and advertisement 4456 4457 Test that an advertisement is found and matches corresponding 4458 settings. 4459 4460 Steps: 4461 1. Create a advertise data object 4462 2. Create a advertise settings object. 4463 3. Create a advertise callback object. 4464 4. Start an LE advertising using the objects created in steps 1-3. 4465 5. Find the onSuccess advertisement event. 4466 4467 Expected Result: 4468 Advertisement is successfully advertising. 4469 4470 Returns: 4471 Pass if True 4472 Fail if False 4473 4474 TAGS: LE, Advertising, Filtering, Scanning 4475 Priority: 2 4476 """ 4477 filters = { 4478 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4479 'service_data_uuid': self.service_uuid_1, 4480 'manufacturer_specific_data': self.manu_sepecific_data_small, 4481 'include_tx_power_level': True, 4482 'include_device_name': False, 4483 'service_data': [1] 4484 } 4485 settings_in_effect = { 4486 'scan_mode': ble_scan_settings_modes['low_latency'], 4487 'mode': ble_advertise_settings_modes['low_latency'] 4488 } 4489 return self._magic((filters, settings_in_effect)) 4490 4491 @BluetoothBaseTest.bt_test_wrap 4492 @test_tracker_info(uuid='5f150448-94f6-4f0b-a8da-0c4a78541a4f') 4493 def test_filter_combo_116(self): 4494 """Test a combination scan filter and advertisement 4495 4496 Test that an advertisement is found and matches corresponding 4497 settings. 4498 4499 Steps: 4500 1. Create a advertise data object 4501 2. Create a advertise settings object. 4502 3. Create a advertise callback object. 4503 4. Start an LE advertising using the objects created in steps 1-3. 4504 5. Find the onSuccess advertisement event. 4505 4506 Expected Result: 4507 Advertisement is successfully advertising. 4508 4509 Returns: 4510 Pass if True 4511 Fail if False 4512 4513 TAGS: LE, Advertising, Filtering, Scanning 4514 Priority: 2 4515 """ 4516 filters = { 4517 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4518 'service_data_uuid': self.service_uuid_1, 4519 'manufacturer_specific_data': self.manu_sepecific_data_small, 4520 'include_tx_power_level': True, 4521 'include_device_name': False, 4522 'service_data': self.service_data_small_2 4523 } 4524 settings_in_effect = { 4525 'scan_mode': ble_scan_settings_modes['low_latency'], 4526 'mode': ble_advertise_settings_modes['low_latency'] 4527 } 4528 return self._magic((filters, settings_in_effect)) 4529 4530 @BluetoothBaseTest.bt_test_wrap 4531 @test_tracker_info(uuid='39af4eca-990a-4b3b-bcf2-1a840e8a9308') 4532 def test_filter_combo_117(self): 4533 """Test a combination scan filter and advertisement 4534 4535 Test that an advertisement is found and matches corresponding 4536 settings. 4537 4538 Steps: 4539 1. Create a advertise data object 4540 2. Create a advertise settings object. 4541 3. Create a advertise callback object. 4542 4. Start an LE advertising using the objects created in steps 1-3. 4543 5. Find the onSuccess advertisement event. 4544 4545 Expected Result: 4546 Advertisement is successfully advertising. 4547 4548 Returns: 4549 Pass if True 4550 Fail if False 4551 4552 TAGS: LE, Advertising, Filtering, Scanning 4553 Priority: 2 4554 """ 4555 filters = { 4556 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4557 'service_data_uuid': self.service_uuid_1, 4558 'manufacturer_specific_data': [1, 2], 4559 'include_tx_power_level': True, 4560 'include_device_name': False, 4561 'service_data': self.service_data_medium 4562 } 4563 settings_in_effect = { 4564 'scan_mode': ble_scan_settings_modes['low_latency'], 4565 'mode': ble_advertise_settings_modes['low_latency'] 4566 } 4567 return self._magic((filters, settings_in_effect)) 4568 4569 @BluetoothBaseTest.bt_test_wrap 4570 @test_tracker_info(uuid='a59cb1fa-eb7d-4161-84a9-cda157b6b8c5') 4571 def test_filter_combo_118(self): 4572 """Test a combination scan filter and advertisement 4573 4574 Test that an advertisement is found and matches corresponding 4575 settings. 4576 4577 Steps: 4578 1. Create a advertise data object 4579 2. Create a advertise settings object. 4580 3. Create a advertise callback object. 4581 4. Start an LE advertising using the objects created in steps 1-3. 4582 5. Find the onSuccess advertisement event. 4583 4584 Expected Result: 4585 Advertisement is successfully advertising. 4586 4587 Returns: 4588 Pass if True 4589 Fail if False 4590 4591 TAGS: LE, Advertising, Filtering, Scanning 4592 Priority: 2 4593 """ 4594 filters = { 4595 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4596 'service_data_uuid': self.service_uuid_1, 4597 'manufacturer_specific_data': [1, 2], 4598 'include_tx_power_level': True, 4599 'include_device_name': False, 4600 'service_data': [1] 4601 } 4602 settings_in_effect = { 4603 'scan_mode': ble_scan_settings_modes['low_latency'], 4604 'mode': ble_advertise_settings_modes['low_latency'] 4605 } 4606 return self._magic((filters, settings_in_effect)) 4607 4608 @BluetoothBaseTest.bt_test_wrap 4609 @test_tracker_info(uuid='cfaf02e5-76e4-4593-849c-b63de4907638') 4610 def test_filter_combo_119(self): 4611 """Test a combination scan filter and advertisement 4612 4613 Test that an advertisement is found and matches corresponding 4614 settings. 4615 4616 Steps: 4617 1. Create a advertise data object 4618 2. Create a advertise settings object. 4619 3. Create a advertise callback object. 4620 4. Start an LE advertising using the objects created in steps 1-3. 4621 5. Find the onSuccess advertisement event. 4622 4623 Expected Result: 4624 Advertisement is successfully advertising. 4625 4626 Returns: 4627 Pass if True 4628 Fail if False 4629 4630 TAGS: LE, Advertising, Filtering, Scanning 4631 Priority: 2 4632 """ 4633 filters = { 4634 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4635 'service_data_uuid': self.service_uuid_1, 4636 'manufacturer_specific_data': [1, 2], 4637 'include_tx_power_level': True, 4638 'include_device_name': False, 4639 'service_data': self.service_data_small_2 4640 } 4641 settings_in_effect = { 4642 'scan_mode': ble_scan_settings_modes['low_latency'], 4643 'mode': ble_advertise_settings_modes['low_latency'] 4644 } 4645 return self._magic((filters, settings_in_effect)) 4646 4647 @BluetoothBaseTest.bt_test_wrap 4648 @test_tracker_info(uuid='9eb40c09-89ea-44e9-8514-e58cdce91779') 4649 def test_filter_combo_120(self): 4650 """Test a combination scan filter and advertisement 4651 4652 Test that an advertisement is found and matches corresponding 4653 settings. 4654 4655 Steps: 4656 1. Create a advertise data object 4657 2. Create a advertise settings object. 4658 3. Create a advertise callback object. 4659 4. Start an LE advertising using the objects created in steps 1-3. 4660 5. Find the onSuccess advertisement event. 4661 4662 Expected Result: 4663 Advertisement is successfully advertising. 4664 4665 Returns: 4666 Pass if True 4667 Fail if False 4668 4669 TAGS: LE, Advertising, Filtering, Scanning 4670 Priority: 2 4671 """ 4672 filters = { 4673 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4674 'service_data_uuid': self.service_uuid_1, 4675 'manufacturer_specific_data': [1, 2], 4676 'include_tx_power_level': True, 4677 'include_device_name': False, 4678 'service_data': self.service_data_medium 4679 } 4680 settings_in_effect = { 4681 'scan_mode': ble_scan_settings_modes['low_latency'], 4682 'mode': ble_advertise_settings_modes['low_latency'] 4683 } 4684 return self._magic((filters, settings_in_effect)) 4685 4686 @BluetoothBaseTest.bt_test_wrap 4687 @test_tracker_info(uuid='e2d2a8d5-0554-49cc-9cc9-66e97378d260') 4688 def test_filter_combo_121(self): 4689 """Test a combination scan filter and advertisement 4690 4691 Test that an advertisement is found and matches corresponding 4692 settings. 4693 4694 Steps: 4695 1. Create a advertise data object 4696 2. Create a advertise settings object. 4697 3. Create a advertise callback object. 4698 4. Start an LE advertising using the objects created in steps 1-3. 4699 5. Find the onSuccess advertisement event. 4700 4701 Expected Result: 4702 Advertisement is successfully advertising. 4703 4704 Returns: 4705 Pass if True 4706 Fail if False 4707 4708 TAGS: LE, Advertising, Filtering, Scanning 4709 Priority: 2 4710 """ 4711 filters = { 4712 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4713 'service_data_uuid': self.service_uuid_1, 4714 'manufacturer_specific_data': [1, 2], 4715 'include_tx_power_level': True, 4716 'include_device_name': False, 4717 'service_data': [1] 4718 } 4719 settings_in_effect = { 4720 'scan_mode': ble_scan_settings_modes['low_latency'], 4721 'mode': ble_advertise_settings_modes['low_latency'] 4722 } 4723 return self._magic((filters, settings_in_effect)) 4724 4725 @BluetoothBaseTest.bt_test_wrap 4726 @test_tracker_info(uuid='cb72c86a-a7c6-4bf9-9eec-53f7d190a9f1') 4727 def test_filter_combo_122(self): 4728 """Test a combination scan filter and advertisement 4729 4730 Test that an advertisement is found and matches corresponding 4731 settings. 4732 4733 Steps: 4734 1. Create a advertise data object 4735 2. Create a advertise settings object. 4736 3. Create a advertise callback object. 4737 4. Start an LE advertising using the objects created in steps 1-3. 4738 5. Find the onSuccess advertisement event. 4739 4740 Expected Result: 4741 Advertisement is successfully advertising. 4742 4743 Returns: 4744 Pass if True 4745 Fail if False 4746 4747 TAGS: LE, Advertising, Filtering, Scanning 4748 Priority: 2 4749 """ 4750 filters = { 4751 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 4752 'service_data_uuid': self.service_uuid_1, 4753 'manufacturer_specific_data': [1, 2], 4754 'include_tx_power_level': True, 4755 'include_device_name': False, 4756 'service_data': self.service_data_small_2 4757 } 4758 settings_in_effect = { 4759 'scan_mode': ble_scan_settings_modes['low_latency'], 4760 'mode': ble_advertise_settings_modes['low_latency'] 4761 } 4762 return self._magic((filters, settings_in_effect)) 4763 4764 @BluetoothBaseTest.bt_test_wrap 4765 @test_tracker_info(uuid='cb75e56e-a029-478d-8031-8de12f5fbebf') 4766 def test_filter_combo_123(self): 4767 """Test a combination scan filter and advertisement 4768 4769 Test that an advertisement is found and matches corresponding 4770 settings. 4771 4772 Steps: 4773 1. Create a advertise data object 4774 2. Create a advertise settings object. 4775 3. Create a advertise callback object. 4776 4. Start an LE advertising using the objects created in steps 1-3. 4777 5. Find the onSuccess advertisement event. 4778 4779 Expected Result: 4780 Advertisement is successfully advertising. 4781 4782 Returns: 4783 Pass if True 4784 Fail if False 4785 4786 TAGS: LE, Advertising, Filtering, Scanning 4787 Priority: 2 4788 """ 4789 filters = { 4790 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4791 'service_data_uuid': self.service_uuid_1, 4792 'manufacturer_specific_data': [1, 2], 4793 'include_tx_power_level': True, 4794 'include_device_name': False, 4795 'service_data': self.service_data_medium 4796 } 4797 settings_in_effect = { 4798 'scan_mode': ble_scan_settings_modes['low_latency'], 4799 'mode': ble_advertise_settings_modes['low_latency'] 4800 } 4801 return self._magic((filters, settings_in_effect)) 4802 4803 @BluetoothBaseTest.bt_test_wrap 4804 @test_tracker_info(uuid='277a98c4-4b1f-428d-8c10-8697a3fe1f0f') 4805 def test_filter_combo_124(self): 4806 """Test a combination scan filter and advertisement 4807 4808 Test that an advertisement is found and matches corresponding 4809 settings. 4810 4811 Steps: 4812 1. Create a advertise data object 4813 2. Create a advertise settings object. 4814 3. Create a advertise callback object. 4815 4. Start an LE advertising using the objects created in steps 1-3. 4816 5. Find the onSuccess advertisement event. 4817 4818 Expected Result: 4819 Advertisement is successfully advertising. 4820 4821 Returns: 4822 Pass if True 4823 Fail if False 4824 4825 TAGS: LE, Advertising, Filtering, Scanning 4826 Priority: 2 4827 """ 4828 filters = { 4829 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4830 'service_data_uuid': self.service_uuid_1, 4831 'manufacturer_specific_data': [1, 2], 4832 'include_tx_power_level': True, 4833 'include_device_name': False, 4834 'service_data': [1] 4835 } 4836 settings_in_effect = { 4837 'scan_mode': ble_scan_settings_modes['low_latency'], 4838 'mode': ble_advertise_settings_modes['low_latency'] 4839 } 4840 return self._magic((filters, settings_in_effect)) 4841 4842 @BluetoothBaseTest.bt_test_wrap 4843 @test_tracker_info(uuid='2d884bf2-c678-429c-8aee-3be78b3176ff') 4844 def test_filter_combo_125(self): 4845 """Test a combination scan filter and advertisement 4846 4847 Test that an advertisement is found and matches corresponding 4848 settings. 4849 4850 Steps: 4851 1. Create a advertise data object 4852 2. Create a advertise settings object. 4853 3. Create a advertise callback object. 4854 4. Start an LE advertising using the objects created in steps 1-3. 4855 5. Find the onSuccess advertisement event. 4856 4857 Expected Result: 4858 Advertisement is successfully advertising. 4859 4860 Returns: 4861 Pass if True 4862 Fail if False 4863 4864 TAGS: LE, Advertising, Filtering, Scanning 4865 Priority: 2 4866 """ 4867 filters = { 4868 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 4869 'service_data_uuid': self.service_uuid_1, 4870 'manufacturer_specific_data': [1, 2], 4871 'include_tx_power_level': True, 4872 'include_device_name': False, 4873 'service_data': self.service_data_small_2 4874 } 4875 settings_in_effect = { 4876 'scan_mode': ble_scan_settings_modes['low_latency'], 4877 'mode': ble_advertise_settings_modes['low_latency'] 4878 } 4879 return self._magic((filters, settings_in_effect)) 4880 4881 @BluetoothBaseTest.bt_test_wrap 4882 @test_tracker_info(uuid='e6b5fcff-8a6e-4eb7-9070-74caf9e18349') 4883 def test_filter_combo_126(self): 4884 """Test a combination scan filter and advertisement 4885 4886 Test that an advertisement is found and matches corresponding 4887 settings. 4888 4889 Steps: 4890 1. Create a advertise data object 4891 2. Create a advertise settings object. 4892 3. Create a advertise callback object. 4893 4. Start an LE advertising using the objects created in steps 1-3. 4894 5. Find the onSuccess advertisement event. 4895 4896 Expected Result: 4897 Advertisement is successfully advertising. 4898 4899 Returns: 4900 Pass if True 4901 Fail if False 4902 4903 TAGS: LE, Advertising, Filtering, Scanning 4904 Priority: 2 4905 """ 4906 filters = { 4907 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4908 'service_data_uuid': self.service_uuid_1, 4909 'manufacturer_specific_data': self.manu_specific_data_small_3, 4910 'include_tx_power_level': True, 4911 'include_device_name': False, 4912 'service_data': self.service_data_medium 4913 } 4914 settings_in_effect = { 4915 'scan_mode': ble_scan_settings_modes['low_latency'], 4916 'mode': ble_advertise_settings_modes['low_latency'] 4917 } 4918 return self._magic((filters, settings_in_effect)) 4919 4920 @BluetoothBaseTest.bt_test_wrap 4921 @test_tracker_info(uuid='682ffa88-2d13-4d21-878e-c2a8a510cf71') 4922 def test_filter_combo_127(self): 4923 """Test a combination scan filter and advertisement 4924 4925 Test that an advertisement is found and matches corresponding 4926 settings. 4927 4928 Steps: 4929 1. Create a advertise data object 4930 2. Create a advertise settings object. 4931 3. Create a advertise callback object. 4932 4. Start an LE advertising using the objects created in steps 1-3. 4933 5. Find the onSuccess advertisement event. 4934 4935 Expected Result: 4936 Advertisement is successfully advertising. 4937 4938 Returns: 4939 Pass if True 4940 Fail if False 4941 4942 TAGS: LE, Advertising, Filtering, Scanning 4943 Priority: 2 4944 """ 4945 filters = { 4946 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4947 'service_data_uuid': self.service_uuid_1, 4948 'manufacturer_specific_data': self.manu_specific_data_small_3, 4949 'include_tx_power_level': True, 4950 'include_device_name': False, 4951 'service_data': [1] 4952 } 4953 settings_in_effect = { 4954 'scan_mode': ble_scan_settings_modes['low_latency'], 4955 'mode': ble_advertise_settings_modes['low_latency'] 4956 } 4957 return self._magic((filters, settings_in_effect)) 4958 4959 @BluetoothBaseTest.bt_test_wrap 4960 @test_tracker_info(uuid='a27d8f58-7523-404a-bf99-744afdb52aba') 4961 def test_filter_combo_128(self): 4962 """Test a combination scan filter and advertisement 4963 4964 Test that an advertisement is found and matches corresponding 4965 settings. 4966 4967 Steps: 4968 1. Create a advertise data object 4969 2. Create a advertise settings object. 4970 3. Create a advertise callback object. 4971 4. Start an LE advertising using the objects created in steps 1-3. 4972 5. Find the onSuccess advertisement event. 4973 4974 Expected Result: 4975 Advertisement is successfully advertising. 4976 4977 Returns: 4978 Pass if True 4979 Fail if False 4980 4981 TAGS: LE, Advertising, Filtering, Scanning 4982 Priority: 2 4983 """ 4984 filters = { 4985 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 4986 'service_data_uuid': self.service_uuid_1, 4987 'manufacturer_specific_data': self.manu_specific_data_small_3, 4988 'include_tx_power_level': True, 4989 'include_device_name': False, 4990 'service_data': self.service_data_small_2 4991 } 4992 settings_in_effect = { 4993 'scan_mode': ble_scan_settings_modes['low_latency'], 4994 'mode': ble_advertise_settings_modes['low_latency'] 4995 } 4996 return self._magic((filters, settings_in_effect)) 4997 4998 @BluetoothBaseTest.bt_test_wrap 4999 @test_tracker_info(uuid='f2c77cf7-dc52-471d-b66d-54e72f7f7ea0') 5000 def test_filter_combo_129(self): 5001 """Test a combination scan filter and advertisement 5002 5003 Test that an advertisement is found and matches corresponding 5004 settings. 5005 5006 Steps: 5007 1. Create a advertise data object 5008 2. Create a advertise settings object. 5009 3. Create a advertise callback object. 5010 4. Start an LE advertising using the objects created in steps 1-3. 5011 5. Find the onSuccess advertisement event. 5012 5013 Expected Result: 5014 Advertisement is successfully advertising. 5015 5016 Returns: 5017 Pass if True 5018 Fail if False 5019 5020 TAGS: LE, Advertising, Filtering, Scanning 5021 Priority: 2 5022 """ 5023 filters = { 5024 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5025 'service_data_uuid': self.service_uuid_1, 5026 'manufacturer_specific_data': self.manu_specific_data_small_3, 5027 'include_tx_power_level': True, 5028 'include_device_name': False, 5029 'service_data': self.service_data_medium 5030 } 5031 settings_in_effect = { 5032 'scan_mode': ble_scan_settings_modes['low_latency'], 5033 'mode': ble_advertise_settings_modes['low_latency'] 5034 } 5035 return self._magic((filters, settings_in_effect)) 5036 5037 @BluetoothBaseTest.bt_test_wrap 5038 @test_tracker_info(uuid='3e21ad66-88fc-48ee-a698-6c475f478a86') 5039 def test_filter_combo_130(self): 5040 """Test a combination scan filter and advertisement 5041 5042 Test that an advertisement is found and matches corresponding 5043 settings. 5044 5045 Steps: 5046 1. Create a advertise data object 5047 2. Create a advertise settings object. 5048 3. Create a advertise callback object. 5049 4. Start an LE advertising using the objects created in steps 1-3. 5050 5. Find the onSuccess advertisement event. 5051 5052 Expected Result: 5053 Advertisement is successfully advertising. 5054 5055 Returns: 5056 Pass if True 5057 Fail if False 5058 5059 TAGS: LE, Advertising, Filtering, Scanning 5060 Priority: 2 5061 """ 5062 filters = { 5063 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5064 'service_data_uuid': self.service_uuid_1, 5065 'manufacturer_specific_data': self.manu_specific_data_small_3, 5066 'include_tx_power_level': True, 5067 'include_device_name': False, 5068 'service_data': [1] 5069 } 5070 settings_in_effect = { 5071 'scan_mode': ble_scan_settings_modes['low_latency'], 5072 'mode': ble_advertise_settings_modes['low_latency'] 5073 } 5074 return self._magic((filters, settings_in_effect)) 5075 5076 @BluetoothBaseTest.bt_test_wrap 5077 @test_tracker_info(uuid='af046c81-524e-4016-b6a8-459538f320c2') 5078 def test_filter_combo_131(self): 5079 """Test a combination scan filter and advertisement 5080 5081 Test that an advertisement is found and matches corresponding 5082 settings. 5083 5084 Steps: 5085 1. Create a advertise data object 5086 2. Create a advertise settings object. 5087 3. Create a advertise callback object. 5088 4. Start an LE advertising using the objects created in steps 1-3. 5089 5. Find the onSuccess advertisement event. 5090 5091 Expected Result: 5092 Advertisement is successfully advertising. 5093 5094 Returns: 5095 Pass if True 5096 Fail if False 5097 5098 TAGS: LE, Advertising, Filtering, Scanning 5099 Priority: 2 5100 """ 5101 filters = { 5102 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5103 'service_data_uuid': self.service_uuid_1, 5104 'manufacturer_specific_data': self.manu_specific_data_small_3, 5105 'include_tx_power_level': True, 5106 'include_device_name': False, 5107 'service_data': self.service_data_small_2 5108 } 5109 settings_in_effect = { 5110 'scan_mode': ble_scan_settings_modes['low_latency'], 5111 'mode': ble_advertise_settings_modes['low_latency'] 5112 } 5113 return self._magic((filters, settings_in_effect)) 5114 5115 @BluetoothBaseTest.bt_test_wrap 5116 @test_tracker_info(uuid='f3aad5f8-6214-4c67-9a84-2da7171fb111') 5117 def test_filter_combo_132(self): 5118 """Test a combination scan filter and advertisement 5119 5120 Test that an advertisement is found and matches corresponding 5121 settings. 5122 5123 Steps: 5124 1. Create a advertise data object 5125 2. Create a advertise settings object. 5126 3. Create a advertise callback object. 5127 4. Start an LE advertising using the objects created in steps 1-3. 5128 5. Find the onSuccess advertisement event. 5129 5130 Expected Result: 5131 Advertisement is successfully advertising. 5132 5133 Returns: 5134 Pass if True 5135 Fail if False 5136 5137 TAGS: LE, Advertising, Filtering, Scanning 5138 Priority: 2 5139 """ 5140 filters = { 5141 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5142 'service_data_uuid': self.service_uuid_1, 5143 'manufacturer_specific_data': self.manu_specific_data_small_3, 5144 'include_tx_power_level': True, 5145 'include_device_name': False, 5146 'service_data': self.service_data_medium 5147 } 5148 settings_in_effect = { 5149 'scan_mode': ble_scan_settings_modes['low_latency'], 5150 'mode': ble_advertise_settings_modes['low_latency'] 5151 } 5152 return self._magic((filters, settings_in_effect)) 5153 5154 @BluetoothBaseTest.bt_test_wrap 5155 @test_tracker_info(uuid='16ab8d79-15ca-4ab3-b004-834edb4da37b') 5156 def test_filter_combo_133(self): 5157 """Test a combination scan filter and advertisement 5158 5159 Test that an advertisement is found and matches corresponding 5160 settings. 5161 5162 Steps: 5163 1. Create a advertise data object 5164 2. Create a advertise settings object. 5165 3. Create a advertise callback object. 5166 4. Start an LE advertising using the objects created in steps 1-3. 5167 5. Find the onSuccess advertisement event. 5168 5169 Expected Result: 5170 Advertisement is successfully advertising. 5171 5172 Returns: 5173 Pass if True 5174 Fail if False 5175 5176 TAGS: LE, Advertising, Filtering, Scanning 5177 Priority: 2 5178 """ 5179 filters = { 5180 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5181 'service_data_uuid': self.service_uuid_1, 5182 'manufacturer_specific_data': self.manu_specific_data_small_3, 5183 'include_tx_power_level': True, 5184 'include_device_name': False, 5185 'service_data': [1] 5186 } 5187 settings_in_effect = { 5188 'scan_mode': ble_scan_settings_modes['low_latency'], 5189 'mode': ble_advertise_settings_modes['low_latency'] 5190 } 5191 return self._magic((filters, settings_in_effect)) 5192 5193 @BluetoothBaseTest.bt_test_wrap 5194 @test_tracker_info(uuid='cb37c6a3-496f-49a6-b02a-552b8260205e') 5195 def test_filter_combo_134(self): 5196 """Test a combination scan filter and advertisement 5197 5198 Test that an advertisement is found and matches corresponding 5199 settings. 5200 5201 Steps: 5202 1. Create a advertise data object 5203 2. Create a advertise settings object. 5204 3. Create a advertise callback object. 5205 4. Start an LE advertising using the objects created in steps 1-3. 5206 5. Find the onSuccess advertisement event. 5207 5208 Expected Result: 5209 Advertisement is successfully advertising. 5210 5211 Returns: 5212 Pass if True 5213 Fail if False 5214 5215 TAGS: LE, Advertising, Filtering, Scanning 5216 Priority: 2 5217 """ 5218 filters = { 5219 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5220 'service_data_uuid': self.service_uuid_1, 5221 'manufacturer_specific_data': self.manu_specific_data_small_3, 5222 'include_tx_power_level': True, 5223 'include_device_name': False, 5224 'service_data': self.service_data_small_2 5225 } 5226 settings_in_effect = { 5227 'scan_mode': ble_scan_settings_modes['low_latency'], 5228 'mode': ble_advertise_settings_modes['low_latency'] 5229 } 5230 return self._magic((filters, settings_in_effect)) 5231 5232 @BluetoothBaseTest.bt_test_wrap 5233 @test_tracker_info(uuid='9e3ad4d0-4fab-4d85-9543-5e2c2fea79ec') 5234 def test_filter_combo_135(self): 5235 """Test a combination scan filter and advertisement 5236 5237 Test that an advertisement is found and matches corresponding 5238 settings. 5239 5240 Steps: 5241 1. Create a advertise data object 5242 2. Create a advertise settings object. 5243 3. Create a advertise callback object. 5244 4. Start an LE advertising using the objects created in steps 1-3. 5245 5. Find the onSuccess advertisement event. 5246 5247 Expected Result: 5248 Advertisement is successfully advertising. 5249 5250 Returns: 5251 Pass if True 5252 Fail if False 5253 5254 TAGS: LE, Advertising, Filtering, Scanning 5255 Priority: 2 5256 """ 5257 filters = { 5258 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 5259 'service_data_uuid': self.service_uuid_1, 5260 'manufacturer_specific_data': self.manu_sepecific_data_small, 5261 'include_tx_power_level': False, 5262 'include_device_name': False, 5263 'service_data': self.service_data_medium 5264 } 5265 settings_in_effect = { 5266 'scan_mode': ble_scan_settings_modes['low_latency'], 5267 'mode': ble_advertise_settings_modes['low_latency'] 5268 } 5269 return self._magic((filters, settings_in_effect)) 5270 5271 @BluetoothBaseTest.bt_test_wrap 5272 @test_tracker_info(uuid='37f93abf-237e-4917-91a6-afa2629b5f98') 5273 def test_filter_combo_136(self): 5274 """Test a combination scan filter and advertisement 5275 5276 Test that an advertisement is found and matches corresponding 5277 settings. 5278 5279 Steps: 5280 1. Create a advertise data object 5281 2. Create a advertise settings object. 5282 3. Create a advertise callback object. 5283 4. Start an LE advertising using the objects created in steps 1-3. 5284 5. Find the onSuccess advertisement event. 5285 5286 Expected Result: 5287 Advertisement is successfully advertising. 5288 5289 Returns: 5290 Pass if True 5291 Fail if False 5292 5293 TAGS: LE, Advertising, Filtering, Scanning 5294 Priority: 2 5295 """ 5296 filters = { 5297 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 5298 'service_data_uuid': self.service_uuid_1, 5299 'manufacturer_specific_data': self.manu_sepecific_data_small, 5300 'include_tx_power_level': False, 5301 'include_device_name': False, 5302 'service_data': [1] 5303 } 5304 settings_in_effect = { 5305 'scan_mode': ble_scan_settings_modes['low_latency'], 5306 'mode': ble_advertise_settings_modes['low_latency'] 5307 } 5308 return self._magic((filters, settings_in_effect)) 5309 5310 @BluetoothBaseTest.bt_test_wrap 5311 @test_tracker_info(uuid='1131c908-ddf2-4cdd-b1a2-9b73990e72c3') 5312 def test_filter_combo_137(self): 5313 """Test a combination scan filter and advertisement 5314 5315 Test that an advertisement is found and matches corresponding 5316 settings. 5317 5318 Steps: 5319 1. Create a advertise data object 5320 2. Create a advertise settings object. 5321 3. Create a advertise callback object. 5322 4. Start an LE advertising using the objects created in steps 1-3. 5323 5. Find the onSuccess advertisement event. 5324 5325 Expected Result: 5326 Advertisement is successfully advertising. 5327 5328 Returns: 5329 Pass if True 5330 Fail if False 5331 5332 TAGS: LE, Advertising, Filtering, Scanning 5333 Priority: 2 5334 """ 5335 filters = { 5336 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 5337 'service_data_uuid': self.service_uuid_1, 5338 'manufacturer_specific_data': self.manu_sepecific_data_small, 5339 'include_tx_power_level': False, 5340 'include_device_name': False, 5341 'service_data': self.service_data_small_2 5342 } 5343 settings_in_effect = { 5344 'scan_mode': ble_scan_settings_modes['low_latency'], 5345 'mode': ble_advertise_settings_modes['low_latency'] 5346 } 5347 return self._magic((filters, settings_in_effect)) 5348 5349 @BluetoothBaseTest.bt_test_wrap 5350 @test_tracker_info(uuid='1b283fa0-485b-4f45-a353-36f9cdd6c123') 5351 def test_filter_combo_138(self): 5352 """Test a combination scan filter and advertisement 5353 5354 Test that an advertisement is found and matches corresponding 5355 settings. 5356 5357 Steps: 5358 1. Create a advertise data object 5359 2. Create a advertise settings object. 5360 3. Create a advertise callback object. 5361 4. Start an LE advertising using the objects created in steps 1-3. 5362 5. Find the onSuccess advertisement event. 5363 5364 Expected Result: 5365 Advertisement is successfully advertising. 5366 5367 Returns: 5368 Pass if True 5369 Fail if False 5370 5371 TAGS: LE, Advertising, Filtering, Scanning 5372 Priority: 2 5373 """ 5374 filters = { 5375 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5376 'service_data_uuid': self.service_uuid_1, 5377 'manufacturer_specific_data': self.manu_sepecific_data_small, 5378 'include_tx_power_level': False, 5379 'include_device_name': False, 5380 'service_data': self.service_data_medium 5381 } 5382 settings_in_effect = { 5383 'scan_mode': ble_scan_settings_modes['low_latency'], 5384 'mode': ble_advertise_settings_modes['low_latency'] 5385 } 5386 return self._magic((filters, settings_in_effect)) 5387 5388 @BluetoothBaseTest.bt_test_wrap 5389 @test_tracker_info(uuid='e4bdc84e-413c-4a2b-9049-f5b04e32b5b7') 5390 def test_filter_combo_139(self): 5391 """Test a combination scan filter and advertisement 5392 5393 Test that an advertisement is found and matches corresponding 5394 settings. 5395 5396 Steps: 5397 1. Create a advertise data object 5398 2. Create a advertise settings object. 5399 3. Create a advertise callback object. 5400 4. Start an LE advertising using the objects created in steps 1-3. 5401 5. Find the onSuccess advertisement event. 5402 5403 Expected Result: 5404 Advertisement is successfully advertising. 5405 5406 Returns: 5407 Pass if True 5408 Fail if False 5409 5410 TAGS: LE, Advertising, Filtering, Scanning 5411 Priority: 2 5412 """ 5413 filters = { 5414 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5415 'service_data_uuid': self.service_uuid_1, 5416 'manufacturer_specific_data': self.manu_sepecific_data_small, 5417 'include_tx_power_level': False, 5418 'include_device_name': False, 5419 'service_data': [1] 5420 } 5421 settings_in_effect = { 5422 'scan_mode': ble_scan_settings_modes['low_latency'], 5423 'mode': ble_advertise_settings_modes['low_latency'] 5424 } 5425 return self._magic((filters, settings_in_effect)) 5426 5427 @BluetoothBaseTest.bt_test_wrap 5428 @test_tracker_info(uuid='8791e036-3f30-4a44-b3a8-23371da893a6') 5429 def test_filter_combo_140(self): 5430 """Test a combination scan filter and advertisement 5431 5432 Test that an advertisement is found and matches corresponding 5433 settings. 5434 5435 Steps: 5436 1. Create a advertise data object 5437 2. Create a advertise settings object. 5438 3. Create a advertise callback object. 5439 4. Start an LE advertising using the objects created in steps 1-3. 5440 5. Find the onSuccess advertisement event. 5441 5442 Expected Result: 5443 Advertisement is successfully advertising. 5444 5445 Returns: 5446 Pass if True 5447 Fail if False 5448 5449 TAGS: LE, Advertising, Filtering, Scanning 5450 Priority: 2 5451 """ 5452 filters = { 5453 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5454 'service_data_uuid': self.service_uuid_1, 5455 'manufacturer_specific_data': self.manu_sepecific_data_small, 5456 'include_tx_power_level': False, 5457 'include_device_name': False, 5458 'service_data': self.service_data_small_2 5459 } 5460 settings_in_effect = { 5461 'scan_mode': ble_scan_settings_modes['low_latency'], 5462 'mode': ble_advertise_settings_modes['low_latency'] 5463 } 5464 return self._magic((filters, settings_in_effect)) 5465 5466 @BluetoothBaseTest.bt_test_wrap 5467 @test_tracker_info(uuid='27201535-9537-4e11-a1d7-1b1f5f01e213') 5468 def test_filter_combo_141(self): 5469 """Test a combination scan filter and advertisement 5470 5471 Test that an advertisement is found and matches corresponding 5472 settings. 5473 5474 Steps: 5475 1. Create a advertise data object 5476 2. Create a advertise settings object. 5477 3. Create a advertise callback object. 5478 4. Start an LE advertising using the objects created in steps 1-3. 5479 5. Find the onSuccess advertisement event. 5480 5481 Expected Result: 5482 Advertisement is successfully advertising. 5483 5484 Returns: 5485 Pass if True 5486 Fail if False 5487 5488 TAGS: LE, Advertising, Filtering, Scanning 5489 Priority: 2 5490 """ 5491 filters = { 5492 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5493 'service_data_uuid': self.service_uuid_1, 5494 'manufacturer_specific_data': self.manu_sepecific_data_small, 5495 'include_tx_power_level': False, 5496 'include_device_name': False, 5497 'service_data': self.service_data_medium 5498 } 5499 settings_in_effect = { 5500 'scan_mode': ble_scan_settings_modes['low_latency'], 5501 'mode': ble_advertise_settings_modes['low_latency'] 5502 } 5503 return self._magic((filters, settings_in_effect)) 5504 5505 @BluetoothBaseTest.bt_test_wrap 5506 @test_tracker_info(uuid='e40e7b8f-44f0-4f87-8206-fea14d0fef52') 5507 def test_filter_combo_142(self): 5508 """Test a combination scan filter and advertisement 5509 5510 Test that an advertisement is found and matches corresponding 5511 settings. 5512 5513 Steps: 5514 1. Create a advertise data object 5515 2. Create a advertise settings object. 5516 3. Create a advertise callback object. 5517 4. Start an LE advertising using the objects created in steps 1-3. 5518 5. Find the onSuccess advertisement event. 5519 5520 Expected Result: 5521 Advertisement is successfully advertising. 5522 5523 Returns: 5524 Pass if True 5525 Fail if False 5526 5527 TAGS: LE, Advertising, Filtering, Scanning 5528 Priority: 2 5529 """ 5530 filters = { 5531 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5532 'service_data_uuid': self.service_uuid_1, 5533 'manufacturer_specific_data': self.manu_sepecific_data_small, 5534 'include_tx_power_level': False, 5535 'include_device_name': False, 5536 'service_data': [1] 5537 } 5538 settings_in_effect = { 5539 'scan_mode': ble_scan_settings_modes['low_latency'], 5540 'mode': ble_advertise_settings_modes['low_latency'] 5541 } 5542 return self._magic((filters, settings_in_effect)) 5543 5544 @BluetoothBaseTest.bt_test_wrap 5545 @test_tracker_info(uuid='0f369e78-c5ae-4cbc-8511-597cdc38b1ae') 5546 def test_filter_combo_143(self): 5547 """Test a combination scan filter and advertisement 5548 5549 Test that an advertisement is found and matches corresponding 5550 settings. 5551 5552 Steps: 5553 1. Create a advertise data object 5554 2. Create a advertise settings object. 5555 3. Create a advertise callback object. 5556 4. Start an LE advertising using the objects created in steps 1-3. 5557 5. Find the onSuccess advertisement event. 5558 5559 Expected Result: 5560 Advertisement is successfully advertising. 5561 5562 Returns: 5563 Pass if True 5564 Fail if False 5565 5566 TAGS: LE, Advertising, Filtering, Scanning 5567 Priority: 2 5568 """ 5569 filters = { 5570 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5571 'service_data_uuid': self.service_uuid_1, 5572 'manufacturer_specific_data': self.manu_sepecific_data_small, 5573 'include_tx_power_level': False, 5574 'include_device_name': False, 5575 'service_data': self.service_data_small_2 5576 } 5577 settings_in_effect = { 5578 'scan_mode': ble_scan_settings_modes['low_latency'], 5579 'mode': ble_advertise_settings_modes['low_latency'] 5580 } 5581 return self._magic((filters, settings_in_effect)) 5582 5583 @BluetoothBaseTest.bt_test_wrap 5584 @test_tracker_info(uuid='174418c1-6938-4319-9d8b-361df3fc28f3') 5585 def test_filter_combo_144(self): 5586 """Test a combination scan filter and advertisement 5587 5588 Test that an advertisement is found and matches corresponding 5589 settings. 5590 5591 Steps: 5592 1. Create a advertise data object 5593 2. Create a advertise settings object. 5594 3. Create a advertise callback object. 5595 4. Start an LE advertising using the objects created in steps 1-3. 5596 5. Find the onSuccess advertisement event. 5597 5598 Expected Result: 5599 Advertisement is successfully advertising. 5600 5601 Returns: 5602 Pass if True 5603 Fail if False 5604 5605 TAGS: LE, Advertising, Filtering, Scanning 5606 Priority: 2 5607 """ 5608 filters = { 5609 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 5610 'service_data_uuid': self.service_uuid_1, 5611 'manufacturer_specific_data': [1, 2], 5612 'include_tx_power_level': False, 5613 'include_device_name': False, 5614 'service_data': self.service_data_medium 5615 } 5616 settings_in_effect = { 5617 'scan_mode': ble_scan_settings_modes['low_latency'], 5618 'mode': ble_advertise_settings_modes['low_latency'] 5619 } 5620 return self._magic((filters, settings_in_effect)) 5621 5622 @BluetoothBaseTest.bt_test_wrap 5623 @test_tracker_info(uuid='6bc94d17-b532-413b-86fc-185c194b430c') 5624 def test_filter_combo_145(self): 5625 """Test a combination scan filter and advertisement 5626 5627 Test that an advertisement is found and matches corresponding 5628 settings. 5629 5630 Steps: 5631 1. Create a advertise data object 5632 2. Create a advertise settings object. 5633 3. Create a advertise callback object. 5634 4. Start an LE advertising using the objects created in steps 1-3. 5635 5. Find the onSuccess advertisement event. 5636 5637 Expected Result: 5638 Advertisement is successfully advertising. 5639 5640 Returns: 5641 Pass if True 5642 Fail if False 5643 5644 TAGS: LE, Advertising, Filtering, Scanning 5645 Priority: 2 5646 """ 5647 filters = { 5648 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 5649 'service_data_uuid': self.service_uuid_1, 5650 'manufacturer_specific_data': [1, 2], 5651 'include_tx_power_level': False, 5652 'include_device_name': False, 5653 'service_data': [1] 5654 } 5655 settings_in_effect = { 5656 'scan_mode': ble_scan_settings_modes['low_latency'], 5657 'mode': ble_advertise_settings_modes['low_latency'] 5658 } 5659 return self._magic((filters, settings_in_effect)) 5660 5661 @BluetoothBaseTest.bt_test_wrap 5662 @test_tracker_info(uuid='3c47822e-5e74-4270-bcb4-72e3995bd5c5') 5663 def test_filter_combo_146(self): 5664 """Test a combination scan filter and advertisement 5665 5666 Test that an advertisement is found and matches corresponding 5667 settings. 5668 5669 Steps: 5670 1. Create a advertise data object 5671 2. Create a advertise settings object. 5672 3. Create a advertise callback object. 5673 4. Start an LE advertising using the objects created in steps 1-3. 5674 5. Find the onSuccess advertisement event. 5675 5676 Expected Result: 5677 Advertisement is successfully advertising. 5678 5679 Returns: 5680 Pass if True 5681 Fail if False 5682 5683 TAGS: LE, Advertising, Filtering, Scanning 5684 Priority: 2 5685 """ 5686 filters = { 5687 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 5688 'service_data_uuid': self.service_uuid_1, 5689 'manufacturer_specific_data': [1, 2], 5690 'include_tx_power_level': False, 5691 'include_device_name': False, 5692 'service_data': self.service_data_small_2 5693 } 5694 settings_in_effect = { 5695 'scan_mode': ble_scan_settings_modes['low_latency'], 5696 'mode': ble_advertise_settings_modes['low_latency'] 5697 } 5698 return self._magic((filters, settings_in_effect)) 5699 5700 @BluetoothBaseTest.bt_test_wrap 5701 @test_tracker_info(uuid='19515def-b28d-4ef7-bae7-c4f64940879a') 5702 def test_filter_combo_147(self): 5703 """Test a combination scan filter and advertisement 5704 5705 Test that an advertisement is found and matches corresponding 5706 settings. 5707 5708 Steps: 5709 1. Create a advertise data object 5710 2. Create a advertise settings object. 5711 3. Create a advertise callback object. 5712 4. Start an LE advertising using the objects created in steps 1-3. 5713 5. Find the onSuccess advertisement event. 5714 5715 Expected Result: 5716 Advertisement is successfully advertising. 5717 5718 Returns: 5719 Pass if True 5720 Fail if False 5721 5722 TAGS: LE, Advertising, Filtering, Scanning 5723 Priority: 2 5724 """ 5725 filters = { 5726 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5727 'service_data_uuid': self.service_uuid_1, 5728 'manufacturer_specific_data': [1, 2], 5729 'include_tx_power_level': False, 5730 'include_device_name': False, 5731 'service_data': self.service_data_medium 5732 } 5733 settings_in_effect = { 5734 'scan_mode': ble_scan_settings_modes['low_latency'], 5735 'mode': ble_advertise_settings_modes['low_latency'] 5736 } 5737 return self._magic((filters, settings_in_effect)) 5738 5739 @BluetoothBaseTest.bt_test_wrap 5740 @test_tracker_info(uuid='a45abd7c-24ca-400c-b2d5-233431b07522') 5741 def test_filter_combo_148(self): 5742 """Test a combination scan filter and advertisement 5743 5744 Test that an advertisement is found and matches corresponding 5745 settings. 5746 5747 Steps: 5748 1. Create a advertise data object 5749 2. Create a advertise settings object. 5750 3. Create a advertise callback object. 5751 4. Start an LE advertising using the objects created in steps 1-3. 5752 5. Find the onSuccess advertisement event. 5753 5754 Expected Result: 5755 Advertisement is successfully advertising. 5756 5757 Returns: 5758 Pass if True 5759 Fail if False 5760 5761 TAGS: LE, Advertising, Filtering, Scanning 5762 Priority: 2 5763 """ 5764 filters = { 5765 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5766 'service_data_uuid': self.service_uuid_1, 5767 'manufacturer_specific_data': [1, 2], 5768 'include_tx_power_level': False, 5769 'include_device_name': False, 5770 'service_data': [1] 5771 } 5772 settings_in_effect = { 5773 'scan_mode': ble_scan_settings_modes['low_latency'], 5774 'mode': ble_advertise_settings_modes['low_latency'] 5775 } 5776 return self._magic((filters, settings_in_effect)) 5777 5778 @BluetoothBaseTest.bt_test_wrap 5779 @test_tracker_info(uuid='4492a245-c91f-4df1-a55b-57541ce410c8') 5780 def test_filter_combo_149(self): 5781 """Test a combination scan filter and advertisement 5782 5783 Test that an advertisement is found and matches corresponding 5784 settings. 5785 5786 Steps: 5787 1. Create a advertise data object 5788 2. Create a advertise settings object. 5789 3. Create a advertise callback object. 5790 4. Start an LE advertising using the objects created in steps 1-3. 5791 5. Find the onSuccess advertisement event. 5792 5793 Expected Result: 5794 Advertisement is successfully advertising. 5795 5796 Returns: 5797 Pass if True 5798 Fail if False 5799 5800 TAGS: LE, Advertising, Filtering, Scanning 5801 Priority: 2 5802 """ 5803 filters = { 5804 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 5805 'service_data_uuid': self.service_uuid_1, 5806 'manufacturer_specific_data': [1, 2], 5807 'include_tx_power_level': False, 5808 'include_device_name': False, 5809 'service_data': self.service_data_small_2 5810 } 5811 settings_in_effect = { 5812 'scan_mode': ble_scan_settings_modes['low_latency'], 5813 'mode': ble_advertise_settings_modes['low_latency'] 5814 } 5815 return self._magic((filters, settings_in_effect)) 5816 5817 @BluetoothBaseTest.bt_test_wrap 5818 @test_tracker_info(uuid='e4c485af-66a0-413b-b70e-3396e130fffb') 5819 def test_filter_combo_150(self): 5820 """Test a combination scan filter and advertisement 5821 5822 Test that an advertisement is found and matches corresponding 5823 settings. 5824 5825 Steps: 5826 1. Create a advertise data object 5827 2. Create a advertise settings object. 5828 3. Create a advertise callback object. 5829 4. Start an LE advertising using the objects created in steps 1-3. 5830 5. Find the onSuccess advertisement event. 5831 5832 Expected Result: 5833 Advertisement is successfully advertising. 5834 5835 Returns: 5836 Pass if True 5837 Fail if False 5838 5839 TAGS: LE, Advertising, Filtering, Scanning 5840 Priority: 2 5841 """ 5842 filters = { 5843 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5844 'service_data_uuid': self.service_uuid_1, 5845 'manufacturer_specific_data': [1, 2], 5846 'include_tx_power_level': False, 5847 'include_device_name': False, 5848 'service_data': self.service_data_medium 5849 } 5850 settings_in_effect = { 5851 'scan_mode': ble_scan_settings_modes['low_latency'], 5852 'mode': ble_advertise_settings_modes['low_latency'] 5853 } 5854 return self._magic((filters, settings_in_effect)) 5855 5856 @BluetoothBaseTest.bt_test_wrap 5857 @test_tracker_info(uuid='31369cd6-feb7-47f3-9022-2d619c961ba7') 5858 def test_filter_combo_151(self): 5859 """Test a combination scan filter and advertisement 5860 5861 Test that an advertisement is found and matches corresponding 5862 settings. 5863 5864 Steps: 5865 1. Create a advertise data object 5866 2. Create a advertise settings object. 5867 3. Create a advertise callback object. 5868 4. Start an LE advertising using the objects created in steps 1-3. 5869 5. Find the onSuccess advertisement event. 5870 5871 Expected Result: 5872 Advertisement is successfully advertising. 5873 5874 Returns: 5875 Pass if True 5876 Fail if False 5877 5878 TAGS: LE, Advertising, Filtering, Scanning 5879 Priority: 2 5880 """ 5881 filters = { 5882 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5883 'service_data_uuid': self.service_uuid_1, 5884 'manufacturer_specific_data': [1, 2], 5885 'include_tx_power_level': False, 5886 'include_device_name': False, 5887 'service_data': [1] 5888 } 5889 settings_in_effect = { 5890 'scan_mode': ble_scan_settings_modes['low_latency'], 5891 'mode': ble_advertise_settings_modes['low_latency'] 5892 } 5893 return self._magic((filters, settings_in_effect)) 5894 5895 @BluetoothBaseTest.bt_test_wrap 5896 @test_tracker_info(uuid='5cf0da7f-a515-4f67-bae4-956d86275423') 5897 def test_filter_combo_152(self): 5898 """Test a combination scan filter and advertisement 5899 5900 Test that an advertisement is found and matches corresponding 5901 settings. 5902 5903 Steps: 5904 1. Create a advertise data object 5905 2. Create a advertise settings object. 5906 3. Create a advertise callback object. 5907 4. Start an LE advertising using the objects created in steps 1-3. 5908 5. Find the onSuccess advertisement event. 5909 5910 Expected Result: 5911 Advertisement is successfully advertising. 5912 5913 Returns: 5914 Pass if True 5915 Fail if False 5916 5917 TAGS: LE, Advertising, Filtering, Scanning 5918 Priority: 2 5919 """ 5920 filters = { 5921 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 5922 'service_data_uuid': self.service_uuid_1, 5923 'manufacturer_specific_data': [1, 2], 5924 'include_tx_power_level': False, 5925 'include_device_name': False, 5926 'service_data': self.service_data_small_2 5927 } 5928 settings_in_effect = { 5929 'scan_mode': ble_scan_settings_modes['low_latency'], 5930 'mode': ble_advertise_settings_modes['low_latency'] 5931 } 5932 return self._magic((filters, settings_in_effect)) 5933 5934 @BluetoothBaseTest.bt_test_wrap 5935 @test_tracker_info(uuid='a78293f0-aee5-40d1-9c97-3fdda3ddd43e') 5936 def test_filter_combo_153(self): 5937 """Test a combination scan filter and advertisement 5938 5939 Test that an advertisement is found and matches corresponding 5940 settings. 5941 5942 Steps: 5943 1. Create a advertise data object 5944 2. Create a advertise settings object. 5945 3. Create a advertise callback object. 5946 4. Start an LE advertising using the objects created in steps 1-3. 5947 5. Find the onSuccess advertisement event. 5948 5949 Expected Result: 5950 Advertisement is successfully advertising. 5951 5952 Returns: 5953 Pass if True 5954 Fail if False 5955 5956 TAGS: LE, Advertising, Filtering, Scanning 5957 Priority: 2 5958 """ 5959 filters = { 5960 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 5961 'service_data_uuid': self.service_uuid_1, 5962 'manufacturer_specific_data': self.manu_specific_data_small_3, 5963 'include_tx_power_level': False, 5964 'include_device_name': False, 5965 'service_data': self.service_data_medium 5966 } 5967 settings_in_effect = { 5968 'scan_mode': ble_scan_settings_modes['low_latency'], 5969 'mode': ble_advertise_settings_modes['low_latency'] 5970 } 5971 return self._magic((filters, settings_in_effect)) 5972 5973 @BluetoothBaseTest.bt_test_wrap 5974 @test_tracker_info(uuid='3fd7d0cb-6d98-4ca8-9a14-8ca23b6dae07') 5975 def test_filter_combo_154(self): 5976 """Test a combination scan filter and advertisement 5977 5978 Test that an advertisement is found and matches corresponding 5979 settings. 5980 5981 Steps: 5982 1. Create a advertise data object 5983 2. Create a advertise settings object. 5984 3. Create a advertise callback object. 5985 4. Start an LE advertising using the objects created in steps 1-3. 5986 5. Find the onSuccess advertisement event. 5987 5988 Expected Result: 5989 Advertisement is successfully advertising. 5990 5991 Returns: 5992 Pass if True 5993 Fail if False 5994 5995 TAGS: LE, Advertising, Filtering, Scanning 5996 Priority: 2 5997 """ 5998 filters = { 5999 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6000 'service_data_uuid': self.service_uuid_1, 6001 'manufacturer_specific_data': self.manu_specific_data_small_3, 6002 'include_tx_power_level': False, 6003 'include_device_name': False, 6004 'service_data': [1] 6005 } 6006 settings_in_effect = { 6007 'scan_mode': ble_scan_settings_modes['low_latency'], 6008 'mode': ble_advertise_settings_modes['low_latency'] 6009 } 6010 return self._magic((filters, settings_in_effect)) 6011 6012 @BluetoothBaseTest.bt_test_wrap 6013 @test_tracker_info(uuid='19434f33-5bc5-427f-b332-36f85c997fe3') 6014 def test_filter_combo_155(self): 6015 """Test a combination scan filter and advertisement 6016 6017 Test that an advertisement is found and matches corresponding 6018 settings. 6019 6020 Steps: 6021 1. Create a advertise data object 6022 2. Create a advertise settings object. 6023 3. Create a advertise callback object. 6024 4. Start an LE advertising using the objects created in steps 1-3. 6025 5. Find the onSuccess advertisement event. 6026 6027 Expected Result: 6028 Advertisement is successfully advertising. 6029 6030 Returns: 6031 Pass if True 6032 Fail if False 6033 6034 TAGS: LE, Advertising, Filtering, Scanning 6035 Priority: 2 6036 """ 6037 filters = { 6038 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6039 'service_data_uuid': self.service_uuid_1, 6040 'manufacturer_specific_data': self.manu_specific_data_small_3, 6041 'include_tx_power_level': False, 6042 'include_device_name': False, 6043 'service_data': self.service_data_small_2 6044 } 6045 settings_in_effect = { 6046 'scan_mode': ble_scan_settings_modes['low_latency'], 6047 'mode': ble_advertise_settings_modes['low_latency'] 6048 } 6049 return self._magic((filters, settings_in_effect)) 6050 6051 @BluetoothBaseTest.bt_test_wrap 6052 @test_tracker_info(uuid='4195c9e1-b87c-4fa1-8039-ec0f2652e216') 6053 def test_filter_combo_156(self): 6054 """Test a combination scan filter and advertisement 6055 6056 Test that an advertisement is found and matches corresponding 6057 settings. 6058 6059 Steps: 6060 1. Create a advertise data object 6061 2. Create a advertise settings object. 6062 3. Create a advertise callback object. 6063 4. Start an LE advertising using the objects created in steps 1-3. 6064 5. Find the onSuccess advertisement event. 6065 6066 Expected Result: 6067 Advertisement is successfully advertising. 6068 6069 Returns: 6070 Pass if True 6071 Fail if False 6072 6073 TAGS: LE, Advertising, Filtering, Scanning 6074 Priority: 2 6075 """ 6076 filters = { 6077 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6078 'service_data_uuid': self.service_uuid_1, 6079 'manufacturer_specific_data': self.manu_specific_data_small_3, 6080 'include_tx_power_level': False, 6081 'include_device_name': False, 6082 'service_data': self.service_data_medium 6083 } 6084 settings_in_effect = { 6085 'scan_mode': ble_scan_settings_modes['low_latency'], 6086 'mode': ble_advertise_settings_modes['low_latency'] 6087 } 6088 return self._magic((filters, settings_in_effect)) 6089 6090 @BluetoothBaseTest.bt_test_wrap 6091 @test_tracker_info(uuid='0536e50e-f33c-4772-b078-4f95231c3de6') 6092 def test_filter_combo_157(self): 6093 """Test a combination scan filter and advertisement 6094 6095 Test that an advertisement is found and matches corresponding 6096 settings. 6097 6098 Steps: 6099 1. Create a advertise data object 6100 2. Create a advertise settings object. 6101 3. Create a advertise callback object. 6102 4. Start an LE advertising using the objects created in steps 1-3. 6103 5. Find the onSuccess advertisement event. 6104 6105 Expected Result: 6106 Advertisement is successfully advertising. 6107 6108 Returns: 6109 Pass if True 6110 Fail if False 6111 6112 TAGS: LE, Advertising, Filtering, Scanning 6113 Priority: 2 6114 """ 6115 filters = { 6116 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6117 'service_data_uuid': self.service_uuid_1, 6118 'manufacturer_specific_data': self.manu_specific_data_small_3, 6119 'include_tx_power_level': False, 6120 'include_device_name': False, 6121 'service_data': [1] 6122 } 6123 settings_in_effect = { 6124 'scan_mode': ble_scan_settings_modes['low_latency'], 6125 'mode': ble_advertise_settings_modes['low_latency'] 6126 } 6127 return self._magic((filters, settings_in_effect)) 6128 6129 @BluetoothBaseTest.bt_test_wrap 6130 @test_tracker_info(uuid='116dcfef-caae-496f-abfa-0863f2968f6f') 6131 def test_filter_combo_158(self): 6132 """Test a combination scan filter and advertisement 6133 6134 Test that an advertisement is found and matches corresponding 6135 settings. 6136 6137 Steps: 6138 1. Create a advertise data object 6139 2. Create a advertise settings object. 6140 3. Create a advertise callback object. 6141 4. Start an LE advertising using the objects created in steps 1-3. 6142 5. Find the onSuccess advertisement event. 6143 6144 Expected Result: 6145 Advertisement is successfully advertising. 6146 6147 Returns: 6148 Pass if True 6149 Fail if False 6150 6151 TAGS: LE, Advertising, Filtering, Scanning 6152 Priority: 2 6153 """ 6154 filters = { 6155 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6156 'service_data_uuid': self.service_uuid_1, 6157 'manufacturer_specific_data': self.manu_specific_data_small_3, 6158 'include_tx_power_level': False, 6159 'include_device_name': False, 6160 'service_data': self.service_data_small_2 6161 } 6162 settings_in_effect = { 6163 'scan_mode': ble_scan_settings_modes['low_latency'], 6164 'mode': ble_advertise_settings_modes['low_latency'] 6165 } 6166 return self._magic((filters, settings_in_effect)) 6167 6168 @BluetoothBaseTest.bt_test_wrap 6169 @test_tracker_info(uuid='00f37533-9ca5-4c58-adb3-d3d709c7b215') 6170 def test_filter_combo_159(self): 6171 """Test a combination scan filter and advertisement 6172 6173 Test that an advertisement is found and matches corresponding 6174 settings. 6175 6176 Steps: 6177 1. Create a advertise data object 6178 2. Create a advertise settings object. 6179 3. Create a advertise callback object. 6180 4. Start an LE advertising using the objects created in steps 1-3. 6181 5. Find the onSuccess advertisement event. 6182 6183 Expected Result: 6184 Advertisement is successfully advertising. 6185 6186 Returns: 6187 Pass if True 6188 Fail if False 6189 6190 TAGS: LE, Advertising, Filtering, Scanning 6191 Priority: 2 6192 """ 6193 filters = { 6194 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6195 'service_data_uuid': self.service_uuid_1, 6196 'manufacturer_specific_data': self.manu_specific_data_small_3, 6197 'include_tx_power_level': False, 6198 'include_device_name': False, 6199 'service_data': self.service_data_medium 6200 } 6201 settings_in_effect = { 6202 'scan_mode': ble_scan_settings_modes['low_latency'], 6203 'mode': ble_advertise_settings_modes['low_latency'] 6204 } 6205 return self._magic((filters, settings_in_effect)) 6206 6207 @BluetoothBaseTest.bt_test_wrap 6208 @test_tracker_info(uuid='d86e57da-29b5-445e-bf75-3e2843b9b739') 6209 def test_filter_combo_160(self): 6210 """Test a combination scan filter and advertisement 6211 6212 Test that an advertisement is found and matches corresponding 6213 settings. 6214 6215 Steps: 6216 1. Create a advertise data object 6217 2. Create a advertise settings object. 6218 3. Create a advertise callback object. 6219 4. Start an LE advertising using the objects created in steps 1-3. 6220 5. Find the onSuccess advertisement event. 6221 6222 Expected Result: 6223 Advertisement is successfully advertising. 6224 6225 Returns: 6226 Pass if True 6227 Fail if False 6228 6229 TAGS: LE, Advertising, Filtering, Scanning 6230 Priority: 2 6231 """ 6232 filters = { 6233 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6234 'service_data_uuid': self.service_uuid_1, 6235 'manufacturer_specific_data': self.manu_specific_data_small_3, 6236 'include_tx_power_level': False, 6237 'include_device_name': False, 6238 'service_data': [1] 6239 } 6240 settings_in_effect = { 6241 'scan_mode': ble_scan_settings_modes['low_latency'], 6242 'mode': ble_advertise_settings_modes['low_latency'] 6243 } 6244 return self._magic((filters, settings_in_effect)) 6245 6246 @BluetoothBaseTest.bt_test_wrap 6247 @test_tracker_info(uuid='792736ce-8f43-4d21-b9b9-30d3bfd66b6a') 6248 def test_filter_combo_161(self): 6249 """Test a combination scan filter and advertisement 6250 6251 Test that an advertisement is found and matches corresponding 6252 settings. 6253 6254 Steps: 6255 1. Create a advertise data object 6256 2. Create a advertise settings object. 6257 3. Create a advertise callback object. 6258 4. Start an LE advertising using the objects created in steps 1-3. 6259 5. Find the onSuccess advertisement event. 6260 6261 Expected Result: 6262 Advertisement is successfully advertising. 6263 6264 Returns: 6265 Pass if True 6266 Fail if False 6267 6268 TAGS: LE, Advertising, Filtering, Scanning 6269 Priority: 2 6270 """ 6271 filters = { 6272 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6273 'service_data_uuid': self.service_uuid_1, 6274 'manufacturer_specific_data': self.manu_specific_data_small_3, 6275 'include_tx_power_level': False, 6276 'include_device_name': False, 6277 'service_data': self.service_data_small_2 6278 } 6279 settings_in_effect = { 6280 'scan_mode': ble_scan_settings_modes['low_latency'], 6281 'mode': ble_advertise_settings_modes['low_latency'] 6282 } 6283 return self._magic((filters, settings_in_effect)) 6284 6285 @BluetoothBaseTest.bt_test_wrap 6286 @test_tracker_info(uuid='ec387a8a-e7b2-4df7-9580-b09362c3dc4d') 6287 def test_filter_combo_162(self): 6288 """Test a combination scan filter and advertisement 6289 6290 Test that an advertisement is found and matches corresponding 6291 settings. 6292 6293 Steps: 6294 1. Create a advertise data object 6295 2. Create a advertise settings object. 6296 3. Create a advertise callback object. 6297 4. Start an LE advertising using the objects created in steps 1-3. 6298 5. Find the onSuccess advertisement event. 6299 6300 Expected Result: 6301 Advertisement is successfully advertising. 6302 6303 Returns: 6304 Pass if True 6305 Fail if False 6306 6307 TAGS: LE, Advertising, Filtering, Scanning 6308 Priority: 2 6309 """ 6310 filters = { 6311 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6312 'service_data_uuid': self.service_uuid_1, 6313 'manufacturer_specific_data': self.manu_sepecific_data_small, 6314 'include_tx_power_level': True, 6315 'include_device_name': True, 6316 'service_data': self.service_data_medium 6317 } 6318 settings_in_effect = { 6319 'scan_mode': ble_scan_settings_modes['low_latency'], 6320 'mode': ble_advertise_settings_modes['low_latency'] 6321 } 6322 return self._magic((filters, settings_in_effect)) 6323 6324 @BluetoothBaseTest.bt_test_wrap 6325 @test_tracker_info(uuid='93a8f3b0-0fb0-47bd-88fb-6dc847ac14e4') 6326 def test_filter_combo_163(self): 6327 """Test a combination scan filter and advertisement 6328 6329 Test that an advertisement is found and matches corresponding 6330 settings. 6331 6332 Steps: 6333 1. Create a advertise data object 6334 2. Create a advertise settings object. 6335 3. Create a advertise callback object. 6336 4. Start an LE advertising using the objects created in steps 1-3. 6337 5. Find the onSuccess advertisement event. 6338 6339 Expected Result: 6340 Advertisement is successfully advertising. 6341 6342 Returns: 6343 Pass if True 6344 Fail if False 6345 6346 TAGS: LE, Advertising, Filtering, Scanning 6347 Priority: 2 6348 """ 6349 filters = { 6350 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6351 'service_data_uuid': self.service_uuid_1, 6352 'manufacturer_specific_data': self.manu_sepecific_data_small, 6353 'include_tx_power_level': True, 6354 'include_device_name': True, 6355 'service_data': [1] 6356 } 6357 settings_in_effect = { 6358 'scan_mode': ble_scan_settings_modes['low_latency'], 6359 'mode': ble_advertise_settings_modes['low_latency'] 6360 } 6361 return self._magic((filters, settings_in_effect)) 6362 6363 @BluetoothBaseTest.bt_test_wrap 6364 @test_tracker_info(uuid='283356e9-58ac-4edc-bf08-0bc9c7313053') 6365 def test_filter_combo_164(self): 6366 """Test a combination scan filter and advertisement 6367 6368 Test that an advertisement is found and matches corresponding 6369 settings. 6370 6371 Steps: 6372 1. Create a advertise data object 6373 2. Create a advertise settings object. 6374 3. Create a advertise callback object. 6375 4. Start an LE advertising using the objects created in steps 1-3. 6376 5. Find the onSuccess advertisement event. 6377 6378 Expected Result: 6379 Advertisement is successfully advertising. 6380 6381 Returns: 6382 Pass if True 6383 Fail if False 6384 6385 TAGS: LE, Advertising, Filtering, Scanning 6386 Priority: 2 6387 """ 6388 filters = { 6389 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6390 'service_data_uuid': self.service_uuid_1, 6391 'manufacturer_specific_data': self.manu_sepecific_data_small, 6392 'include_tx_power_level': True, 6393 'include_device_name': True, 6394 'service_data': self.service_data_small_2 6395 } 6396 settings_in_effect = { 6397 'scan_mode': ble_scan_settings_modes['low_latency'], 6398 'mode': ble_advertise_settings_modes['low_latency'] 6399 } 6400 return self._magic((filters, settings_in_effect)) 6401 6402 @BluetoothBaseTest.bt_test_wrap 6403 @test_tracker_info(uuid='ab4f0d84-58fd-4a2a-b3ed-128231f3e22f') 6404 def test_filter_combo_165(self): 6405 """Test a combination scan filter and advertisement 6406 6407 Test that an advertisement is found and matches corresponding 6408 settings. 6409 6410 Steps: 6411 1. Create a advertise data object 6412 2. Create a advertise settings object. 6413 3. Create a advertise callback object. 6414 4. Start an LE advertising using the objects created in steps 1-3. 6415 5. Find the onSuccess advertisement event. 6416 6417 Expected Result: 6418 Advertisement is successfully advertising. 6419 6420 Returns: 6421 Pass if True 6422 Fail if False 6423 6424 TAGS: LE, Advertising, Filtering, Scanning 6425 Priority: 2 6426 """ 6427 filters = { 6428 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6429 'service_data_uuid': self.service_uuid_1, 6430 'manufacturer_specific_data': self.manu_sepecific_data_small, 6431 'include_tx_power_level': True, 6432 'include_device_name': True, 6433 'service_data': self.service_data_medium 6434 } 6435 settings_in_effect = { 6436 'scan_mode': ble_scan_settings_modes['low_latency'], 6437 'mode': ble_advertise_settings_modes['low_latency'] 6438 } 6439 return self._magic((filters, settings_in_effect)) 6440 6441 @BluetoothBaseTest.bt_test_wrap 6442 @test_tracker_info(uuid='02bbbdd0-3c57-41c5-ab32-28185f33802c') 6443 def test_filter_combo_166(self): 6444 """Test a combination scan filter and advertisement 6445 6446 Test that an advertisement is found and matches corresponding 6447 settings. 6448 6449 Steps: 6450 1. Create a advertise data object 6451 2. Create a advertise settings object. 6452 3. Create a advertise callback object. 6453 4. Start an LE advertising using the objects created in steps 1-3. 6454 5. Find the onSuccess advertisement event. 6455 6456 Expected Result: 6457 Advertisement is successfully advertising. 6458 6459 Returns: 6460 Pass if True 6461 Fail if False 6462 6463 TAGS: LE, Advertising, Filtering, Scanning 6464 Priority: 2 6465 """ 6466 filters = { 6467 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6468 'service_data_uuid': self.service_uuid_1, 6469 'manufacturer_specific_data': self.manu_sepecific_data_small, 6470 'include_tx_power_level': True, 6471 'include_device_name': True, 6472 'service_data': [1] 6473 } 6474 settings_in_effect = { 6475 'scan_mode': ble_scan_settings_modes['low_latency'], 6476 'mode': ble_advertise_settings_modes['low_latency'] 6477 } 6478 return self._magic((filters, settings_in_effect)) 6479 6480 @BluetoothBaseTest.bt_test_wrap 6481 @test_tracker_info(uuid='f6c67a80-bede-4186-b7a1-09756b4c1a68') 6482 def test_filter_combo_167(self): 6483 """Test a combination scan filter and advertisement 6484 6485 Test that an advertisement is found and matches corresponding 6486 settings. 6487 6488 Steps: 6489 1. Create a advertise data object 6490 2. Create a advertise settings object. 6491 3. Create a advertise callback object. 6492 4. Start an LE advertising using the objects created in steps 1-3. 6493 5. Find the onSuccess advertisement event. 6494 6495 Expected Result: 6496 Advertisement is successfully advertising. 6497 6498 Returns: 6499 Pass if True 6500 Fail if False 6501 6502 TAGS: LE, Advertising, Filtering, Scanning 6503 Priority: 2 6504 """ 6505 filters = { 6506 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6507 'service_data_uuid': self.service_uuid_1, 6508 'manufacturer_specific_data': self.manu_sepecific_data_small, 6509 'include_tx_power_level': True, 6510 'include_device_name': True, 6511 'service_data': self.service_data_small_2 6512 } 6513 settings_in_effect = { 6514 'scan_mode': ble_scan_settings_modes['low_latency'], 6515 'mode': ble_advertise_settings_modes['low_latency'] 6516 } 6517 return self._magic((filters, settings_in_effect)) 6518 6519 @BluetoothBaseTest.bt_test_wrap 6520 @test_tracker_info(uuid='4fc73f9c-4826-4ff2-bba0-bc64cc469f3a') 6521 def test_filter_combo_168(self): 6522 """Test a combination scan filter and advertisement 6523 6524 Test that an advertisement is found and matches corresponding 6525 settings. 6526 6527 Steps: 6528 1. Create a advertise data object 6529 2. Create a advertise settings object. 6530 3. Create a advertise callback object. 6531 4. Start an LE advertising using the objects created in steps 1-3. 6532 5. Find the onSuccess advertisement event. 6533 6534 Expected Result: 6535 Advertisement is successfully advertising. 6536 6537 Returns: 6538 Pass if True 6539 Fail if False 6540 6541 TAGS: LE, Advertising, Filtering, Scanning 6542 Priority: 2 6543 """ 6544 filters = { 6545 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6546 'service_data_uuid': self.service_uuid_1, 6547 'manufacturer_specific_data': self.manu_sepecific_data_small, 6548 'include_tx_power_level': True, 6549 'include_device_name': True, 6550 'service_data': self.service_data_medium 6551 } 6552 settings_in_effect = { 6553 'scan_mode': ble_scan_settings_modes['low_latency'], 6554 'mode': ble_advertise_settings_modes['low_latency'] 6555 } 6556 return self._magic((filters, settings_in_effect)) 6557 6558 @BluetoothBaseTest.bt_test_wrap 6559 @test_tracker_info(uuid='58a6fafc-bbc5-466b-a586-310d9dfc14c1') 6560 def test_filter_combo_169(self): 6561 """Test a combination scan filter and advertisement 6562 6563 Test that an advertisement is found and matches corresponding 6564 settings. 6565 6566 Steps: 6567 1. Create a advertise data object 6568 2. Create a advertise settings object. 6569 3. Create a advertise callback object. 6570 4. Start an LE advertising using the objects created in steps 1-3. 6571 5. Find the onSuccess advertisement event. 6572 6573 Expected Result: 6574 Advertisement is successfully advertising. 6575 6576 Returns: 6577 Pass if True 6578 Fail if False 6579 6580 TAGS: LE, Advertising, Filtering, Scanning 6581 Priority: 2 6582 """ 6583 filters = { 6584 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6585 'service_data_uuid': self.service_uuid_1, 6586 'manufacturer_specific_data': self.manu_sepecific_data_small, 6587 'include_tx_power_level': True, 6588 'include_device_name': True, 6589 'service_data': [1] 6590 } 6591 settings_in_effect = { 6592 'scan_mode': ble_scan_settings_modes['low_latency'], 6593 'mode': ble_advertise_settings_modes['low_latency'] 6594 } 6595 return self._magic((filters, settings_in_effect)) 6596 6597 @BluetoothBaseTest.bt_test_wrap 6598 @test_tracker_info(uuid='38de3927-212c-4948-bd46-cca1d09ead90') 6599 def test_filter_combo_170(self): 6600 """Test a combination scan filter and advertisement 6601 6602 Test that an advertisement is found and matches corresponding 6603 settings. 6604 6605 Steps: 6606 1. Create a advertise data object 6607 2. Create a advertise settings object. 6608 3. Create a advertise callback object. 6609 4. Start an LE advertising using the objects created in steps 1-3. 6610 5. Find the onSuccess advertisement event. 6611 6612 Expected Result: 6613 Advertisement is successfully advertising. 6614 6615 Returns: 6616 Pass if True 6617 Fail if False 6618 6619 TAGS: LE, Advertising, Filtering, Scanning 6620 Priority: 2 6621 """ 6622 filters = { 6623 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6624 'service_data_uuid': self.service_uuid_1, 6625 'manufacturer_specific_data': self.manu_sepecific_data_small, 6626 'include_tx_power_level': True, 6627 'include_device_name': True, 6628 'service_data': self.service_data_small_2 6629 } 6630 settings_in_effect = { 6631 'scan_mode': ble_scan_settings_modes['low_latency'], 6632 'mode': ble_advertise_settings_modes['low_latency'] 6633 } 6634 return self._magic((filters, settings_in_effect)) 6635 6636 @BluetoothBaseTest.bt_test_wrap 6637 @test_tracker_info(uuid='b03a34cf-c3e1-4954-9cb6-b5f1a59e94e9') 6638 def test_filter_combo_171(self): 6639 """Test a combination scan filter and advertisement 6640 6641 Test that an advertisement is found and matches corresponding 6642 settings. 6643 6644 Steps: 6645 1. Create a advertise data object 6646 2. Create a advertise settings object. 6647 3. Create a advertise callback object. 6648 4. Start an LE advertising using the objects created in steps 1-3. 6649 5. Find the onSuccess advertisement event. 6650 6651 Expected Result: 6652 Advertisement is successfully advertising. 6653 6654 Returns: 6655 Pass if True 6656 Fail if False 6657 6658 TAGS: LE, Advertising, Filtering, Scanning 6659 Priority: 2 6660 """ 6661 filters = { 6662 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6663 'service_data_uuid': self.service_uuid_1, 6664 'manufacturer_specific_data': [1, 2], 6665 'include_tx_power_level': True, 6666 'include_device_name': True, 6667 'service_data': self.service_data_medium 6668 } 6669 settings_in_effect = { 6670 'scan_mode': ble_scan_settings_modes['low_latency'], 6671 'mode': ble_advertise_settings_modes['low_latency'] 6672 } 6673 return self._magic((filters, settings_in_effect)) 6674 6675 @BluetoothBaseTest.bt_test_wrap 6676 @test_tracker_info(uuid='455ead9d-1e50-46e4-907c-c5b9bbbdcc9c') 6677 def test_filter_combo_172(self): 6678 """Test a combination scan filter and advertisement 6679 6680 Test that an advertisement is found and matches corresponding 6681 settings. 6682 6683 Steps: 6684 1. Create a advertise data object 6685 2. Create a advertise settings object. 6686 3. Create a advertise callback object. 6687 4. Start an LE advertising using the objects created in steps 1-3. 6688 5. Find the onSuccess advertisement event. 6689 6690 Expected Result: 6691 Advertisement is successfully advertising. 6692 6693 Returns: 6694 Pass if True 6695 Fail if False 6696 6697 TAGS: LE, Advertising, Filtering, Scanning 6698 Priority: 2 6699 """ 6700 filters = { 6701 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6702 'service_data_uuid': self.service_uuid_1, 6703 'manufacturer_specific_data': [1, 2], 6704 'include_tx_power_level': True, 6705 'include_device_name': True, 6706 'service_data': [1] 6707 } 6708 settings_in_effect = { 6709 'scan_mode': ble_scan_settings_modes['low_latency'], 6710 'mode': ble_advertise_settings_modes['low_latency'] 6711 } 6712 return self._magic((filters, settings_in_effect)) 6713 6714 @BluetoothBaseTest.bt_test_wrap 6715 @test_tracker_info(uuid='a7320afc-affb-4fa5-877d-7eb8bd1f8558') 6716 def test_filter_combo_173(self): 6717 """Test a combination scan filter and advertisement 6718 6719 Test that an advertisement is found and matches corresponding 6720 settings. 6721 6722 Steps: 6723 1. Create a advertise data object 6724 2. Create a advertise settings object. 6725 3. Create a advertise callback object. 6726 4. Start an LE advertising using the objects created in steps 1-3. 6727 5. Find the onSuccess advertisement event. 6728 6729 Expected Result: 6730 Advertisement is successfully advertising. 6731 6732 Returns: 6733 Pass if True 6734 Fail if False 6735 6736 TAGS: LE, Advertising, Filtering, Scanning 6737 Priority: 2 6738 """ 6739 filters = { 6740 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 6741 'service_data_uuid': self.service_uuid_1, 6742 'manufacturer_specific_data': [1, 2], 6743 'include_tx_power_level': True, 6744 'include_device_name': True, 6745 'service_data': self.service_data_small_2 6746 } 6747 settings_in_effect = { 6748 'scan_mode': ble_scan_settings_modes['low_latency'], 6749 'mode': ble_advertise_settings_modes['low_latency'] 6750 } 6751 return self._magic((filters, settings_in_effect)) 6752 6753 @BluetoothBaseTest.bt_test_wrap 6754 @test_tracker_info(uuid='163c5c85-bef7-4da6-8e8a-89b0656b71d0') 6755 def test_filter_combo_174(self): 6756 """Test a combination scan filter and advertisement 6757 6758 Test that an advertisement is found and matches corresponding 6759 settings. 6760 6761 Steps: 6762 1. Create a advertise data object 6763 2. Create a advertise settings object. 6764 3. Create a advertise callback object. 6765 4. Start an LE advertising using the objects created in steps 1-3. 6766 5. Find the onSuccess advertisement event. 6767 6768 Expected Result: 6769 Advertisement is successfully advertising. 6770 6771 Returns: 6772 Pass if True 6773 Fail if False 6774 6775 TAGS: LE, Advertising, Filtering, Scanning 6776 Priority: 2 6777 """ 6778 filters = { 6779 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6780 'service_data_uuid': self.service_uuid_1, 6781 'manufacturer_specific_data': [1, 2], 6782 'include_tx_power_level': True, 6783 'include_device_name': True, 6784 'service_data': self.service_data_medium 6785 } 6786 settings_in_effect = { 6787 'scan_mode': ble_scan_settings_modes['low_latency'], 6788 'mode': ble_advertise_settings_modes['low_latency'] 6789 } 6790 return self._magic((filters, settings_in_effect)) 6791 6792 @BluetoothBaseTest.bt_test_wrap 6793 @test_tracker_info(uuid='31147187-c5a9-4c2e-8be6-b79ff71cdaf3') 6794 def test_filter_combo_175(self): 6795 """Test a combination scan filter and advertisement 6796 6797 Test that an advertisement is found and matches corresponding 6798 settings. 6799 6800 Steps: 6801 1. Create a advertise data object 6802 2. Create a advertise settings object. 6803 3. Create a advertise callback object. 6804 4. Start an LE advertising using the objects created in steps 1-3. 6805 5. Find the onSuccess advertisement event. 6806 6807 Expected Result: 6808 Advertisement is successfully advertising. 6809 6810 Returns: 6811 Pass if True 6812 Fail if False 6813 6814 TAGS: LE, Advertising, Filtering, Scanning 6815 Priority: 2 6816 """ 6817 filters = { 6818 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6819 'service_data_uuid': self.service_uuid_1, 6820 'manufacturer_specific_data': [1, 2], 6821 'include_tx_power_level': True, 6822 'include_device_name': True, 6823 'service_data': [1] 6824 } 6825 settings_in_effect = { 6826 'scan_mode': ble_scan_settings_modes['low_latency'], 6827 'mode': ble_advertise_settings_modes['low_latency'] 6828 } 6829 return self._magic((filters, settings_in_effect)) 6830 6831 @BluetoothBaseTest.bt_test_wrap 6832 @test_tracker_info(uuid='783b5756-ca16-4a17-b1f0-8a16ddc009c4') 6833 def test_filter_combo_176(self): 6834 """Test a combination scan filter and advertisement 6835 6836 Test that an advertisement is found and matches corresponding 6837 settings. 6838 6839 Steps: 6840 1. Create a advertise data object 6841 2. Create a advertise settings object. 6842 3. Create a advertise callback object. 6843 4. Start an LE advertising using the objects created in steps 1-3. 6844 5. Find the onSuccess advertisement event. 6845 6846 Expected Result: 6847 Advertisement is successfully advertising. 6848 6849 Returns: 6850 Pass if True 6851 Fail if False 6852 6853 TAGS: LE, Advertising, Filtering, Scanning 6854 Priority: 2 6855 """ 6856 filters = { 6857 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 6858 'service_data_uuid': self.service_uuid_1, 6859 'manufacturer_specific_data': [1, 2], 6860 'include_tx_power_level': True, 6861 'include_device_name': True, 6862 'service_data': self.service_data_small_2 6863 } 6864 settings_in_effect = { 6865 'scan_mode': ble_scan_settings_modes['low_latency'], 6866 'mode': ble_advertise_settings_modes['low_latency'] 6867 } 6868 return self._magic((filters, settings_in_effect)) 6869 6870 @BluetoothBaseTest.bt_test_wrap 6871 @test_tracker_info(uuid='924a107b-fe1c-4b9d-b29b-47c3b2df1de3') 6872 def test_filter_combo_177(self): 6873 """Test a combination scan filter and advertisement 6874 6875 Test that an advertisement is found and matches corresponding 6876 settings. 6877 6878 Steps: 6879 1. Create a advertise data object 6880 2. Create a advertise settings object. 6881 3. Create a advertise callback object. 6882 4. Start an LE advertising using the objects created in steps 1-3. 6883 5. Find the onSuccess advertisement event. 6884 6885 Expected Result: 6886 Advertisement is successfully advertising. 6887 6888 Returns: 6889 Pass if True 6890 Fail if False 6891 6892 TAGS: LE, Advertising, Filtering, Scanning 6893 Priority: 2 6894 """ 6895 filters = { 6896 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6897 'service_data_uuid': self.service_uuid_1, 6898 'manufacturer_specific_data': [1, 2], 6899 'include_tx_power_level': True, 6900 'include_device_name': True, 6901 'service_data': self.service_data_medium 6902 } 6903 settings_in_effect = { 6904 'scan_mode': ble_scan_settings_modes['low_latency'], 6905 'mode': ble_advertise_settings_modes['low_latency'] 6906 } 6907 return self._magic((filters, settings_in_effect)) 6908 6909 @BluetoothBaseTest.bt_test_wrap 6910 @test_tracker_info(uuid='096a6596-fd8c-4d8c-88c6-45903047fe2c') 6911 def test_filter_combo_178(self): 6912 """Test a combination scan filter and advertisement 6913 6914 Test that an advertisement is found and matches corresponding 6915 settings. 6916 6917 Steps: 6918 1. Create a advertise data object 6919 2. Create a advertise settings object. 6920 3. Create a advertise callback object. 6921 4. Start an LE advertising using the objects created in steps 1-3. 6922 5. Find the onSuccess advertisement event. 6923 6924 Expected Result: 6925 Advertisement is successfully advertising. 6926 6927 Returns: 6928 Pass if True 6929 Fail if False 6930 6931 TAGS: LE, Advertising, Filtering, Scanning 6932 Priority: 2 6933 """ 6934 filters = { 6935 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6936 'service_data_uuid': self.service_uuid_1, 6937 'manufacturer_specific_data': [1, 2], 6938 'include_tx_power_level': True, 6939 'include_device_name': True, 6940 'service_data': [1] 6941 } 6942 settings_in_effect = { 6943 'scan_mode': ble_scan_settings_modes['low_latency'], 6944 'mode': ble_advertise_settings_modes['low_latency'] 6945 } 6946 return self._magic((filters, settings_in_effect)) 6947 6948 @BluetoothBaseTest.bt_test_wrap 6949 @test_tracker_info(uuid='e37b2083-a9d0-4337-aa11-d9205c15f456') 6950 def test_filter_combo_179(self): 6951 """Test a combination scan filter and advertisement 6952 6953 Test that an advertisement is found and matches corresponding 6954 settings. 6955 6956 Steps: 6957 1. Create a advertise data object 6958 2. Create a advertise settings object. 6959 3. Create a advertise callback object. 6960 4. Start an LE advertising using the objects created in steps 1-3. 6961 5. Find the onSuccess advertisement event. 6962 6963 Expected Result: 6964 Advertisement is successfully advertising. 6965 6966 Returns: 6967 Pass if True 6968 Fail if False 6969 6970 TAGS: LE, Advertising, Filtering, Scanning 6971 Priority: 2 6972 """ 6973 filters = { 6974 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 6975 'service_data_uuid': self.service_uuid_1, 6976 'manufacturer_specific_data': [1, 2], 6977 'include_tx_power_level': True, 6978 'include_device_name': True, 6979 'service_data': self.service_data_small_2 6980 } 6981 settings_in_effect = { 6982 'scan_mode': ble_scan_settings_modes['low_latency'], 6983 'mode': ble_advertise_settings_modes['low_latency'] 6984 } 6985 return self._magic((filters, settings_in_effect)) 6986 6987 @BluetoothBaseTest.bt_test_wrap 6988 @test_tracker_info(uuid='3de8087b-7f25-4cda-8f07-fa9326524deb') 6989 def test_filter_combo_180(self): 6990 """Test a combination scan filter and advertisement 6991 6992 Test that an advertisement is found and matches corresponding 6993 settings. 6994 6995 Steps: 6996 1. Create a advertise data object 6997 2. Create a advertise settings object. 6998 3. Create a advertise callback object. 6999 4. Start an LE advertising using the objects created in steps 1-3. 7000 5. Find the onSuccess advertisement event. 7001 7002 Expected Result: 7003 Advertisement is successfully advertising. 7004 7005 Returns: 7006 Pass if True 7007 Fail if False 7008 7009 TAGS: LE, Advertising, Filtering, Scanning 7010 Priority: 2 7011 """ 7012 filters = { 7013 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7014 'service_data_uuid': self.service_uuid_1, 7015 'manufacturer_specific_data': self.manu_specific_data_small_3, 7016 'include_tx_power_level': True, 7017 'include_device_name': True, 7018 'service_data': self.service_data_medium 7019 } 7020 settings_in_effect = { 7021 'scan_mode': ble_scan_settings_modes['low_latency'], 7022 'mode': ble_advertise_settings_modes['low_latency'] 7023 } 7024 return self._magic((filters, settings_in_effect)) 7025 7026 @BluetoothBaseTest.bt_test_wrap 7027 @test_tracker_info(uuid='f218bf14-0a6e-4c5f-b151-3ac9719ca1a2') 7028 def test_filter_combo_181(self): 7029 """Test a combination scan filter and advertisement 7030 7031 Test that an advertisement is found and matches corresponding 7032 settings. 7033 7034 Steps: 7035 1. Create a advertise data object 7036 2. Create a advertise settings object. 7037 3. Create a advertise callback object. 7038 4. Start an LE advertising using the objects created in steps 1-3. 7039 5. Find the onSuccess advertisement event. 7040 7041 Expected Result: 7042 Advertisement is successfully advertising. 7043 7044 Returns: 7045 Pass if True 7046 Fail if False 7047 7048 TAGS: LE, Advertising, Filtering, Scanning 7049 Priority: 2 7050 """ 7051 filters = { 7052 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7053 'service_data_uuid': self.service_uuid_1, 7054 'manufacturer_specific_data': self.manu_specific_data_small_3, 7055 'include_tx_power_level': True, 7056 'include_device_name': True, 7057 'service_data': [1] 7058 } 7059 settings_in_effect = { 7060 'scan_mode': ble_scan_settings_modes['low_latency'], 7061 'mode': ble_advertise_settings_modes['low_latency'] 7062 } 7063 return self._magic((filters, settings_in_effect)) 7064 7065 @BluetoothBaseTest.bt_test_wrap 7066 @test_tracker_info(uuid='1a13171d-b9a9-4b42-8cec-5c5841c4f3a5') 7067 def test_filter_combo_182(self): 7068 """Test a combination scan filter and advertisement 7069 7070 Test that an advertisement is found and matches corresponding 7071 settings. 7072 7073 Steps: 7074 1. Create a advertise data object 7075 2. Create a advertise settings object. 7076 3. Create a advertise callback object. 7077 4. Start an LE advertising using the objects created in steps 1-3. 7078 5. Find the onSuccess advertisement event. 7079 7080 Expected Result: 7081 Advertisement is successfully advertising. 7082 7083 Returns: 7084 Pass if True 7085 Fail if False 7086 7087 TAGS: LE, Advertising, Filtering, Scanning 7088 Priority: 2 7089 """ 7090 filters = { 7091 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7092 'service_data_uuid': self.service_uuid_1, 7093 'manufacturer_specific_data': self.manu_specific_data_small_3, 7094 'include_tx_power_level': True, 7095 'include_device_name': True, 7096 'service_data': self.service_data_small_2 7097 } 7098 settings_in_effect = { 7099 'scan_mode': ble_scan_settings_modes['low_latency'], 7100 'mode': ble_advertise_settings_modes['low_latency'] 7101 } 7102 return self._magic((filters, settings_in_effect)) 7103 7104 @BluetoothBaseTest.bt_test_wrap 7105 @test_tracker_info(uuid='53311ac1-239f-4033-aaa6-084523916fc6') 7106 def test_filter_combo_183(self): 7107 """Test a combination scan filter and advertisement 7108 7109 Test that an advertisement is found and matches corresponding 7110 settings. 7111 7112 Steps: 7113 1. Create a advertise data object 7114 2. Create a advertise settings object. 7115 3. Create a advertise callback object. 7116 4. Start an LE advertising using the objects created in steps 1-3. 7117 5. Find the onSuccess advertisement event. 7118 7119 Expected Result: 7120 Advertisement is successfully advertising. 7121 7122 Returns: 7123 Pass if True 7124 Fail if False 7125 7126 TAGS: LE, Advertising, Filtering, Scanning 7127 Priority: 2 7128 """ 7129 filters = { 7130 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7131 'service_data_uuid': self.service_uuid_1, 7132 'manufacturer_specific_data': self.manu_specific_data_small_3, 7133 'include_tx_power_level': True, 7134 'include_device_name': True, 7135 'service_data': self.service_data_medium 7136 } 7137 settings_in_effect = { 7138 'scan_mode': ble_scan_settings_modes['low_latency'], 7139 'mode': ble_advertise_settings_modes['low_latency'] 7140 } 7141 return self._magic((filters, settings_in_effect)) 7142 7143 @BluetoothBaseTest.bt_test_wrap 7144 @test_tracker_info(uuid='f8bb89b2-2dae-4d41-9d19-6c9af0fe6da8') 7145 def test_filter_combo_184(self): 7146 """Test a combination scan filter and advertisement 7147 7148 Test that an advertisement is found and matches corresponding 7149 settings. 7150 7151 Steps: 7152 1. Create a advertise data object 7153 2. Create a advertise settings object. 7154 3. Create a advertise callback object. 7155 4. Start an LE advertising using the objects created in steps 1-3. 7156 5. Find the onSuccess advertisement event. 7157 7158 Expected Result: 7159 Advertisement is successfully advertising. 7160 7161 Returns: 7162 Pass if True 7163 Fail if False 7164 7165 TAGS: LE, Advertising, Filtering, Scanning 7166 Priority: 2 7167 """ 7168 filters = { 7169 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7170 'service_data_uuid': self.service_uuid_1, 7171 'manufacturer_specific_data': self.manu_specific_data_small_3, 7172 'include_tx_power_level': True, 7173 'include_device_name': True, 7174 'service_data': [1] 7175 } 7176 settings_in_effect = { 7177 'scan_mode': ble_scan_settings_modes['low_latency'], 7178 'mode': ble_advertise_settings_modes['low_latency'] 7179 } 7180 return self._magic((filters, settings_in_effect)) 7181 7182 @BluetoothBaseTest.bt_test_wrap 7183 @test_tracker_info(uuid='4747ab09-8d62-4866-80e6-c9b8e4cf5061') 7184 def test_filter_combo_185(self): 7185 """Test a combination scan filter and advertisement 7186 7187 Test that an advertisement is found and matches corresponding 7188 settings. 7189 7190 Steps: 7191 1. Create a advertise data object 7192 2. Create a advertise settings object. 7193 3. Create a advertise callback object. 7194 4. Start an LE advertising using the objects created in steps 1-3. 7195 5. Find the onSuccess advertisement event. 7196 7197 Expected Result: 7198 Advertisement is successfully advertising. 7199 7200 Returns: 7201 Pass if True 7202 Fail if False 7203 7204 TAGS: LE, Advertising, Filtering, Scanning 7205 Priority: 2 7206 """ 7207 filters = { 7208 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7209 'service_data_uuid': self.service_uuid_1, 7210 'manufacturer_specific_data': self.manu_specific_data_small_3, 7211 'include_tx_power_level': True, 7212 'include_device_name': True, 7213 'service_data': self.service_data_small_2 7214 } 7215 settings_in_effect = { 7216 'scan_mode': ble_scan_settings_modes['low_latency'], 7217 'mode': ble_advertise_settings_modes['low_latency'] 7218 } 7219 return self._magic((filters, settings_in_effect)) 7220 7221 @BluetoothBaseTest.bt_test_wrap 7222 @test_tracker_info(uuid='be6db894-57dd-452a-8f08-3ce462ac9417') 7223 def test_filter_combo_186(self): 7224 """Test a combination scan filter and advertisement 7225 7226 Test that an advertisement is found and matches corresponding 7227 settings. 7228 7229 Steps: 7230 1. Create a advertise data object 7231 2. Create a advertise settings object. 7232 3. Create a advertise callback object. 7233 4. Start an LE advertising using the objects created in steps 1-3. 7234 5. Find the onSuccess advertisement event. 7235 7236 Expected Result: 7237 Advertisement is successfully advertising. 7238 7239 Returns: 7240 Pass if True 7241 Fail if False 7242 7243 TAGS: LE, Advertising, Filtering, Scanning 7244 Priority: 2 7245 """ 7246 filters = { 7247 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7248 'service_data_uuid': self.service_uuid_1, 7249 'manufacturer_specific_data': self.manu_specific_data_small_3, 7250 'include_tx_power_level': True, 7251 'include_device_name': True, 7252 'service_data': self.service_data_medium 7253 } 7254 settings_in_effect = { 7255 'scan_mode': ble_scan_settings_modes['low_latency'], 7256 'mode': ble_advertise_settings_modes['low_latency'] 7257 } 7258 return self._magic((filters, settings_in_effect)) 7259 7260 @BluetoothBaseTest.bt_test_wrap 7261 @test_tracker_info(uuid='2070329b-b7c8-4958-af9c-2e1044b71564') 7262 def test_filter_combo_187(self): 7263 """Test a combination scan filter and advertisement 7264 7265 Test that an advertisement is found and matches corresponding 7266 settings. 7267 7268 Steps: 7269 1. Create a advertise data object 7270 2. Create a advertise settings object. 7271 3. Create a advertise callback object. 7272 4. Start an LE advertising using the objects created in steps 1-3. 7273 5. Find the onSuccess advertisement event. 7274 7275 Expected Result: 7276 Advertisement is successfully advertising. 7277 7278 Returns: 7279 Pass if True 7280 Fail if False 7281 7282 TAGS: LE, Advertising, Filtering, Scanning 7283 Priority: 2 7284 """ 7285 filters = { 7286 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7287 'service_data_uuid': self.service_uuid_1, 7288 'manufacturer_specific_data': self.manu_specific_data_small_3, 7289 'include_tx_power_level': True, 7290 'include_device_name': True, 7291 'service_data': [1] 7292 } 7293 settings_in_effect = { 7294 'scan_mode': ble_scan_settings_modes['low_latency'], 7295 'mode': ble_advertise_settings_modes['low_latency'] 7296 } 7297 return self._magic((filters, settings_in_effect)) 7298 7299 @BluetoothBaseTest.bt_test_wrap 7300 @test_tracker_info(uuid='1a428d9e-46fd-4bd2-a12c-25c89ead74b1') 7301 def test_filter_combo_188(self): 7302 """Test a combination scan filter and advertisement 7303 7304 Test that an advertisement is found and matches corresponding 7305 settings. 7306 7307 Steps: 7308 1. Create a advertise data object 7309 2. Create a advertise settings object. 7310 3. Create a advertise callback object. 7311 4. Start an LE advertising using the objects created in steps 1-3. 7312 5. Find the onSuccess advertisement event. 7313 7314 Expected Result: 7315 Advertisement is successfully advertising. 7316 7317 Returns: 7318 Pass if True 7319 Fail if False 7320 7321 TAGS: LE, Advertising, Filtering, Scanning 7322 Priority: 2 7323 """ 7324 filters = { 7325 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7326 'service_data_uuid': self.service_uuid_1, 7327 'manufacturer_specific_data': self.manu_specific_data_small_3, 7328 'include_tx_power_level': True, 7329 'include_device_name': True, 7330 'service_data': self.service_data_small_2 7331 } 7332 settings_in_effect = { 7333 'scan_mode': ble_scan_settings_modes['low_latency'], 7334 'mode': ble_advertise_settings_modes['low_latency'] 7335 } 7336 return self._magic((filters, settings_in_effect)) 7337 7338 @BluetoothBaseTest.bt_test_wrap 7339 @test_tracker_info(uuid='f07220c2-c0a9-471a-871d-a87931feb278') 7340 def test_filter_combo_189(self): 7341 """Test a combination scan filter and advertisement 7342 7343 Test that an advertisement is found and matches corresponding 7344 settings. 7345 7346 Steps: 7347 1. Create a advertise data object 7348 2. Create a advertise settings object. 7349 3. Create a advertise callback object. 7350 4. Start an LE advertising using the objects created in steps 1-3. 7351 5. Find the onSuccess advertisement event. 7352 7353 Expected Result: 7354 Advertisement is successfully advertising. 7355 7356 Returns: 7357 Pass if True 7358 Fail if False 7359 7360 TAGS: LE, Advertising, Filtering, Scanning 7361 Priority: 2 7362 """ 7363 filters = { 7364 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7365 'service_data_uuid': self.service_uuid_1, 7366 'manufacturer_specific_data': self.manu_sepecific_data_small, 7367 'include_tx_power_level': False, 7368 'include_device_name': True, 7369 'service_data': self.service_data_medium 7370 } 7371 settings_in_effect = { 7372 'scan_mode': ble_scan_settings_modes['low_latency'], 7373 'mode': ble_advertise_settings_modes['low_latency'] 7374 } 7375 return self._magic((filters, settings_in_effect)) 7376 7377 @BluetoothBaseTest.bt_test_wrap 7378 @test_tracker_info(uuid='b3af8fb0-cd93-4ab0-b8f3-4111969c7cbb') 7379 def test_filter_combo_190(self): 7380 """Test a combination scan filter and advertisement 7381 7382 Test that an advertisement is found and matches corresponding 7383 settings. 7384 7385 Steps: 7386 1. Create a advertise data object 7387 2. Create a advertise settings object. 7388 3. Create a advertise callback object. 7389 4. Start an LE advertising using the objects created in steps 1-3. 7390 5. Find the onSuccess advertisement event. 7391 7392 Expected Result: 7393 Advertisement is successfully advertising. 7394 7395 Returns: 7396 Pass if True 7397 Fail if False 7398 7399 TAGS: LE, Advertising, Filtering, Scanning 7400 Priority: 2 7401 """ 7402 filters = { 7403 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7404 'service_data_uuid': self.service_uuid_1, 7405 'manufacturer_specific_data': self.manu_sepecific_data_small, 7406 'include_tx_power_level': False, 7407 'include_device_name': True, 7408 'service_data': [1] 7409 } 7410 settings_in_effect = { 7411 'scan_mode': ble_scan_settings_modes['low_latency'], 7412 'mode': ble_advertise_settings_modes['low_latency'] 7413 } 7414 return self._magic((filters, settings_in_effect)) 7415 7416 @BluetoothBaseTest.bt_test_wrap 7417 @test_tracker_info(uuid='b630cc10-4cda-487d-ab84-599963c172d7') 7418 def test_filter_combo_191(self): 7419 """Test a combination scan filter and advertisement 7420 7421 Test that an advertisement is found and matches corresponding 7422 settings. 7423 7424 Steps: 7425 1. Create a advertise data object 7426 2. Create a advertise settings object. 7427 3. Create a advertise callback object. 7428 4. Start an LE advertising using the objects created in steps 1-3. 7429 5. Find the onSuccess advertisement event. 7430 7431 Expected Result: 7432 Advertisement is successfully advertising. 7433 7434 Returns: 7435 Pass if True 7436 Fail if False 7437 7438 TAGS: LE, Advertising, Filtering, Scanning 7439 Priority: 2 7440 """ 7441 filters = { 7442 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7443 'service_data_uuid': self.service_uuid_1, 7444 'manufacturer_specific_data': self.manu_sepecific_data_small, 7445 'include_tx_power_level': False, 7446 'include_device_name': True, 7447 'service_data': self.service_data_small_2 7448 } 7449 settings_in_effect = { 7450 'scan_mode': ble_scan_settings_modes['low_latency'], 7451 'mode': ble_advertise_settings_modes['low_latency'] 7452 } 7453 return self._magic((filters, settings_in_effect)) 7454 7455 @BluetoothBaseTest.bt_test_wrap 7456 @test_tracker_info(uuid='9cdbe1df-e3e1-45e4-b816-96b8a6efb90f') 7457 def test_filter_combo_192(self): 7458 """Test a combination scan filter and advertisement 7459 7460 Test that an advertisement is found and matches corresponding 7461 settings. 7462 7463 Steps: 7464 1. Create a advertise data object 7465 2. Create a advertise settings object. 7466 3. Create a advertise callback object. 7467 4. Start an LE advertising using the objects created in steps 1-3. 7468 5. Find the onSuccess advertisement event. 7469 7470 Expected Result: 7471 Advertisement is successfully advertising. 7472 7473 Returns: 7474 Pass if True 7475 Fail if False 7476 7477 TAGS: LE, Advertising, Filtering, Scanning 7478 Priority: 2 7479 """ 7480 filters = { 7481 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7482 'service_data_uuid': self.service_uuid_1, 7483 'manufacturer_specific_data': self.manu_sepecific_data_small, 7484 'include_tx_power_level': False, 7485 'include_device_name': True, 7486 'service_data': self.service_data_medium 7487 } 7488 settings_in_effect = { 7489 'scan_mode': ble_scan_settings_modes['low_latency'], 7490 'mode': ble_advertise_settings_modes['low_latency'] 7491 } 7492 return self._magic((filters, settings_in_effect)) 7493 7494 @BluetoothBaseTest.bt_test_wrap 7495 @test_tracker_info(uuid='10cd2757-a182-419f-9512-8b536539a134') 7496 def test_filter_combo_193(self): 7497 """Test a combination scan filter and advertisement 7498 7499 Test that an advertisement is found and matches corresponding 7500 settings. 7501 7502 Steps: 7503 1. Create a advertise data object 7504 2. Create a advertise settings object. 7505 3. Create a advertise callback object. 7506 4. Start an LE advertising using the objects created in steps 1-3. 7507 5. Find the onSuccess advertisement event. 7508 7509 Expected Result: 7510 Advertisement is successfully advertising. 7511 7512 Returns: 7513 Pass if True 7514 Fail if False 7515 7516 TAGS: LE, Advertising, Filtering, Scanning 7517 Priority: 2 7518 """ 7519 filters = { 7520 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7521 'service_data_uuid': self.service_uuid_1, 7522 'manufacturer_specific_data': self.manu_sepecific_data_small, 7523 'include_tx_power_level': False, 7524 'include_device_name': True, 7525 'service_data': [1] 7526 } 7527 settings_in_effect = { 7528 'scan_mode': ble_scan_settings_modes['low_latency'], 7529 'mode': ble_advertise_settings_modes['low_latency'] 7530 } 7531 return self._magic((filters, settings_in_effect)) 7532 7533 @BluetoothBaseTest.bt_test_wrap 7534 @test_tracker_info(uuid='5c7af5b2-8a2c-4c2d-911f-dad8216d849f') 7535 def test_filter_combo_194(self): 7536 """Test a combination scan filter and advertisement 7537 7538 Test that an advertisement is found and matches corresponding 7539 settings. 7540 7541 Steps: 7542 1. Create a advertise data object 7543 2. Create a advertise settings object. 7544 3. Create a advertise callback object. 7545 4. Start an LE advertising using the objects created in steps 1-3. 7546 5. Find the onSuccess advertisement event. 7547 7548 Expected Result: 7549 Advertisement is successfully advertising. 7550 7551 Returns: 7552 Pass if True 7553 Fail if False 7554 7555 TAGS: LE, Advertising, Filtering, Scanning 7556 Priority: 2 7557 """ 7558 filters = { 7559 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7560 'service_data_uuid': self.service_uuid_1, 7561 'manufacturer_specific_data': self.manu_sepecific_data_small, 7562 'include_tx_power_level': False, 7563 'include_device_name': True, 7564 'service_data': self.service_data_small_2 7565 } 7566 settings_in_effect = { 7567 'scan_mode': ble_scan_settings_modes['low_latency'], 7568 'mode': ble_advertise_settings_modes['low_latency'] 7569 } 7570 return self._magic((filters, settings_in_effect)) 7571 7572 @BluetoothBaseTest.bt_test_wrap 7573 @test_tracker_info(uuid='0acb37c7-0ece-4f5b-9294-014dd7fcb3ed') 7574 def test_filter_combo_195(self): 7575 """Test a combination scan filter and advertisement 7576 7577 Test that an advertisement is found and matches corresponding 7578 settings. 7579 7580 Steps: 7581 1. Create a advertise data object 7582 2. Create a advertise settings object. 7583 3. Create a advertise callback object. 7584 4. Start an LE advertising using the objects created in steps 1-3. 7585 5. Find the onSuccess advertisement event. 7586 7587 Expected Result: 7588 Advertisement is successfully advertising. 7589 7590 Returns: 7591 Pass if True 7592 Fail if False 7593 7594 TAGS: LE, Advertising, Filtering, Scanning 7595 Priority: 2 7596 """ 7597 filters = { 7598 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7599 'service_data_uuid': self.service_uuid_1, 7600 'manufacturer_specific_data': self.manu_sepecific_data_small, 7601 'include_tx_power_level': False, 7602 'include_device_name': True, 7603 'service_data': self.service_data_medium 7604 } 7605 settings_in_effect = { 7606 'scan_mode': ble_scan_settings_modes['low_latency'], 7607 'mode': ble_advertise_settings_modes['low_latency'] 7608 } 7609 return self._magic((filters, settings_in_effect)) 7610 7611 @BluetoothBaseTest.bt_test_wrap 7612 @test_tracker_info(uuid='14f07972-6403-49be-8eed-ce7294e33d32') 7613 def test_filter_combo_196(self): 7614 """Test a combination scan filter and advertisement 7615 7616 Test that an advertisement is found and matches corresponding 7617 settings. 7618 7619 Steps: 7620 1. Create a advertise data object 7621 2. Create a advertise settings object. 7622 3. Create a advertise callback object. 7623 4. Start an LE advertising using the objects created in steps 1-3. 7624 5. Find the onSuccess advertisement event. 7625 7626 Expected Result: 7627 Advertisement is successfully advertising. 7628 7629 Returns: 7630 Pass if True 7631 Fail if False 7632 7633 TAGS: LE, Advertising, Filtering, Scanning 7634 Priority: 2 7635 """ 7636 filters = { 7637 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7638 'service_data_uuid': self.service_uuid_1, 7639 'manufacturer_specific_data': self.manu_sepecific_data_small, 7640 'include_tx_power_level': False, 7641 'include_device_name': True, 7642 'service_data': [1] 7643 } 7644 settings_in_effect = { 7645 'scan_mode': ble_scan_settings_modes['low_latency'], 7646 'mode': ble_advertise_settings_modes['low_latency'] 7647 } 7648 return self._magic((filters, settings_in_effect)) 7649 7650 @BluetoothBaseTest.bt_test_wrap 7651 @test_tracker_info(uuid='f2db7e80-d3ea-4beb-8e09-24ae33904716') 7652 def test_filter_combo_197(self): 7653 """Test a combination scan filter and advertisement 7654 7655 Test that an advertisement is found and matches corresponding 7656 settings. 7657 7658 Steps: 7659 1. Create a advertise data object 7660 2. Create a advertise settings object. 7661 3. Create a advertise callback object. 7662 4. Start an LE advertising using the objects created in steps 1-3. 7663 5. Find the onSuccess advertisement event. 7664 7665 Expected Result: 7666 Advertisement is successfully advertising. 7667 7668 Returns: 7669 Pass if True 7670 Fail if False 7671 7672 TAGS: LE, Advertising, Filtering, Scanning 7673 Priority: 2 7674 """ 7675 filters = { 7676 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7677 'service_data_uuid': self.service_uuid_1, 7678 'manufacturer_specific_data': self.manu_sepecific_data_small, 7679 'include_tx_power_level': False, 7680 'include_device_name': True, 7681 'service_data': self.service_data_small_2 7682 } 7683 settings_in_effect = { 7684 'scan_mode': ble_scan_settings_modes['low_latency'], 7685 'mode': ble_advertise_settings_modes['low_latency'] 7686 } 7687 return self._magic((filters, settings_in_effect)) 7688 7689 @BluetoothBaseTest.bt_test_wrap 7690 @test_tracker_info(uuid='30c1303f-956f-4b2d-af6a-3570aa4567fd') 7691 def test_filter_combo_198(self): 7692 """Test a combination scan filter and advertisement 7693 7694 Test that an advertisement is found and matches corresponding 7695 settings. 7696 7697 Steps: 7698 1. Create a advertise data object 7699 2. Create a advertise settings object. 7700 3. Create a advertise callback object. 7701 4. Start an LE advertising using the objects created in steps 1-3. 7702 5. Find the onSuccess advertisement event. 7703 7704 Expected Result: 7705 Advertisement is successfully advertising. 7706 7707 Returns: 7708 Pass if True 7709 Fail if False 7710 7711 TAGS: LE, Advertising, Filtering, Scanning 7712 Priority: 2 7713 """ 7714 filters = { 7715 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7716 'service_data_uuid': self.service_uuid_1, 7717 'manufacturer_specific_data': [1, 2], 7718 'include_tx_power_level': False, 7719 'include_device_name': True, 7720 'service_data': self.service_data_medium 7721 } 7722 settings_in_effect = { 7723 'scan_mode': ble_scan_settings_modes['low_latency'], 7724 'mode': ble_advertise_settings_modes['low_latency'] 7725 } 7726 return self._magic((filters, settings_in_effect)) 7727 7728 @BluetoothBaseTest.bt_test_wrap 7729 @test_tracker_info(uuid='8e210748-f842-4fa1-ac40-2bfd291f08a1') 7730 def test_filter_combo_199(self): 7731 """Test a combination scan filter and advertisement 7732 7733 Test that an advertisement is found and matches corresponding 7734 settings. 7735 7736 Steps: 7737 1. Create a advertise data object 7738 2. Create a advertise settings object. 7739 3. Create a advertise callback object. 7740 4. Start an LE advertising using the objects created in steps 1-3. 7741 5. Find the onSuccess advertisement event. 7742 7743 Expected Result: 7744 Advertisement is successfully advertising. 7745 7746 Returns: 7747 Pass if True 7748 Fail if False 7749 7750 TAGS: LE, Advertising, Filtering, Scanning 7751 Priority: 2 7752 """ 7753 filters = { 7754 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7755 'service_data_uuid': self.service_uuid_1, 7756 'manufacturer_specific_data': [1, 2], 7757 'include_tx_power_level': False, 7758 'include_device_name': True, 7759 'service_data': [1] 7760 } 7761 settings_in_effect = { 7762 'scan_mode': ble_scan_settings_modes['low_latency'], 7763 'mode': ble_advertise_settings_modes['low_latency'] 7764 } 7765 return self._magic((filters, settings_in_effect)) 7766 7767 @BluetoothBaseTest.bt_test_wrap 7768 @test_tracker_info(uuid='756c687d-8183-4bc9-90dc-4e46a5579fca') 7769 def test_filter_combo_200(self): 7770 """Test a combination scan filter and advertisement 7771 7772 Test that an advertisement is found and matches corresponding 7773 settings. 7774 7775 Steps: 7776 1. Create a advertise data object 7777 2. Create a advertise settings object. 7778 3. Create a advertise callback object. 7779 4. Start an LE advertising using the objects created in steps 1-3. 7780 5. Find the onSuccess advertisement event. 7781 7782 Expected Result: 7783 Advertisement is successfully advertising. 7784 7785 Returns: 7786 Pass if True 7787 Fail if False 7788 7789 TAGS: LE, Advertising, Filtering, Scanning 7790 Priority: 2 7791 """ 7792 filters = { 7793 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 7794 'service_data_uuid': self.service_uuid_1, 7795 'manufacturer_specific_data': [1, 2], 7796 'include_tx_power_level': False, 7797 'include_device_name': True, 7798 'service_data': self.service_data_small_2 7799 } 7800 settings_in_effect = { 7801 'scan_mode': ble_scan_settings_modes['low_latency'], 7802 'mode': ble_advertise_settings_modes['low_latency'] 7803 } 7804 return self._magic((filters, settings_in_effect)) 7805 7806 @BluetoothBaseTest.bt_test_wrap 7807 @test_tracker_info(uuid='8f904946-a9c7-4f7a-af96-0d22c5592709') 7808 def test_filter_combo_201(self): 7809 """Test a combination scan filter and advertisement 7810 7811 Test that an advertisement is found and matches corresponding 7812 settings. 7813 7814 Steps: 7815 1. Create a advertise data object 7816 2. Create a advertise settings object. 7817 3. Create a advertise callback object. 7818 4. Start an LE advertising using the objects created in steps 1-3. 7819 5. Find the onSuccess advertisement event. 7820 7821 Expected Result: 7822 Advertisement is successfully advertising. 7823 7824 Returns: 7825 Pass if True 7826 Fail if False 7827 7828 TAGS: LE, Advertising, Filtering, Scanning 7829 Priority: 2 7830 """ 7831 filters = { 7832 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7833 'service_data_uuid': self.service_uuid_1, 7834 'manufacturer_specific_data': [1, 2], 7835 'include_tx_power_level': False, 7836 'include_device_name': True, 7837 'service_data': self.service_data_medium 7838 } 7839 settings_in_effect = { 7840 'scan_mode': ble_scan_settings_modes['low_latency'], 7841 'mode': ble_advertise_settings_modes['low_latency'] 7842 } 7843 return self._magic((filters, settings_in_effect)) 7844 7845 @BluetoothBaseTest.bt_test_wrap 7846 @test_tracker_info(uuid='abdfce9f-3529-435b-8fdc-9dd7bf0fc01c') 7847 def test_filter_combo_202(self): 7848 """Test a combination scan filter and advertisement 7849 7850 Test that an advertisement is found and matches corresponding 7851 settings. 7852 7853 Steps: 7854 1. Create a advertise data object 7855 2. Create a advertise settings object. 7856 3. Create a advertise callback object. 7857 4. Start an LE advertising using the objects created in steps 1-3. 7858 5. Find the onSuccess advertisement event. 7859 7860 Expected Result: 7861 Advertisement is successfully advertising. 7862 7863 Returns: 7864 Pass if True 7865 Fail if False 7866 7867 TAGS: LE, Advertising, Filtering, Scanning 7868 Priority: 2 7869 """ 7870 filters = { 7871 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7872 'service_data_uuid': self.service_uuid_1, 7873 'manufacturer_specific_data': [1, 2], 7874 'include_tx_power_level': False, 7875 'include_device_name': True, 7876 'service_data': [1] 7877 } 7878 settings_in_effect = { 7879 'scan_mode': ble_scan_settings_modes['low_latency'], 7880 'mode': ble_advertise_settings_modes['low_latency'] 7881 } 7882 return self._magic((filters, settings_in_effect)) 7883 7884 @BluetoothBaseTest.bt_test_wrap 7885 @test_tracker_info(uuid='71289aa2-f74d-44b7-ad18-515a3c438a15') 7886 def test_filter_combo_203(self): 7887 """Test a combination scan filter and advertisement 7888 7889 Test that an advertisement is found and matches corresponding 7890 settings. 7891 7892 Steps: 7893 1. Create a advertise data object 7894 2. Create a advertise settings object. 7895 3. Create a advertise callback object. 7896 4. Start an LE advertising using the objects created in steps 1-3. 7897 5. Find the onSuccess advertisement event. 7898 7899 Expected Result: 7900 Advertisement is successfully advertising. 7901 7902 Returns: 7903 Pass if True 7904 Fail if False 7905 7906 TAGS: LE, Advertising, Filtering, Scanning 7907 Priority: 2 7908 """ 7909 filters = { 7910 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 7911 'service_data_uuid': self.service_uuid_1, 7912 'manufacturer_specific_data': [1, 2], 7913 'include_tx_power_level': False, 7914 'include_device_name': True, 7915 'service_data': self.service_data_small_2 7916 } 7917 settings_in_effect = { 7918 'scan_mode': ble_scan_settings_modes['low_latency'], 7919 'mode': ble_advertise_settings_modes['low_latency'] 7920 } 7921 return self._magic((filters, settings_in_effect)) 7922 7923 @BluetoothBaseTest.bt_test_wrap 7924 @test_tracker_info(uuid='223db6ca-7190-4f3f-89cc-92dcc2dcd109') 7925 def test_filter_combo_204(self): 7926 """Test a combination scan filter and advertisement 7927 7928 Test that an advertisement is found and matches corresponding 7929 settings. 7930 7931 Steps: 7932 1. Create a advertise data object 7933 2. Create a advertise settings object. 7934 3. Create a advertise callback object. 7935 4. Start an LE advertising using the objects created in steps 1-3. 7936 5. Find the onSuccess advertisement event. 7937 7938 Expected Result: 7939 Advertisement is successfully advertising. 7940 7941 Returns: 7942 Pass if True 7943 Fail if False 7944 7945 TAGS: LE, Advertising, Filtering, Scanning 7946 Priority: 2 7947 """ 7948 filters = { 7949 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7950 'service_data_uuid': self.service_uuid_1, 7951 'manufacturer_specific_data': [1, 2], 7952 'include_tx_power_level': False, 7953 'include_device_name': True, 7954 'service_data': self.service_data_medium 7955 } 7956 settings_in_effect = { 7957 'scan_mode': ble_scan_settings_modes['low_latency'], 7958 'mode': ble_advertise_settings_modes['low_latency'] 7959 } 7960 return self._magic((filters, settings_in_effect)) 7961 7962 @BluetoothBaseTest.bt_test_wrap 7963 @test_tracker_info(uuid='8a61a11e-fc25-4e28-928d-e2be2d95af63') 7964 def test_filter_combo_205(self): 7965 """Test a combination scan filter and advertisement 7966 7967 Test that an advertisement is found and matches corresponding 7968 settings. 7969 7970 Steps: 7971 1. Create a advertise data object 7972 2. Create a advertise settings object. 7973 3. Create a advertise callback object. 7974 4. Start an LE advertising using the objects created in steps 1-3. 7975 5. Find the onSuccess advertisement event. 7976 7977 Expected Result: 7978 Advertisement is successfully advertising. 7979 7980 Returns: 7981 Pass if True 7982 Fail if False 7983 7984 TAGS: LE, Advertising, Filtering, Scanning 7985 Priority: 2 7986 """ 7987 filters = { 7988 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 7989 'service_data_uuid': self.service_uuid_1, 7990 'manufacturer_specific_data': [1, 2], 7991 'include_tx_power_level': False, 7992 'include_device_name': True, 7993 'service_data': [1] 7994 } 7995 settings_in_effect = { 7996 'scan_mode': ble_scan_settings_modes['low_latency'], 7997 'mode': ble_advertise_settings_modes['low_latency'] 7998 } 7999 return self._magic((filters, settings_in_effect)) 8000 8001 @BluetoothBaseTest.bt_test_wrap 8002 @test_tracker_info(uuid='8c62bc17-6998-4ec8-923b-e29fe1693ae3') 8003 def test_filter_combo_206(self): 8004 """Test a combination scan filter and advertisement 8005 8006 Test that an advertisement is found and matches corresponding 8007 settings. 8008 8009 Steps: 8010 1. Create a advertise data object 8011 2. Create a advertise settings object. 8012 3. Create a advertise callback object. 8013 4. Start an LE advertising using the objects created in steps 1-3. 8014 5. Find the onSuccess advertisement event. 8015 8016 Expected Result: 8017 Advertisement is successfully advertising. 8018 8019 Returns: 8020 Pass if True 8021 Fail if False 8022 8023 TAGS: LE, Advertising, Filtering, Scanning 8024 Priority: 2 8025 """ 8026 filters = { 8027 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 8028 'service_data_uuid': self.service_uuid_1, 8029 'manufacturer_specific_data': [1, 2], 8030 'include_tx_power_level': False, 8031 'include_device_name': True, 8032 'service_data': self.service_data_small_2 8033 } 8034 settings_in_effect = { 8035 'scan_mode': ble_scan_settings_modes['low_latency'], 8036 'mode': ble_advertise_settings_modes['low_latency'] 8037 } 8038 return self._magic((filters, settings_in_effect)) 8039 8040 @BluetoothBaseTest.bt_test_wrap 8041 @test_tracker_info(uuid='85f168fa-a868-4940-aef1-de063a497083') 8042 def test_filter_combo_207(self): 8043 """Test a combination scan filter and advertisement 8044 8045 Test that an advertisement is found and matches corresponding 8046 settings. 8047 8048 Steps: 8049 1. Create a advertise data object 8050 2. Create a advertise settings object. 8051 3. Create a advertise callback object. 8052 4. Start an LE advertising using the objects created in steps 1-3. 8053 5. Find the onSuccess advertisement event. 8054 8055 Expected Result: 8056 Advertisement is successfully advertising. 8057 8058 Returns: 8059 Pass if True 8060 Fail if False 8061 8062 TAGS: LE, Advertising, Filtering, Scanning 8063 Priority: 2 8064 """ 8065 filters = { 8066 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 8067 'service_data_uuid': self.service_uuid_1, 8068 'manufacturer_specific_data': self.manu_specific_data_small_3, 8069 'include_tx_power_level': False, 8070 'include_device_name': True, 8071 'service_data': self.service_data_medium 8072 } 8073 settings_in_effect = { 8074 'scan_mode': ble_scan_settings_modes['low_latency'], 8075 'mode': ble_advertise_settings_modes['low_latency'] 8076 } 8077 return self._magic((filters, settings_in_effect)) 8078 8079 @BluetoothBaseTest.bt_test_wrap 8080 @test_tracker_info(uuid='7697ca45-fc34-4f8c-9b61-58cc7d4f3321') 8081 def test_filter_combo_208(self): 8082 """Test a combination scan filter and advertisement 8083 8084 Test that an advertisement is found and matches corresponding 8085 settings. 8086 8087 Steps: 8088 1. Create a advertise data object 8089 2. Create a advertise settings object. 8090 3. Create a advertise callback object. 8091 4. Start an LE advertising using the objects created in steps 1-3. 8092 5. Find the onSuccess advertisement event. 8093 8094 Expected Result: 8095 Advertisement is successfully advertising. 8096 8097 Returns: 8098 Pass if True 8099 Fail if False 8100 8101 TAGS: LE, Advertising, Filtering, Scanning 8102 Priority: 2 8103 """ 8104 filters = { 8105 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 8106 'service_data_uuid': self.service_uuid_1, 8107 'manufacturer_specific_data': self.manu_specific_data_small_3, 8108 'include_tx_power_level': False, 8109 'include_device_name': True, 8110 'service_data': [1] 8111 } 8112 settings_in_effect = { 8113 'scan_mode': ble_scan_settings_modes['low_latency'], 8114 'mode': ble_advertise_settings_modes['low_latency'] 8115 } 8116 return self._magic((filters, settings_in_effect)) 8117 8118 @BluetoothBaseTest.bt_test_wrap 8119 @test_tracker_info(uuid='f5221c06-c006-4363-ab9c-90b9d8c31b43') 8120 def test_filter_combo_209(self): 8121 """Test a combination scan filter and advertisement 8122 8123 Test that an advertisement is found and matches corresponding 8124 settings. 8125 8126 Steps: 8127 1. Create a advertise data object 8128 2. Create a advertise settings object. 8129 3. Create a advertise callback object. 8130 4. Start an LE advertising using the objects created in steps 1-3. 8131 5. Find the onSuccess advertisement event. 8132 8133 Expected Result: 8134 Advertisement is successfully advertising. 8135 8136 Returns: 8137 Pass if True 8138 Fail if False 8139 8140 TAGS: LE, Advertising, Filtering, Scanning 8141 Priority: 2 8142 """ 8143 filters = { 8144 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 8145 'service_data_uuid': self.service_uuid_1, 8146 'manufacturer_specific_data': self.manu_specific_data_small_3, 8147 'include_tx_power_level': False, 8148 'include_device_name': True, 8149 'service_data': self.service_data_small_2 8150 } 8151 settings_in_effect = { 8152 'scan_mode': ble_scan_settings_modes['low_latency'], 8153 'mode': ble_advertise_settings_modes['low_latency'] 8154 } 8155 return self._magic((filters, settings_in_effect)) 8156 8157 @BluetoothBaseTest.bt_test_wrap 8158 @test_tracker_info(uuid='b7119a2d-6269-408c-ae69-39ebad1e4192') 8159 def test_filter_combo_210(self): 8160 """Test a combination scan filter and advertisement 8161 8162 Test that an advertisement is found and matches corresponding 8163 settings. 8164 8165 Steps: 8166 1. Create a advertise data object 8167 2. Create a advertise settings object. 8168 3. Create a advertise callback object. 8169 4. Start an LE advertising using the objects created in steps 1-3. 8170 5. Find the onSuccess advertisement event. 8171 8172 Expected Result: 8173 Advertisement is successfully advertising. 8174 8175 Returns: 8176 Pass if True 8177 Fail if False 8178 8179 TAGS: LE, Advertising, Filtering, Scanning 8180 Priority: 2 8181 """ 8182 filters = { 8183 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 8184 'service_data_uuid': self.service_uuid_1, 8185 'manufacturer_specific_data': self.manu_specific_data_small_3, 8186 'include_tx_power_level': False, 8187 'include_device_name': True, 8188 'service_data': self.service_data_medium 8189 } 8190 settings_in_effect = { 8191 'scan_mode': ble_scan_settings_modes['low_latency'], 8192 'mode': ble_advertise_settings_modes['low_latency'] 8193 } 8194 return self._magic((filters, settings_in_effect)) 8195 8196 @BluetoothBaseTest.bt_test_wrap 8197 @test_tracker_info(uuid='2025037f-433b-4167-a0c9-3265a53fe6ba') 8198 def test_filter_combo_211(self): 8199 """Test a combination scan filter and advertisement 8200 8201 Test that an advertisement is found and matches corresponding 8202 settings. 8203 8204 Steps: 8205 1. Create a advertise data object 8206 2. Create a advertise settings object. 8207 3. Create a advertise callback object. 8208 4. Start an LE advertising using the objects created in steps 1-3. 8209 5. Find the onSuccess advertisement event. 8210 8211 Expected Result: 8212 Advertisement is successfully advertising. 8213 8214 Returns: 8215 Pass if True 8216 Fail if False 8217 8218 TAGS: LE, Advertising, Filtering, Scanning 8219 Priority: 2 8220 """ 8221 filters = { 8222 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 8223 'service_data_uuid': self.service_uuid_1, 8224 'manufacturer_specific_data': self.manu_specific_data_small_3, 8225 'include_tx_power_level': False, 8226 'include_device_name': True, 8227 'service_data': [1] 8228 } 8229 settings_in_effect = { 8230 'scan_mode': ble_scan_settings_modes['low_latency'], 8231 'mode': ble_advertise_settings_modes['low_latency'] 8232 } 8233 return self._magic((filters, settings_in_effect)) 8234 8235 @BluetoothBaseTest.bt_test_wrap 8236 @test_tracker_info(uuid='ecf2c84b-88b0-48d9-8a4f-3660f039cd97') 8237 def test_filter_combo_212(self): 8238 """Test a combination scan filter and advertisement 8239 8240 Test that an advertisement is found and matches corresponding 8241 settings. 8242 8243 Steps: 8244 1. Create a advertise data object 8245 2. Create a advertise settings object. 8246 3. Create a advertise callback object. 8247 4. Start an LE advertising using the objects created in steps 1-3. 8248 5. Find the onSuccess advertisement event. 8249 8250 Expected Result: 8251 Advertisement is successfully advertising. 8252 8253 Returns: 8254 Pass if True 8255 Fail if False 8256 8257 TAGS: LE, Advertising, Filtering, Scanning 8258 Priority: 2 8259 """ 8260 filters = { 8261 'manufacturer_specific_data_id': self.manu_specific_data_id_2, 8262 'service_data_uuid': self.service_uuid_1, 8263 'manufacturer_specific_data': self.manu_specific_data_small_3, 8264 'include_tx_power_level': False, 8265 'include_device_name': True, 8266 'service_data': self.service_data_small_2 8267 } 8268 settings_in_effect = { 8269 'scan_mode': ble_scan_settings_modes['low_latency'], 8270 'mode': ble_advertise_settings_modes['low_latency'] 8271 } 8272 return self._magic((filters, settings_in_effect)) 8273 8274 @BluetoothBaseTest.bt_test_wrap 8275 @test_tracker_info(uuid='844a6bcb-cd5a-4023-9af7-cab68ed2e847') 8276 def test_filter_combo_213(self): 8277 """Test a combination scan filter and advertisement 8278 8279 Test that an advertisement is found and matches corresponding 8280 settings. 8281 8282 Steps: 8283 1. Create a advertise data object 8284 2. Create a advertise settings object. 8285 3. Create a advertise callback object. 8286 4. Start an LE advertising using the objects created in steps 1-3. 8287 5. Find the onSuccess advertisement event. 8288 8289 Expected Result: 8290 Advertisement is successfully advertising. 8291 8292 Returns: 8293 Pass if True 8294 Fail if False 8295 8296 TAGS: LE, Advertising, Filtering, Scanning 8297 Priority: 2 8298 """ 8299 filters = { 8300 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 8301 'service_data_uuid': self.service_uuid_1, 8302 'manufacturer_specific_data': self.manu_specific_data_small_3, 8303 'include_tx_power_level': False, 8304 'include_device_name': True, 8305 'service_data': self.service_data_medium 8306 } 8307 settings_in_effect = { 8308 'scan_mode': ble_scan_settings_modes['low_latency'], 8309 'mode': ble_advertise_settings_modes['low_latency'] 8310 } 8311 return self._magic((filters, settings_in_effect)) 8312 8313 @BluetoothBaseTest.bt_test_wrap 8314 @test_tracker_info(uuid='b7e5ff94-93e0-45c9-a160-33628f5fcf9e') 8315 def test_filter_combo_214(self): 8316 """Test a combination scan filter and advertisement 8317 8318 Test that an advertisement is found and matches corresponding 8319 settings. 8320 8321 Steps: 8322 1. Create a advertise data object 8323 2. Create a advertise settings object. 8324 3. Create a advertise callback object. 8325 4. Start an LE advertising using the objects created in steps 1-3. 8326 5. Find the onSuccess advertisement event. 8327 8328 Expected Result: 8329 Advertisement is successfully advertising. 8330 8331 Returns: 8332 Pass if True 8333 Fail if False 8334 8335 TAGS: LE, Advertising, Filtering, Scanning 8336 Priority: 2 8337 """ 8338 filters = { 8339 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 8340 'service_data_uuid': self.service_uuid_1, 8341 'manufacturer_specific_data': self.manu_specific_data_small_3, 8342 'include_tx_power_level': False, 8343 'include_device_name': True, 8344 'service_data': [1] 8345 } 8346 settings_in_effect = { 8347 'scan_mode': ble_scan_settings_modes['low_latency'], 8348 'mode': ble_advertise_settings_modes['low_latency'] 8349 } 8350 return self._magic((filters, settings_in_effect)) 8351 8352 @BluetoothBaseTest.bt_test_wrap 8353 @test_tracker_info(uuid='b9781df2-59e4-44ba-9a98-1d35670a6f63') 8354 def test_filter_combo_215(self): 8355 """Test a combination scan filter and advertisement 8356 8357 Test that an advertisement is found and matches corresponding 8358 settings. 8359 8360 Steps: 8361 1. Create a advertise data object 8362 2. Create a advertise settings object. 8363 3. Create a advertise callback object. 8364 4. Start an LE advertising using the objects created in steps 1-3. 8365 5. Find the onSuccess advertisement event. 8366 8367 Expected Result: 8368 Advertisement is successfully advertising. 8369 8370 Returns: 8371 Pass if True 8372 Fail if False 8373 8374 TAGS: LE, Advertising, Filtering, Scanning 8375 Priority: 2 8376 """ 8377 filters = { 8378 'manufacturer_specific_data_id': self.manu_specific_data_id_3, 8379 'service_data_uuid': self.service_uuid_1, 8380 'manufacturer_specific_data': self.manu_specific_data_small_3, 8381 'include_tx_power_level': False, 8382 'include_device_name': True, 8383 'service_data': self.service_data_small_2 8384 } 8385 settings_in_effect = { 8386 'scan_mode': ble_scan_settings_modes['low_latency'], 8387 'mode': ble_advertise_settings_modes['low_latency'] 8388 } 8389 return self._magic((filters, settings_in_effect)) 8390 8391 @BluetoothBaseTest.bt_test_wrap 8392 @test_tracker_info(uuid='4ad156f8-8d80-4635-b6d8-7bca07d8a899') 8393 def test_filter_combo_216(self): 8394 """Test a combination scan filter and advertisement 8395 8396 Test that an advertisement is found and matches corresponding 8397 settings. 8398 8399 Steps: 8400 1. Create a advertise data object 8401 2. Create a advertise settings object. 8402 3. Create a advertise callback object. 8403 4. Start an LE advertising using the objects created in steps 1-3. 8404 5. Find the onSuccess advertisement event. 8405 8406 Expected Result: 8407 Advertisement is successfully advertising. 8408 8409 Returns: 8410 Pass if True 8411 Fail if False 8412 8413 TAGS: LE, Advertising, Filtering, Scanning 8414 Priority: 2 8415 """ 8416 filters = {'include_device_name': True} 8417 settings_in_effect = { 8418 'mode': ble_advertise_settings_tx_powers['high'], 8419 'is_connectable': True, 8420 'scan_mode': ble_scan_settings_modes['low_latency'], 8421 'mode': ble_advertise_settings_modes['balanced'] 8422 } 8423 return self._magic((filters, settings_in_effect)) 8424 8425 @BluetoothBaseTest.bt_test_wrap 8426 @test_tracker_info(uuid='5b68c344-bfd1-44cb-9add-c81122d6b04f') 8427 def test_filter_combo_217(self): 8428 """Test a combination scan filter and advertisement 8429 8430 Test that an advertisement is found and matches corresponding 8431 settings. 8432 8433 Steps: 8434 1. Create a advertise data object 8435 2. Create a advertise settings object. 8436 3. Create a advertise callback object. 8437 4. Start an LE advertising using the objects created in steps 1-3. 8438 5. Find the onSuccess advertisement event. 8439 8440 Expected Result: 8441 Advertisement is successfully advertising. 8442 8443 Returns: 8444 Pass if True 8445 Fail if False 8446 8447 TAGS: LE, Advertising, Filtering, Scanning 8448 Priority: 2 8449 """ 8450 filters = {'include_device_name': True} 8451 settings_in_effect = { 8452 'mode': ble_advertise_settings_tx_powers['low'], 8453 'is_connectable': True, 8454 'scan_mode': ble_scan_settings_modes['low_latency'], 8455 'mode': ble_advertise_settings_modes['balanced'] 8456 } 8457 return self._magic((filters, settings_in_effect)) 8458 8459 @BluetoothBaseTest.bt_test_wrap 8460 @test_tracker_info(uuid='355ca57c-998c-4e7e-b0d2-66854b5192bb') 8461 def test_filter_combo_218(self): 8462 """Test a combination scan filter and advertisement 8463 8464 Test that an advertisement is found and matches corresponding 8465 settings. 8466 8467 Steps: 8468 1. Create a advertise data object 8469 2. Create a advertise settings object. 8470 3. Create a advertise callback object. 8471 4. Start an LE advertising using the objects created in steps 1-3. 8472 5. Find the onSuccess advertisement event. 8473 8474 Expected Result: 8475 Advertisement is successfully advertising. 8476 8477 Returns: 8478 Pass if True 8479 Fail if False 8480 8481 TAGS: LE, Advertising, Filtering, Scanning 8482 Priority: 2 8483 """ 8484 filters = {'include_device_name': True} 8485 settings_in_effect = { 8486 'mode': ble_advertise_settings_tx_powers['ultra_low'], 8487 'is_connectable': True, 8488 'scan_mode': ble_scan_settings_modes['low_latency'], 8489 'mode': ble_advertise_settings_modes['balanced'] 8490 } 8491 return self._magic((filters, settings_in_effect)) 8492 8493 @BluetoothBaseTest.bt_test_wrap 8494 @test_tracker_info(uuid='a9ec0f76-6b8f-42e0-8310-07c02de49d9d') 8495 def test_filter_combo_219(self): 8496 """Test a combination scan filter and advertisement 8497 8498 Test that an advertisement is found and matches corresponding 8499 settings. 8500 8501 Steps: 8502 1. Create a advertise data object 8503 2. Create a advertise settings object. 8504 3. Create a advertise callback object. 8505 4. Start an LE advertising using the objects created in steps 1-3. 8506 5. Find the onSuccess advertisement event. 8507 8508 Expected Result: 8509 Advertisement is successfully advertising. 8510 8511 Returns: 8512 Pass if True 8513 Fail if False 8514 8515 TAGS: LE, Advertising, Filtering, Scanning 8516 Priority: 2 8517 """ 8518 filters = {'include_device_name': True} 8519 settings_in_effect = { 8520 'mode': ble_advertise_settings_tx_powers['medium'], 8521 'is_connectable': True, 8522 'scan_mode': ble_scan_settings_modes['low_latency'], 8523 'mode': ble_advertise_settings_modes['balanced'] 8524 } 8525 return self._magic((filters, settings_in_effect)) 8526 8527 @BluetoothBaseTest.bt_test_wrap 8528 @test_tracker_info(uuid='73f448ff-e9f6-4608-80ba-92131485234f') 8529 def test_filter_combo_220(self): 8530 """Test a combination scan filter and advertisement 8531 8532 Test that an advertisement is found and matches corresponding 8533 settings. 8534 8535 Steps: 8536 1. Create a advertise data object 8537 2. Create a advertise settings object. 8538 3. Create a advertise callback object. 8539 4. Start an LE advertising using the objects created in steps 1-3. 8540 5. Find the onSuccess advertisement event. 8541 8542 Expected Result: 8543 Advertisement is successfully advertising. 8544 8545 Returns: 8546 Pass if True 8547 Fail if False 8548 8549 TAGS: LE, Advertising, Filtering, Scanning 8550 Priority: 2 8551 """ 8552 filters = {'include_device_name': True} 8553 settings_in_effect = { 8554 'mode': ble_advertise_settings_tx_powers['high'], 8555 'is_connectable': True, 8556 'scan_mode': ble_scan_settings_modes['opportunistic'], 8557 'mode': ble_advertise_settings_modes['balanced'] 8558 } 8559 return self._magic((filters, settings_in_effect)) 8560 8561 @BluetoothBaseTest.bt_test_wrap 8562 @test_tracker_info(uuid='55ec509d-8cdd-4ab5-8e57-2ccadd5f8c0d') 8563 def test_filter_combo_221(self): 8564 """Test a combination scan filter and advertisement 8565 8566 Test that an advertisement is found and matches corresponding 8567 settings. 8568 8569 Steps: 8570 1. Create a advertise data object 8571 2. Create a advertise settings object. 8572 3. Create a advertise callback object. 8573 4. Start an LE advertising using the objects created in steps 1-3. 8574 5. Find the onSuccess advertisement event. 8575 8576 Expected Result: 8577 Advertisement is successfully advertising. 8578 8579 Returns: 8580 Pass if True 8581 Fail if False 8582 8583 TAGS: LE, Advertising, Filtering, Scanning 8584 Priority: 2 8585 """ 8586 filters = {'include_device_name': True} 8587 settings_in_effect = { 8588 'mode': ble_advertise_settings_tx_powers['low'], 8589 'is_connectable': True, 8590 'scan_mode': ble_scan_settings_modes['opportunistic'], 8591 'mode': ble_advertise_settings_modes['balanced'] 8592 } 8593 return self._magic((filters, settings_in_effect)) 8594 8595 @BluetoothBaseTest.bt_test_wrap 8596 @test_tracker_info(uuid='1f6835fd-b33b-4be3-b133-b77f6c9872c8') 8597 def test_filter_combo_222(self): 8598 """Test a combination scan filter and advertisement 8599 8600 Test that an advertisement is found and matches corresponding 8601 settings. 8602 8603 Steps: 8604 1. Create a advertise data object 8605 2. Create a advertise settings object. 8606 3. Create a advertise callback object. 8607 4. Start an LE advertising using the objects created in steps 1-3. 8608 5. Find the onSuccess advertisement event. 8609 8610 Expected Result: 8611 Advertisement is successfully advertising. 8612 8613 Returns: 8614 Pass if True 8615 Fail if False 8616 8617 TAGS: LE, Advertising, Filtering, Scanning 8618 Priority: 2 8619 """ 8620 filters = {'include_device_name': True} 8621 settings_in_effect = { 8622 'mode': ble_advertise_settings_tx_powers['ultra_low'], 8623 'is_connectable': True, 8624 'scan_mode': ble_scan_settings_modes['opportunistic'], 8625 'mode': ble_advertise_settings_modes['balanced'] 8626 } 8627 return self._magic((filters, settings_in_effect)) 8628 8629 @BluetoothBaseTest.bt_test_wrap 8630 @test_tracker_info(uuid='62d483c0-7d08-4b7c-9b1f-3b0324006554') 8631 def test_filter_combo_223(self): 8632 """Test a combination scan filter and advertisement 8633 8634 Test that an advertisement is found and matches corresponding 8635 settings. 8636 8637 Steps: 8638 1. Create a advertise data object 8639 2. Create a advertise settings object. 8640 3. Create a advertise callback object. 8641 4. Start an LE advertising using the objects created in steps 1-3. 8642 5. Find the onSuccess advertisement event. 8643 8644 Expected Result: 8645 Advertisement is successfully advertising. 8646 8647 Returns: 8648 Pass if True 8649 Fail if False 8650 8651 TAGS: LE, Advertising, Filtering, Scanning 8652 Priority: 2 8653 """ 8654 filters = {'include_device_name': True} 8655 settings_in_effect = { 8656 'mode': ble_advertise_settings_tx_powers['medium'], 8657 'is_connectable': True, 8658 'scan_mode': ble_scan_settings_modes['opportunistic'], 8659 'mode': ble_advertise_settings_modes['balanced'] 8660 } 8661 return self._magic((filters, settings_in_effect)) 8662 8663 @BluetoothBaseTest.bt_test_wrap 8664 @test_tracker_info(uuid='01bcb867-3f39-4aef-baf5-50b439768b43') 8665 def test_filter_combo_224(self): 8666 """Test a combination scan filter and advertisement 8667 8668 Test that an advertisement is found and matches corresponding 8669 settings. 8670 8671 Steps: 8672 1. Create a advertise data object 8673 2. Create a advertise settings object. 8674 3. Create a advertise callback object. 8675 4. Start an LE advertising using the objects created in steps 1-3. 8676 5. Find the onSuccess advertisement event. 8677 8678 Expected Result: 8679 Advertisement is successfully advertising. 8680 8681 Returns: 8682 Pass if True 8683 Fail if False 8684 8685 TAGS: LE, Advertising, Filtering, Scanning 8686 Priority: 2 8687 """ 8688 filters = {'include_device_name': True} 8689 settings_in_effect = { 8690 'mode': ble_advertise_settings_tx_powers['high'], 8691 'is_connectable': True, 8692 'scan_mode': ble_scan_settings_modes['balanced'], 8693 'mode': ble_advertise_settings_modes['balanced'] 8694 } 8695 return self._magic((filters, settings_in_effect)) 8696 8697 @BluetoothBaseTest.bt_test_wrap 8698 @test_tracker_info(uuid='faab6211-4408-4272-93d9-7b09b8c3b8cd') 8699 def test_filter_combo_225(self): 8700 """Test a combination scan filter and advertisement 8701 8702 Test that an advertisement is found and matches corresponding 8703 settings. 8704 8705 Steps: 8706 1. Create a advertise data object 8707 2. Create a advertise settings object. 8708 3. Create a advertise callback object. 8709 4. Start an LE advertising using the objects created in steps 1-3. 8710 5. Find the onSuccess advertisement event. 8711 8712 Expected Result: 8713 Advertisement is successfully advertising. 8714 8715 Returns: 8716 Pass if True 8717 Fail if False 8718 8719 TAGS: LE, Advertising, Filtering, Scanning 8720 Priority: 2 8721 """ 8722 filters = {'include_device_name': True} 8723 settings_in_effect = { 8724 'mode': ble_advertise_settings_tx_powers['low'], 8725 'is_connectable': True, 8726 'scan_mode': ble_scan_settings_modes['balanced'], 8727 'mode': ble_advertise_settings_modes['balanced'] 8728 } 8729 return self._magic((filters, settings_in_effect)) 8730 8731 @BluetoothBaseTest.bt_test_wrap 8732 @test_tracker_info(uuid='a0f9ad8d-c00a-4420-9205-eeb081bf2b35') 8733 def test_filter_combo_226(self): 8734 """Test a combination scan filter and advertisement 8735 8736 Test that an advertisement is found and matches corresponding 8737 settings. 8738 8739 Steps: 8740 1. Create a advertise data object 8741 2. Create a advertise settings object. 8742 3. Create a advertise callback object. 8743 4. Start an LE advertising using the objects created in steps 1-3. 8744 5. Find the onSuccess advertisement event. 8745 8746 Expected Result: 8747 Advertisement is successfully advertising. 8748 8749 Returns: 8750 Pass if True 8751 Fail if False 8752 8753 TAGS: LE, Advertising, Filtering, Scanning 8754 Priority: 2 8755 """ 8756 filters = {'include_device_name': True} 8757 settings_in_effect = { 8758 'mode': ble_advertise_settings_tx_powers['ultra_low'], 8759 'is_connectable': True, 8760 'scan_mode': ble_scan_settings_modes['balanced'], 8761 'mode': ble_advertise_settings_modes['balanced'] 8762 } 8763 return self._magic((filters, settings_in_effect)) 8764 8765 @BluetoothBaseTest.bt_test_wrap 8766 @test_tracker_info(uuid='7a2e8186-e8b0-4956-b8bc-fb2ba91b8f67') 8767 def test_filter_combo_227(self): 8768 """Test a combination scan filter and advertisement 8769 8770 Test that an advertisement is found and matches corresponding 8771 settings. 8772 8773 Steps: 8774 1. Create a advertise data object 8775 2. Create a advertise settings object. 8776 3. Create a advertise callback object. 8777 4. Start an LE advertising using the objects created in steps 1-3. 8778 5. Find the onSuccess advertisement event. 8779 8780 Expected Result: 8781 Advertisement is successfully advertising. 8782 8783 Returns: 8784 Pass if True 8785 Fail if False 8786 8787 TAGS: LE, Advertising, Filtering, Scanning 8788 Priority: 2 8789 """ 8790 filters = {'include_device_name': True} 8791 settings_in_effect = { 8792 'mode': ble_advertise_settings_tx_powers['medium'], 8793 'is_connectable': True, 8794 'scan_mode': ble_scan_settings_modes['balanced'], 8795 'mode': ble_advertise_settings_modes['balanced'] 8796 } 8797 return self._magic((filters, settings_in_effect)) 8798 8799 @BluetoothBaseTest.bt_test_wrap 8800 @test_tracker_info(uuid='414b5464-b135-453b-acf3-aebc728d0366') 8801 def test_filter_combo_228(self): 8802 """Test a combination scan filter and advertisement 8803 8804 Test that an advertisement is found and matches corresponding 8805 settings. 8806 8807 Steps: 8808 1. Create a advertise data object 8809 2. Create a advertise settings object. 8810 3. Create a advertise callback object. 8811 4. Start an LE advertising using the objects created in steps 1-3. 8812 5. Find the onSuccess advertisement event. 8813 8814 Expected Result: 8815 Advertisement is successfully advertising. 8816 8817 Returns: 8818 Pass if True 8819 Fail if False 8820 8821 TAGS: LE, Advertising, Filtering, Scanning 8822 Priority: 2 8823 """ 8824 filters = {'include_device_name': True} 8825 settings_in_effect = { 8826 'mode': ble_advertise_settings_tx_powers['high'], 8827 'is_connectable': True, 8828 'scan_mode': ble_scan_settings_modes['low_power'], 8829 'mode': ble_advertise_settings_modes['balanced'] 8830 } 8831 return self._magic((filters, settings_in_effect)) 8832 8833 @BluetoothBaseTest.bt_test_wrap 8834 @test_tracker_info(uuid='580e3ff8-4648-402e-a531-ddb85bbf4c89') 8835 def test_filter_combo_229(self): 8836 """Test a combination scan filter and advertisement 8837 8838 Test that an advertisement is found and matches corresponding 8839 settings. 8840 8841 Steps: 8842 1. Create a advertise data object 8843 2. Create a advertise settings object. 8844 3. Create a advertise callback object. 8845 4. Start an LE advertising using the objects created in steps 1-3. 8846 5. Find the onSuccess advertisement event. 8847 8848 Expected Result: 8849 Advertisement is successfully advertising. 8850 8851 Returns: 8852 Pass if True 8853 Fail if False 8854 8855 TAGS: LE, Advertising, Filtering, Scanning 8856 Priority: 2 8857 """ 8858 filters = {'include_device_name': True} 8859 settings_in_effect = { 8860 'mode': ble_advertise_settings_tx_powers['low'], 8861 'is_connectable': True, 8862 'scan_mode': ble_scan_settings_modes['low_power'], 8863 'mode': ble_advertise_settings_modes['balanced'] 8864 } 8865 return self._magic((filters, settings_in_effect)) 8866 8867 @BluetoothBaseTest.bt_test_wrap 8868 @test_tracker_info(uuid='7fe0c829-94b5-4e88-aa92-47159c1eb232') 8869 def test_filter_combo_230(self): 8870 """Test a combination scan filter and advertisement 8871 8872 Test that an advertisement is found and matches corresponding 8873 settings. 8874 8875 Steps: 8876 1. Create a advertise data object 8877 2. Create a advertise settings object. 8878 3. Create a advertise callback object. 8879 4. Start an LE advertising using the objects created in steps 1-3. 8880 5. Find the onSuccess advertisement event. 8881 8882 Expected Result: 8883 Advertisement is successfully advertising. 8884 8885 Returns: 8886 Pass if True 8887 Fail if False 8888 8889 TAGS: LE, Advertising, Filtering, Scanning 8890 Priority: 2 8891 """ 8892 filters = {'include_device_name': True} 8893 settings_in_effect = { 8894 'mode': ble_advertise_settings_tx_powers['ultra_low'], 8895 'is_connectable': True, 8896 'scan_mode': ble_scan_settings_modes['low_power'], 8897 'mode': ble_advertise_settings_modes['balanced'] 8898 } 8899 return self._magic((filters, settings_in_effect)) 8900 8901 @BluetoothBaseTest.bt_test_wrap 8902 @test_tracker_info(uuid='93c1747d-4b76-4faf-9efc-4ca40e751f08') 8903 def test_filter_combo_231(self): 8904 """Test a combination scan filter and advertisement 8905 8906 Test that an advertisement is found and matches corresponding 8907 settings. 8908 8909 Steps: 8910 1. Create a advertise data object 8911 2. Create a advertise settings object. 8912 3. Create a advertise callback object. 8913 4. Start an LE advertising using the objects created in steps 1-3. 8914 5. Find the onSuccess advertisement event. 8915 8916 Expected Result: 8917 Advertisement is successfully advertising. 8918 8919 Returns: 8920 Pass if True 8921 Fail if False 8922 8923 TAGS: LE, Advertising, Filtering, Scanning 8924 Priority: 2 8925 """ 8926 filters = {'include_device_name': True} 8927 settings_in_effect = { 8928 'mode': ble_advertise_settings_tx_powers['medium'], 8929 'is_connectable': True, 8930 'scan_mode': ble_scan_settings_modes['low_power'], 8931 'mode': ble_advertise_settings_modes['balanced'] 8932 } 8933 return self._magic((filters, settings_in_effect)) 8934 8935 @BluetoothBaseTest.bt_test_wrap 8936 @test_tracker_info(uuid='96f7e662-6f74-407a-b1d8-e29ac3405ff4') 8937 def test_filter_combo_232(self): 8938 """Test a combination scan filter and advertisement 8939 8940 Test that an advertisement is found and matches corresponding 8941 settings. 8942 8943 Steps: 8944 1. Create a advertise data object 8945 2. Create a advertise settings object. 8946 3. Create a advertise callback object. 8947 4. Start an LE advertising using the objects created in steps 1-3. 8948 5. Find the onSuccess advertisement event. 8949 8950 Expected Result: 8951 Advertisement is successfully advertising. 8952 8953 Returns: 8954 Pass if True 8955 Fail if False 8956 8957 TAGS: LE, Advertising, Filtering, Scanning 8958 Priority: 2 8959 """ 8960 filters = {'include_device_name': True} 8961 settings_in_effect = { 8962 'mode': ble_advertise_settings_tx_powers['high'], 8963 'is_connectable': True, 8964 'scan_mode': ble_scan_settings_modes['low_latency'], 8965 'mode': ble_advertise_settings_modes['low_latency'] 8966 } 8967 return self._magic((filters, settings_in_effect)) 8968 8969 @BluetoothBaseTest.bt_test_wrap 8970 @test_tracker_info(uuid='cde6415b-1138-4913-ab4f-542d4057542d') 8971 def test_filter_combo_233(self): 8972 """Test a combination scan filter and advertisement 8973 8974 Test that an advertisement is found and matches corresponding 8975 settings. 8976 8977 Steps: 8978 1. Create a advertise data object 8979 2. Create a advertise settings object. 8980 3. Create a advertise callback object. 8981 4. Start an LE advertising using the objects created in steps 1-3. 8982 5. Find the onSuccess advertisement event. 8983 8984 Expected Result: 8985 Advertisement is successfully advertising. 8986 8987 Returns: 8988 Pass if True 8989 Fail if False 8990 8991 TAGS: LE, Advertising, Filtering, Scanning 8992 Priority: 2 8993 """ 8994 filters = {'include_device_name': True} 8995 settings_in_effect = { 8996 'mode': ble_advertise_settings_tx_powers['low'], 8997 'is_connectable': True, 8998 'scan_mode': ble_scan_settings_modes['low_latency'], 8999 'mode': ble_advertise_settings_modes['low_latency'] 9000 } 9001 return self._magic((filters, settings_in_effect)) 9002 9003 @BluetoothBaseTest.bt_test_wrap 9004 @test_tracker_info(uuid='4ca75288-0af8-462b-9146-022b9f915b1f') 9005 def test_filter_combo_234(self): 9006 """Test a combination scan filter and advertisement 9007 9008 Test that an advertisement is found and matches corresponding 9009 settings. 9010 9011 Steps: 9012 1. Create a advertise data object 9013 2. Create a advertise settings object. 9014 3. Create a advertise callback object. 9015 4. Start an LE advertising using the objects created in steps 1-3. 9016 5. Find the onSuccess advertisement event. 9017 9018 Expected Result: 9019 Advertisement is successfully advertising. 9020 9021 Returns: 9022 Pass if True 9023 Fail if False 9024 9025 TAGS: LE, Advertising, Filtering, Scanning 9026 Priority: 2 9027 """ 9028 filters = {'include_device_name': True} 9029 settings_in_effect = { 9030 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9031 'is_connectable': True, 9032 'scan_mode': ble_scan_settings_modes['low_latency'], 9033 'mode': ble_advertise_settings_modes['low_latency'] 9034 } 9035 return self._magic((filters, settings_in_effect)) 9036 9037 @BluetoothBaseTest.bt_test_wrap 9038 @test_tracker_info(uuid='4db5dae2-f974-4208-9c01-84ca050f8fc3') 9039 def test_filter_combo_235(self): 9040 """Test a combination scan filter and advertisement 9041 9042 Test that an advertisement is found and matches corresponding 9043 settings. 9044 9045 Steps: 9046 1. Create a advertise data object 9047 2. Create a advertise settings object. 9048 3. Create a advertise callback object. 9049 4. Start an LE advertising using the objects created in steps 1-3. 9050 5. Find the onSuccess advertisement event. 9051 9052 Expected Result: 9053 Advertisement is successfully advertising. 9054 9055 Returns: 9056 Pass if True 9057 Fail if False 9058 9059 TAGS: LE, Advertising, Filtering, Scanning 9060 Priority: 2 9061 """ 9062 filters = {'include_device_name': True} 9063 settings_in_effect = { 9064 'mode': ble_advertise_settings_tx_powers['medium'], 9065 'is_connectable': True, 9066 'scan_mode': ble_scan_settings_modes['low_latency'], 9067 'mode': ble_advertise_settings_modes['low_latency'] 9068 } 9069 return self._magic((filters, settings_in_effect)) 9070 9071 @BluetoothBaseTest.bt_test_wrap 9072 @test_tracker_info(uuid='c9f7abf0-b333-4500-9fd0-e4678574cf18') 9073 def test_filter_combo_236(self): 9074 """Test a combination scan filter and advertisement 9075 9076 Test that an advertisement is found and matches corresponding 9077 settings. 9078 9079 Steps: 9080 1. Create a advertise data object 9081 2. Create a advertise settings object. 9082 3. Create a advertise callback object. 9083 4. Start an LE advertising using the objects created in steps 1-3. 9084 5. Find the onSuccess advertisement event. 9085 9086 Expected Result: 9087 Advertisement is successfully advertising. 9088 9089 Returns: 9090 Pass if True 9091 Fail if False 9092 9093 TAGS: LE, Advertising, Filtering, Scanning 9094 Priority: 2 9095 """ 9096 filters = {'include_device_name': True} 9097 settings_in_effect = { 9098 'mode': ble_advertise_settings_tx_powers['high'], 9099 'is_connectable': True, 9100 'scan_mode': ble_scan_settings_modes['opportunistic'], 9101 'mode': ble_advertise_settings_modes['low_latency'] 9102 } 9103 return self._magic((filters, settings_in_effect)) 9104 9105 @BluetoothBaseTest.bt_test_wrap 9106 @test_tracker_info(uuid='b8176ca4-478c-49c6-a638-4f53d7d2720c') 9107 def test_filter_combo_237(self): 9108 """Test a combination scan filter and advertisement 9109 9110 Test that an advertisement is found and matches corresponding 9111 settings. 9112 9113 Steps: 9114 1. Create a advertise data object 9115 2. Create a advertise settings object. 9116 3. Create a advertise callback object. 9117 4. Start an LE advertising using the objects created in steps 1-3. 9118 5. Find the onSuccess advertisement event. 9119 9120 Expected Result: 9121 Advertisement is successfully advertising. 9122 9123 Returns: 9124 Pass if True 9125 Fail if False 9126 9127 TAGS: LE, Advertising, Filtering, Scanning 9128 Priority: 2 9129 """ 9130 filters = {'include_device_name': True} 9131 settings_in_effect = { 9132 'mode': ble_advertise_settings_tx_powers['low'], 9133 'is_connectable': True, 9134 'scan_mode': ble_scan_settings_modes['opportunistic'], 9135 'mode': ble_advertise_settings_modes['low_latency'] 9136 } 9137 return self._magic((filters, settings_in_effect)) 9138 9139 @BluetoothBaseTest.bt_test_wrap 9140 @test_tracker_info(uuid='7e84c371-f28e-4995-86a9-bb99a4a29d0c') 9141 def test_filter_combo_238(self): 9142 """Test a combination scan filter and advertisement 9143 9144 Test that an advertisement is found and matches corresponding 9145 settings. 9146 9147 Steps: 9148 1. Create a advertise data object 9149 2. Create a advertise settings object. 9150 3. Create a advertise callback object. 9151 4. Start an LE advertising using the objects created in steps 1-3. 9152 5. Find the onSuccess advertisement event. 9153 9154 Expected Result: 9155 Advertisement is successfully advertising. 9156 9157 Returns: 9158 Pass if True 9159 Fail if False 9160 9161 TAGS: LE, Advertising, Filtering, Scanning 9162 Priority: 2 9163 """ 9164 filters = {'include_device_name': True} 9165 settings_in_effect = { 9166 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9167 'is_connectable': True, 9168 'scan_mode': ble_scan_settings_modes['opportunistic'], 9169 'mode': ble_advertise_settings_modes['low_latency'] 9170 } 9171 return self._magic((filters, settings_in_effect)) 9172 9173 @BluetoothBaseTest.bt_test_wrap 9174 @test_tracker_info(uuid='3b8eb500-6885-4273-9c53-f7930896e895') 9175 def test_filter_combo_239(self): 9176 """Test a combination scan filter and advertisement 9177 9178 Test that an advertisement is found and matches corresponding 9179 settings. 9180 9181 Steps: 9182 1. Create a advertise data object 9183 2. Create a advertise settings object. 9184 3. Create a advertise callback object. 9185 4. Start an LE advertising using the objects created in steps 1-3. 9186 5. Find the onSuccess advertisement event. 9187 9188 Expected Result: 9189 Advertisement is successfully advertising. 9190 9191 Returns: 9192 Pass if True 9193 Fail if False 9194 9195 TAGS: LE, Advertising, Filtering, Scanning 9196 Priority: 2 9197 """ 9198 filters = {'include_device_name': True} 9199 settings_in_effect = { 9200 'mode': ble_advertise_settings_tx_powers['medium'], 9201 'is_connectable': True, 9202 'scan_mode': ble_scan_settings_modes['opportunistic'], 9203 'mode': ble_advertise_settings_modes['low_latency'] 9204 } 9205 return self._magic((filters, settings_in_effect)) 9206 9207 @BluetoothBaseTest.bt_test_wrap 9208 @test_tracker_info(uuid='f80ef69f-d71c-4c94-893d-363cf5a658f6') 9209 def test_filter_combo_240(self): 9210 """Test a combination scan filter and advertisement 9211 9212 Test that an advertisement is found and matches corresponding 9213 settings. 9214 9215 Steps: 9216 1. Create a advertise data object 9217 2. Create a advertise settings object. 9218 3. Create a advertise callback object. 9219 4. Start an LE advertising using the objects created in steps 1-3. 9220 5. Find the onSuccess advertisement event. 9221 9222 Expected Result: 9223 Advertisement is successfully advertising. 9224 9225 Returns: 9226 Pass if True 9227 Fail if False 9228 9229 TAGS: LE, Advertising, Filtering, Scanning 9230 Priority: 2 9231 """ 9232 filters = {'include_device_name': True} 9233 settings_in_effect = { 9234 'mode': ble_advertise_settings_tx_powers['high'], 9235 'is_connectable': True, 9236 'scan_mode': ble_scan_settings_modes['balanced'], 9237 'mode': ble_advertise_settings_modes['low_latency'] 9238 } 9239 return self._magic((filters, settings_in_effect)) 9240 9241 @BluetoothBaseTest.bt_test_wrap 9242 @test_tracker_info(uuid='dca1ab9d-7923-4917-8a82-1917dbad4923') 9243 def test_filter_combo_241(self): 9244 """Test a combination scan filter and advertisement 9245 9246 Test that an advertisement is found and matches corresponding 9247 settings. 9248 9249 Steps: 9250 1. Create a advertise data object 9251 2. Create a advertise settings object. 9252 3. Create a advertise callback object. 9253 4. Start an LE advertising using the objects created in steps 1-3. 9254 5. Find the onSuccess advertisement event. 9255 9256 Expected Result: 9257 Advertisement is successfully advertising. 9258 9259 Returns: 9260 Pass if True 9261 Fail if False 9262 9263 TAGS: LE, Advertising, Filtering, Scanning 9264 Priority: 2 9265 """ 9266 filters = {'include_device_name': True} 9267 settings_in_effect = { 9268 'mode': ble_advertise_settings_tx_powers['low'], 9269 'is_connectable': True, 9270 'scan_mode': ble_scan_settings_modes['balanced'], 9271 'mode': ble_advertise_settings_modes['low_latency'] 9272 } 9273 return self._magic((filters, settings_in_effect)) 9274 9275 @BluetoothBaseTest.bt_test_wrap 9276 @test_tracker_info(uuid='36faab09-d874-4f24-b7ea-8985d60dc4c3') 9277 def test_filter_combo_242(self): 9278 """Test a combination scan filter and advertisement 9279 9280 Test that an advertisement is found and matches corresponding 9281 settings. 9282 9283 Steps: 9284 1. Create a advertise data object 9285 2. Create a advertise settings object. 9286 3. Create a advertise callback object. 9287 4. Start an LE advertising using the objects created in steps 1-3. 9288 5. Find the onSuccess advertisement event. 9289 9290 Expected Result: 9291 Advertisement is successfully advertising. 9292 9293 Returns: 9294 Pass if True 9295 Fail if False 9296 9297 TAGS: LE, Advertising, Filtering, Scanning 9298 Priority: 2 9299 """ 9300 filters = {'include_device_name': True} 9301 settings_in_effect = { 9302 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9303 'is_connectable': True, 9304 'scan_mode': ble_scan_settings_modes['balanced'], 9305 'mode': ble_advertise_settings_modes['low_latency'] 9306 } 9307 return self._magic((filters, settings_in_effect)) 9308 9309 @BluetoothBaseTest.bt_test_wrap 9310 @test_tracker_info(uuid='c94b7e3b-064c-4885-a4aa-899e83d0e754') 9311 def test_filter_combo_243(self): 9312 """Test a combination scan filter and advertisement 9313 9314 Test that an advertisement is found and matches corresponding 9315 settings. 9316 9317 Steps: 9318 1. Create a advertise data object 9319 2. Create a advertise settings object. 9320 3. Create a advertise callback object. 9321 4. Start an LE advertising using the objects created in steps 1-3. 9322 5. Find the onSuccess advertisement event. 9323 9324 Expected Result: 9325 Advertisement is successfully advertising. 9326 9327 Returns: 9328 Pass if True 9329 Fail if False 9330 9331 TAGS: LE, Advertising, Filtering, Scanning 9332 Priority: 2 9333 """ 9334 filters = {'include_device_name': True} 9335 settings_in_effect = { 9336 'mode': ble_advertise_settings_tx_powers['medium'], 9337 'is_connectable': True, 9338 'scan_mode': ble_scan_settings_modes['balanced'], 9339 'mode': ble_advertise_settings_modes['low_latency'] 9340 } 9341 return self._magic((filters, settings_in_effect)) 9342 9343 @BluetoothBaseTest.bt_test_wrap 9344 @test_tracker_info(uuid='f6680820-8843-47e4-b4fb-0ee1b76d51f8') 9345 def test_filter_combo_244(self): 9346 """Test a combination scan filter and advertisement 9347 9348 Test that an advertisement is found and matches corresponding 9349 settings. 9350 9351 Steps: 9352 1. Create a advertise data object 9353 2. Create a advertise settings object. 9354 3. Create a advertise callback object. 9355 4. Start an LE advertising using the objects created in steps 1-3. 9356 5. Find the onSuccess advertisement event. 9357 9358 Expected Result: 9359 Advertisement is successfully advertising. 9360 9361 Returns: 9362 Pass if True 9363 Fail if False 9364 9365 TAGS: LE, Advertising, Filtering, Scanning 9366 Priority: 2 9367 """ 9368 filters = {'include_device_name': True} 9369 settings_in_effect = { 9370 'mode': ble_advertise_settings_tx_powers['high'], 9371 'is_connectable': True, 9372 'scan_mode': ble_scan_settings_modes['low_power'], 9373 'mode': ble_advertise_settings_modes['low_latency'] 9374 } 9375 return self._magic((filters, settings_in_effect)) 9376 9377 @BluetoothBaseTest.bt_test_wrap 9378 @test_tracker_info(uuid='4b1bf9a9-7761-435a-8c6c-511b20312c04') 9379 def test_filter_combo_245(self): 9380 """Test a combination scan filter and advertisement 9381 9382 Test that an advertisement is found and matches corresponding 9383 settings. 9384 9385 Steps: 9386 1. Create a advertise data object 9387 2. Create a advertise settings object. 9388 3. Create a advertise callback object. 9389 4. Start an LE advertising using the objects created in steps 1-3. 9390 5. Find the onSuccess advertisement event. 9391 9392 Expected Result: 9393 Advertisement is successfully advertising. 9394 9395 Returns: 9396 Pass if True 9397 Fail if False 9398 9399 TAGS: LE, Advertising, Filtering, Scanning 9400 Priority: 2 9401 """ 9402 filters = {'include_device_name': True} 9403 settings_in_effect = { 9404 'mode': ble_advertise_settings_tx_powers['low'], 9405 'is_connectable': True, 9406 'scan_mode': ble_scan_settings_modes['low_power'], 9407 'mode': ble_advertise_settings_modes['low_latency'] 9408 } 9409 return self._magic((filters, settings_in_effect)) 9410 9411 @BluetoothBaseTest.bt_test_wrap 9412 @test_tracker_info(uuid='5c5b0147-cacd-46f0-a6b7-ff8b37cf985b') 9413 def test_filter_combo_246(self): 9414 """Test a combination scan filter and advertisement 9415 9416 Test that an advertisement is found and matches corresponding 9417 settings. 9418 9419 Steps: 9420 1. Create a advertise data object 9421 2. Create a advertise settings object. 9422 3. Create a advertise callback object. 9423 4. Start an LE advertising using the objects created in steps 1-3. 9424 5. Find the onSuccess advertisement event. 9425 9426 Expected Result: 9427 Advertisement is successfully advertising. 9428 9429 Returns: 9430 Pass if True 9431 Fail if False 9432 9433 TAGS: LE, Advertising, Filtering, Scanning 9434 Priority: 2 9435 """ 9436 filters = {'include_device_name': True} 9437 settings_in_effect = { 9438 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9439 'is_connectable': True, 9440 'scan_mode': ble_scan_settings_modes['low_power'], 9441 'mode': ble_advertise_settings_modes['low_latency'] 9442 } 9443 return self._magic((filters, settings_in_effect)) 9444 9445 @BluetoothBaseTest.bt_test_wrap 9446 @test_tracker_info(uuid='c31e26f2-2e82-40bc-a9a5-5ae059b702d8') 9447 def test_filter_combo_247(self): 9448 """Test a combination scan filter and advertisement 9449 9450 Test that an advertisement is found and matches corresponding 9451 settings. 9452 9453 Steps: 9454 1. Create a advertise data object 9455 2. Create a advertise settings object. 9456 3. Create a advertise callback object. 9457 4. Start an LE advertising using the objects created in steps 1-3. 9458 5. Find the onSuccess advertisement event. 9459 9460 Expected Result: 9461 Advertisement is successfully advertising. 9462 9463 Returns: 9464 Pass if True 9465 Fail if False 9466 9467 TAGS: LE, Advertising, Filtering, Scanning 9468 Priority: 2 9469 """ 9470 filters = {'include_device_name': True} 9471 settings_in_effect = { 9472 'mode': ble_advertise_settings_tx_powers['medium'], 9473 'is_connectable': True, 9474 'scan_mode': ble_scan_settings_modes['low_power'], 9475 'mode': ble_advertise_settings_modes['low_latency'] 9476 } 9477 return self._magic((filters, settings_in_effect)) 9478 9479 @BluetoothBaseTest.bt_test_wrap 9480 @test_tracker_info(uuid='5a1a4438-6bb3-4acc-85ab-b48432c340db') 9481 def test_filter_combo_248(self): 9482 """Test a combination scan filter and advertisement 9483 9484 Test that an advertisement is found and matches corresponding 9485 settings. 9486 9487 Steps: 9488 1. Create a advertise data object 9489 2. Create a advertise settings object. 9490 3. Create a advertise callback object. 9491 4. Start an LE advertising using the objects created in steps 1-3. 9492 5. Find the onSuccess advertisement event. 9493 9494 Expected Result: 9495 Advertisement is successfully advertising. 9496 9497 Returns: 9498 Pass if True 9499 Fail if False 9500 9501 TAGS: LE, Advertising, Filtering, Scanning 9502 Priority: 2 9503 """ 9504 filters = {'include_device_name': True} 9505 settings_in_effect = { 9506 'mode': ble_advertise_settings_tx_powers['high'], 9507 'is_connectable': False, 9508 'scan_mode': ble_scan_settings_modes['low_latency'], 9509 'mode': ble_advertise_settings_modes['balanced'] 9510 } 9511 return self._magic((filters, settings_in_effect)) 9512 9513 @BluetoothBaseTest.bt_test_wrap 9514 @test_tracker_info(uuid='0dd54bff-d170-441f-81ae-bc11f7c8491b') 9515 def test_filter_combo_249(self): 9516 """Test a combination scan filter and advertisement 9517 9518 Test that an advertisement is found and matches corresponding 9519 settings. 9520 9521 Steps: 9522 1. Create a advertise data object 9523 2. Create a advertise settings object. 9524 3. Create a advertise callback object. 9525 4. Start an LE advertising using the objects created in steps 1-3. 9526 5. Find the onSuccess advertisement event. 9527 9528 Expected Result: 9529 Advertisement is successfully advertising. 9530 9531 Returns: 9532 Pass if True 9533 Fail if False 9534 9535 TAGS: LE, Advertising, Filtering, Scanning 9536 Priority: 2 9537 """ 9538 filters = {'include_device_name': True} 9539 settings_in_effect = { 9540 'mode': ble_advertise_settings_tx_powers['low'], 9541 'is_connectable': False, 9542 'scan_mode': ble_scan_settings_modes['low_latency'], 9543 'mode': ble_advertise_settings_modes['balanced'] 9544 } 9545 return self._magic((filters, settings_in_effect)) 9546 9547 @BluetoothBaseTest.bt_test_wrap 9548 @test_tracker_info(uuid='98d878cf-1548-4e79-9527-8741e5b523d0') 9549 def test_filter_combo_250(self): 9550 """Test a combination scan filter and advertisement 9551 9552 Test that an advertisement is found and matches corresponding 9553 settings. 9554 9555 Steps: 9556 1. Create a advertise data object 9557 2. Create a advertise settings object. 9558 3. Create a advertise callback object. 9559 4. Start an LE advertising using the objects created in steps 1-3. 9560 5. Find the onSuccess advertisement event. 9561 9562 Expected Result: 9563 Advertisement is successfully advertising. 9564 9565 Returns: 9566 Pass if True 9567 Fail if False 9568 9569 TAGS: LE, Advertising, Filtering, Scanning 9570 Priority: 2 9571 """ 9572 filters = {'include_device_name': True} 9573 settings_in_effect = { 9574 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9575 'is_connectable': False, 9576 'scan_mode': ble_scan_settings_modes['low_latency'], 9577 'mode': ble_advertise_settings_modes['balanced'] 9578 } 9579 return self._magic((filters, settings_in_effect)) 9580 9581 @BluetoothBaseTest.bt_test_wrap 9582 @test_tracker_info(uuid='ec0c9a9b-3df3-4cba-84fc-9a17a11b1be7') 9583 def test_filter_combo_251(self): 9584 """Test a combination scan filter and advertisement 9585 9586 Test that an advertisement is found and matches corresponding 9587 settings. 9588 9589 Steps: 9590 1. Create a advertise data object 9591 2. Create a advertise settings object. 9592 3. Create a advertise callback object. 9593 4. Start an LE advertising using the objects created in steps 1-3. 9594 5. Find the onSuccess advertisement event. 9595 9596 Expected Result: 9597 Advertisement is successfully advertising. 9598 9599 Returns: 9600 Pass if True 9601 Fail if False 9602 9603 TAGS: LE, Advertising, Filtering, Scanning 9604 Priority: 2 9605 """ 9606 filters = {'include_device_name': True} 9607 settings_in_effect = { 9608 'mode': ble_advertise_settings_tx_powers['medium'], 9609 'is_connectable': False, 9610 'scan_mode': ble_scan_settings_modes['low_latency'], 9611 'mode': ble_advertise_settings_modes['balanced'] 9612 } 9613 return self._magic((filters, settings_in_effect)) 9614 9615 @BluetoothBaseTest.bt_test_wrap 9616 @test_tracker_info(uuid='eabddddc-29c7-4804-93a8-c259957538ae') 9617 def test_filter_combo_252(self): 9618 """Test a combination scan filter and advertisement 9619 9620 Test that an advertisement is found and matches corresponding 9621 settings. 9622 9623 Steps: 9624 1. Create a advertise data object 9625 2. Create a advertise settings object. 9626 3. Create a advertise callback object. 9627 4. Start an LE advertising using the objects created in steps 1-3. 9628 5. Find the onSuccess advertisement event. 9629 9630 Expected Result: 9631 Advertisement is successfully advertising. 9632 9633 Returns: 9634 Pass if True 9635 Fail if False 9636 9637 TAGS: LE, Advertising, Filtering, Scanning 9638 Priority: 2 9639 """ 9640 filters = {'include_device_name': True} 9641 settings_in_effect = { 9642 'mode': ble_advertise_settings_tx_powers['high'], 9643 'is_connectable': False, 9644 'scan_mode': ble_scan_settings_modes['opportunistic'], 9645 'mode': ble_advertise_settings_modes['balanced'] 9646 } 9647 return self._magic((filters, settings_in_effect)) 9648 9649 @BluetoothBaseTest.bt_test_wrap 9650 @test_tracker_info(uuid='ee0abe8f-254e-4802-b808-4aa8e0306203') 9651 def test_filter_combo_253(self): 9652 """Test a combination scan filter and advertisement 9653 9654 Test that an advertisement is found and matches corresponding 9655 settings. 9656 9657 Steps: 9658 1. Create a advertise data object 9659 2. Create a advertise settings object. 9660 3. Create a advertise callback object. 9661 4. Start an LE advertising using the objects created in steps 1-3. 9662 5. Find the onSuccess advertisement event. 9663 9664 Expected Result: 9665 Advertisement is successfully advertising. 9666 9667 Returns: 9668 Pass if True 9669 Fail if False 9670 9671 TAGS: LE, Advertising, Filtering, Scanning 9672 Priority: 2 9673 """ 9674 filters = {'include_device_name': True} 9675 settings_in_effect = { 9676 'mode': ble_advertise_settings_tx_powers['low'], 9677 'is_connectable': False, 9678 'scan_mode': ble_scan_settings_modes['opportunistic'], 9679 'mode': ble_advertise_settings_modes['balanced'] 9680 } 9681 return self._magic((filters, settings_in_effect)) 9682 9683 @BluetoothBaseTest.bt_test_wrap 9684 @test_tracker_info(uuid='9482cda2-a6f5-4dff-8809-6dfabaaf9f71') 9685 def test_filter_combo_254(self): 9686 """Test a combination scan filter and advertisement 9687 9688 Test that an advertisement is found and matches corresponding 9689 settings. 9690 9691 Steps: 9692 1. Create a advertise data object 9693 2. Create a advertise settings object. 9694 3. Create a advertise callback object. 9695 4. Start an LE advertising using the objects created in steps 1-3. 9696 5. Find the onSuccess advertisement event. 9697 9698 Expected Result: 9699 Advertisement is successfully advertising. 9700 9701 Returns: 9702 Pass if True 9703 Fail if False 9704 9705 TAGS: LE, Advertising, Filtering, Scanning 9706 Priority: 2 9707 """ 9708 filters = {'include_device_name': True} 9709 settings_in_effect = { 9710 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9711 'is_connectable': False, 9712 'scan_mode': ble_scan_settings_modes['opportunistic'], 9713 'mode': ble_advertise_settings_modes['balanced'] 9714 } 9715 return self._magic((filters, settings_in_effect)) 9716 9717 @BluetoothBaseTest.bt_test_wrap 9718 @test_tracker_info(uuid='279f54ee-975b-4edc-a6c8-f018e45846c3') 9719 def test_filter_combo_255(self): 9720 """Test a combination scan filter and advertisement 9721 9722 Test that an advertisement is found and matches corresponding 9723 settings. 9724 9725 Steps: 9726 1. Create a advertise data object 9727 2. Create a advertise settings object. 9728 3. Create a advertise callback object. 9729 4. Start an LE advertising using the objects created in steps 1-3. 9730 5. Find the onSuccess advertisement event. 9731 9732 Expected Result: 9733 Advertisement is successfully advertising. 9734 9735 Returns: 9736 Pass if True 9737 Fail if False 9738 9739 TAGS: LE, Advertising, Filtering, Scanning 9740 Priority: 2 9741 """ 9742 filters = {'include_device_name': True} 9743 settings_in_effect = { 9744 'mode': ble_advertise_settings_tx_powers['medium'], 9745 'is_connectable': False, 9746 'scan_mode': ble_scan_settings_modes['opportunistic'], 9747 'mode': ble_advertise_settings_modes['balanced'] 9748 } 9749 return self._magic((filters, settings_in_effect)) 9750 9751 @BluetoothBaseTest.bt_test_wrap 9752 @test_tracker_info(uuid='a3508588-ca01-4063-ae7e-c845ac4a595b') 9753 def test_filter_combo_256(self): 9754 """Test a combination scan filter and advertisement 9755 9756 Test that an advertisement is found and matches corresponding 9757 settings. 9758 9759 Steps: 9760 1. Create a advertise data object 9761 2. Create a advertise settings object. 9762 3. Create a advertise callback object. 9763 4. Start an LE advertising using the objects created in steps 1-3. 9764 5. Find the onSuccess advertisement event. 9765 9766 Expected Result: 9767 Advertisement is successfully advertising. 9768 9769 Returns: 9770 Pass if True 9771 Fail if False 9772 9773 TAGS: LE, Advertising, Filtering, Scanning 9774 Priority: 2 9775 """ 9776 filters = {'include_device_name': True} 9777 settings_in_effect = { 9778 'mode': ble_advertise_settings_tx_powers['high'], 9779 'is_connectable': False, 9780 'scan_mode': ble_scan_settings_modes['balanced'], 9781 'mode': ble_advertise_settings_modes['balanced'] 9782 } 9783 return self._magic((filters, settings_in_effect)) 9784 9785 @BluetoothBaseTest.bt_test_wrap 9786 @test_tracker_info(uuid='8bde1746-dec8-4b17-93ba-90448addcb13') 9787 def test_filter_combo_257(self): 9788 """Test a combination scan filter and advertisement 9789 9790 Test that an advertisement is found and matches corresponding 9791 settings. 9792 9793 Steps: 9794 1. Create a advertise data object 9795 2. Create a advertise settings object. 9796 3. Create a advertise callback object. 9797 4. Start an LE advertising using the objects created in steps 1-3. 9798 5. Find the onSuccess advertisement event. 9799 9800 Expected Result: 9801 Advertisement is successfully advertising. 9802 9803 Returns: 9804 Pass if True 9805 Fail if False 9806 9807 TAGS: LE, Advertising, Filtering, Scanning 9808 Priority: 2 9809 """ 9810 filters = {'include_device_name': True} 9811 settings_in_effect = { 9812 'mode': ble_advertise_settings_tx_powers['low'], 9813 'is_connectable': False, 9814 'scan_mode': ble_scan_settings_modes['balanced'], 9815 'mode': ble_advertise_settings_modes['balanced'] 9816 } 9817 return self._magic((filters, settings_in_effect)) 9818 9819 @BluetoothBaseTest.bt_test_wrap 9820 @test_tracker_info(uuid='9ae7e798-0981-4501-9302-54553c76a54c') 9821 def test_filter_combo_258(self): 9822 """Test a combination scan filter and advertisement 9823 9824 Test that an advertisement is found and matches corresponding 9825 settings. 9826 9827 Steps: 9828 1. Create a advertise data object 9829 2. Create a advertise settings object. 9830 3. Create a advertise callback object. 9831 4. Start an LE advertising using the objects created in steps 1-3. 9832 5. Find the onSuccess advertisement event. 9833 9834 Expected Result: 9835 Advertisement is successfully advertising. 9836 9837 Returns: 9838 Pass if True 9839 Fail if False 9840 9841 TAGS: LE, Advertising, Filtering, Scanning 9842 Priority: 2 9843 """ 9844 filters = {'include_device_name': True} 9845 settings_in_effect = { 9846 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9847 'is_connectable': False, 9848 'scan_mode': ble_scan_settings_modes['balanced'], 9849 'mode': ble_advertise_settings_modes['balanced'] 9850 } 9851 return self._magic((filters, settings_in_effect)) 9852 9853 @BluetoothBaseTest.bt_test_wrap 9854 @test_tracker_info(uuid='28e1efdc-1c5f-44d8-8650-02720db32048') 9855 def test_filter_combo_259(self): 9856 """Test a combination scan filter and advertisement 9857 9858 Test that an advertisement is found and matches corresponding 9859 settings. 9860 9861 Steps: 9862 1. Create a advertise data object 9863 2. Create a advertise settings object. 9864 3. Create a advertise callback object. 9865 4. Start an LE advertising using the objects created in steps 1-3. 9866 5. Find the onSuccess advertisement event. 9867 9868 Expected Result: 9869 Advertisement is successfully advertising. 9870 9871 Returns: 9872 Pass if True 9873 Fail if False 9874 9875 TAGS: LE, Advertising, Filtering, Scanning 9876 Priority: 2 9877 """ 9878 filters = {'include_device_name': True} 9879 settings_in_effect = { 9880 'mode': ble_advertise_settings_tx_powers['medium'], 9881 'is_connectable': False, 9882 'scan_mode': ble_scan_settings_modes['balanced'], 9883 'mode': ble_advertise_settings_modes['balanced'] 9884 } 9885 return self._magic((filters, settings_in_effect)) 9886 9887 @BluetoothBaseTest.bt_test_wrap 9888 @test_tracker_info(uuid='a309d9d0-bf5e-4878-b6bb-89d3c388d5b2') 9889 def test_filter_combo_260(self): 9890 """Test a combination scan filter and advertisement 9891 9892 Test that an advertisement is found and matches corresponding 9893 settings. 9894 9895 Steps: 9896 1. Create a advertise data object 9897 2. Create a advertise settings object. 9898 3. Create a advertise callback object. 9899 4. Start an LE advertising using the objects created in steps 1-3. 9900 5. Find the onSuccess advertisement event. 9901 9902 Expected Result: 9903 Advertisement is successfully advertising. 9904 9905 Returns: 9906 Pass if True 9907 Fail if False 9908 9909 TAGS: LE, Advertising, Filtering, Scanning 9910 Priority: 2 9911 """ 9912 filters = {'include_device_name': True} 9913 settings_in_effect = { 9914 'mode': ble_advertise_settings_tx_powers['high'], 9915 'is_connectable': False, 9916 'scan_mode': ble_scan_settings_modes['low_power'], 9917 'mode': ble_advertise_settings_modes['balanced'] 9918 } 9919 return self._magic((filters, settings_in_effect)) 9920 9921 @BluetoothBaseTest.bt_test_wrap 9922 @test_tracker_info(uuid='b0db2d76-8039-4257-bed0-e5e154a5874f') 9923 def test_filter_combo_261(self): 9924 """Test a combination scan filter and advertisement 9925 9926 Test that an advertisement is found and matches corresponding 9927 settings. 9928 9929 Steps: 9930 1. Create a advertise data object 9931 2. Create a advertise settings object. 9932 3. Create a advertise callback object. 9933 4. Start an LE advertising using the objects created in steps 1-3. 9934 5. Find the onSuccess advertisement event. 9935 9936 Expected Result: 9937 Advertisement is successfully advertising. 9938 9939 Returns: 9940 Pass if True 9941 Fail if False 9942 9943 TAGS: LE, Advertising, Filtering, Scanning 9944 Priority: 2 9945 """ 9946 filters = {'include_device_name': True} 9947 settings_in_effect = { 9948 'mode': ble_advertise_settings_tx_powers['low'], 9949 'is_connectable': False, 9950 'scan_mode': ble_scan_settings_modes['low_power'], 9951 'mode': ble_advertise_settings_modes['balanced'] 9952 } 9953 return self._magic((filters, settings_in_effect)) 9954 9955 @BluetoothBaseTest.bt_test_wrap 9956 @test_tracker_info(uuid='06ecd167-4dbc-4a8c-9c1c-2daea87f7a51') 9957 def test_filter_combo_262(self): 9958 """Test a combination scan filter and advertisement 9959 9960 Test that an advertisement is found and matches corresponding 9961 settings. 9962 9963 Steps: 9964 1. Create a advertise data object 9965 2. Create a advertise settings object. 9966 3. Create a advertise callback object. 9967 4. Start an LE advertising using the objects created in steps 1-3. 9968 5. Find the onSuccess advertisement event. 9969 9970 Expected Result: 9971 Advertisement is successfully advertising. 9972 9973 Returns: 9974 Pass if True 9975 Fail if False 9976 9977 TAGS: LE, Advertising, Filtering, Scanning 9978 Priority: 2 9979 """ 9980 filters = {'include_device_name': True} 9981 settings_in_effect = { 9982 'mode': ble_advertise_settings_tx_powers['ultra_low'], 9983 'is_connectable': False, 9984 'scan_mode': ble_scan_settings_modes['low_power'], 9985 'mode': ble_advertise_settings_modes['balanced'] 9986 } 9987 return self._magic((filters, settings_in_effect)) 9988 9989 @BluetoothBaseTest.bt_test_wrap 9990 @test_tracker_info(uuid='12f6c002-8627-4477-8e5a-6d7b5335ed60') 9991 def test_filter_combo_263(self): 9992 """Test a combination scan filter and advertisement 9993 9994 Test that an advertisement is found and matches corresponding 9995 settings. 9996 9997 Steps: 9998 1. Create a advertise data object 9999 2. Create a advertise settings object. 10000 3. Create a advertise callback object. 10001 4. Start an LE advertising using the objects created in steps 1-3. 10002 5. Find the onSuccess advertisement event. 10003 10004 Expected Result: 10005 Advertisement is successfully advertising. 10006 10007 Returns: 10008 Pass if True 10009 Fail if False 10010 10011 TAGS: LE, Advertising, Filtering, Scanning 10012 Priority: 2 10013 """ 10014 filters = {'include_device_name': True} 10015 settings_in_effect = { 10016 'mode': ble_advertise_settings_tx_powers['medium'], 10017 'is_connectable': False, 10018 'scan_mode': ble_scan_settings_modes['low_power'], 10019 'mode': ble_advertise_settings_modes['balanced'] 10020 } 10021 return self._magic((filters, settings_in_effect)) 10022 10023 @BluetoothBaseTest.bt_test_wrap 10024 @test_tracker_info(uuid='ccd43a09-cb39-4d84-8ffc-99ad8449783b') 10025 def test_filter_combo_264(self): 10026 """Test a combination scan filter and advertisement 10027 10028 Test that an advertisement is found and matches corresponding 10029 settings. 10030 10031 Steps: 10032 1. Create a advertise data object 10033 2. Create a advertise settings object. 10034 3. Create a advertise callback object. 10035 4. Start an LE advertising using the objects created in steps 1-3. 10036 5. Find the onSuccess advertisement event. 10037 10038 Expected Result: 10039 Advertisement is successfully advertising. 10040 10041 Returns: 10042 Pass if True 10043 Fail if False 10044 10045 TAGS: LE, Advertising, Filtering, Scanning 10046 Priority: 2 10047 """ 10048 filters = {'include_device_name': True} 10049 settings_in_effect = { 10050 'mode': ble_advertise_settings_tx_powers['high'], 10051 'is_connectable': False, 10052 'scan_mode': ble_scan_settings_modes['low_latency'], 10053 'mode': ble_advertise_settings_modes['low_latency'] 10054 } 10055 return self._magic((filters, settings_in_effect)) 10056 10057 @BluetoothBaseTest.bt_test_wrap 10058 @test_tracker_info(uuid='f9d9abad-e543-4996-b369-09fddd9c4965') 10059 def test_filter_combo_265(self): 10060 """Test a combination scan filter and advertisement 10061 10062 Test that an advertisement is found and matches corresponding 10063 settings. 10064 10065 Steps: 10066 1. Create a advertise data object 10067 2. Create a advertise settings object. 10068 3. Create a advertise callback object. 10069 4. Start an LE advertising using the objects created in steps 1-3. 10070 5. Find the onSuccess advertisement event. 10071 10072 Expected Result: 10073 Advertisement is successfully advertising. 10074 10075 Returns: 10076 Pass if True 10077 Fail if False 10078 10079 TAGS: LE, Advertising, Filtering, Scanning 10080 Priority: 2 10081 """ 10082 filters = {'include_device_name': True} 10083 settings_in_effect = { 10084 'mode': ble_advertise_settings_tx_powers['low'], 10085 'is_connectable': False, 10086 'scan_mode': ble_scan_settings_modes['low_latency'], 10087 'mode': ble_advertise_settings_modes['low_latency'] 10088 } 10089 return self._magic((filters, settings_in_effect)) 10090 10091 @BluetoothBaseTest.bt_test_wrap 10092 @test_tracker_info(uuid='2a14e619-23a6-4a49-acd6-e712b026d75b') 10093 def test_filter_combo_266(self): 10094 """Test a combination scan filter and advertisement 10095 10096 Test that an advertisement is found and matches corresponding 10097 settings. 10098 10099 Steps: 10100 1. Create a advertise data object 10101 2. Create a advertise settings object. 10102 3. Create a advertise callback object. 10103 4. Start an LE advertising using the objects created in steps 1-3. 10104 5. Find the onSuccess advertisement event. 10105 10106 Expected Result: 10107 Advertisement is successfully advertising. 10108 10109 Returns: 10110 Pass if True 10111 Fail if False 10112 10113 TAGS: LE, Advertising, Filtering, Scanning 10114 Priority: 2 10115 """ 10116 filters = {'include_device_name': True} 10117 settings_in_effect = { 10118 'mode': ble_advertise_settings_tx_powers['ultra_low'], 10119 'is_connectable': False, 10120 'scan_mode': ble_scan_settings_modes['low_latency'], 10121 'mode': ble_advertise_settings_modes['low_latency'] 10122 } 10123 return self._magic((filters, settings_in_effect)) 10124 10125 @BluetoothBaseTest.bt_test_wrap 10126 @test_tracker_info(uuid='2ed25b96-54fd-4a81-b8d1-732b959aff8d') 10127 def test_filter_combo_267(self): 10128 """Test a combination scan filter and advertisement 10129 10130 Test that an advertisement is found and matches corresponding 10131 settings. 10132 10133 Steps: 10134 1. Create a advertise data object 10135 2. Create a advertise settings object. 10136 3. Create a advertise callback object. 10137 4. Start an LE advertising using the objects created in steps 1-3. 10138 5. Find the onSuccess advertisement event. 10139 10140 Expected Result: 10141 Advertisement is successfully advertising. 10142 10143 Returns: 10144 Pass if True 10145 Fail if False 10146 10147 TAGS: LE, Advertising, Filtering, Scanning 10148 Priority: 2 10149 """ 10150 filters = {'include_device_name': True} 10151 settings_in_effect = { 10152 'mode': ble_advertise_settings_tx_powers['medium'], 10153 'is_connectable': False, 10154 'scan_mode': ble_scan_settings_modes['low_latency'], 10155 'mode': ble_advertise_settings_modes['low_latency'] 10156 } 10157 return self._magic((filters, settings_in_effect)) 10158 10159 @BluetoothBaseTest.bt_test_wrap 10160 @test_tracker_info(uuid='0ef9198b-78ac-4fa6-afe2-cc87007c2c0d') 10161 def test_filter_combo_268(self): 10162 """Test a combination scan filter and advertisement 10163 10164 Test that an advertisement is found and matches corresponding 10165 settings. 10166 10167 Steps: 10168 1. Create a advertise data object 10169 2. Create a advertise settings object. 10170 3. Create a advertise callback object. 10171 4. Start an LE advertising using the objects created in steps 1-3. 10172 5. Find the onSuccess advertisement event. 10173 10174 Expected Result: 10175 Advertisement is successfully advertising. 10176 10177 Returns: 10178 Pass if True 10179 Fail if False 10180 10181 TAGS: LE, Advertising, Filtering, Scanning 10182 Priority: 2 10183 """ 10184 filters = {'include_device_name': True} 10185 settings_in_effect = { 10186 'mode': ble_advertise_settings_tx_powers['high'], 10187 'is_connectable': False, 10188 'scan_mode': ble_scan_settings_modes['opportunistic'], 10189 'mode': ble_advertise_settings_modes['low_latency'] 10190 } 10191 return self._magic((filters, settings_in_effect)) 10192 10193 @BluetoothBaseTest.bt_test_wrap 10194 @test_tracker_info(uuid='43d97df2-07d7-4c45-bb83-908746e60923') 10195 def test_filter_combo_269(self): 10196 """Test a combination scan filter and advertisement 10197 10198 Test that an advertisement is found and matches corresponding 10199 settings. 10200 10201 Steps: 10202 1. Create a advertise data object 10203 2. Create a advertise settings object. 10204 3. Create a advertise callback object. 10205 4. Start an LE advertising using the objects created in steps 1-3. 10206 5. Find the onSuccess advertisement event. 10207 10208 Expected Result: 10209 Advertisement is successfully advertising. 10210 10211 Returns: 10212 Pass if True 10213 Fail if False 10214 10215 TAGS: LE, Advertising, Filtering, Scanning 10216 Priority: 2 10217 """ 10218 filters = {'include_device_name': True} 10219 settings_in_effect = { 10220 'mode': ble_advertise_settings_tx_powers['low'], 10221 'is_connectable': False, 10222 'scan_mode': ble_scan_settings_modes['opportunistic'], 10223 'mode': ble_advertise_settings_modes['low_latency'] 10224 } 10225 return self._magic((filters, settings_in_effect)) 10226 10227 @BluetoothBaseTest.bt_test_wrap 10228 @test_tracker_info(uuid='55262e57-7b47-45a3-8926-18cea480c2b2') 10229 def test_filter_combo_270(self): 10230 """Test a combination scan filter and advertisement 10231 10232 Test that an advertisement is found and matches corresponding 10233 settings. 10234 10235 Steps: 10236 1. Create a advertise data object 10237 2. Create a advertise settings object. 10238 3. Create a advertise callback object. 10239 4. Start an LE advertising using the objects created in steps 1-3. 10240 5. Find the onSuccess advertisement event. 10241 10242 Expected Result: 10243 Advertisement is successfully advertising. 10244 10245 Returns: 10246 Pass if True 10247 Fail if False 10248 10249 TAGS: LE, Advertising, Filtering, Scanning 10250 Priority: 2 10251 """ 10252 filters = {'include_device_name': True} 10253 settings_in_effect = { 10254 'mode': ble_advertise_settings_tx_powers['ultra_low'], 10255 'is_connectable': False, 10256 'scan_mode': ble_scan_settings_modes['opportunistic'], 10257 'mode': ble_advertise_settings_modes['low_latency'] 10258 } 10259 return self._magic((filters, settings_in_effect)) 10260 10261 @BluetoothBaseTest.bt_test_wrap 10262 @test_tracker_info(uuid='5ece141d-43ad-448c-900c-500666cb0e1c') 10263 def test_filter_combo_271(self): 10264 """Test a combination scan filter and advertisement 10265 10266 Test that an advertisement is found and matches corresponding 10267 settings. 10268 10269 Steps: 10270 1. Create a advertise data object 10271 2. Create a advertise settings object. 10272 3. Create a advertise callback object. 10273 4. Start an LE advertising using the objects created in steps 1-3. 10274 5. Find the onSuccess advertisement event. 10275 10276 Expected Result: 10277 Advertisement is successfully advertising. 10278 10279 Returns: 10280 Pass if True 10281 Fail if False 10282 10283 TAGS: LE, Advertising, Filtering, Scanning 10284 Priority: 2 10285 """ 10286 filters = {'include_device_name': True} 10287 settings_in_effect = { 10288 'mode': ble_advertise_settings_tx_powers['medium'], 10289 'is_connectable': False, 10290 'scan_mode': ble_scan_settings_modes['opportunistic'], 10291 'mode': ble_advertise_settings_modes['low_latency'] 10292 } 10293 return self._magic((filters, settings_in_effect)) 10294 10295 @BluetoothBaseTest.bt_test_wrap 10296 @test_tracker_info(uuid='66d3c0de-7e3b-4108-9ab0-3e101c6a14cd') 10297 def test_filter_combo_272(self): 10298 """Test a combination scan filter and advertisement 10299 10300 Test that an advertisement is found and matches corresponding 10301 settings. 10302 10303 Steps: 10304 1. Create a advertise data object 10305 2. Create a advertise settings object. 10306 3. Create a advertise callback object. 10307 4. Start an LE advertising using the objects created in steps 1-3. 10308 5. Find the onSuccess advertisement event. 10309 10310 Expected Result: 10311 Advertisement is successfully advertising. 10312 10313 Returns: 10314 Pass if True 10315 Fail if False 10316 10317 TAGS: LE, Advertising, Filtering, Scanning 10318 Priority: 2 10319 """ 10320 filters = {'include_device_name': True} 10321 settings_in_effect = { 10322 'mode': ble_advertise_settings_tx_powers['high'], 10323 'is_connectable': False, 10324 'scan_mode': ble_scan_settings_modes['balanced'], 10325 'mode': ble_advertise_settings_modes['low_latency'] 10326 } 10327 return self._magic((filters, settings_in_effect)) 10328 10329 @BluetoothBaseTest.bt_test_wrap 10330 @test_tracker_info(uuid='9703d50a-8b23-4d42-8ed3-9b0704dac9d2') 10331 def test_filter_combo_273(self): 10332 """Test a combination scan filter and advertisement 10333 10334 Test that an advertisement is found and matches corresponding 10335 settings. 10336 10337 Steps: 10338 1. Create a advertise data object 10339 2. Create a advertise settings object. 10340 3. Create a advertise callback object. 10341 4. Start an LE advertising using the objects created in steps 1-3. 10342 5. Find the onSuccess advertisement event. 10343 10344 Expected Result: 10345 Advertisement is successfully advertising. 10346 10347 Returns: 10348 Pass if True 10349 Fail if False 10350 10351 TAGS: LE, Advertising, Filtering, Scanning 10352 Priority: 2 10353 """ 10354 filters = {'include_device_name': True} 10355 settings_in_effect = { 10356 'mode': ble_advertise_settings_tx_powers['low'], 10357 'is_connectable': False, 10358 'scan_mode': ble_scan_settings_modes['balanced'], 10359 'mode': ble_advertise_settings_modes['low_latency'] 10360 } 10361 return self._magic((filters, settings_in_effect)) 10362 10363 @BluetoothBaseTest.bt_test_wrap 10364 @test_tracker_info(uuid='a5739a21-0e1b-4ba7-b259-acb7b38a8e09') 10365 def test_filter_combo_274(self): 10366 """Test a combination scan filter and advertisement 10367 10368 Test that an advertisement is found and matches corresponding 10369 settings. 10370 10371 Steps: 10372 1. Create a advertise data object 10373 2. Create a advertise settings object. 10374 3. Create a advertise callback object. 10375 4. Start an LE advertising using the objects created in steps 1-3. 10376 5. Find the onSuccess advertisement event. 10377 10378 Expected Result: 10379 Advertisement is successfully advertising. 10380 10381 Returns: 10382 Pass if True 10383 Fail if False 10384 10385 TAGS: LE, Advertising, Filtering, Scanning 10386 Priority: 2 10387 """ 10388 filters = {'include_device_name': True} 10389 settings_in_effect = { 10390 'mode': ble_advertise_settings_tx_powers['ultra_low'], 10391 'is_connectable': False, 10392 'scan_mode': ble_scan_settings_modes['balanced'], 10393 'mode': ble_advertise_settings_modes['low_latency'] 10394 } 10395 return self._magic((filters, settings_in_effect)) 10396 10397 @BluetoothBaseTest.bt_test_wrap 10398 @test_tracker_info(uuid='c399011c-54c0-47a1-9e05-a52c2190f89d') 10399 def test_filter_combo_275(self): 10400 """Test a combination scan filter and advertisement 10401 10402 Test that an advertisement is found and matches corresponding 10403 settings. 10404 10405 Steps: 10406 1. Create a advertise data object 10407 2. Create a advertise settings object. 10408 3. Create a advertise callback object. 10409 4. Start an LE advertising using the objects created in steps 1-3. 10410 5. Find the onSuccess advertisement event. 10411 10412 Expected Result: 10413 Advertisement is successfully advertising. 10414 10415 Returns: 10416 Pass if True 10417 Fail if False 10418 10419 TAGS: LE, Advertising, Filtering, Scanning 10420 Priority: 2 10421 """ 10422 filters = {'include_device_name': True} 10423 settings_in_effect = { 10424 'mode': ble_advertise_settings_tx_powers['medium'], 10425 'is_connectable': False, 10426 'scan_mode': ble_scan_settings_modes['balanced'], 10427 'mode': ble_advertise_settings_modes['low_latency'] 10428 } 10429 return self._magic((filters, settings_in_effect)) 10430 10431 @BluetoothBaseTest.bt_test_wrap 10432 @test_tracker_info(uuid='7854fdcc-5771-463a-91da-5b394484b065') 10433 def test_filter_combo_276(self): 10434 """Test a combination scan filter and advertisement 10435 10436 Test that an advertisement is found and matches corresponding 10437 settings. 10438 10439 Steps: 10440 1. Create a advertise data object 10441 2. Create a advertise settings object. 10442 3. Create a advertise callback object. 10443 4. Start an LE advertising using the objects created in steps 1-3. 10444 5. Find the onSuccess advertisement event. 10445 10446 Expected Result: 10447 Advertisement is successfully advertising. 10448 10449 Returns: 10450 Pass if True 10451 Fail if False 10452 10453 TAGS: LE, Advertising, Filtering, Scanning 10454 Priority: 2 10455 """ 10456 filters = {'include_device_name': True} 10457 settings_in_effect = { 10458 'mode': ble_advertise_settings_tx_powers['high'], 10459 'is_connectable': False, 10460 'scan_mode': ble_scan_settings_modes['low_power'], 10461 'mode': ble_advertise_settings_modes['low_latency'] 10462 } 10463 return self._magic((filters, settings_in_effect)) 10464 10465 @BluetoothBaseTest.bt_test_wrap 10466 @test_tracker_info(uuid='fa0fe141-c99f-4228-b249-96232194e740') 10467 def test_filter_combo_277(self): 10468 """Test a combination scan filter and advertisement 10469 10470 Test that an advertisement is found and matches corresponding 10471 settings. 10472 10473 Steps: 10474 1. Create a advertise data object 10475 2. Create a advertise settings object. 10476 3. Create a advertise callback object. 10477 4. Start an LE advertising using the objects created in steps 1-3. 10478 5. Find the onSuccess advertisement event. 10479 10480 Expected Result: 10481 Advertisement is successfully advertising. 10482 10483 Returns: 10484 Pass if True 10485 Fail if False 10486 10487 TAGS: LE, Advertising, Filtering, Scanning 10488 Priority: 2 10489 """ 10490 filters = {'include_device_name': True} 10491 settings_in_effect = { 10492 'mode': ble_advertise_settings_tx_powers['low'], 10493 'is_connectable': False, 10494 'scan_mode': ble_scan_settings_modes['low_power'], 10495 'mode': ble_advertise_settings_modes['low_latency'] 10496 } 10497 return self._magic((filters, settings_in_effect)) 10498 10499 @BluetoothBaseTest.bt_test_wrap 10500 @test_tracker_info(uuid='d2143fe1-bbec-429a-8241-19f39361b490') 10501 def test_filter_combo_278(self): 10502 """Test a combination scan filter and advertisement 10503 10504 Test that an advertisement is found and matches corresponding 10505 settings. 10506 10507 Steps: 10508 1. Create a advertise data object 10509 2. Create a advertise settings object. 10510 3. Create a advertise callback object. 10511 4. Start an LE advertising using the objects created in steps 1-3. 10512 5. Find the onSuccess advertisement event. 10513 10514 Expected Result: 10515 Advertisement is successfully advertising. 10516 10517 Returns: 10518 Pass if True 10519 Fail if False 10520 10521 TAGS: LE, Advertising, Filtering, Scanning 10522 Priority: 2 10523 """ 10524 filters = {'include_device_name': True} 10525 settings_in_effect = { 10526 'mode': ble_advertise_settings_tx_powers['ultra_low'], 10527 'is_connectable': False, 10528 'scan_mode': ble_scan_settings_modes['low_power'], 10529 'mode': ble_advertise_settings_modes['low_latency'] 10530 } 10531 return self._magic((filters, settings_in_effect)) 10532 10533 @BluetoothBaseTest.bt_test_wrap 10534 @test_tracker_info(uuid='21d025ef-2f89-49fd-bb31-2130dbe83c5c') 10535 def test_filter_combo_279(self): 10536 """Test a combination scan filter and advertisement 10537 10538 Test that an advertisement is found and matches corresponding 10539 settings. 10540 10541 Steps: 10542 1. Create a advertise data object 10543 2. Create a advertise settings object. 10544 3. Create a advertise callback object. 10545 4. Start an LE advertising using the objects created in steps 1-3. 10546 5. Find the onSuccess advertisement event. 10547 10548 Expected Result: 10549 Advertisement is successfully advertising. 10550 10551 Returns: 10552 Pass if True 10553 Fail if False 10554 10555 TAGS: LE, Advertising, Filtering, Scanning 10556 Priority: 2 10557 """ 10558 filters = {'include_device_name': True} 10559 settings_in_effect = { 10560 'mode': ble_advertise_settings_tx_powers['medium'], 10561 'is_connectable': False, 10562 'scan_mode': ble_scan_settings_modes['low_power'], 10563 'mode': ble_advertise_settings_modes['low_latency'] 10564 } 10565 return self._magic((filters, settings_in_effect)) 10566 10567 @BluetoothBaseTest.bt_test_wrap 10568 @test_tracker_info(uuid='19c5f91d-e10a-43af-8727-c66ee43187f2') 10569 def test_filter_combo_280(self): 10570 """Test a combination scan filter and advertisement 10571 10572 Test that an advertisement is found and matches corresponding 10573 settings. 10574 10575 Steps: 10576 1. Create a advertise data object 10577 2. Create a advertise settings object. 10578 3. Create a advertise callback object. 10579 4. Start an LE advertising using the objects created in steps 1-3. 10580 5. Find the onSuccess advertisement event. 10581 10582 Expected Result: 10583 Advertisement is successfully advertising. 10584 10585 Returns: 10586 Pass if True 10587 Fail if False 10588 10589 TAGS: LE, Advertising, Filtering, Scanning 10590 Priority: 2 10591 """ 10592 filters = {'include_tx_power_level': True} 10593 settings_in_effect = { 10594 'mode': ble_advertise_settings_modes['low_latency'] 10595 } 10596 return self._magic((filters, settings_in_effect)) 10597 10598 @BluetoothBaseTest.bt_test_wrap 10599 @test_tracker_info(uuid='7bda5df3-2644-46ca-b6de-e3d5557395cf') 10600 def test_filter_combo_281(self): 10601 """Test a combination scan filter and advertisement 10602 10603 Test that an advertisement is found and matches corresponding 10604 settings. 10605 10606 Steps: 10607 1. Create a advertise data object 10608 2. Create a advertise settings object. 10609 3. Create a advertise callback object. 10610 4. Start an LE advertising using the objects created in steps 1-3. 10611 5. Find the onSuccess advertisement event. 10612 10613 Expected Result: 10614 Advertisement is successfully advertising. 10615 10616 Returns: 10617 Pass if True 10618 Fail if False 10619 10620 TAGS: LE, Advertising, Filtering, Scanning 10621 Priority: 2 10622 """ 10623 filters = {'filter_device_address': True} 10624 settings_in_effect = { 10625 'mode': ble_advertise_settings_modes['low_latency'] 10626 } 10627 return self._magic((filters, settings_in_effect)) 10628 10629 @BluetoothBaseTest.bt_test_wrap 10630 @test_tracker_info(uuid='a80f6a40-9a60-4d68-b5e1-66d6e157cdd8') 10631 def test_filter_combo_282(self): 10632 """Test a combination scan filter and advertisement 10633 10634 Test that an advertisement is found and matches corresponding 10635 settings. 10636 10637 Steps: 10638 1. Create a advertise data object 10639 2. Create a advertise settings object. 10640 3. Create a advertise callback object. 10641 4. Start an LE advertising using the objects created in steps 1-3. 10642 5. Find the onSuccess advertisement event. 10643 10644 Expected Result: 10645 Advertisement is successfully advertising. 10646 10647 Returns: 10648 Pass if True 10649 Fail if False 10650 10651 TAGS: LE, Advertising, Filtering, Scanning 10652 Priority: 2 10653 """ 10654 filters = { 10655 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 10656 'manufacturer_specific_data': self.manu_sepecific_data_small 10657 } 10658 settings_in_effect = { 10659 'mode': ble_advertise_settings_modes['low_latency'] 10660 } 10661 return self._magic((filters, settings_in_effect)) 10662 10663 @BluetoothBaseTest.bt_test_wrap 10664 @test_tracker_info(uuid='503bfb94-cfb8-4194-b451-23f19aff7b8e') 10665 def test_filter_combo_283(self): 10666 """Test a combination scan filter and advertisement 10667 10668 Test that an advertisement is found and matches corresponding 10669 settings. 10670 10671 Steps: 10672 1. Create a advertise data object 10673 2. Create a advertise settings object. 10674 3. Create a advertise callback object. 10675 4. Start an LE advertising using the objects created in steps 1-3. 10676 5. Find the onSuccess advertisement event. 10677 10678 Expected Result: 10679 Advertisement is successfully advertising. 10680 10681 Returns: 10682 Pass if True 10683 Fail if False 10684 10685 TAGS: LE, Advertising, Filtering, Scanning 10686 Priority: 2 10687 """ 10688 filters = { 10689 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 10690 'manufacturer_specific_data': self.manu_sepecific_data_large 10691 } 10692 settings_in_effect = { 10693 'mode': ble_advertise_settings_modes['low_latency'] 10694 } 10695 return self._magic((filters, settings_in_effect)) 10696 10697 @BluetoothBaseTest.bt_test_wrap 10698 @test_tracker_info(uuid='9bae0612-559b-460f-9723-fac896974835') 10699 def test_filter_combo_284(self): 10700 """Test a combination scan filter and advertisement 10701 10702 Test that an advertisement is found and matches corresponding 10703 settings. 10704 10705 Steps: 10706 1. Create a advertise data object 10707 2. Create a advertise settings object. 10708 3. Create a advertise callback object. 10709 4. Start an LE advertising using the objects created in steps 1-3. 10710 5. Find the onSuccess advertisement event. 10711 10712 Expected Result: 10713 Advertisement is successfully advertising. 10714 10715 Returns: 10716 Pass if True 10717 Fail if False 10718 10719 TAGS: LE, Advertising, Filtering, Scanning 10720 Priority: 2 10721 """ 10722 filters = { 10723 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 10724 'manufacturer_specific_data': self.manu_sepecific_data_small, 10725 'manufacturer_specific_data_mask': [1] 10726 } 10727 settings_in_effect = { 10728 'mode': ble_advertise_settings_modes['low_latency'] 10729 } 10730 return self._magic((filters, settings_in_effect)) 10731 10732 @BluetoothBaseTest.bt_test_wrap 10733 @test_tracker_info(uuid='f1ad0e3a-17cd-4e06-a395-7e5dde2268b4') 10734 def test_filter_combo_285(self): 10735 """Test a combination scan filter and advertisement 10736 10737 Test that an advertisement is found and matches corresponding 10738 settings. 10739 10740 Steps: 10741 1. Create a advertise data object 10742 2. Create a advertise settings object. 10743 3. Create a advertise callback object. 10744 4. Start an LE advertising using the objects created in steps 1-3. 10745 5. Find the onSuccess advertisement event. 10746 10747 Expected Result: 10748 Advertisement is successfully advertising. 10749 10750 Returns: 10751 Pass if True 10752 Fail if False 10753 10754 TAGS: LE, Advertising, Filtering, Scanning 10755 Priority: 2 10756 """ 10757 filters = { 10758 'service_data_uuid': '0000110A-0000-1000-8000-00805F9B34FB', 10759 'service_data': self.service_data_large 10760 } 10761 settings_in_effect = { 10762 'mode': ble_advertise_settings_modes['low_latency'] 10763 } 10764 return self._magic((filters, settings_in_effect)) 10765 10766 @BluetoothBaseTest.bt_test_wrap 10767 @test_tracker_info(uuid='84f29360-9219-4f39-8ead-b43779c65504') 10768 def test_filter_combo_286(self): 10769 """Test a combination scan filter and advertisement 10770 10771 Test that an advertisement is found and matches corresponding 10772 settings. 10773 10774 Steps: 10775 1. Create a advertise data object 10776 2. Create a advertise settings object. 10777 3. Create a advertise callback object. 10778 4. Start an LE advertising using the objects created in steps 1-3. 10779 5. Find the onSuccess advertisement event. 10780 10781 Expected Result: 10782 Advertisement is successfully advertising. 10783 10784 Returns: 10785 Pass if True 10786 Fail if False 10787 10788 TAGS: LE, Advertising, Filtering, Scanning 10789 Priority: 2 10790 """ 10791 filters = { 10792 'service_data_uuid': '0000110B-0000-1000-8000-00805F9B34FB', 10793 'service_data': [13] 10794 } 10795 settings_in_effect = { 10796 'mode': ble_advertise_settings_modes['low_latency'] 10797 } 10798 return self._magic((filters, settings_in_effect)) 10799 10800 @BluetoothBaseTest.bt_test_wrap 10801 @test_tracker_info(uuid='caece017-8379-46a3-913b-a21d3057e096') 10802 def test_filter_combo_287(self): 10803 """Test a combination scan filter and advertisement 10804 10805 Test that an advertisement is found and matches corresponding 10806 settings. 10807 10808 Steps: 10809 1. Create a advertise data object 10810 2. Create a advertise settings object. 10811 3. Create a advertise callback object. 10812 4. Start an LE advertising using the objects created in steps 1-3. 10813 5. Find the onSuccess advertisement event. 10814 10815 Expected Result: 10816 Advertisement is successfully advertising. 10817 10818 Returns: 10819 Pass if True 10820 Fail if False 10821 10822 TAGS: LE, Advertising, Filtering, Scanning 10823 Priority: 2 10824 """ 10825 filters = { 10826 'service_data_uuid': '0000110C-0000-1000-8000-00805F9B34FB', 10827 'service_data': [11, 14, 50] 10828 } 10829 settings_in_effect = { 10830 'mode': ble_advertise_settings_modes['low_latency'] 10831 } 10832 return self._magic((filters, settings_in_effect)) 10833 10834 @BluetoothBaseTest.bt_test_wrap 10835 @test_tracker_info(uuid='37d63f4e-ed0c-4003-8044-f7032238a449') 10836 def test_filter_combo_288(self): 10837 """Test a combination scan filter and advertisement 10838 10839 Test that an advertisement is found and matches corresponding 10840 settings. 10841 10842 Steps: 10843 1. Create a advertise data object 10844 2. Create a advertise settings object. 10845 3. Create a advertise callback object. 10846 4. Start an LE advertising using the objects created in steps 1-3. 10847 5. Find the onSuccess advertisement event. 10848 10849 Expected Result: 10850 Advertisement is successfully advertising. 10851 10852 Returns: 10853 Pass if True 10854 Fail if False 10855 10856 TAGS: LE, Advertising, Filtering, Scanning 10857 Priority: 2 10858 """ 10859 filters = { 10860 'service_data_uuid': '0000110D-0000-1000-8000-00805F9B34FB', 10861 'service_data': [16, 22, 11] 10862 } 10863 settings_in_effect = { 10864 'mode': ble_advertise_settings_modes['low_latency'] 10865 } 10866 return self._magic((filters, settings_in_effect)) 10867 10868 @BluetoothBaseTest.bt_test_wrap 10869 @test_tracker_info(uuid='7a57c0d7-1b8d-44e7-b407-7a6c58095058') 10870 def test_filter_combo_289(self): 10871 """Test a combination scan filter and advertisement 10872 10873 Test that an advertisement is found and matches corresponding 10874 settings. 10875 10876 Steps: 10877 1. Create a advertise data object 10878 2. Create a advertise settings object. 10879 3. Create a advertise callback object. 10880 4. Start an LE advertising using the objects created in steps 1-3. 10881 5. Find the onSuccess advertisement event. 10882 10883 Expected Result: 10884 Advertisement is successfully advertising. 10885 10886 Returns: 10887 Pass if True 10888 Fail if False 10889 10890 TAGS: LE, Advertising, Filtering, Scanning 10891 Priority: 2 10892 """ 10893 filters = { 10894 'service_data_uuid': '0000110E-0000-1000-8000-00805F9B34FB', 10895 'service_data': [2, 9, 54] 10896 } 10897 settings_in_effect = { 10898 'mode': ble_advertise_settings_modes['low_latency'] 10899 } 10900 return self._magic((filters, settings_in_effect)) 10901 10902 @BluetoothBaseTest.bt_test_wrap 10903 @test_tracker_info(uuid='38f80b83-2aba-40f4-9238-7e108acea1e4') 10904 def test_filter_combo_290(self): 10905 """Test a combination scan filter and advertisement 10906 10907 Test that an advertisement is found and matches corresponding 10908 settings. 10909 10910 Steps: 10911 1. Create a advertise data object 10912 2. Create a advertise settings object. 10913 3. Create a advertise callback object. 10914 4. Start an LE advertising using the objects created in steps 1-3. 10915 5. Find the onSuccess advertisement event. 10916 10917 Expected Result: 10918 Advertisement is successfully advertising. 10919 10920 Returns: 10921 Pass if True 10922 Fail if False 10923 10924 TAGS: LE, Advertising, Filtering, Scanning 10925 Priority: 2 10926 """ 10927 filters = { 10928 'service_data_uuid': '0000110F-0000-1000-8000-00805F9B34FB', 10929 'service_data': [69, 11, 50] 10930 } 10931 settings_in_effect = { 10932 'mode': ble_advertise_settings_modes['low_latency'] 10933 } 10934 return self._magic((filters, settings_in_effect)) 10935 10936 @BluetoothBaseTest.bt_test_wrap 10937 @test_tracker_info(uuid='adec5d6d-c1f2-46d0-8b05-2c46c02435a6') 10938 def test_filter_combo_291(self): 10939 """Test a combination scan filter and advertisement 10940 10941 Test that an advertisement is found and matches corresponding 10942 settings. 10943 10944 Steps: 10945 1. Create a advertise data object 10946 2. Create a advertise settings object. 10947 3. Create a advertise callback object. 10948 4. Start an LE advertising using the objects created in steps 1-3. 10949 5. Find the onSuccess advertisement event. 10950 10951 Expected Result: 10952 Advertisement is successfully advertising. 10953 10954 Returns: 10955 Pass if True 10956 Fail if False 10957 10958 TAGS: LE, Advertising, Filtering, Scanning 10959 Priority: 2 10960 """ 10961 filters = { 10962 'service_data_uuid': '00001101-0000-1000-8000-00805F9B34FB', 10963 'service_data': [12, 11, 21] 10964 } 10965 settings_in_effect = { 10966 'mode': ble_advertise_settings_modes['low_latency'] 10967 } 10968 return self._magic((filters, settings_in_effect)) 10969 10970 @BluetoothBaseTest.bt_test_wrap 10971 @test_tracker_info(uuid='cd3cbc57-80a6-43d8-8042-9f163beda73a') 10972 def test_filter_combo_292(self): 10973 """Test a combination scan filter and advertisement 10974 10975 Test that an advertisement is found and matches corresponding 10976 settings. 10977 10978 Steps: 10979 1. Create a advertise data object 10980 2. Create a advertise settings object. 10981 3. Create a advertise callback object. 10982 4. Start an LE advertising using the objects created in steps 1-3. 10983 5. Find the onSuccess advertisement event. 10984 10985 Expected Result: 10986 Advertisement is successfully advertising. 10987 10988 Returns: 10989 Pass if True 10990 Fail if False 10991 10992 TAGS: LE, Advertising, Filtering, Scanning 10993 Priority: 2 10994 """ 10995 filters = { 10996 'service_data_uuid': '00001102-0000-1000-8000-00805F9B34FB', 10997 'service_data': [12, 12, 44] 10998 } 10999 settings_in_effect = { 11000 'mode': ble_advertise_settings_modes['low_latency'] 11001 } 11002 return self._magic((filters, settings_in_effect)) 11003 11004 @BluetoothBaseTest.bt_test_wrap 11005 @test_tracker_info(uuid='35d9ab80-1ceb-4b45-ae9e-304c413f9273') 11006 def test_filter_combo_293(self): 11007 """Test a combination scan filter and advertisement 11008 11009 Test that an advertisement is found and matches corresponding 11010 settings. 11011 11012 Steps: 11013 1. Create a advertise data object 11014 2. Create a advertise settings object. 11015 3. Create a advertise callback object. 11016 4. Start an LE advertising using the objects created in steps 1-3. 11017 5. Find the onSuccess advertisement event. 11018 11019 Expected Result: 11020 Advertisement is successfully advertising. 11021 11022 Returns: 11023 Pass if True 11024 Fail if False 11025 11026 TAGS: LE, Advertising, Filtering, Scanning 11027 Priority: 2 11028 """ 11029 filters = { 11030 'service_data_uuid': '00001103-0000-1000-8000-00805F9B34FB', 11031 'service_data': [4, 54, 1] 11032 } 11033 settings_in_effect = { 11034 'mode': ble_advertise_settings_modes['low_latency'] 11035 } 11036 return self._magic((filters, settings_in_effect)) 11037 11038 @BluetoothBaseTest.bt_test_wrap 11039 @test_tracker_info(uuid='07cecc9f-6e72-407e-a11d-c982f92c1834') 11040 def test_filter_combo_294(self): 11041 """Test a combination scan filter and advertisement 11042 11043 Test that an advertisement is found and matches corresponding 11044 settings. 11045 11046 Steps: 11047 1. Create a advertise data object 11048 2. Create a advertise settings object. 11049 3. Create a advertise callback object. 11050 4. Start an LE advertising using the objects created in steps 1-3. 11051 5. Find the onSuccess advertisement event. 11052 11053 Expected Result: 11054 Advertisement is successfully advertising. 11055 11056 Returns: 11057 Pass if True 11058 Fail if False 11059 11060 TAGS: LE, Advertising, Filtering, Scanning 11061 Priority: 2 11062 """ 11063 filters = { 11064 'service_data_uuid': '00001104-0000-1000-8000-00805F9B34FB', 11065 'service_data': [33, 22, 44] 11066 } 11067 settings_in_effect = { 11068 'mode': ble_advertise_settings_modes['low_latency'] 11069 } 11070 return self._magic((filters, settings_in_effect)) 11071 11072 @BluetoothBaseTest.bt_test_wrap 11073 @test_tracker_info(uuid='8c0de318-4c57-47c3-8068-d1b0fde7f448') 11074 def test_filter_combo_295(self): 11075 """Test a combination scan filter and advertisement 11076 11077 Test that an advertisement is found and matches corresponding 11078 settings. 11079 11080 Steps: 11081 1. Create a advertise data object 11082 2. Create a advertise settings object. 11083 3. Create a advertise callback object. 11084 4. Start an LE advertising using the objects created in steps 1-3. 11085 5. Find the onSuccess advertisement event. 11086 11087 Expected Result: 11088 Advertisement is successfully advertising. 11089 11090 Returns: 11091 Pass if True 11092 Fail if False 11093 11094 TAGS: LE, Advertising, Filtering, Scanning 11095 Priority: 2 11096 """ 11097 filters = { 11098 'service_uuid': '00000000-0000-1000-8000-00805f9b34fb', 11099 'service_mask': '00000000-0000-1000-8000-00805f9b34fb' 11100 } 11101 settings_in_effect = { 11102 'mode': ble_advertise_settings_modes['low_latency'] 11103 } 11104 return self._magic((filters, settings_in_effect)) 11105 11106 @BluetoothBaseTest.bt_test_wrap 11107 @test_tracker_info(uuid='8fbd96a9-5844-4714-8f63-5b92432d23d1') 11108 def test_filter_combo_296(self): 11109 """Test a combination scan filter and advertisement 11110 11111 Test that an advertisement is found and matches corresponding 11112 settings. 11113 11114 Steps: 11115 1. Create a advertise data object 11116 2. Create a advertise settings object. 11117 3. Create a advertise callback object. 11118 4. Start an LE advertising using the objects created in steps 1-3. 11119 5. Find the onSuccess advertisement event. 11120 11121 Expected Result: 11122 Advertisement is successfully advertising. 11123 11124 Returns: 11125 Pass if True 11126 Fail if False 11127 11128 TAGS: LE, Advertising, Filtering, Scanning 11129 Priority: 2 11130 """ 11131 filters = { 11132 'service_uuid': 'FFFFFFFF-0000-1000-8000-00805f9b34fb', 11133 'service_mask': '00000000-0000-1000-8000-00805f9b34fb' 11134 } 11135 settings_in_effect = { 11136 'mode': ble_advertise_settings_modes['low_latency'] 11137 } 11138 return self._magic((filters, settings_in_effect)) 11139 11140 @BluetoothBaseTest.bt_test_wrap 11141 @test_tracker_info(uuid='d127b973-46ca-4a9f-a1e1-5cda6affaa53') 11142 def test_filter_combo_297(self): 11143 """Test a combination scan filter and advertisement 11144 11145 Test that an advertisement is found and matches corresponding 11146 settings. 11147 11148 Steps: 11149 1. Create a advertise data object 11150 2. Create a advertise settings object. 11151 3. Create a advertise callback object. 11152 4. Start an LE advertising using the objects created in steps 1-3. 11153 5. Find the onSuccess advertisement event. 11154 11155 Expected Result: 11156 Advertisement is successfully advertising. 11157 11158 Returns: 11159 Pass if True 11160 Fail if False 11161 11162 TAGS: LE, Advertising, Filtering, Scanning 11163 Priority: 2 11164 """ 11165 filters = { 11166 'service_uuid': '3846D7A0-69C8-11E4-BA00-0002A5D5C51B', 11167 'service_mask': '00000000-0000-1000-8000-00805f9b34fb' 11168 } 11169 settings_in_effect = { 11170 'mode': ble_advertise_settings_modes['low_latency'] 11171 } 11172 return self._magic((filters, settings_in_effect)) 11173 11174 @BluetoothBaseTest.bt_test_wrap 11175 @test_tracker_info(uuid='efaad273-f953-43ca-b4f6-f9eba10d3ba5') 11176 def test_filter_combo_298(self): 11177 """Test a combination scan filter and advertisement 11178 11179 Test that an advertisement is found and matches corresponding 11180 settings. 11181 11182 Steps: 11183 1. Create a advertise data object 11184 2. Create a advertise settings object. 11185 3. Create a advertise callback object. 11186 4. Start an LE advertising using the objects created in steps 1-3. 11187 5. Find the onSuccess advertisement event. 11188 11189 Expected Result: 11190 Advertisement is successfully advertising. 11191 11192 Returns: 11193 Pass if True 11194 Fail if False 11195 11196 TAGS: LE, Advertising, Filtering, Scanning 11197 Priority: 2 11198 """ 11199 filters = {'include_device_name': True} 11200 settings_in_effect = { 11201 'mode': ble_advertise_settings_modes['low_latency'] 11202 } 11203 return self._magic((filters, settings_in_effect)) 11204 11205 @BluetoothBaseTest.bt_test_wrap 11206 @test_tracker_info(uuid='373ba3e8-01e8-4c26-ad7f-7b7ba69d1a70') 11207 def test_filter_combo_299(self): 11208 """Test a combination scan filter and advertisement 11209 11210 Test that an advertisement is found and matches corresponding 11211 settings. 11212 11213 Steps: 11214 1. Create a advertise data object 11215 2. Create a advertise settings object. 11216 3. Create a advertise callback object. 11217 4. Start an LE advertising using the objects created in steps 1-3. 11218 5. Find the onSuccess advertisement event. 11219 11220 Expected Result: 11221 Advertisement is successfully advertising. 11222 11223 Returns: 11224 Pass if True 11225 Fail if False 11226 11227 TAGS: LE, Advertising, Filtering, Scanning 11228 Priority: 2 11229 """ 11230 filters = {'include_tx_power_level': True} 11231 settings_in_effect = { 11232 'scan_mode': ble_scan_settings_modes['low_latency'], 11233 'mode': ble_advertise_settings_modes['low_latency'] 11234 } 11235 return self._magic((filters, settings_in_effect)) 11236 11237 @BluetoothBaseTest.bt_test_wrap 11238 @test_tracker_info(uuid='e1848bba-b9a6-473b-bceb-101b14b4ccc1') 11239 def test_filter_combo_300(self): 11240 """Test a combination scan filter and advertisement 11241 11242 Test that an advertisement is found and matches corresponding 11243 settings. 11244 11245 Steps: 11246 1. Create a advertise data object 11247 2. Create a advertise settings object. 11248 3. Create a advertise callback object. 11249 4. Start an LE advertising using the objects created in steps 1-3. 11250 5. Find the onSuccess advertisement event. 11251 11252 Expected Result: 11253 Advertisement is successfully advertising. 11254 11255 Returns: 11256 Pass if True 11257 Fail if False 11258 11259 TAGS: LE, Advertising, Filtering, Scanning 11260 Priority: 2 11261 """ 11262 filters = {'filter_device_address': True} 11263 settings_in_effect = { 11264 'scan_mode': ble_scan_settings_modes['low_latency'], 11265 'mode': ble_advertise_settings_modes['low_latency'] 11266 } 11267 return self._magic((filters, settings_in_effect)) 11268 11269 @BluetoothBaseTest.bt_test_wrap 11270 @test_tracker_info(uuid='3a6068a5-0dd1-4503-b25a-79bc0f4a7006') 11271 def test_filter_combo_301(self): 11272 """Test a combination scan filter and advertisement 11273 11274 Test that an advertisement is found and matches corresponding 11275 settings. 11276 11277 Steps: 11278 1. Create a advertise data object 11279 2. Create a advertise settings object. 11280 3. Create a advertise callback object. 11281 4. Start an LE advertising using the objects created in steps 1-3. 11282 5. Find the onSuccess advertisement event. 11283 11284 Expected Result: 11285 Advertisement is successfully advertising. 11286 11287 Returns: 11288 Pass if True 11289 Fail if False 11290 11291 TAGS: LE, Advertising, Filtering, Scanning 11292 Priority: 2 11293 """ 11294 filters = { 11295 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 11296 'manufacturer_specific_data': self.manu_sepecific_data_small 11297 } 11298 settings_in_effect = { 11299 'scan_mode': ble_scan_settings_modes['low_latency'], 11300 'mode': ble_advertise_settings_modes['low_latency'] 11301 } 11302 return self._magic((filters, settings_in_effect)) 11303 11304 @BluetoothBaseTest.bt_test_wrap 11305 @test_tracker_info(uuid='c54e14e7-c5f6-4c16-9900-2b8ac9ee96a5') 11306 def test_filter_combo_302(self): 11307 """Test a combination scan filter and advertisement 11308 11309 Test that an advertisement is found and matches corresponding 11310 settings. 11311 11312 Steps: 11313 1. Create a advertise data object 11314 2. Create a advertise settings object. 11315 3. Create a advertise callback object. 11316 4. Start an LE advertising using the objects created in steps 1-3. 11317 5. Find the onSuccess advertisement event. 11318 11319 Expected Result: 11320 Advertisement is successfully advertising. 11321 11322 Returns: 11323 Pass if True 11324 Fail if False 11325 11326 TAGS: LE, Advertising, Filtering, Scanning 11327 Priority: 2 11328 """ 11329 filters = { 11330 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 11331 'manufacturer_specific_data': self.manu_sepecific_data_large 11332 } 11333 settings_in_effect = { 11334 'scan_mode': ble_scan_settings_modes['low_latency'], 11335 'mode': ble_advertise_settings_modes['low_latency'] 11336 } 11337 return self._magic((filters, settings_in_effect)) 11338 11339 @BluetoothBaseTest.bt_test_wrap 11340 @test_tracker_info(uuid='bb188de9-8c63-4eba-96ab-b8577001412d') 11341 def test_filter_combo_303(self): 11342 """Test a combination scan filter and advertisement 11343 11344 Test that an advertisement is found and matches corresponding 11345 settings. 11346 11347 Steps: 11348 1. Create a advertise data object 11349 2. Create a advertise settings object. 11350 3. Create a advertise callback object. 11351 4. Start an LE advertising using the objects created in steps 1-3. 11352 5. Find the onSuccess advertisement event. 11353 11354 Expected Result: 11355 Advertisement is successfully advertising. 11356 11357 Returns: 11358 Pass if True 11359 Fail if False 11360 11361 TAGS: LE, Advertising, Filtering, Scanning 11362 Priority: 2 11363 """ 11364 filters = { 11365 'manufacturer_specific_data_id': self.manu_specific_data_id_1, 11366 'manufacturer_specific_data': self.manu_sepecific_data_small, 11367 'manufacturer_specific_data_mask': [1] 11368 } 11369 settings_in_effect = { 11370 'scan_mode': ble_scan_settings_modes['low_latency'], 11371 'mode': ble_advertise_settings_modes['low_latency'] 11372 } 11373 return self._magic((filters, settings_in_effect)) 11374 11375 @BluetoothBaseTest.bt_test_wrap 11376 @test_tracker_info(uuid='4e42416b-fe86-41e7-99cd-3ea0ab61a027') 11377 def test_filter_combo_304(self): 11378 """Test a combination scan filter and advertisement 11379 11380 Test that an advertisement is found and matches corresponding 11381 settings. 11382 11383 Steps: 11384 1. Create a advertise data object 11385 2. Create a advertise settings object. 11386 3. Create a advertise callback object. 11387 4. Start an LE advertising using the objects created in steps 1-3. 11388 5. Find the onSuccess advertisement event. 11389 11390 Expected Result: 11391 Advertisement is successfully advertising. 11392 11393 Returns: 11394 Pass if True 11395 Fail if False 11396 11397 TAGS: LE, Advertising, Filtering, Scanning 11398 Priority: 2 11399 """ 11400 filters = { 11401 'service_data_uuid': '0000110A-0000-1000-8000-00805F9B34FB', 11402 'service_data': self.service_data_large 11403 } 11404 settings_in_effect = { 11405 'scan_mode': ble_scan_settings_modes['low_latency'], 11406 'mode': ble_advertise_settings_modes['low_latency'] 11407 } 11408 return self._magic((filters, settings_in_effect)) 11409 11410 @BluetoothBaseTest.bt_test_wrap 11411 @test_tracker_info(uuid='a519609b-cd95-4017-adac-86954153669e') 11412 def test_filter_combo_305(self): 11413 """Test a combination scan filter and advertisement 11414 11415 Test that an advertisement is found and matches corresponding 11416 settings. 11417 11418 Steps: 11419 1. Create a advertise data object 11420 2. Create a advertise settings object. 11421 3. Create a advertise callback object. 11422 4. Start an LE advertising using the objects created in steps 1-3. 11423 5. Find the onSuccess advertisement event. 11424 11425 Expected Result: 11426 Advertisement is successfully advertising. 11427 11428 Returns: 11429 Pass if True 11430 Fail if False 11431 11432 TAGS: LE, Advertising, Filtering, Scanning 11433 Priority: 2 11434 """ 11435 filters = { 11436 'service_data_uuid': '0000110B-0000-1000-8000-00805F9B34FB', 11437 'service_data': [13] 11438 } 11439 settings_in_effect = { 11440 'scan_mode': ble_scan_settings_modes['low_latency'], 11441 'mode': ble_advertise_settings_modes['low_latency'] 11442 } 11443 return self._magic((filters, settings_in_effect)) 11444 11445 @BluetoothBaseTest.bt_test_wrap 11446 @test_tracker_info(uuid='ad1f5bdd-b532-482c-8f62-cc6804f0f8a2') 11447 def test_filter_combo_306(self): 11448 """Test a combination scan filter and advertisement 11449 11450 Test that an advertisement is found and matches corresponding 11451 settings. 11452 11453 Steps: 11454 1. Create a advertise data object 11455 2. Create a advertise settings object. 11456 3. Create a advertise callback object. 11457 4. Start an LE advertising using the objects created in steps 1-3. 11458 5. Find the onSuccess advertisement event. 11459 11460 Expected Result: 11461 Advertisement is successfully advertising. 11462 11463 Returns: 11464 Pass if True 11465 Fail if False 11466 11467 TAGS: LE, Advertising, Filtering, Scanning 11468 Priority: 2 11469 """ 11470 filters = { 11471 'service_data_uuid': '0000110C-0000-1000-8000-00805F9B34FB', 11472 'service_data': [11, 14, 50] 11473 } 11474 settings_in_effect = { 11475 'scan_mode': ble_scan_settings_modes['low_latency'], 11476 'mode': ble_advertise_settings_modes['low_latency'] 11477 } 11478 return self._magic((filters, settings_in_effect)) 11479 11480 @BluetoothBaseTest.bt_test_wrap 11481 @test_tracker_info(uuid='a44af1a3-f5ac-419b-a11b-a72734b57fa7') 11482 def test_filter_combo_307(self): 11483 """Test a combination scan filter and advertisement 11484 11485 Test that an advertisement is found and matches corresponding 11486 settings. 11487 11488 Steps: 11489 1. Create a advertise data object 11490 2. Create a advertise settings object. 11491 3. Create a advertise callback object. 11492 4. Start an LE advertising using the objects created in steps 1-3. 11493 5. Find the onSuccess advertisement event. 11494 11495 Expected Result: 11496 Advertisement is successfully advertising. 11497 11498 Returns: 11499 Pass if True 11500 Fail if False 11501 11502 TAGS: LE, Advertising, Filtering, Scanning 11503 Priority: 2 11504 """ 11505 filters = { 11506 'service_data_uuid': '0000110D-0000-1000-8000-00805F9B34FB', 11507 'service_data': [16, 22, 11] 11508 } 11509 settings_in_effect = { 11510 'scan_mode': ble_scan_settings_modes['low_latency'], 11511 'mode': ble_advertise_settings_modes['low_latency'] 11512 } 11513 return self._magic((filters, settings_in_effect)) 11514 11515 @BluetoothBaseTest.bt_test_wrap 11516 @test_tracker_info(uuid='1b2b17e7-5a1a-4795-974d-3a239c7fccc8') 11517 def test_filter_combo_308(self): 11518 """Test a combination scan filter and advertisement 11519 11520 Test that an advertisement is found and matches corresponding 11521 settings. 11522 11523 Steps: 11524 1. Create a advertise data object 11525 2. Create a advertise settings object. 11526 3. Create a advertise callback object. 11527 4. Start an LE advertising using the objects created in steps 1-3. 11528 5. Find the onSuccess advertisement event. 11529 11530 Expected Result: 11531 Advertisement is successfully advertising. 11532 11533 Returns: 11534 Pass if True 11535 Fail if False 11536 11537 TAGS: LE, Advertising, Filtering, Scanning 11538 Priority: 2 11539 """ 11540 filters = { 11541 'service_data_uuid': '0000110E-0000-1000-8000-00805F9B34FB', 11542 'service_data': [2, 9, 54] 11543 } 11544 settings_in_effect = { 11545 'scan_mode': ble_scan_settings_modes['low_latency'], 11546 'mode': ble_advertise_settings_modes['low_latency'] 11547 } 11548 return self._magic((filters, settings_in_effect)) 11549 11550 @BluetoothBaseTest.bt_test_wrap 11551 @test_tracker_info(uuid='9e9944cc-a85c-4077-9129-ca348a6c0286') 11552 def test_filter_combo_309(self): 11553 """Test a combination scan filter and advertisement 11554 11555 Test that an advertisement is found and matches corresponding 11556 settings. 11557 11558 Steps: 11559 1. Create a advertise data object 11560 2. Create a advertise settings object. 11561 3. Create a advertise callback object. 11562 4. Start an LE advertising using the objects created in steps 1-3. 11563 5. Find the onSuccess advertisement event. 11564 11565 Expected Result: 11566 Advertisement is successfully advertising. 11567 11568 Returns: 11569 Pass if True 11570 Fail if False 11571 11572 TAGS: LE, Advertising, Filtering, Scanning 11573 Priority: 2 11574 """ 11575 filters = { 11576 'service_data_uuid': '0000110F-0000-1000-8000-00805F9B34FB', 11577 'service_data': [69, 11, 50] 11578 } 11579 settings_in_effect = { 11580 'scan_mode': ble_scan_settings_modes['low_latency'], 11581 'mode': ble_advertise_settings_modes['low_latency'] 11582 } 11583 return self._magic((filters, settings_in_effect)) 11584 11585 @BluetoothBaseTest.bt_test_wrap 11586 @test_tracker_info(uuid='e0bb52ea-ac8f-4951-bd00-5322d0e72fd2') 11587 def test_filter_combo_310(self): 11588 """Test a combination scan filter and advertisement 11589 11590 Test that an advertisement is found and matches corresponding 11591 settings. 11592 11593 Steps: 11594 1. Create a advertise data object 11595 2. Create a advertise settings object. 11596 3. Create a advertise callback object. 11597 4. Start an LE advertising using the objects created in steps 1-3. 11598 5. Find the onSuccess advertisement event. 11599 11600 Expected Result: 11601 Advertisement is successfully advertising. 11602 11603 Returns: 11604 Pass if True 11605 Fail if False 11606 11607 TAGS: LE, Advertising, Filtering, Scanning 11608 Priority: 2 11609 """ 11610 filters = { 11611 'service_data_uuid': '00001101-0000-1000-8000-00805F9B34FB', 11612 'service_data': [12, 11, 21] 11613 } 11614 settings_in_effect = { 11615 'scan_mode': ble_scan_settings_modes['low_latency'], 11616 'mode': ble_advertise_settings_modes['low_latency'] 11617 } 11618 return self._magic((filters, settings_in_effect)) 11619 11620 @BluetoothBaseTest.bt_test_wrap 11621 @test_tracker_info(uuid='719d258d-6556-47b6-92d6-224c691b5dfd') 11622 def test_filter_combo_311(self): 11623 """Test a combination scan filter and advertisement 11624 11625 Test that an advertisement is found and matches corresponding 11626 settings. 11627 11628 Steps: 11629 1. Create a advertise data object 11630 2. Create a advertise settings object. 11631 3. Create a advertise callback object. 11632 4. Start an LE advertising using the objects created in steps 1-3. 11633 5. Find the onSuccess advertisement event. 11634 11635 Expected Result: 11636 Advertisement is successfully advertising. 11637 11638 Returns: 11639 Pass if True 11640 Fail if False 11641 11642 TAGS: LE, Advertising, Filtering, Scanning 11643 Priority: 2 11644 """ 11645 filters = { 11646 'service_data_uuid': '00001102-0000-1000-8000-00805F9B34FB', 11647 'service_data': [12, 12, 44] 11648 } 11649 settings_in_effect = { 11650 'scan_mode': ble_scan_settings_modes['low_latency'], 11651 'mode': ble_advertise_settings_modes['low_latency'] 11652 } 11653 return self._magic((filters, settings_in_effect)) 11654 11655 @BluetoothBaseTest.bt_test_wrap 11656 @test_tracker_info(uuid='1ab27561-6e2d-4da8-b2b1-dc4bd2c42f97') 11657 def test_filter_combo_312(self): 11658 """Test a combination scan filter and advertisement 11659 11660 Test that an advertisement is found and matches corresponding 11661 settings. 11662 11663 Steps: 11664 1. Create a advertise data object 11665 2. Create a advertise settings object. 11666 3. Create a advertise callback object. 11667 4. Start an LE advertising using the objects created in steps 1-3. 11668 5. Find the onSuccess advertisement event. 11669 11670 Expected Result: 11671 Advertisement is successfully advertising. 11672 11673 Returns: 11674 Pass if True 11675 Fail if False 11676 11677 TAGS: LE, Advertising, Filtering, Scanning 11678 Priority: 2 11679 """ 11680 filters = { 11681 'service_data_uuid': '00001103-0000-1000-8000-00805F9B34FB', 11682 'service_data': [4, 54, 1] 11683 } 11684 settings_in_effect = { 11685 'scan_mode': ble_scan_settings_modes['low_latency'], 11686 'mode': ble_advertise_settings_modes['low_latency'] 11687 } 11688 return self._magic((filters, settings_in_effect)) 11689 11690 @BluetoothBaseTest.bt_test_wrap 11691 @test_tracker_info(uuid='5b460a48-f6d6-469c-9553-11817171dacb') 11692 def test_filter_combo_313(self): 11693 """Test a combination scan filter and advertisement 11694 11695 Test that an advertisement is found and matches corresponding 11696 settings. 11697 11698 Steps: 11699 1. Create a advertise data object 11700 2. Create a advertise settings object. 11701 3. Create a advertise callback object. 11702 4. Start an LE advertising using the objects created in steps 1-3. 11703 5. Find the onSuccess advertisement event. 11704 11705 Expected Result: 11706 Advertisement is successfully advertising. 11707 11708 Returns: 11709 Pass if True 11710 Fail if False 11711 11712 TAGS: LE, Advertising, Filtering, Scanning 11713 Priority: 2 11714 """ 11715 filters = { 11716 'service_data_uuid': '00001104-0000-1000-8000-00805F9B34FB', 11717 'service_data': [33, 22, 44] 11718 } 11719 settings_in_effect = { 11720 'scan_mode': ble_scan_settings_modes['low_latency'], 11721 'mode': ble_advertise_settings_modes['low_latency'] 11722 } 11723 return self._magic((filters, settings_in_effect)) 11724 11725 @BluetoothBaseTest.bt_test_wrap 11726 @test_tracker_info(uuid='e0439501-b72d-43ac-a51f-c44b4d0c86d9') 11727 def test_filter_combo_314(self): 11728 """Test a combination scan filter and advertisement 11729 11730 Test that an advertisement is found and matches corresponding 11731 settings. 11732 11733 Steps: 11734 1. Create a advertise data object 11735 2. Create a advertise settings object. 11736 3. Create a advertise callback object. 11737 4. Start an LE advertising using the objects created in steps 1-3. 11738 5. Find the onSuccess advertisement event. 11739 11740 Expected Result: 11741 Advertisement is successfully advertising. 11742 11743 Returns: 11744 Pass if True 11745 Fail if False 11746 11747 TAGS: LE, Advertising, Filtering, Scanning 11748 Priority: 2 11749 """ 11750 filters = { 11751 'service_uuid': '00000000-0000-1000-8000-00805f9b34fb', 11752 'service_mask': '00000000-0000-1000-8000-00805f9b34fb' 11753 } 11754 settings_in_effect = { 11755 'scan_mode': ble_scan_settings_modes['low_latency'], 11756 'mode': ble_advertise_settings_modes['low_latency'] 11757 } 11758 return self._magic((filters, settings_in_effect)) 11759 11760 @BluetoothBaseTest.bt_test_wrap 11761 @test_tracker_info(uuid='3a7f4527-2a77-4172-8402-78d90fbc5a8a') 11762 def test_filter_combo_315(self): 11763 """Test a combination scan filter and advertisement 11764 11765 Test that an advertisement is found and matches corresponding 11766 settings. 11767 11768 Steps: 11769 1. Create a advertise data object 11770 2. Create a advertise settings object. 11771 3. Create a advertise callback object. 11772 4. Start an LE advertising using the objects created in steps 1-3. 11773 5. Find the onSuccess advertisement event. 11774 11775 Expected Result: 11776 Advertisement is successfully advertising. 11777 11778 Returns: 11779 Pass if True 11780 Fail if False 11781 11782 TAGS: LE, Advertising, Filtering, Scanning 11783 Priority: 2 11784 """ 11785 filters = { 11786 'service_uuid': 'FFFFFFFF-0000-1000-8000-00805f9b34fb', 11787 'service_mask': '00000000-0000-1000-8000-00805f9b34fb' 11788 } 11789 settings_in_effect = { 11790 'scan_mode': ble_scan_settings_modes['low_latency'], 11791 'mode': ble_advertise_settings_modes['low_latency'] 11792 } 11793 return self._magic((filters, settings_in_effect)) 11794 11795 @BluetoothBaseTest.bt_test_wrap 11796 @test_tracker_info(uuid='c6661021-33ad-4628-99f0-1a3b4b4a8263') 11797 def test_filter_combo_316(self): 11798 """Test a combination scan filter and advertisement 11799 11800 Test that an advertisement is found and matches corresponding 11801 settings. 11802 11803 Steps: 11804 1. Create a advertise data object 11805 2. Create a advertise settings object. 11806 3. Create a advertise callback object. 11807 4. Start an LE advertising using the objects created in steps 1-3. 11808 5. Find the onSuccess advertisement event. 11809 11810 Expected Result: 11811 Advertisement is successfully advertising. 11812 11813 Returns: 11814 Pass if True 11815 Fail if False 11816 11817 TAGS: LE, Advertising, Filtering, Scanning 11818 Priority: 2 11819 """ 11820 filters = { 11821 'service_uuid': '3846D7A0-69C8-11E4-BA00-0002A5D5C51B', 11822 'service_mask': '00000000-0000-1000-8000-00805f9b34fb' 11823 } 11824 settings_in_effect = { 11825 'scan_mode': ble_scan_settings_modes['low_latency'], 11826 'mode': ble_advertise_settings_modes['low_latency'] 11827 } 11828 return self._magic((filters, settings_in_effect)) 11829 11830 @BluetoothBaseTest.bt_test_wrap 11831 @test_tracker_info(uuid='3a633941-1716-4bf6-a8d7-8a4ad0be24aa') 11832 def test_filter_combo_317(self): 11833 """Test a combination scan filter and advertisement 11834 11835 Test that an advertisement is found and matches corresponding 11836 settings. 11837 11838 Steps: 11839 1. Create a advertise data object 11840 2. Create a advertise settings object. 11841 3. Create a advertise callback object. 11842 4. Start an LE advertising using the objects created in steps 1-3. 11843 5. Find the onSuccess advertisement event. 11844 11845 Expected Result: 11846 Advertisement is successfully advertising. 11847 11848 Returns: 11849 Pass if True 11850 Fail if False 11851 11852 TAGS: LE, Advertising, Filtering, Scanning 11853 Priority: 2 11854 """ 11855 filters = {'include_device_name': True} 11856 settings_in_effect = { 11857 'scan_mode': ble_scan_settings_modes['low_latency'], 11858 'mode': ble_advertise_settings_modes['low_latency'] 11859 } 11860 return self._magic((filters, settings_in_effect)) 11861 11862 def _blescan_verify_onscanresult_event(self, event, filters): 11863 test_result = True 11864 self.log.debug("Verifying onScanResult event: {}".format(event)) 11865 callback_type = event['data']['CallbackType'] 11866 if 'callback_type' in filters.keys(): 11867 if filters['callback_type'] != callback_type: 11868 self.log.error("Expected callback type: {}, Found callback " 11869 "type: {}".format(filters['callback_type'], 11870 callback_type)) 11871 test_result = False 11872 elif self.default_callback != callback_type: 11873 self.log.error("Expected callback type: {}, Found callback type: " 11874 "{}".format(self.default_callback, callback_type)) 11875 test_result = False 11876 if 'include_device_name' in filters.keys( 11877 ) and filters['include_device_name'] is not False: 11878 if event['data']['Result']['deviceName'] != filters[ 11879 'include_device_name']: 11880 self.log.error( 11881 "Expected device name: {}, Found device name: {}".format( 11882 filters['include_device_name'], 11883 event['data']['Result']['deviceName'])) 11884 11885 test_result = False 11886 elif 'deviceName' in event['data']['Result'].keys(): 11887 self.log.error( 11888 "Device name was found when it wasn't meant to be included.") 11889 test_result = False 11890 if ('include_tx_power_level' in filters.keys() 11891 and filters['include_tx_power_level'] is not False): 11892 if not event['data']['Result']['txPowerLevel']: 11893 self.log.error( 11894 "Expected to find tx power level in event but found none.") 11895 test_result = False 11896 if not event['data']['Result']['rssi']: 11897 self.log.error("Expected rssi in the advertisement, found none.") 11898 test_result = False 11899 if not event['data']['Result']['timestampNanos']: 11900 self.log.error("Expected rssi in the advertisement, found none.") 11901 test_result = False 11902 return test_result 11903 11904 def _bleadvertise_verify_onsuccess(self, event, settings_in_effect): 11905 self.log.debug("Verifying {} event".format(adv_succ)) 11906 test_result = True 11907 if 'is_connectable' in settings_in_effect.keys(): 11908 if (event['data']['SettingsInEffect']['isConnectable'] != 11909 settings_in_effect['is_connectable']): 11910 self.log.error( 11911 "Expected is connectable value: {}, Actual is " 11912 "connectable value:".format( 11913 settings_in_effect['is_connectable'], 11914 event['data']['SettingsInEffect']['isConnectable'])) 11915 test_result = False 11916 elif (event['data']['SettingsInEffect']['isConnectable'] != 11917 self.default_is_connectable): 11918 self.log.error( 11919 "Default value for isConnectable did not match what was found." 11920 ) 11921 test_result = False 11922 if 'mode' in settings_in_effect.keys(): 11923 if (event['data']['SettingsInEffect']['mode'] != 11924 settings_in_effect['mode']): 11925 self.log.error( 11926 "Expected mode value: {}, Actual mode value: {}".format( 11927 settings_in_effect['mode'], 11928 event['data']['SettingsInEffect']['mode'])) 11929 test_result = False 11930 elif (event['data']['SettingsInEffect']['mode'] != 11931 self.default_advertise_mode): 11932 self.log.error( 11933 "Default value for filtering mode did not match what was " 11934 "found.") 11935 test_result = False 11936 if 'tx_power_level' in settings_in_effect.keys(): 11937 if (event['data']['SettingsInEffect']['txPowerLevel'] == 11938 java_integer['min']): 11939 self.log.error("Expected tx power level was not meant to be: " 11940 "{}".format(java_integer['min'])) 11941 test_result = False 11942 elif (event['data']['SettingsInEffect']['txPowerLevel'] != 11943 self.default_tx_power_level): 11944 self.log.error( 11945 "Default value for tx power level did not match what" 11946 " was found.") 11947 test_result = False 11948 return test_result 11949 11950 def _magic(self, params): 11951 (filters, settings_in_effect) = params 11952 test_result = True 11953 11954 self.log.debug("Settings in effect: {}".format( 11955 pprint.pformat(settings_in_effect))) 11956 self.log.debug("Filters:".format(pprint.pformat(filters))) 11957 if 'is_connectable' in settings_in_effect.keys(): 11958 self.log.debug("Setting advertisement is_connectable to {}".format( 11959 settings_in_effect['is_connectable'])) 11960 self.adv_ad.droid.bleSetAdvertiseSettingsIsConnectable( 11961 settings_in_effect['is_connectable']) 11962 if 'mode' in settings_in_effect.keys(): 11963 self.log.debug("Setting advertisement mode to {}".format( 11964 settings_in_effect['mode'])) 11965 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode( 11966 settings_in_effect['mode']) 11967 if 'tx_power_level' in settings_in_effect.keys(): 11968 self.log.debug("Setting advertisement tx_power_level to {}".format( 11969 settings_in_effect['tx_power_level'])) 11970 self.adv_ad.droid.bleSetAdvertiseSettingsTxPowerLevel( 11971 settings_in_effect['tx_power_level']) 11972 filter_list = self.scn_ad.droid.bleGenFilterList() 11973 if ('include_device_name' in filters.keys() 11974 and filters['include_device_name'] is not False): 11975 11976 self.log.debug( 11977 "Setting advertisement include_device_name to {}".format( 11978 filters['include_device_name'])) 11979 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True) 11980 filters['include_device_name'] = ( 11981 self.adv_ad.droid.bluetoothGetLocalName()) 11982 self.log.debug("Setting scanner include_device_name to {}".format( 11983 filters['include_device_name'])) 11984 self.scn_ad.droid.bleSetScanFilterDeviceName( 11985 filters['include_device_name']) 11986 else: 11987 self.log.debug( 11988 "Setting advertisement include_device_name to False") 11989 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(False) 11990 if ('include_tx_power_level' in filters.keys() 11991 and filters['include_tx_power_level'] is not False): 11992 self.log.debug( 11993 "Setting advertisement include_tx_power_level to True") 11994 self.adv_ad.droid.bleSetAdvertiseDataIncludeTxPowerLevel(True) 11995 if 'manufacturer_specific_data_id' in filters.keys(): 11996 if 'manufacturer_specific_data_mask' in filters.keys(): 11997 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId( 11998 filters['manufacturer_specific_data_id'], 11999 filters['manufacturer_specific_data']) 12000 self.scn_ad.droid.bleSetScanFilterManufacturerData( 12001 filters['manufacturer_specific_data_id'], 12002 filters['manufacturer_specific_data'], 12003 filters['manufacturer_specific_data_mask']) 12004 else: 12005 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId( 12006 filters['manufacturer_specific_data_id'], 12007 filters['manufacturer_specific_data']) 12008 self.scn_ad.droid.bleSetScanFilterManufacturerData( 12009 filters['manufacturer_specific_data_id'], 12010 filters['manufacturer_specific_data']) 12011 if 'service_data' in filters.keys(): 12012 self.adv_ad.droid.bleAddAdvertiseDataServiceData( 12013 filters['service_data_uuid'], filters['service_data']) 12014 self.scn_ad.droid.bleSetScanFilterServiceData( 12015 filters['service_data_uuid'], filters['service_data']) 12016 if 'manufacturer_specific_data_list' in filters.keys(): 12017 for pair in filters['manufacturer_specific_data_list']: 12018 (manu_id, manu_data) = pair 12019 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId( 12020 manu_id, manu_data) 12021 if 'service_mask' in filters.keys(): 12022 self.scn_ad.droid.bleSetScanFilterServiceUuid( 12023 filters['service_uuid'].upper(), filters['service_mask']) 12024 self.adv_ad.droid.bleSetAdvertiseDataSetServiceUuids( 12025 [filters['service_uuid'].upper()]) 12026 elif 'service_uuid' in filters.keys(): 12027 self.scn_ad.droid.bleSetScanFilterServiceUuid( 12028 filters['service_uuid']) 12029 self.adv_ad.droid.bleSetAdvertiseDataSetServiceUuids( 12030 [filters['service_uuid']]) 12031 self.scn_ad.droid.bleBuildScanFilter(filter_list) 12032 advertise_callback, advertise_data, advertise_settings = ( 12033 generate_ble_advertise_objects(self.adv_ad.droid)) 12034 if ('scan_mode' in settings_in_effect 12035 and settings_in_effect['scan_mode'] != 12036 ble_scan_settings_modes['opportunistic']): 12037 self.scn_ad.droid.bleSetScanSettingsScanMode( 12038 settings_in_effect['scan_mode']) 12039 else: 12040 self.scn_ad.droid.bleSetScanSettingsScanMode( 12041 ble_scan_settings_modes['low_latency']) 12042 scan_settings = self.scn_ad.droid.bleBuildScanSetting() 12043 scan_callback = self.scn_ad.droid.bleGenScanCallback() 12044 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings, 12045 scan_callback) 12046 opportunistic = False 12047 scan_settings2, scan_callback2 = None, None 12048 if ('scan_mode' in settings_in_effect 12049 and settings_in_effect['scan_mode'] == 12050 ble_scan_settings_modes['opportunistic']): 12051 opportunistic = True 12052 scan_settings2 = self.scn_ad.droid.bleBuildScanSetting() 12053 scan_callback2 = self.scn_ad.droid.bleGenScanCallback() 12054 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings2, 12055 scan_callback2) 12056 self.scn_ad.droid.bleSetScanSettingsScanMode( 12057 ble_scan_settings_modes['opportunistic']) 12058 self.adv_ad.droid.bleStartBleAdvertising(advertise_callback, 12059 advertise_data, 12060 advertise_settings) 12061 regex = "(" + adv_succ.format( 12062 advertise_callback) + "|" + adv_fail.format( 12063 advertise_callback) + ")" 12064 self.log.debug(regex) 12065 try: 12066 event = self.adv_ad.ed.pop_events(regex, self.default_timeout, 12067 small_timeout) 12068 except Empty: 12069 self.adv_ad.log.error("Failed to get success or failed event.") 12070 return False 12071 if event[0]["name"] == adv_succ.format(advertise_callback): 12072 if not self._bleadvertise_verify_onsuccess(event[0], 12073 settings_in_effect): 12074 return False 12075 else: 12076 self.adv_ad.log.info("Advertisement started successfully.") 12077 else: 12078 self.adv_ad.log.error("Failed to start advertisement: {}".format( 12079 event[0]["data"]["Error"])) 12080 expected_scan_event_name = scan_result.format(scan_callback) 12081 try: 12082 event = self.scn_ad.ed.pop_event(expected_scan_event_name, 12083 self.default_timeout) 12084 except Empty: 12085 self.log.error( 12086 "Scan event not found: {}".format(expected_scan_event_name)) 12087 return False 12088 if not self._blescan_verify_onscanresult_event(event, filters): 12089 return False 12090 if opportunistic: 12091 expected_scan_event_name = scan_result.format(scan_callback2) 12092 try: 12093 event = self.scn_ad.ed.pop_event(expected_scan_event_name, 12094 self.default_timeout) 12095 except Empty: 12096 self.log.error("Opportunistic scan event not found: {}".format( 12097 expected_scan_event_name)) 12098 return False 12099 if not self._blescan_verify_onscanresult_event(event, filters): 12100 return False 12101 self.scn_ad.droid.bleStopBleScan(scan_callback2) 12102 self.adv_ad.droid.bleStopBleAdvertising(advertise_callback) 12103 self.scn_ad.droid.bleStopBleScan(scan_callback) 12104 return test_result 12105