/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | coex_test_utils.py | 91 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 …]
|
D | CoexBaseTest.py | 49 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 …]
|
D | bluez_test_utils.py | 302 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/ |
D | WlanWithA2dpFunctionalityTest.py | 50 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 …]
|
D | WlanWithHfpFunctionalityTest.py | 46 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 …]
|
D | CoexBtMultiProfileFunctionalityTest.py | 38 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,
|
D | CoexBasicFunctionalityTest.py | 36 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/ |
D | CoexBtMultiProfilePerformanceTest.py | 43 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):
|
D | WlanWithBlePerformanceTest.py | 38 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))
|
D | WlanWithA2dpPerformanceTest.py | 36 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,
|
D | WlanWithHfpPerformanceTest.py | 40 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,
|
D | WlanStandalonePerformanceTest.py | 28 if not disable_bluetooth(self.pri_ad.droid):
|
D | CoexBasicPerformanceTest.py | 34 if not perform_classic_discovery(self.pri_ad):
|
/tools/test/connectivity/acts/tests/google/coex/stress_tests/ |
D | CoexHfpStressTest.py | 46 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 …]
|
D | CoexBtMultiProfileStressTest.py | 45 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,
|
D | CoexBasicStressTest.py | 48 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/ |
D | WlanWithA2dpFunctionalitySlaveTest.py | 37 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):
|
D | WlanWithHfpFunctionalitySlaveTest.py | 35 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/ |
D | bt_test_utils.py | 727 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/ |
D | WlanWithA2dpPerformanceSlaveTest.py | 32 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,
|
D | WlanWithHFPPerformanceSlaveTest.py | 39 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)
|