Home
last modified time | relevance | path

Searched refs:adv_ad (Results 1 – 12 of 12) sorted by relevance

/tools/test/connectivity/acts/tests/google/ble/bt5/
DBt5ScanTest.py66 self.adv_ad = self.android_devices[1]
73 if not self.adv_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
79 self.scn_ad, self.active_scan_callback_list, self.adv_ad, [])
118 d = self.adv_ad.droid
155 adv_callback = self.adv_ad.droid.bleAdvSetGenCallback()
156 self.adv_ad.droid.bleAdvSetStartAdvertisingSet({
170 adv_device_name = self.adv_ad.droid.bluetoothGetLocalName()
182 self.adv_ad.droid.bleAdvSetStopAdvertisingSet(adv_callback)
185 self.adv_ad.droid.bleAdvSetStopAdvertisingSet(adv_callback)
212 adv_callback = self.adv_ad.droid.bleAdvSetGenCallback()
[all …]
DAdvertisingSetTest.py67 self.adv_ad = self.android_devices[0]
70 if not self.adv_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
102 adv_callback = self.adv_ad.droid.bleAdvSetGenCallback()
105 self.adv_ad.droid.bleAdvSetStartAdvertisingSet({
114 set_started_evt = self.adv_ad.ed.pop_event(
122 self.adv_ad.droid.bleAdvSetEnableAdvertising(set_id, False, duration,
124 enable_evt = self.adv_ad.ed.pop_event(
133 self.adv_ad.droid.bleAdvSetEnableAdvertising(
135 enable_evt = self.adv_ad.ed.pop_event(
142 enable_evt = self.adv_ad.ed.pop_event(
[all …]
/tools/test/connectivity/acts/tests/google/ble/filtering/
DUniqueFilteringTest.py44 self.adv_ad = self.android_devices[1]
112 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
118 generate_ble_advertise_objects(self.adv_ad.droid))
119 self.adv_ad.droid.bleStartBleAdvertising(
136 self.adv_ad.droid.bleStopBleAdvertising(advertise_callback)
170 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
171 self.adv_ad.droid.bleSetAdvertiseDataIncludeTxPowerLevel(True)
173 generate_ble_advertise_objects(self.adv_ad.droid))
174 self.adv_ad.droid.bleStartBleAdvertising(
193 self.adv_ad.droid.bleStopBleAdvertising(advertise_callback)
[all …]
/tools/test/connectivity/acts/tests/google/ble/concurrency/
DConcurrentBleAdvertisingTest.py52 self.adv_ad = self.android_devices[1]
62 self.adv_ad, num_advertisements)
69 teardown_n_advertisements(self.adv_ad,
128 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
130 self.adv_ad.droid.bluetoothGetLocalName())
160 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(False)
162 self.adv_ad.droid.bluetoothGetLocalName())
193 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1])
224 self.adv_ad.droid.bleAddAdvertiseDataManufacturerId(1, [1])
258 self.adv_ad.droid.bleAddAdvertiseDataServiceData(
[all …]
DConcurrentBleScanningTest.py45 self.adv_ad = self.android_devices[1]
84 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
89 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
92 generate_ble_advertise_objects(self.adv_ad.droid))
93 self.adv_ad.droid.bleSetAdvertiseSettingsIsConnectable(False)
94 self.adv_ad.droid.bleStartBleAdvertising(
97 self.adv_ad.ed.pop_event(
112 self.adv_ad.droid.bluetoothGetLocalName())
134 self.adv_ad.droid.bleStopBleAdvertising(advertise_callback)
170 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
[all …]
DConcurrentBleAdvertisementDiscoveryTest.py53 self.adv_ad = self.android_devices[1]
64 self.adv_ad, self.max_advertisements)
72 teardown_n_advertisements(self.adv_ad,
/tools/test/connectivity/acts/tests/google/ble/system_tests/
DBleStressTest.py45 self.adv_ad = self.android_devices[1]
127 self.adv_ad.droid)
128 self.adv_ad.droid.bleStartBleAdvertising(adv_callback, adv_data,
167 self.adv_ad.droid)
168 self.adv_ad.droid.bleStartBleAdvertising(
173 worker = self.adv_ad.ed.handle_event(
189 self.adv_ad.droid.bleStopBleAdvertising(advertise_callback)
220 self.adv_ad.droid)
221 self.adv_ad.droid.bleStartBleAdvertising(
226 worker = self.adv_ad.ed.handle_event(
[all …]
/tools/test/connectivity/acts/tests/google/ble/scan/
DBleOnLostOnFoundTest.py45 self.adv_ad = self.android_devices[1]
50 utils.set_location_service(self.adv_ad, True)
55 self.scn_ad, self.active_adv_callback_list, self.adv_ad,
64 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
65 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
67 advertise_data = self.adv_ad.droid.bleBuildAdvertiseData()
68 advertise_settings = self.adv_ad.droid.bleBuildAdvertiseSettings()
69 advertise_callback = self.adv_ad.droid.bleGenBleAdvertiseCallback()
70 self.adv_ad.droid.bleStartBleAdvertising(
72 self.adv_ad.ed.pop_event(
[all …]
DBleScanScreenStateTest.py49 self.adv_ad = self.android_devices[1]
54 utils.set_location_service(self.adv_ad, True)
58 self.adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
61 generate_ble_advertise_objects(self.adv_ad.droid))
62 self.adv_ad.droid.bleStartBleAdvertising(
65 self.adv_ad.ed.pop_event(adv_succ.format(self.advertise_callback))
127 self.adv_ad.droid.bleStopBleAdvertising(self.advertise_callback)
173 self.adv_ad.droid.bleStopBleAdvertising(self.advertise_callback)
203 adv_device_name = self.adv_ad.droid.bluetoothGetLocalName()
205 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
[all …]
DBleBackgroundScanTest.py51 self.adv_ad = self.android_devices[1]
56 utils.set_location_service(self.adv_ad, True)
69 self.scn_ad, self.active_adv_callback_list, self.adv_ad,
75 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
77 self.adv_ad.droid)
78 self.adv_ad.droid.bleStartBleAdvertising(adv_callback, adv_data,
114 self.adv_ad.droid.bluetoothGetLocalName())
166 self.adv_ad.droid.bluetoothGetLocalName())
DBleOpportunisticScanTest.py51 self.adv_ad = self.android_devices[1]
56 utils.set_location_service(self.adv_ad, True)
61 self.scn_ad, self.active_scan_callback_list, self.adv_ad,
71 self.adv_ad.droid)
72 self.adv_ad.droid.bleStartBleAdvertising(adv_callback, adv_data,
673 self.adv_ad.droid.bleSetAdvertiseDataIncludeDeviceName(True)
675 adv_device_name = self.adv_ad.droid.bluetoothGetLocalName()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_test_utils.py122 def setup_n_advertisements(adv_ad, num_advertisements): argument
132 adv_ad.droid.bleSetAdvertiseSettingsAdvertiseMode(
134 advertise_data = adv_ad.droid.bleBuildAdvertiseData()
135 advertise_settings = adv_ad.droid.bleBuildAdvertiseSettings()
138 advertise_callback = adv_ad.droid.bleGenBleAdvertiseCallback()
140 adv_ad.droid.bleStartBleAdvertising(advertise_callback, advertise_data,
143 adv_ad.ed.pop_event(
145 adv_ad.log.info("Advertisement {} started.".format(i + 1))
147 adv_ad.log.error("Advertisement {} failed to start.".format(i + 1))
153 def teardown_n_advertisements(adv_ad, num_advertisements, argument
[all …]