/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | coex_test_utils.py | 75 def avrcp_actions(pri_ad, bt_device): argument 86 current_volume = pri_ad.droid.getMediaVolume() 90 if current_volume == pri_ad.droid.getMediaVolume(): 91 pri_ad.log.error("Increase volume failed") 94 current_volume = pri_ad.droid.getMediaVolume() 98 if current_volume == pri_ad.droid.getMediaVolume(): 99 pri_ad.log.error("Decrease volume failed") 110 def connect_ble(pri_ad, sec_ad): argument 123 pri_ad.droid.bluetoothEnableBLE() 130 orchestrate_gatt_connection(pri_ad, sec_ad)) [all …]
|
D | CoexBaseTest.py | 66 self.pri_ad = self.android_devices[0] 108 wifi_test_device_init(self.pri_ad) 109 wifi_connect(self.pri_ad, self.network, num_of_tries=5) 117 self.log_path = os.path.join(self.pri_ad.log_path, 123 if not wifi_connection_check(self.pri_ad, self.network['SSID']): 126 if not enable_bluetooth(self.pri_ad.droid, self.pri_ad.ed): 140 if not disable_bluetooth(self.pri_ad.droid): 152 reset_wifi(self.pri_ad) 153 wifi_toggle_state(self.pri_ad, False) 185 output_path = '{}{}{}'.format(self.pri_ad.log_path, '/Fping/', [all …]
|
D | CoexPerformanceBaseTest.py | 109 if not wifi_connection_check(self.pri_ad, self.network["SSID"]): 110 wifi_connect(self.pri_ad, self.network, num_of_tries=5) 122 if not disable_bluetooth(self.pri_ad.droid): 156 if not wifi_connection_check(self.pri_ad, self.network["SSID"]): 157 wifi_test_device_init(self.pri_ad) 158 wifi_connect(self.pri_ad, self.network, num_of_tries=5) 159 adb_rssi_results = self.pri_ad.search_logcat(RSSI_RESULTS) 215 if not wifi_connection_check(self.pri_ad, self.network["SSID"]): 230 adb_rssi_poll_results = self.pri_ad.search_logcat( 232 adb_rssi_results = self.pri_ad.search_logcat( [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | bt_test_utils.py | 248 def connect_pri_to_sec(pri_ad, sec_ad, profiles_set, attempts=2): argument 268 if _connect_pri_to_sec(pri_ad, sec_ad, profiles_set): 276 def _connect_pri_to_sec(pri_ad, sec_ad, profiles_set): argument 291 pri_ad.log.info("Profile {} is not supported list {}".format( 297 for paired_device in pri_ad.droid.bluetoothGetBondedDevices(): 304 pri_ad.log.error("Not paired to {}".format(sec_ad.serial)) 309 pri_ad.droid.bluetoothConnectBonded( 315 pri_ad.log.info("Profiles to be connected {}".format(profiles_set)) 321 if is_hfp_client_device_connected(pri_ad, sec_addr): 325 if is_a2dp_src_device_connected(pri_ad, sec_addr): [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/ |
D | apollo_utils.py | 24 def get_serial_object(pri_ad, serial_device): argument 38 pri_ad.log.error('Apollo device not found') 42 def avrcp_actions(pri_ad, buds_device): argument 52 pri_ad.log.debug("Setting voume to 0") 53 pri_ad.droid.setMediaVolume(0) 54 current_volume = pri_ad.droid.getMediaVolume() 55 pri_ad.log.info('Current volume to {}'.format(current_volume)) 59 pri_ad.log.info('Volume increased to {}'.format( 60 pri_ad.droid.getMediaVolume())) 61 if current_volume == pri_ad.droid.getMediaVolume(): [all …]
|
/tools/test/connectivity/acts_tests/tests/google/coex/functionality_tests/ |
D | WlanWithHfpFunctionalityTest.py | 44 self.pri_ad, self.sec_ad, self.sim_conf_file) 50 self.pri_ad, self.audio_receiver.mac_address, 56 clear_bonded_devices(self.pri_ad) 78 if not hangup_call(self.log, self.pri_ad): 93 self.pri_ad, self.audio_receiver.mac_address, 105 if not self.pri_ad.droid.bluetoothIsDeviceConnected( 114 if not initiate_disconnect_from_hf(self.audio_receiver, self.pri_ad, 125 (self.audio_receiver, self.pri_ad, self.sec_ad, 128 (self.pri_ad, self.iperf["duration"], self.json_file, 138 …lambda: initiate_disconnect_call_dut(self.pri_ad, self.sec_ad, self.iperf["duration"], self.re_pho… [all …]
|
D | CoexBtMultiProfileFunctionalityTest.py | 43 self.pri_ad, self.sec_ad, self.sim_conf_file) 45 self.push_music_to_android_device(self.pri_ad) 51 self.pri_ad, self.audio_receiver.mac_address, 58 clear_bonded_devices(self.pri_ad) 71 self.pri_ad, self.audio_receiver.mac_address): 75 self.audio_receiver, self.pri_ad, self.sec_ad, 85 if not connect_ble(self.pri_ad, self.sec_ad): 89 self.pri_ad, self.audio_receiver.mac_address): 94 (self.audio_receiver, self.pri_ad, self.sec_ad,
|
D | CoexBasicFunctionalityTest.py | 42 if not toggle_bluetooth(self.pri_ad, self.iperf["duration"]): 54 self.pri_ad, self.iperf["duration"], self.json_file, 248 tasks = [(start_fping, (self.pri_ad, self.iperf["duration"], 250 (toggle_bluetooth, (self.pri_ad, self.iperf["duration"]))] 272 tasks = [(start_fping, (self.pri_ad, self.iperf["duration"], 275 (self.pri_ad, self.iperf["duration"], self.json_file,
|
/tools/test/connectivity/acts_tests/tests/google/coex/performance_tests/ |
D | CoexBtMultiProfilePerformanceTest.py | 49 self.pri_ad, self.sec_ad, self.sim_conf_file) 51 self.push_music_to_android_device(self.pri_ad) 57 self.pri_ad, self.audio_receiver.mac_address, 64 clear_bonded_devices(self.pri_ad) 81 if not initiate_call(self.log, self.pri_ad, self.re_phone_number): 84 if wait_for_dialing(self.log, self.pri_ad): 85 self.pri_ad.droid.bluetoothDisconnectConnectedProfile( 89 self.pri_ad, self.audio_receiver.mac_address, 96 if not hangup_call(self.log, self.pri_ad): 109 self.pri_ad, self.audio_receiver.mac_address): [all …]
|
D | WlanWithBlePerformanceTest.py | 48 self.pri_ad.droid.bluetoothDisableBLE() 55 self.pri_ad.droid.gattClientClose(bluetooth_gatt) 78 disconnect_gatt_connection(self.pri_ad, bluetooth_gatt, 80 close_gatt_client(self.pri_ad, bluetooth_gatt) 101 self.pri_ad.droid.bluetoothEnableBLE() 103 self.pri_ad.droid) 104 self.pri_ad.droid.bleStartBleScan(filter_list, scan_settings, 108 self.pri_ad.droid.bleStopBleScan(scan_callback) 131 self.pri_ad.droid.bluetoothEnableBLE() 139 orchestrate_gatt_connection(self.pri_ad, self.sec_ad))
|
D | WlanWithA2dpPerformanceTest.py | 43 self.pri_ad, self.music_file) 53 self.pri_ad.droid.bluetoothStartPairingHelper(True) 54 self.pri_ad.droid.bluetoothMakeDiscoverable() 56 self.pri_ad, self.headset_mac_address, 62 clear_bonded_devices(self.pri_ad) 69 (self.pri_ad, self.headset_mac_address, 81 (self.pri_ad, self.iperf["duration"], self.json_file, 90 (self.pri_ad, self.headset_mac_address, 94 (avrcp_actions, (self.pri_ad, self.bt_device))]
|
D | WlanWithHfpPerformanceTest.py | 37 self.pri_ad, self.sec_ad, self.sim_conf_file) 43 self.pri_ad, self.audio_receiver.mac_address, 49 clear_bonded_devices(self.pri_ad) 76 if not hangup_call(self.log, self.pri_ad): 84 (self.audio_receiver, self.pri_ad, self.sec_ad,
|
D | CoexBasicPerformanceTest.py | 45 (self.pri_ad, self.iperf['duration'], self.json_file, 56 if not enable_bluetooth(self.pri_ad.droid, self.pri_ad.ed):
|
D | WlanStandalonePerformanceTest.py | 33 if not disable_bluetooth(self.pri_ad.droid):
|
/tools/test/connectivity/acts_tests/tests/google/coex/stress_tests/ |
D | CoexHfpStressTest.py | 45 self.pri_ad, self.audio_receiver.mac_address, 51 clear_bonded_devices(self.pri_ad) 69 self.pri_ad, self.audio_receiver.mac_address, 75 self.pri_ad, self.audio_receiver.mac_address, 94 if not hangup_call(self.log, self.pri_ad): 116 if not set_audio_route(self.log, self.pri_ad, AUDIO_ROUTE_SPEAKER): 118 hangup_call(self.log, self.pri_ad) 121 if not set_audio_route(self.log, self.pri_ad, 124 hangup_call(self.log, self.pri_ad) 126 if not hangup_call(self.log, self.pri_ad): [all …]
|
D | CoexBtMultiProfileStressTest.py | 49 clear_bonded_devices(self.pri_ad) 69 self.pri_ad, self.receiver.mac_address, 76 self.pri_ad, self.audio_receiver.mac_address, 83 self.pri_ad, self.receiver.mac_address, 90 self.pri_ad, self.audio_receiver.mac_address,
|
D | CoexBasicStressTest.py | 52 if not self.pri_ad.droid.bluetoothStartDiscovery(): 56 if not self.pri_ad.droid.bluetoothCancelDiscovery(): 75 if not device_discoverable(self.pri_ad, self.sec_ad): 83 if not toggle_bluetooth(self.pri_ad, self.iperf["duration"]):
|
/tools/test/connectivity/acts_tests/tests/google/coex/hotspot_tests/ |
D | HotspotWiFiChannelTest.py | 57 self.pri_ad = self.android_devices[0] 69 self.pri_ad.adb.shell_nb(CNSS_CMD) 72 self.pri_ad.adb.shell('killall cnss_diag') 73 stop_wifi_tethering(self.pri_ad) 77 self.pri_ad.pull_files([CNSS_LOG_PATH], os.path.join( 79 self.pri_ad.adb.shell('rm -rf {}'.format(CNSS_LOG_PATH)) 148 toggle_airplane_mode(self.log, self.pri_ad, True) 173 toggle_airplane_mode(self.log, self.pri_ad, False) 190 wutils.set_wifi_country_code(self.pri_ad, WifiEnums.CountryCode.US) 198 start_wifi_tethering(self.pri_ad, self.network['SSID'],
|