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