Home
last modified time | relevance | path

Searched refs:utils (Results 1 – 25 of 165) sorted by relevance

1234567

/tools/repohooks/rh/
Dgit.py30 import rh.utils
37 result = rh.utils.run_command(cmd, capture_output=True)
42 result = rh.utils.run_command(cmd, capture_output=True)
53 result = rh.utils.run_command(cmd, capture_output=True)
60 result = rh.utils.run_command(cmd, capture_output=True)
66 result = rh.utils.run_command(cmd, capture_output=True)
77 result = rh.utils.run_command(cmd, capture_output=True)
92 return rh.utils.run_command(cmd, capture_output=True).output
118 return rh.utils.run_command(cmd, capture_output=True).output
122 RawDiffEntry = rh.utils.collection(
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/sniffer_lib/local/
Dlocal_base.py30 from acts import utils
57 utils.exe_cmd("ifconfig", self._interface, "down")
58 utils.exe_cmd("iwconfig", self._interface, "mode", "monitor")
59 utils.exe_cmd("ifconfig", self._interface, "up")
90 utils.exe_cmd("iwconfig", self._interface, "channel",
131 self._process = utils.start_standing_subprocess(cmd)
140 utils.stop_standing_subprocess(self._process, kill_signal=signal.SIGINT)
150 utils.wait_for_standing_subprocess(self._process, timeout)
/tools/acloud/internal/lib/
Dutils_test.py28 from acloud.internal.lib import utils
39 utils.CreateSshKeyPairIfNotExist(private_key, public_key)
49 utils.CreateSshKeyPairIfNotExist(private_key, public_key)
52 utils.SSH_KEYGEN_CMD + ["-C", getpass.getuser(), "-f", private_key],
60 @utils.RetryOnException(_IsValueError, num_retry)
77 self.assertRaises(ValueError, utils.RetryExceptionType,
91 self.assertRaises(ValueError, utils.RetryExceptionType,
Dbase_cloud_client.py33 from acloud.internal.lib import utils
85 return utils.RetryExceptionType(
214 return utils.Retry(
274 executor = utils.BatchHttpRequestExecutor(
/tools/test/connectivity/acts/tests/google/wifi/rtt/functional/
DRttDisableTest.py18 from acts import utils
61 asserts.assert_true(utils.force_airplane_mode(dut, True),
64 asserts.assert_true(utils.enable_doze(dut), "Can't enable doze")
66 utils.set_location_service(dut, False)
81 asserts.assert_true(utils.force_airplane_mode(dut, False),
84 asserts.assert_true(utils.disable_doze(dut), "Can't disable doze")
86 utils.set_location_service(dut, True)
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/
DAttachTest.py20 from acts import utils
121 asserts.assert_true(utils.enable_doze(dut), "Can't enable doze")
125 asserts.assert_true(utils.disable_doze(dut), "Can't disable doze")
138 utils.set_location_service(dut, False)
142 utils.set_location_service(dut, True)
157 utils.force_airplane_mode(dut, True)
162 utils.force_airplane_mode(dut, False)
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Derror_reporter.py22 from acts import utils
90 adb_uptime = utils.get_process_uptime('adb')
121 zygote_uptime = utils.get_device_process_uptime(adb, 'zygote')
133 netd_uptime = utils.get_device_process_uptime(adb, 'netd')
145 adbd_uptime = utils.get_device_process_uptime(adb, 'adbd')
179 sl4a_uptime = utils.get_device_process_uptime(
/tools/test/connectivity/tools/lab/metrics/
Dmetric.py17 from utils import job
18 from utils import shell
Dnetwork_metric.py18 from utils import job
19 from utils import shell
/tools/repohooks/tools/
Dclang-format.py34 import rh.utils
86 result = rh.utils.run_command(cmd, capture_output=True)
87 except rh.utils.RunCommandError as e:
105 rh.utils.run_command(['git', 'apply'], input=stdout)
Dgoogle-java-format.py35 import rh.utils
86 diff = rh.utils.run_command(diff_cmd, capture_output=True).output
94 stdout = rh.utils.run_command(cmd,
/tools/test/connectivity/acts/tests/google/wifi/
DWifiServiceApiTest.py24 from acts import utils
56 utils.require_sl4a((self.dut, ))
57 utils.sync_device_time(self.dut)
77 config_ssid = self.TEST_SSID_PREFIX + utils.rand_ascii_str(8)
78 config_password = utils.rand_ascii_str(8)
DWifiStaApConcurrencyTest.py27 import acts.utils as utils namespace
61 utils.require_sl4a((self.dut, self.dut_client))
62 utils.sync_device_time(self.dut)
63 utils.sync_device_time(self.dut_client)
139 acts.utils.set_location_service(self.dut, True)
147 acts.utils.set_location_service(self.dut, False)
195 ap_ssid = "softap_" + utils.rand_ascii_str(8)
196 ap_password = utils.rand_ascii_str(8)
DWifiSoftApTest.py22 from acts import utils
55 utils.require_sl4a((self.dut, self.dut_client))
56 utils.sync_device_time(self.dut)
57 utils.sync_device_time(self.dut_client)
84 ap_ssid = "softap_" + utils.rand_ascii_str(8)
85 ap_password = utils.rand_ascii_str(8)
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
DWifiBaseTest.py27 from acts import utils
72 ref_2g_ssid = '2g_%s' % utils.rand_ascii_str(ssid_length_2g)
73 ref_2g_passphrase = utils.rand_ascii_str(passphrase_length_2g)
75 ref_5g_ssid = '5g_%s' % utils.rand_ascii_str(ssid_length_5g)
76 ref_5g_passphrase = utils.rand_ascii_str(passphrase_length_5g)
135 open_2g_ssid = '2g_%s' % utils.rand_ascii_str(ssid_length_2g)
136 open_5g_ssid = '5g_%s' % utils.rand_ascii_str(ssid_length_5g)
/tools/test/connectivity/acts/framework/acts/libs/ota/
Dota_updater.py17 from acts import utils
63 utils.get_current_epoch_time())
/tools/test/connectivity/acts/framework/acts/test_utils/power/
DPowerBaseTest.py25 from acts import utils
224 utils.require_sl4a((self.dut, ))
229 utils.set_ambient_display(self.dut, False)
230 utils.set_auto_rotate(self.dut, False)
231 utils.set_adaptive_brightness(self.dut, False)
232 utils.sync_device_time(self.dut)
233 utils.set_location_service(self.dut, False)
234 utils.set_mobile_data_always_on(self.dut, False)
235 utils.disable_doze_light(self.dut)
236 utils.disable_doze(self.dut)
[all …]
DPowerCoexBaseTest.py19 from acts import utils
59 utils.set_mobile_data_always_on(self.dut, True)
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
DTelephonyLabPowerTest.py35 from acts.utils import create_dir
36 from acts.utils import disable_doze
37 from acts.utils import set_adaptive_brightness
38 from acts.utils import set_ambient_display
39 from acts.utils import set_auto_rotate
40 from acts.utils import set_location_service
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLivePostflightTest.py20 from acts import utils
60 utils.create_dir(crash_path)
81 utils.create_dir(crash_path)
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
DPowerBaseTest.py26 from acts import utils
33 from acts.utils import create_dir
34 from acts.utils import force_airplane_mode
35 from acts.utils import get_current_human_time
36 from acts.utils import set_adaptive_brightness
37 from acts.utils import set_ambient_display
38 from acts.utils import set_auto_rotate
39 from acts.utils import set_location_service
40 from acts.utils import sync_device_time
459 utils.create_dir(os.path.dirname(file_path))
/tools/test/connectivity/acts/framework/acts/controllers/
Diperf_client.py19 from acts import utils
49 utils.create_dir(self.log_path)
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_tools/
Dupdate_device_ota_tool.py24 from acts import utils
39 utils.unzip_maintain_permissions(self.command, self.unzip_path)
/tools/test/connectivity/acts/framework/acts/
Dconfig_parser.py24 from acts import utils
67 if l not in utils.valid_filename_chars:
241 configs = utils.load_config(test_config_path)
295 configs[k_log_path] = utils.abs_path(configs[k_log_path])
298 config_path, _ = os.path.split(utils.abs_path(test_config_path))
/tools/test/connectivity/acts/tests/google/power/tel/lab/temp/
Diperf_server.py21 from acts import utils
209 utils.create_dir(self.log_path)
235 self.iperf_process = utils.start_standing_subprocess(cmd)
252 utils.stop_standing_subprocess(self.iperf_process)

1234567