Home
last modified time | relevance | path

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

12345678

/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
84 return rh.shell.cmd_to_str(self.cmd)
120 return '' if self.cmd is None else rh.shell.cmd_to_str(self.cmd)
267 shell=False, env=None, extra_env=None, combine_stdout_stderr=False, argument
365 if not shell:
368 shell = False
369 elif shell:
382 stderr=popen_stderr, shell=False, env=env,
/tools/test/connectivity/acts/framework/acts/test_utils/gnss/
Ddut_log_test_utils.py48 device_mask_file = ad.adb.shell('test -e %s && echo exists' % cfg_path)
61 ad.adb.shell(NOHUP_CMD.format(cfg_path, DEVICE_DIAGMDLOG_FOLDER))
73 mask_folder_exists = ad.adb.shell(
75 diag_folder_exists = ad.adb.shell(
78 ad.adb.shell("mkdir " + DEVICE_CFG_FOLDER)
79 ad.adb.shell("mkdir " + DEVICE_DIAGMDLOG_FOLDER)
108 output = ad.adb.shell("pgrep diag_mdlog")
127 ps_output = ad.adb.shell("pgrep diag_mdlog")
130 output = ad.adb.shell("diag_mdlog -k")
137 ad.adb.shell("rm -rf " + DEVICE_DIAGMDLOG_FOLDER + "*.*")
[all …]
Dgnss_test_utils.py85 if not int(ad.adb.shell("settings get global mobile_data")) == 1:
98 ad.adb.shell("echo DEBUG_LEVEL = 5 >> /vendor/etc/gps.conf")
99 ad.adb.shell("echo %r >> /data/local.prop" % LOCAL_PROP_FILE_CONTENTS)
100 ad.adb.shell("chmod 644 /data/local.prop")
101 ad.adb.shell("setprop persist.logd.logpersistd.size 20000")
102 ad.adb.shell("setprop persist.logd.size 16777216")
103 ad.adb.shell("setprop persist.vendor.radio.adb_log_on 1")
104 ad.adb.shell("setprop persist.logd.logpersistd logcatd")
105 ad.adb.shell("setprop log.tag.copresGcore VERBOSE")
106 ad.adb.shell("sync")
[all …]
/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/acts/framework/acts/
Dutils.py400 shell=True)
439 def start_standing_subprocess(cmd, check_health_delay=0, shell=True): argument
462 shell=shell,
522 ad.adb.shell("settings put global auto_time 0", ignore_status=True)
523 ad.adb.shell("settings put global auto_time_zone 0", ignore_status=True)
628 ad.adb.shell("settings put global airplane_mode_on {}".format(
630 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE")
643 output = ad.adb.shell("dumpsys battery")
659 adb_shell_result = ad.adb.shell("dumpsys deviceidle get charging")
674 ad.adb.shell("dumpsys battery unplug")
[all …]
/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/acts/tests/google/gnss/
DLocationPlatinumTest.py74 if int(self.ad.adb.shell('settings get secure location_mode')) != 3:
75 self.ad.adb.shell('settings put secure location_mode 3')
79 if int(self.ad.adb.shell('settings get global mobile_data')) != 1:
82 self.ad.adb.shell('pm grant com.android.gpstool %s' %
101 self.ad.adb.shell('pm %s %s %s' %
109 self.ad.adb.shell('input keyevent 61')
111 self.ad.adb.shell('input keyevent 66')
193 self.ad.adb.shell('settings put secure location_mode 0')
194 self.ad.adb.shell('settings put secure location_mode 3')
206 self.ad.adb.shell('settings put secure location_mode 0')
[all …]
/tools/test/connectivity/acts/framework/acts/test_utils/users/
Dusers.py28 out = android_device.adb.shell("pm list users")
37 out = android_device.adb.shell("pm create-user {}".format(user_name))
43 android_device.adb.shell("am switch-user {}".format(user_id))
51 return "Success" in android_device.adb.shell("pm remove-user {}".format(user_id))
55 out = android_device.adb.shell("dumpsys activity")
/tools/tradefederation/core/atest/test_runners/
Drobolectric_test_runner_unittest.py70 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
71 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
85 subprocess.Popen("echo -n '%s' >> %s" %(data1, event_file.name), shell=True)
90 shell=True)
106 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
107 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
137 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
138 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
/tools/asuite/atest/test_runners/
Drobolectric_test_runner_unittest.py73 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
74 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
88 subprocess.Popen("echo -n '%s' >> %s" %(data1, event_file.name), shell=True)
93 shell=True)
109 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
110 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
140 subprocess.call("echo '%s' -n >> %s" %(data, event_file.name), shell=True)
141 robo_proc = subprocess.Popen("sleep %s" %str(self.polling_time * 2), shell=True)
/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)
298 self.adb.shell(_SL4A_CLOSE_SERVER_CMD % port)
/tools/acloud/public/acloud_kernel/
Dkernel_swapper_test.py66 self.subprocess_call.assert_called_once_with(scp_cmd, shell=True)
75 self.subprocess_call.assert_called_once_with(reboot_cmd, shell=True)
95 mock.call(mount_cmd, shell=True),
96 mock.call(scp_cmd, shell=True),
97 mock.call(reboot_cmd, shell=True)
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dnet_test_utils.py81 ad.adb.shell(cmd)
97 ping_result = ad.adb.shell("ping -c 3 -W 2 %s" % vpn_ping_addr)
123 ad.adb.shell("ip xfrm state flush")
135 ip_xfrm_state = ad.adb.shell("ip xfrm state")
245 ad.adb.shell("killall -9 tcpdump")
248 out = ad.adb.shell("ls -l %s" % TCPDUMP_PATH)
250 ad.adb.shell("mkdir %s" % TCPDUMP_PATH)
252 ad.adb.shell("rm -rf %s/*" % TCPDUMP_PATH, ignore_status=True)
294 ad.adb.shell("rm -rf %s/*" % TCPDUMP_PATH, ignore_status=True)
429 ad.adb.shell(USB_TETHERING_MODE, ignore_status=True)
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dandroid_device.py489 self.adb.shell('getprop ro.build.version.sdk'))
503 return "0" == self.adb.shell("id -u")
507 return "0" == self.adb.shell("id -u")
660 out = self.adb.shell(
807 self.adb.shell("logpersist.stop --clear")
808 self.adb.shell("logpersist.start")
841 output = self.adb.shell(
861 self.adb.shell(
884 out = self.adb.shell(
911 self.adb.shell(
[all …]
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)
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/device/apps/
Ddismiss_dialogs_test.py40 self._dismiss_dialogs_util._dut.adb.shell.assert_not_called()
53 self._dismiss_dialogs_util._dut.adb.shell.assert_called_with(
67 self._dismiss_dialogs_util._dut.adb.shell.assert_called_with(
/tools/test/connectivity/acts/tests/google/wifi/
DWifiConnectedMacRandomizationTest.py63 self.dut.adb.shell(TURN_ON_MAC_RANDOMIZATION)
65 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "1",
118 return ad.adb.shell(GET_MAC_ADDRESS)
137 self.dut.adb.shell(TURN_OFF_MAC_RANDOMIZATION)
139 self.dut.adb.shell(GET_MAC_RANDOMIZATION_STATUS), "0",
240 self.dut_softap.adb.shell(LOG_CLEAR)
255 log = self.dut_softap.adb.shell(LOG_GREP.format(mac))
257 log = self.dut_softap.adb.shell(LOG_GREP.format(self.dut_factory_mac))
DWifiDiagnosticsTest.py92 self.dut.adb.shell("rm data/vendor/tombstones/wifi/*")
94 self.dut.adb.shell("lshal debug android.hardware.wifi@1.2::IWifi")
99 file_count_plus_one = self.dut.adb.shell("ls -l data/vendor/tombstones/wifi | wc -l")
/tools/test/connectivity/acts/framework/acts/test_utils/tel/
Dtel_test_utils.py231 ad.adb.shell("service call iphonesubinfo 13"))
235 return ad.adb.shell("service call iphonesubinfo 11")
253 return ad.adb.shell("service call iphonesubinfo 5")
551 cur_state = bool(int(ad.adb.shell("settings get global airplane_mode_on")))
559 ad.adb.shell("settings put global airplane_mode_on %s" % int(new_state))
560 ad.adb.shell("am broadcast -a android.intent.action.AIRPLANE_MODE")
564 changed_state = bool(int(ad.adb.shell("settings get global airplane_mode_on")))
613 out = ad.adb.shell(
621 out = ad.adb.shell(
639 out = ad.adb.shell("dumpsys network_stack " \
[all …]
/tools/test/connectivity/acts/tests/google/tel/live/
DTelLiveEmergencyBase.py82 output = self.dut.adb.shell("dumpsys carrier_config")
91 self.dut.adb.shell(" ".join(
118 output = self.dut.adb.shell("dumpsys carrier_config")
122 self.dut.adb.shell(" ".join(
133 self.dut.adb.shell(cmd)
143 self.dut.adb.shell(cmd)
155 qcril_database_path = self.dut.adb.shell("find /data -iname qcril.db")
160 self.dut.adb.shell(
223 output = self.dut.adb.shell(
229 self.dut.adb.shell(cmd)
[all …]
/tools/trebuchet/scripts/
Drun-user-switch-perf.sh11 adb shell atrace -o /sdcard/atrace-ss.txt -t 10 ss &
13 adb shell am switch-user $TargetUser
/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
/tools/acloud/internal/lib/
Dssh_test.py88 shell=True,
106 shell=True,
119 shell=True,
137 shell=True,
150 shell=True,
168 shell=True,

12345678