Home
last modified time | relevance | path

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

/tools/test/connectivity/acts/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 …]
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 …]
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 …]
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 …]
/tools/test/connectivity/acts/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/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]
67 scan_and_verify_n_advertisements(self.scn_ad, num_advertisements)
130 self.scn_ad.droid.bleSetScanFilterDeviceName(
162 self.scn_ad.droid.bleSetScanFilterDeviceName(
193 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1])
224 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1], [1])
256 filter_list = self.scn_ad.droid.bleGenFilterList()
257 self.scn_ad.droid.bleSetScanFilterServiceData(
292 self.scn_ad.droid.bleSetScanFilterDeviceName(
294 self.scn_ad.droid.bleSetScanFilterManufacturerData(1, [1], [1])
[all …]
DConcurrentBleAdvertisementDiscoveryTest.py52 self.scn_ad = self.android_devices[0]
104 filter_list = self.scn_ad.droid.bleGenFilterList()
105 self.scn_ad.droid.bleBuildScanFilter(filter_list)
106 self.scn_ad.droid.bleSetScanSettingsCallbackType(
108 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
115 self.scn_ad, self.max_advertisements):
120 if not reset_bluetooth([self.scn_ad]):
/tools/test/connectivity/acts/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/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/google/ble/system_tests/
DBleStressTest.py45 self.scn_ad = self.android_devices[0]
62 bonded_devices = self.scn_ad.droid.bluetoothGetBondedDevices()
95 self.scn_ad.droid)
96 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
98 self.scn_ad.droid.bleStopBleScan(scan_callback)
133 self.scn_ad.droid)
134 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
137 self.scn_ad.ed.pop_event(scan_result.format(scan_callback)))
138 self.scn_ad.droid.bleStopBleScan(scan_callback)
242 test_result = reset_bluetooth([self.scn_ad])
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_test_utils.py1271 def scan_and_verify_n_advertisements(scn_ad, max_advertisements): argument
1285 filter_list = scn_ad.droid.bleGenFilterList()
1286 scn_ad.droid.bleBuildScanFilter(filter_list)
1287 scan_settings = scn_ad.droid.bleBuildScanSetting()
1288 scan_callback = scn_ad.droid.bleGenScanCallback()
1289 scn_ad.droid.bleStartBleScan(filter_list, scan_settings, scan_callback)
1294 event = scn_ad.ed.pop_event(scan_result.format(scan_callback),
1305 scn_ad.droid.bleStopBleScan(scan_callback)