Home
last modified time | relevance | path

Searched refs:pri_ad (Results 1 – 21 of 21) sorted by relevance

/tools/test/connectivity/acts/framework/acts/test_utils/coex/
Dcoex_test_utils.py91 def connect_ble(pri_ad, sec_ad): argument
104 pri_ad.droid.bluetoothEnableBLE()
110 orchestrate_gatt_connection(pri_ad, sec_ad))
121 def collect_bluetooth_manager_dumpsys_logs(pri_ad): argument
130 out_file = "{}_{}".format(pri_ad.serial, "bluetooth_dumpsys.txt")
131 dumpsys_path = ''.join((pri_ad.log_path, "/BluetoothDumpsys"))
134 pri_ad.serial, dumpsys_path, out_file))
239 def device_discoverable(pri_ad, sec_ad): argument
249 pri_ad.droid.bluetoothMakeDiscoverable()
250 scan_mode = pri_ad.droid.bluetoothGetScanMode()
[all …]
DCoexBaseTest.py49 self.pri_ad = self.android_devices[0]
69 self.push_music_to_android_device(self.pri_ad)
70 self.path = self.pri_ad.log_path
74 wifi_test_device_init(self.pri_ad)
75 wifi_connect(self.pri_ad, self.network)
81 if not wifi_connection_check(self.pri_ad, self.network["SSID"]):
84 if not enable_bluetooth(self.pri_ad.droid, self.pri_ad.ed):
89 if not disable_bluetooth(self.pri_ad.droid):
97 reset_wifi(self.pri_ad)
98 wifi_toggle_state(self.pri_ad, False)
[all …]
Dbluez_test_utils.py302 def disconnect_bluetooth_profile(self, uuid, pri_ad): argument
316 connected_devices = pri_ad.droid.bluetoothGetConnectedDevices()
/tools/test/connectivity/acts/tests/google/coex/functionality_tests/
DWlanWithA2dpFunctionalityTest.py50 self.pri_ad, self.audio_receiver.mac_address,
56 clear_bonded_devices(self.pri_ad)
75 self.pri_ad, self.audio_receiver.mac_address,
81 self.pri_ad, self.audio_receiver.mac_address,
94 self.pri_ad.droid.bluetoothConnectBonded(
97 if not self.pri_ad.droid.bluetoothIsDeviceConnected(
100 self.pri_ad.droid.bluetoothDisconnectConnected(
107 if not perform_classic_discovery(self.pri_ad):
126 (self.pri_ad, self.audio_receiver.mac_address,
128 (perform_classic_discovery, (self.pri_ad,))]
[all …]
DWlanWithHfpFunctionalityTest.py46 self.pri_ad, self.sec_ad, self.sim_conf_file)
52 self.pri_ad, self.audio_receiver.mac_address,
58 clear_bonded_devices(self.pri_ad)
80 if not hangup_call(self.log, self.pri_ad):
95 self.pri_ad, self.audio_receiver.mac_address,
107 if not self.pri_ad.droid.bluetoothIsDeviceConnected(
117 self.audio_receiver, self.pri_ad, self.sec_ad,
128 self.audio_receiver, self.pri_ad, self.sec_ad,
130 (perform_classic_discovery, (self.pri_ad,))]
140 self.pri_ad, self.sec_ad, self.iperf["duration"],
[all …]
DCoexBtMultiProfileFunctionalityTest.py38 self.pri_ad, self.sec_ad, self.sim_conf_file)
44 self.pri_ad, self.audio_receiver.mac_address,
51 clear_bonded_devices(self.pri_ad)
64 self.pri_ad, self.audio_receiver.mac_address):
68 self.audio_receiver, self.pri_ad, self.sec_ad,
78 if not connect_ble(self.pri_ad, self.sec_ad):
82 self.pri_ad, self.audio_receiver.mac_address):
87 (self.audio_receiver, self.pri_ad, self.sec_ad,
DCoexBasicFunctionalityTest.py36 if not toggle_bluetooth(self.pri_ad, self.iterations):
47 if not perform_classic_discovery(self.pri_ad):
240 args = [lambda: start_fping(self.pri_ad, self.iperf["duration"])]
263 args = [lambda: start_fping(self.pri_ad, self.iperf["duration"])]
/tools/test/connectivity/acts/tests/google/coex/performance_tests/
DCoexBtMultiProfilePerformanceTest.py43 self.pri_ad, self.sec_ad, self.sim_conf_file)
49 self.pri_ad, self.audio_receiver.mac_address,
56 clear_bonded_devices(self.pri_ad)
69 if not initiate_call(self.log, self.pri_ad, self.re_phone_number):
72 if wait_for_dialing(self.log, self.pri_ad):
73 self.pri_ad.droid.bluetoothDisconnectConnectedProfile(
77 self.pri_ad, self.audio_receiver.mac_address,
84 if not hangup_call(self.log, self.pri_ad):
97 self.pri_ad, self.audio_receiver.mac_address):
100 if not connect_wlan_profile(self.pri_ad, self.network):
DWlanWithBlePerformanceTest.py38 self.pri_ad.droid.bluetoothDisableBLE()
45 self.pri_ad.droid.gattClientClose(bluetooth_gatt)
68 disconnect_gatt_connection(self.pri_ad, bluetooth_gatt,
70 close_gatt_client(self.pri_ad, bluetooth_gatt)
90 self.pri_ad.droid.bluetoothEnableBLE()
92 self.pri_ad.droid)
93 self.pri_ad.droid.bleStartBleScan(filter_list, scan_settings,
97 self.pri_ad.droid.bleStopBleScan(scan_callback)
118 self.pri_ad.droid.bluetoothEnableBLE()
124 orchestrate_gatt_connection(self.pri_ad, self.sec_ad))
DWlanWithA2dpPerformanceTest.py36 self.pri_ad, self.audio_receiver.mac_address,
42 clear_bonded_devices(self.pri_ad)
50 self.pri_ad, self.audio_receiver.mac_address,
60 if not perform_classic_discovery(self.pri_ad):
70 (self.pri_ad, self.audio_receiver.mac_address,
DWlanWithHfpPerformanceTest.py40 self.pri_ad, self.sec_ad, self.sim_conf_file)
46 self.pri_ad, self.audio_receiver.mac_address,
52 clear_bonded_devices(self.pri_ad)
76 if not hangup_call(self.log, self.pri_ad):
85 self.audio_receiver, self.pri_ad, self.sec_ad,
DWlanStandalonePerformanceTest.py28 if not disable_bluetooth(self.pri_ad.droid):
DCoexBasicPerformanceTest.py34 if not perform_classic_discovery(self.pri_ad):
/tools/test/connectivity/acts/tests/google/coex/stress_tests/
DCoexHfpStressTest.py46 self.pri_ad, self.audio_receiver.mac_address,
52 clear_bonded_devices(self.pri_ad)
70 self.pri_ad, self.audio_receiver.mac_address,
76 self.pri_ad, self.audio_receiver.mac_address,
95 if not hangup_call(self.log, self.pri_ad):
117 if not set_audio_route(self.log, self.pri_ad, AUDIO_ROUTE_SPEAKER):
119 hangup_call(self.log, self.pri_ad)
122 if not set_audio_route(self.log, self.pri_ad,
125 hangup_call(self.log, self.pri_ad)
127 if not hangup_call(self.log, self.pri_ad):
[all …]
DCoexBtMultiProfileStressTest.py45 clear_bonded_devices(self.pri_ad)
65 self.pri_ad, self.receiver.mac_address,
72 self.pri_ad, self.audio_receiver.mac_address,
79 self.pri_ad, self.receiver.mac_address,
86 self.pri_ad, self.audio_receiver.mac_address,
DCoexBasicStressTest.py48 if not self.pri_ad.droid.bluetoothStartDiscovery():
52 if not self.pri_ad.droid.bluetoothCancelDiscovery():
71 if not device_discoverable(self.pri_ad, self.sec_ad):
79 if not toggle_bluetooth(self.pri_ad, self.iterations):
/tools/test/connectivity/acts/tests/google/coex/slave_role/functionality_tests/
DWlanWithA2dpFunctionalitySlaveTest.py37 self.device_id = str(self.pri_ad.droid.bluetoothGetLocalAddress())
43 self.pri_ad.droid.bluetoothMakeDiscoverable()
47 self.pri_ad.droid.bluetoothStartPairingHelper(True)
57 clear_bonded_devices(self.pri_ad)
65 bluetooth_profiles["A2DP_SRC"], self.pri_ad):
90 self.pri_ad, self.audio_receiver.mac_address,
94 if not connect_wlan_profile(self.pri_ad, self.network):
DWlanWithHfpFunctionalitySlaveTest.py35 self.device_id = str(self.pri_ad.droid.bluetoothGetLocalAddress())
41 self.pri_ad.droid.bluetoothMakeDiscoverable()
45 self.pri_ad.droid.bluetoothStartPairingHelper(True)
54 clear_bonded_devices(self.pri_ad)
62 bluetooth_profiles["HFP_AG"], self.pri_ad):
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dbt_test_utils.py727 def pair_pri_to_sec(pri_ad, sec_ad, attempts=2, auto_confirm=True): argument
740 pri_ad.droid.bluetoothStartConnectionStateChangeMonitor(
744 if _pair_pri_to_sec(pri_ad, sec_ad, auto_confirm):
748 if not clear_bonded_devices(pri_ad):
764 def _wait_for_passkey_match(pri_ad, sec_ad): argument
769 pri_pairing_req = pri_ad.ed.pop_event(
774 pri_ad.log.info("Primary device received Pin: {}, Variant: {}".format(
794 pri_ad.droid.eventPost("BluetoothActionPairingRequestUserConfirm",
806 def _pair_pri_to_sec(pri_ad, sec_ad, auto_confirm): argument
810 pri_droid = pri_ad.droid
[all …]
/tools/test/connectivity/acts/tests/google/coex/slave_role/performance_tests/
DWlanWithA2dpPerformanceSlaveTest.py32 self.device_id = str(self.pri_ad.droid.bluetoothGetLocalAddress())
38 self.pri_ad.droid.bluetoothMakeDiscoverable()
42 self.pri_ad.droid.bluetoothStartPairingHelper(True)
52 clear_bonded_devices(self.pri_ad)
62 self.pri_ad, self.adapter_mac_address, self.music_file_to_play,
73 (self.pri_ad, self.adapter_mac_address,
DWlanWithHFPPerformanceSlaveTest.py39 self.pri_ad, self.sec_ad, self.sim_conf_file)
40 self.device_id = str(self.pri_ad.droid.bluetoothGetLocalAddress())
45 self.pri_ad.droid.bluetoothMakeDiscoverable()
49 self.pri_ad.droid.bluetoothStartPairingHelper(True)
59 clear_bonded_devices(self.pri_ad)