Home
last modified time | relevance | path

Searched refs:scn_ad (Results 1 – 13 of 13) sorted by relevance

/tools/test/connectivity/acts_tests/tests/google/ble/scan/
DBleOpportunisticScanTest.py50 self.scn_ad = self.android_devices[0]
53 utils.set_location_service(self.scn_ad, True)
59 self.scn_ad, self.active_scan_callback_list, self.adv_ad,
76 event = self.scn_ad.ed.pop_event(event_name, self.default_timeout)
107 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
110 self.scn_ad.droid)
111 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
116 self.scn_ad.droid.bleStopBleScan(scan_callback)
144 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
146 self.scn_ad.droid.bleSetScanSettingsReportDelayMillis(
[all …]
DBleScanScreenStateTest.py47 self.scn_ad = self.android_devices[0]
50 utils.set_location_service(self.scn_ad, True)
70 generate_ble_scan_objects(self.scn_ad.droid)
71 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
76 self.scn_ad.ed.pop_event(
114 self.scn_ad.droid.wakeUpNow()
125 self.scn_ad.droid.bleStopBleScan(self.scan_callback)
158 self.scn_ad.droid.goToSleepNow()
171 self.scn_ad.droid.bleStopBleScan(self.scan_callback)
207 self.scn_ad.droid.goToSleepNow()
[all …]
DBleOnLostOnFoundTest.py44 self.scn_ad = self.android_devices[0]
47 utils.set_location_service(self.scn_ad, True)
53 self.scn_ad, self.active_adv_callback_list, self.adv_ad,
77 self.scn_ad.ed.pop_event(event_name, self.default_timeout)
113 filter_list = self.scn_ad.droid.bleGenFilterList()
114 self.scn_ad.droid.bleSetScanFilterDeviceName(
116 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
118 self.scn_ad.droid.bleSetScanSettingsCallbackType(
120 self.scn_ad.droid.bleSetScanSettingsMatchMode(
122 self.scn_ad.droid.bleSetScanSettingsNumOfMatches(
[all …]
DBleBackgroundScanTest.py50 self.scn_ad = self.android_devices[0]
53 utils.set_location_service(self.scn_ad, True)
59 enable_bluetooth(self.scn_ad.droid, self.scn_ad.ed)
60 self.scn_ad.droid.bluetoothDisableBLE()
67 self.scn_ad, self.active_adv_callback_list, self.adv_ad,
105 self.scn_ad.droid.bluetoothEnableBLE()
107 self.scn_ad.droid.bleSetScanSettingsScanMode(
110 self.scn_ad.droid)
111 self.scn_ad.droid.bleSetScanFilterDeviceName(
113 self.scn_ad.droid.bleBuildScanFilter(filter_list)
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/filtering/
DUniqueFilteringTest.py43 self.scn_ad = self.android_devices[0]
116 self.scn_ad.droid)
122 self.scn_ad.droid.bleSetScanFilterDeviceName(
124 self.scn_ad.droid.bleBuildScanFilter(filter_list)
126 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
128 self.scn_ad.droid.bleFlushPendingScanResults(scan_callback)
129 worker = self.scn_ad.ed.handle_event(
140 self.scn_ad.droid.bleStopBleScan(scan_callback)
171 self.scn_ad.droid.bleSetScanSettingsReportDelayMillis(5000)
173 self.scn_ad.droid)
[all …]
DFilteringTest.py69 self.scn_ad = self.android_devices[0]
72 self.scn_ad.droid.getBuildModel()))
11970 filter_list = self.scn_ad.droid.bleGenFilterList()
11981 self.scn_ad.droid.bleSetScanFilterDeviceName(filters[
11997 self.scn_ad.droid.bleSetScanFilterManufacturerData(
12005 self.scn_ad.droid.bleSetScanFilterManufacturerData(
12011 self.scn_ad.droid.bleSetScanFilterServiceData(
12019 self.scn_ad.droid.bleSetScanFilterServiceUuid(
12024 self.scn_ad.droid.bleSetScanFilterServiceUuid(filters[
12028 self.scn_ad.droid.bleBuildScanFilter(filter_list)
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/concurrency/
DConcurrentBleScanningTest.py44 self.scn_ad = self.android_devices[0]
85 self.scn_ad.droid.bleSetScanSettingsCallbackType(
87 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
110 filter_list = self.scn_ad.droid.bleGenFilterList()
111 self.scn_ad.droid.bleSetScanFilterDeviceName(
113 self.scn_ad.droid.bleBuildScanFilter(filter_list)
114 scan_settings = self.scn_ad.droid.bleBuildScanSetting()
118 scan_callback = self.scn_ad.droid.bleGenScanCallback()
120 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
123 self.scn_ad.ed.pop_event(
[all …]
DConcurrentBleAdvertisingTest.py51 self.scn_ad = self.android_devices[0]
66 scan_and_verify_n_advertisements(self.scn_ad, num_advertisements)
129 self.scn_ad.droid.bleSetScanFilterDeviceName(
161 self.scn_ad.droid.bleSetScanFilterDeviceName(
192 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1])
223 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1], [1])
255 filter_list = self.scn_ad.droid.bleGenFilterList()
256 self.scn_ad.droid.bleSetScanFilterServiceData(
291 self.scn_ad.droid.bleSetScanFilterDeviceName(
293 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1], [1])
[all …]
DConcurrentBleAdvertisementDiscoveryTest.py52 self.scn_ad = self.android_devices[0]
105 filter_list = self.scn_ad.droid.bleGenFilterList()
106 self.scn_ad.droid.bleBuildScanFilter(filter_list)
107 self.scn_ad.droid.bleSetScanSettingsCallbackType(
109 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
116 self.scn_ad, self.max_advertisements):
121 if not reset_bluetooth([self.scn_ad]):
/tools/test/connectivity/acts_tests/tests/google/ble/bt5/
DBt5ScanTest.py65 self.scn_ad = self.android_devices[0]
68 if not self.scn_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
78 self.scn_ad, self.active_scan_callback_list, self.adv_ad, [])
106 d = self.scn_ad.droid
163 self.scn_ad.droid.bleSetScanSettingsLegacy(False)
164 self.scn_ad.droid.bleSetScanSettingsPhy(ble_scan_settings_phys['1m'])
167 self.scn_ad.droid)
170 self.scn_ad.droid.bleSetScanFilterDeviceName(adv_device_name)
171 self.scn_ad.droid.bleBuildScanFilter(filter_list)
172 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/beacon_tests/
DBeaconSwarmTest.py55 self.scn_ad = self.android_devices[0]
65 reset_bluetooth([self.scn_ad])
180 self.scn_ad.droid.bleSetScanSettingsScanMode(
183 self.scn_ad.droid)
184 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
187 event_info = self.scn_ad.ed.pop_event(
196 self.scn_ad.droid.bleStopBleScan(scan_callback)
222 self.scn_ad.droid.bleSetScanSettingsScanMode(
224 self.scn_ad.droid.bleSetScanSettingsReportDelayMillis(1000)
226 self.scn_ad.droid)
[all …]
/tools/test/connectivity/acts_tests/tests/google/ble/system_tests/
DBleStressTest.py44 self.scn_ad = self.android_devices[0]
61 bonded_devices = self.scn_ad.droid.bluetoothGetBondedDevices()
94 self.scn_ad.droid)
95 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
97 self.scn_ad.droid.bleStopBleScan(scan_callback)
132 self.scn_ad.droid)
133 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
136 self.scn_ad.ed.pop_event(scan_result.format(scan_callback)))
137 self.scn_ad.droid.bleStopBleScan(scan_callback)
241 test_result = reset_bluetooth([self.scn_ad])
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_test_utils.py1329 def scan_and_verify_n_advertisements(scn_ad, max_advertisements): argument
1343 filter_list = scn_ad.droid.bleGenFilterList()
1344 scn_ad.droid.bleBuildScanFilter(filter_list)
1345 scan_settings = scn_ad.droid.bleBuildScanSetting()
1346 scan_callback = scn_ad.droid.bleGenScanCallback()
1347 scn_ad.droid.bleStartBleScan(filter_list, scan_settings, scan_callback)
1352 event = scn_ad.ed.pop_event(scan_result.format(scan_callback),
1363 scn_ad.droid.bleStopBleScan(scan_callback)