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]
55 utils.set_location_service(self.scn_ad, True)
61 self.scn_ad, self.active_scan_callback_list, self.adv_ad,
78 event = self.scn_ad.ed.pop_event(event_name, self.default_timeout)
109 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
112 self.scn_ad.droid)
113 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
118 self.scn_ad.droid.bleStopBleScan(scan_callback)
146 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
148 self.scn_ad.droid.bleSetScanSettingsReportDelayMillis(
[all …]
DBleScanScreenStateTest.py47 self.scn_ad = self.android_devices[0]
52 utils.set_location_service(self.scn_ad, True)
72 generate_ble_scan_objects(self.scn_ad.droid)
73 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
78 self.scn_ad.ed.pop_event(
116 self.scn_ad.droid.wakeUpNow()
127 self.scn_ad.droid.bleStopBleScan(self.scan_callback)
160 self.scn_ad.droid.goToSleepNow()
173 self.scn_ad.droid.bleStopBleScan(self.scan_callback)
209 self.scn_ad.droid.goToSleepNow()
[all …]
DBleBackgroundScanTest.py50 self.scn_ad = self.android_devices[0]
55 utils.set_location_service(self.scn_ad, True)
61 enable_bluetooth(self.scn_ad.droid, self.scn_ad.ed)
62 self.scn_ad.droid.bluetoothDisableBLE()
69 self.scn_ad, self.active_adv_callback_list, self.adv_ad,
107 self.scn_ad.droid.bluetoothEnableBLE()
109 self.scn_ad.droid.bleSetScanSettingsScanMode(
112 self.scn_ad.droid)
113 self.scn_ad.droid.bleSetScanFilterDeviceName(
115 self.scn_ad.droid.bleBuildScanFilter(filter_list)
[all …]
DBleOnLostOnFoundTest.py44 self.scn_ad = self.android_devices[0]
49 utils.set_location_service(self.scn_ad, True)
55 self.scn_ad, self.active_adv_callback_list, self.adv_ad,
79 self.scn_ad.ed.pop_event(event_name, self.default_timeout)
115 filter_list = self.scn_ad.droid.bleGenFilterList()
116 self.scn_ad.droid.bleSetScanFilterDeviceName(
118 self.scn_ad.droid.bleSetScanSettingsScanMode(ble_scan_settings_modes[
120 self.scn_ad.droid.bleSetScanSettingsCallbackType(
122 self.scn_ad.droid.bleSetScanSettingsMatchMode(
124 self.scn_ad.droid.bleSetScanSettingsNumOfMatches(
[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]
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/google/ble/bt5/
DBt5ScanTest.py65 self.scn_ad = self.android_devices[0]
70 if not self.scn_ad.droid.bluetoothIsLeExtendedAdvertisingSupported():
80 self.scn_ad, self.active_scan_callback_list, self.adv_ad, [])
108 d = self.scn_ad.droid
165 self.scn_ad.droid.bleSetScanSettingsLegacy(False)
166 self.scn_ad.droid.bleSetScanSettingsPhy(ble_scan_settings_phys['1m'])
169 self.scn_ad.droid)
172 self.scn_ad.droid.bleSetScanFilterDeviceName(adv_device_name)
173 self.scn_ad.droid.bleBuildScanFilter(filter_list)
174 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
[all …]
/tools/test/connectivity/acts/tests/google/ble/beacon_tests/
DBeaconSwarmTest.py46 self.scn_ad = self.android_devices[0]
68 reset_bluetooth([self.scn_ad])
183 self.scn_ad.droid.bleSetScanSettingsScanMode(
186 self.scn_ad.droid)
187 self.scn_ad.droid.bleStartBleScan(filter_list, scan_settings,
190 event_info = self.scn_ad.ed.pop_event(
199 self.scn_ad.droid.bleStopBleScan(scan_callback)
225 self.scn_ad.droid.bleSetScanSettingsScanMode(
227 self.scn_ad.droid.bleSetScanSettingsReportDelayMillis(1000)
229 self.scn_ad.droid)
[all …]
/tools/test/connectivity/acts/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.py1114 def scan_and_verify_n_advertisements(scn_ad, max_advertisements): argument
1128 filter_list = scn_ad.droid.bleGenFilterList()
1129 scn_ad.droid.bleBuildScanFilter(filter_list)
1130 scan_settings = scn_ad.droid.bleBuildScanSetting()
1131 scan_callback = scn_ad.droid.bleGenScanCallback()
1132 scn_ad.droid.bleStartBleScan(filter_list, scan_settings, scan_callback)
1137 event = scn_ad.ed.pop_event(
1148 scn_ad.droid.bleStopBleScan(scan_callback)