/tools/test/connectivity/acts/tests/google/tel/live/ |
D | TelLiveEmergencyBase.py | 83 self.dut = ad 84 output = self.dut.adb.shell("dumpsys carrier_config") 93 self.dut.adb.shell(" ".join( 112 if not unlock_sim(self.dut): 113 abort_all_tests(self.dut.log, "unable to unlock SIM") 117 self.dut.ensure_screen_on() 118 self.dut.exit_setup_wizard() 119 reset_device_password(self.dut, None) 120 output = self.dut.adb.shell("dumpsys carrier_config") 124 self.dut.adb.shell(" ".join( [all …]
|
D | TelLiveImsSettingsTest.py | 79 self.dut = self.android_devices[0] 82 self.carrier_configs = dumpsys_carrier_config(self.dut) 83 self.dut_capabilities = self.dut.telephony.get("capabilities", []) 84 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities) 99 self.dut_wfc_modes = self.dut.telephony.get("wfc_modes", []) 103 if not call_setup_teardown(self.log, self.android_devices[1], self.dut, 104 self.dut, None, is_phone_in_call_iwlan): 106 self.dut, self.dut, None, 108 self.dut.log.error("MT WFC call failed") 110 if not call_setup_teardown(self.log, self.dut, self.android_devices[1], [all …]
|
D | TelLiveRebootStressTest.py | 91 self.dut = self.android_devices[0] 94 self.dut_model = get_model_name(self.dut) 100 self.dut_capabilities = self.dut.telephony.get("capabilities", []) 101 self.dut_wfc_modes = self.dut.telephony.get("wfc_modes", []) 110 self.dut.log.error("%s failed with %s", method, e) 112 self.dut.log.info("%s is %s before tests start", method, 116 self.dut.log.info("To be tested: %s", self.default_testing_func_names) 147 if not ensure_phone_subscription(self.log, self.dut): 148 self.dut.log.error("Subscription check failed") 155 if not wait_for_state(self.dut.droid.imsIsVolteProvisionedOnDevice, [all …]
|
D | TelLiveConnectivityMonitorBaseTest.py | 126 self.dut = self.android_devices[0] 128 self.dut_model = get_model_name(self.dut) 129 self.dut_operator = get_operator_name(self.log, self.dut) 130 self.dut_capabilities = self.dut.telephony.get("capabilities", []) 131 self.dut_wfc_modes = self.dut.telephony.get("wfc_modes", []) 134 self.dut.log.info("DUT capabilities: %s", self.dut_capabilities) 143 bring_up_connectivity_monitor(self.dut) 145 if "Permissive" not in self.dut.adb.shell("su root getenforce"): 146 self.dut.adb.shell("su root setenforce 0") 149 self.dut.log.info("Pulling %s", CALL_DATA_LOGS) [all …]
|
D | TelLiveEmergencyTest.py | 56 toggle_airplane_mode_by_adb(self.log, self.dut, False) 75 if not phone_setup_csfb(self.log, self.dut): 96 if not phone_setup_voice_3g(self.log, self.dut): 120 if not phone_setup_voice_2g(self.log, self.dut): 146 self.log, self.dut, True, WFC_MODE_WIFI_PREFERRED, 148 self.dut.log.error("Failed to setup WFC.") 176 self.log, self.dut, False, WFC_MODE_WIFI_PREFERRED, 178 self.dut.log.error("Failed to setup WFC.") 216 toggle_airplane_mode_by_adb(self.log, self.dut, True) 234 toggle_airplane_mode_by_adb(self.log, self.dut, False) [all …]
|
D | TelLiveSettingsTest.py | 50 self.dut = self.android_devices[0] 53 self.carrier_configs = dumpsys_carrier_config(self.dut) 54 self.dut_capabilities = self.dut.telephony.get("capabilities", []) 69 revert_default_telephony_setting(self.dut) 70 self.dut.log.info("Call telephony factory reset") 71 self.dut.droid.telephonyFactoryReset() 73 return verify_default_telephony_setting(self.dut) 98 self.dut.log.info("Disable mobile_data_always_on") 99 set_mobile_data_always_on(self.dut, False) 101 return self.dut.adb.shell( [all …]
|
D | TelLiveLockedSimTest.py | 76 unlock_sim(self.dut) 83 self.log, self.dut, False, WFC_MODE_WIFI_PREFERRED, 85 self.dut.log.error("Failed to setup WFC in non-APM.") 89 self.log, self.dut, True, WFC_MODE_WIFI_PREFERRED, 91 self.dut.log.error("Failed to setup WFC in APM.") 93 if not is_sim_locked(self.dut): 94 self.dut.reboot(stop_at_lock_screen=True) 96 droid, ed = self.dut.get_droid() 99 self.dut.log.warning("Failed to start sl4a!") 100 self.dut.log.info("SIM at state %s", get_sim_state(self.dut)) [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiNetworkRequestTest.py | 53 self.dut = self.android_devices[0] 54 wutils.wifi_test_device_init(self.dut) 75 self.dut.droid.wakeLockAcquireBright() 76 self.dut.droid.wakeUpNow() 79 wutils.wifi_toggle_state(self.dut, True) 80 self.dut.ed.clear_all_events() 83 self.dut.droid.wakeLockRelease() 84 self.dut.droid.goToSleepNow() 85 self.dut.droid.wifiReleaseNetworkAll() 86 self.dut.droid.wifiDisconnect() [all …]
|
D | WifiNetworkSuggestionTest.py | 52 self.dut = self.android_devices[0] 53 wutils.wifi_test_device_init(self.dut) 72 self.dut.droid.wifiRemoveNetworkSuggestions([]) 75 self.dut.droid.wakeLockAcquireBright() 76 self.dut.droid.wakeUpNow() 78 wutils.wifi_toggle_state(self.dut, True) 79 self.dut.ed.clear_all_events() 82 self.dut.droid.wakeLockRelease() 83 self.dut.droid.goToSleepNow() 84 self.dut.droid.wifiRemoveNetworkSuggestions([]) [all …]
|
D | WifiManagerTest.py | 54 self.dut = self.android_devices[0] 56 wutils.wifi_test_device_init(self.dut) 72 wutils.wifi_toggle_state(self.dut, True) 87 wutils.wifi_toggle_state(self.dut, True) 94 wutils.reset_wifi(self.dut) 102 self.dut.take_bug_report(test_name, begin_time) 103 self.dut.cat_adb_log(test_name, begin_time) 126 def get_connection_data(self, dut, network): argument 137 params = (network, dut) 139 connect_data = dut.droid.wifiGetConnectionInfo() [all …]
|
D | WifiPowerTest.py | 67 self.dut = self.android_devices[0] 68 self.mon.attach_device(self.dut) 73 force_airplane_mode(self.dut, True), 74 "Can not turn on airplane mode on: %s" % self.dut.serial) 75 set_location_service(self.dut, False) 76 set_adaptive_brightness(self.dut, False) 77 set_ambient_display(self.dut, False) 78 self.dut.adb.shell("settings put system screen_brightness 0") 79 set_auto_rotate(self.dut, False) 87 wutils.wifi_test_device_init(self.dut) [all …]
|
D | WifiWakeTest.py | 46 self.dut = self.android_devices[0] 47 wutils.wifi_test_device_init(self.dut) 49 acts.utils.set_location_service(self.dut, True) 50 self.dut.droid.wifiScannerToggleAlwaysAvailable(True) 92 self.dut.droid.wakeLockAcquireBright() 93 self.dut.droid.wakeUpNow() 98 wutils.reset_wifi(self.dut) 99 wutils.wifi_toggle_state(self.dut, new_state=True) 101 self.dut.droid.wifiStartTrackingStateChange() 102 self.dut.droid.wifiStopTrackingStateChange() [all …]
|
D | WifiEnterpriseTest.py | 43 self.dut = self.android_devices[0] 44 wutils.wifi_test_device_init(self.dut) 143 self.dut.droid.setDevicePassword(self.device_password) 147 wutils.reset_wifi(self.dut) 148 self.dut.droid.disableDevicePassword(self.device_password) 149 self.dut.ed.clear_all_events() 152 self.dut.droid.wifiStartTrackingStateChange() 153 self.dut.droid.wakeLockAcquireBright() 154 self.dut.droid.wakeUpNow() 155 wutils.reset_wifi(self.dut) [all …]
|
D | WifiStressTest.py | 54 self.dut = self.android_devices[0] 56 wutils.wifi_test_device_init(self.dut) 83 self.dut.droid.wakeLockAcquireBright() 84 self.dut.droid.wakeUpNow() 87 if self.dut.droid.wifiIsApEnabled(): 88 wutils.stop_wifi_tethering(self.dut) 89 self.dut.droid.wakeLockRelease() 90 self.dut.droid.goToSleepNow() 91 wutils.reset_wifi(self.dut) 94 self.dut.take_bug_report(test_name, begin_time) [all …]
|
D | WifiSoftApTest.py | 44 self.dut = self.android_devices[0] 58 utils.require_sl4a((self.dut, self.dut_client)) 59 utils.sync_device_time(self.dut) 62 self.dut.droid.wifiSetCountryCode(wutils.WifiEnums.CountryCode.US) 65 self.dut.droid.wifiEnableVerboseLogging(1) 66 asserts.assert_equal(self.dut.droid.wifiGetVerboseLoggingLevel(), 1, 71 wutils.wifi_toggle_state(self.dut, True) 74 if self.dut.model in self.dbs_supported_models: 84 wutils.stop_wifi_tethering(self.dut) 85 wutils.reset_wifi(self.dut) [all …]
|
D | WifiPasspointTest.py | 62 self.dut = self.android_devices[0] 63 wutils.wifi_test_device_init(self.dut) 72 wutils.wifi_toggle_state(self.dut, True) 79 self.dut.droid.wakeLockAcquireBright() 80 self.dut.droid.wakeUpNow() 84 self.dut.droid.wakeLockRelease() 85 self.dut.droid.goToSleepNow() 86 wutils.reset_wifi(self.dut) 90 self.dut.take_bug_report(test_name, begin_time) 107 self.dut.droid.addUpdatePasspointConfig(passpoint_config) [all …]
|
D | WifiCrashStressTest.py | 40 self.dut = self.android_devices[0] 42 wutils.wifi_test_device_init(self.dut) 44 if not self.dut.is_apk_installed("com.google.mdstest"): 60 self.dut.droid.wakeLockAcquireBright() 61 self.dut.droid.wakeUpNow() 62 wutils.wifi_toggle_state(self.dut, True) 68 if self.dut.droid.wifiIsApEnabled(): 69 wutils.stop_wifi_tethering(self.dut) 70 self.dut.droid.wakeLockRelease() 71 self.dut.droid.goToSleepNow() [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/ |
D | AttachTest.py | 39 dut = self.android_devices[0] 40 dut.droid.wifiAwareAttach(False) 41 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED) 42 autils.fail_on_event(dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED) 51 dut = self.android_devices[0] 52 dut.droid.wifiAwareAttach(True) 53 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED) 54 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_IDENTITY_CHANGED) 64 dut = self.android_devices[0] 67 id1 = dut.droid.wifiAwareAttach(False, None, True) [all …]
|
D | NonConcurrencyTest.py | 54 dut = self.android_devices[0] 57 id = dut.droid.wifiAwareAttach() 58 autils.wait_for_event(dut, aconsts.EVENT_CB_ON_ATTACHED) 62 dut.droid.wifiP2pInitialize() 64 wutils.start_wifi_tethering(dut, self.TETHER_SSID, password=None) 67 autils.wait_for_event(dut, aconsts.BROADCAST_WIFI_AWARE_NOT_AVAILABLE) 71 wutils.stop_wifi_tethering(dut) 76 dut = self.android_devices[0] 80 dut.droid.wifiP2pInitialize() 82 wutils.start_wifi_tethering(dut, self.TETHER_SSID, password=None) [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/bt/ |
D | gattc_lib.py | 40 def __init__(self, log, dut, target_mac_addr=None): argument 41 self.dut = dut 54 self.dut.droid.bleSetScanSettingsScanMode( 56 filter_list = self.dut.droid.bleGenFilterList() 57 scan_settings = self.dut.droid.bleBuildScanSetting() 58 scan_callback = self.dut.droid.bleGenScanCallback() 60 self.dut.droid.bleSetScanFilterDeviceName("BLE Rect") 61 self.dut.droid.bleBuildScanFilter(filter_list) 62 self.dut.droid.bleStartBleScan(filter_list, scan_settings, 66 event = self.dut.ed.pop_event(event_name, 10) [all …]
|
D | gatts_lib.py | 42 dut = None variable in GattServerLib 50 def __init__(self, log, dut): argument 51 self.dut = dut 59 for service in self.dut.droid.gattGetServiceUuidList(self.gatt_server): 60 self.dut.log.info("GATT Server service uuid: {}".format(service)) 63 instance_id = self.dut.droid.gattServerGetCharacteristicInstanceId( 65 uuid = self.dut.droid.gattServerGetCharacteristicUuid( 67 self.dut.log.info( 74 self.gatt_server_callback = self.dut.droid.gattServerCreateGattServerCallback( 76 self.gatt_server = self.dut.droid.gattServerOpenGattServer( [all …]
|
D | ble_lib.py | 35 def __init__(self, log, dut): argument 37 self.dut = dut 49 event = self.dut.ed.pop_events(regex, 5, small_timeout) 51 self.dut.log.error("Failed to get success or failed event.") 54 self.dut.log.info("Advertisement started successfully.") 57 self.dut.log.info("Advertisement failed to start.") 65 self.dut.droid.bleSetAdvertiseSettingsAdvertiseMode( 67 self.dut.droid.bleSetAdvertiseSettingsIsConnectable(True) 69 generate_ble_advertise_objects(self.dut.droid)) 71 self.dut.droid.bleStartBleAdvertisingWithScanResponse( [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/power/ |
D | PowerBaseTest.py | 108 self.dut = self.android_devices[0] 113 self.mon.attach_device(self.dut) 121 if 'pass_fail_threshold_' + self.dut.model in file: 140 self.dut.adb.shell('mv /vendor/bin/chre /vendor/bin/chre_renamed') 141 self.dut.adb.shell('pkill chre') 230 self.dut.log.info('Now set the device to Rockbottom State') 231 utils.require_sl4a((self.dut, )) 232 self.dut.droid.connectivityToggleAirplaneMode(False) 234 self.dut.droid.connectivityToggleAirplaneMode(True) 236 utils.set_ambient_display(self.dut, False) [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/test_actions/ |
D | apollo_acts.py | 81 self.dut = apollo_dev 86 status = self.dut.get_bt_status() 98 apollo_status = self.dut.get_bt_status() 104 apollo_status = self.dut.get_bt_status() 124 target_addr = self.dut.bluetooth_address 131 if not bt_util.bt_unpair(phone, self.dut): 133 bt_util.bt_pair_and_connect(phone, self.dut) 141 if not bt_util.check_device_bt(device=self.dut, profiles=profiles): 159 target_addr = self.dut.bluetooth_address 164 phone, self.dut, factory_reset_dut=factory_reset_dut) [all …]
|
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/ |
D | RangeApSupporting11McTest.py | 50 def run_test_rtt_80211mc_supporting_aps(self, dut, accuracy_evaluation=False): argument 59 rutils.scan_with_rtt_support_constraint(dut, True, repeat=10), 61 dut.log.debug("RTT Supporting APs=%s", rtt_supporting_aps) 62 events = rutils.run_ranging(dut, rtt_supporting_aps, self.NUM_ITER, 68 dut.log.debug("Stats=%s", stats) 108 dut = self.android_devices[0] 109 self.run_test_rtt_80211mc_supporting_aps(dut) 115 dut = self.android_devices[0] 116 self.run_test_rtt_80211mc_supporting_aps(dut, accuracy_evaluation=True) 130 dut = self.android_devices[0] [all …]
|