Home
last modified time | relevance | path

Searched refs:shell (Results 1 – 25 of 108) sorted by relevance

12345

/tools/repohooks/rh/
Dshell_unittest.py34 import rh.shell
91 return rh.shell.shell_unquote(rh.shell.shell_quote(s))
93 self._testData(rh.shell.shell_quote, tests_quote)
94 self._testData(rh.shell.shell_unquote, tests_unquote)
114 self._testData(rh.shell.cmd_to_str, tests)
123 self.assertTrue(rh.shell.boolean_shell_value(v, True))
124 self.assertFalse(rh.shell.boolean_shell_value(v, False))
127 self.assertRaises(ValueError, rh.shell.boolean_shell_value, v, True)
130 self.assertTrue(rh.shell.boolean_shell_value(v, True))
131 self.assertTrue(rh.shell.boolean_shell_value(v, False))
[all …]
Dutils.py35 import rh.shell
51 return rh.shell.cmd_to_str(self.cmd)
156 shell = kwargs.pop('shell', False)
157 if not shell:
263 shell=False, env=None, extra_env=None, ignore_sigint=False, argument
374 if not shell:
377 shell = False
378 elif shell:
395 stderr=stderr, shell=False, env=env,
/tools/test/connectivity/acts/tests/google/wifi/
DWifiPowerTest.py78 self.dut.adb.shell("settings put system screen_brightness 0")
122 self.dut.adb.shell(start_pmc_cmd)
123 self.dut.adb.shell("setprop log.tag.PMC VERBOSE")
126 self.dut.adb.shell("%sServerIP %s" % (pmc_set_params,
128 self.dut.adb.shell("%sServerPort %s" % (pmc_set_params,
131 self.dut.adb.shell("rm %s" % pmc_iperf_json_file)
144 self.dut.adb.shell("rm %s" % pmc_iperf_json_file)
168 self.dut.adb.shell(pmc_stop_iperf_client)
201 self.dut.adb.shell(pmc_interval_cmd % self.scan_interval)
202 self.dut.adb.shell(pmc_start_connect_scan_cmd)
[all …]
DWifiConnectedMacRandomizationTest.py64 self.dut.adb.shell(TURN_ON_MAC_RANDOMIZATION)
66 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "1",
119 return ad.adb.shell(GET_MAC_ADDRESS)
138 self.dut.adb.shell(TURN_OFF_MAC_RANDOMIZATION)
140 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "0",
241 self.dut_softap.adb.shell(LOG_CLEAR)
256 log = self.dut_softap.adb.shell(LOG_GREP.format(mac))
258 log = self.dut_softap.adb.shell(LOG_GREP.format(self.dut_factory_mac))
DWifiDiagnosticsTest.py93 self.dut.adb.shell("rm data/vendor/tombstones/wifi/*")
95 self.dut.adb.shell("lshal debug android.hardware.wifi@1.2::IWifi")
100 file_count_plus_one = self.dut.adb.shell("ls -l data/vendor/tombstones/wifi | wc -l")
/tools/test/connectivity/acts/framework/acts/test_utils/bt/
Dshell_commands_lib.py31 self.dut.adb.shell("dumpsys battery set level {}".format(level))
35 self.dut.adb.shell("settings put global ble_scan_always_enabled 0")
39 self.dut.adb.shell("settings put global ble_scan_always_enabled 1")
43 self.dut.adb.shell("echo $$ > /dev/cpuset/top-app/tasks")
44 self.dut.adb.shell("cat /dev/urandom > /dev/null &")
Dnative_bt_test_utils.py28 pid = n.adb.shell("pidof -s bluetoothtbd")
32 shell=True)
/tools/test/connectivity/tools/lab/metrics/
Dmetric.py18 from utils import shell
28 def __init__(self, shell=shell.ShellCommand(job)): argument
29 self._shell = shell
Dnetwork_metric.py19 from utils import shell
32 def __init__(self, ip_list=None, shell=shell.ShellCommand(job)): argument
33 Metric.__init__(self, shell=shell)
/tools/test/connectivity/acts/tests/google/nfc/
DNfcBasicFunctionalityTest.py32 self.dut.adb.shell("setprop nfc.app_log_level 255")
33 self.dut.adb.shell("setprop nfc.enable_protocol_log 255")
34 self.dut.adb.shell("setprop nfc.nxp_log_level_global 5")
35 self.dut.adb.shell("setprop nfc.nxp_log_level_extns 5")
36 self.dut.adb.shell("setprop nfc.nxp_log_level_hal 5")
37 self.dut.adb.shell("setprop nfc.nxp_log_level_nci 5")
38 self.dut.adb.shell("setprop nfc.nxp_log_level_tml 5")
39 self.dut.adb.shell("setprop nfc.nxp_log_level_dnld 5")
/tools/test/connectivity/tools/lab/tests/
Dversion_metric_test.py30 metric_obj = version_metric.FastbootVersionMetric(shell=fake_shell)
44 metric_obj = version_metric.FastbootVersionMetric(shell=fake_shell)
58 metric_obj = version_metric.FastbootVersionMetric(shell=fake_shell)
72 metric_obj = version_metric.AdbVersionMetric(shell=fake_shell)
86 metric_obj = version_metric.AdbVersionMetric(shell=fake_shell)
98 metric_obj = version_metric.PythonVersionMetric(shell=fake_shell)
110 metric_obj = version_metric.KernelVersionMetric(shell=fake_shell)
Dprocess_time_metric_test.py28 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell)
35 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell)
45 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell)
57 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell)
80 metric_obj = process_time_metric.ProcessTimeMetric(shell=fake_shell)
Dnetwork_metric_test.py28 metric_obj = NetworkMetric(['8.8.8.8'], shell=fake_shell)
34 metric_obj = NetworkMetric(shell=fake.MockShellCommand(
41 metric_obj = NetworkMetric(shell=fake.MockShellCommand(
49 ['8.8.8.8'], shell=fake.MockShellCommand(fake_result=mock_result))
Dverify_metric_test.py28 metric_obj = verify_metric.VerifyMetric(shell=fake_shell)
44 metric_obj = verify_metric.VerifyMetric(shell=fake_shell)
60 metric_obj = verify_metric.VerifyMetric(shell=fake_shell)
78 metric_obj = verify_metric.VerifyMetric(shell=fake_shell)
95 metric_obj = verify_metric.VerifyMetric(shell=fake_shell)
111 metric_obj = verify_metric.VerifyMetric(shell=fake_shell)
Dzombie_metric_test.py30 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell)
46 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell)
63 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell)
79 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell)
95 metric_obj = zombie_metric.ZombieMetric(shell=fake_shell)
Duptime_metric_test.py30 metric_obj = uptime_metric.UptimeMetric(shell=fake_shell)
39 metric_obj = uptime_metric.UptimeMetric(shell=fake_shell)
Dtime_sync_metric_test.py30 metric_obj = time_sync_metric.TimeSyncMetric(shell=fake_shell)
41 metric_obj = time_sync_metric.TimeSyncMetric(shell=fake_shell)
/tools/test/connectivity/acts/framework/acts/test_utils/power/
DPowerBaseTest.py135 self.dut.adb.shell('mv /vendor/bin/chre /vendor/bin/chre_renamed')
136 self.dut.adb.shell('pkill chre')
244 self.dut.adb.shell(AOD_OFF)
247 self.dut.adb.shell(LIFT)
248 self.dut.adb.shell(DOUBLE_TAP)
249 self.dut.adb.shell(JUMP_TO_CAMERA)
250 self.dut.adb.shell(RAISE_TO_CAMERA)
251 self.dut.adb.shell(FLIP_CAMERA)
252 self.dut.adb.shell(ASSIST_GESTURE)
253 self.dut.adb.shell(ASSIST_GESTURE_ALERT)
[all …]
DPowerBTBaseTest.py45 self.dut.adb.shell(START_PMC_CMD)
46 self.dut.adb.shell(PMC_VERBOSE_CMD)
56 self.dut.adb.shell(BLE_LOCATION_SCAN_DISABLE)
77 self.dut.adb.shell(BLE_LOCATION_SCAN_ENABLE)
135 self.dut.adb.shell(msg)
/tools/test/connectivity/acts/framework/acts/controllers/sl4a_lib/
Dsl4a_manager.py148 self.adb.shell(_SL4A_LAUNCH_SERVER_CMD % device_port)
183 return self.adb.shell(self._get_all_ports_command()).split()
206 self.adb.shell(
221 if self.adb.shell(
226 self.adb.shell(
228 self.adb.shell(
231 self.adb.shell(_SL4A_START_SERVICE_CMD)
294 self.adb.shell(_SL4A_CLOSE_SERVER_CMD % port)
/tools/acloud/public/acloud_kernel/
Dkernel_swapper_test.py62 self.subprocess_call.assert_called_once_with(scp_cmd, shell=True)
71 self.subprocess_call.assert_called_once_with(reboot_cmd, shell=True)
90 mount_cmd, shell=True), mock.call(
91 scp_cmd, shell=True), mock.call(
92 reboot_cmd, shell=True)
/tools/test/connectivity/acts/framework/acts/controllers/
Dnative_android_device.py100 pid = self.adb.shell("pidof -s sl4n", ignore_status=True)
102 self.adb.shell("kill {}".format(pid))
103 pid = self.adb.shell("pidof -s sl4n", ignore_status=True)
106 shell=True)
Dandroid_device.py492 return "0" == self.adb.shell("id -u")
496 return "0" == self.adb.shell("id -u")
633 out = self.adb.shell(
737 self.adb.shell("logpersist.stop --clear")
738 self.adb.shell("logpersist.start")
789 output = self.adb.shell(
809 self.adb.shell(
831 out = self.adb.shell(
857 self.adb.shell(
878 stdout = self.adb.shell("bugreportz -v")
[all …]
/tools/test/connectivity/acts/tests/google/ble/power/
DGattPowerTest.py66 self.per_ad.adb.shell(PowerBaseTest.START_PMC_CMD)
67 self.per_ad.adb.shell(self.PMC_VERBOSE_CMD)
106 self.per_ad.adb.shell(self.GATT_SERVER_MSG)
115 self.cen_ad.adb.shell(clientmsg)
/tools/test/connectivity/acts/framework/tests/controllers/sl4a_lib/
Dsl4a_manager_test.py159 adb.shell = lambda _, **kwargs: ''
184 adb.shell = lambda _, **kwargs: ''
249 adb.shell = lambda _: ''
261 adb.shell = lambda _: '12345 67890'
274 adb.shell = lambda _: '12345 67890'
286 adb.shell = lambda _, **kwargs: 'asdf'
296 adb.shell = lambda _, **kwargs: ''
321 adb.shell = mock.Mock(side_effect=['', '', ''])
329 adb.shell.assert_called_with(sl4a_manager._SL4A_START_SERVICE_CMD)
424 adb.shell = close

12345