Home
last modified time | relevance | path

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

123

/test/vts-testcase/kernel/checkpoint/
DVtsKernelCheckpointTest.py35 extension = self.dut.adb.shell("getprop ro.boot." + prop, no_except = True)
41 contents = self.dut.adb.shell("cat " + filename + extension, no_except = True)
66 self.shell = self.dut.shell
87 self.dut.adb.shell("ls");
94 result = self.dut.adb.shell("getprop sys.boot_completed")
105 result = self.dut.adb.shell("getprop ro.product.first_api_level")
124 self.dut.adb.shell("setprop persist.vold.dont_commit_checkpoint 1")
125 self.dut.adb.shell("echo " + self._ORIGINALVALUE + " > " + self._CHECKPOINTTESTFILE)
126 result = self.dut.adb.shell("vdc checkpoint startCheckpoint 1", no_except = True)
131 self.dut.adb.shell("echo " + self._MODIFIEDVALUE + " > " + self._CHECKPOINTTESTFILE)
[all …]
/test/vts/utils/python/precondition/
Dprecondition_utils.py29 shell=None, argument
43 if shell is None:
44 dut.shell.InvokeTerminal("check_hal_preconditions")
45 shell = dut.shell.check_hal_preconditions
65 cmd_results = shell.Execute("ps -A")
80 if not target_file_utils.Exists(path_prefix, shell):
91 shell, hal, bitness, run_as_compliance_test)
97 def CheckFeaturePrecondition(test_instance, dut, shell=None): argument
123 if shell is None:
124 dut.shell.InvokeTerminal("check_feature_precondition")
[all …]
/test/mlts/benchmark/
Dbuild_and_run_benchmark.sh159 BUILD_DESCRIPTION=`adb shell getprop ro.build.description`
169 BUILD_VERSION_RELEASE=`adb shell getprop ro.build.version.release`
178 …while ! adb shell "am start -W $TEST_EXTENRAL_STORAGE && rm /sdcard/mlts_write_external_storage" >…
187 adb shell "pm grant com.android.nn.benchmark.app android.permission.WRITE_EXTERNAL_STORAGE"
189 if ! adb shell test -f /data/local.prop; then
190 adb shell 'echo ro.setupwizard.mode=DISABLED > /data/local.prop'
191 adb shell 'chmod 644 /data/local.prop'
192 adb shell 'settings put global device_provisioned 1*'
193 adb shell 'settings put secure user_setup_complete 1'
203 adb shell 'echo testing > /data/local/enable_menu_key'
[all …]
/test/vts/utils/python/file/
Dtarget_file_utils.py26 def _Test(shell, *args): argument
37 results = shell.Execute(cmd)
41 def Exists(filepath, shell): argument
51 return _Test(shell, "-e", filepath)
54 def IsDirectory(path, shell): argument
64 return _Test(shell, "-d", path)
67 def FindFiles(shell, path, name_pattern, options=None): argument
87 results = shell.Execute(cmd)
98 def ReadFileContent(filepath, shell): argument
112 results = shell.Execute(cmd)
[all …]
/test/vts/runners/host/
Dutils.py337 cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
451 shell=True,
458 shell=True,
614 ad.adb.shell("settings put global airplane_mode_on {}".format(
632 ad.adb.shell("dumpsys battery unplug")
633 ad.adb.shell("dumpsys deviceidle enable")
634 if (ad.adb.shell("dumpsys deviceidle force-idle") !=
639 adb_shell_result = ad.adb.shell("dumpsys deviceidle step")
645 ad.adb.shell("dumpsys battery").decode('utf-8'),
646 ad.adb.shell("dumpsys deviceidle").decode('utf-8')))
[all …]
/test/vts-testcase/kernel/ltp/
Denvironment_requirement_checker.py56 def __init__(self, shell): argument
57 self.shell = shell
60 self._shell_env = shell_environment.ShellEnvironment(self.shell)
64 def shell(self): member in EnvironmentRequirementChecker
68 @shell.setter
69 def shell(self, shell): argument
71 self._shell = shell
152 permission_result = self.shell.Execute(permission_command)
183 self.shell.Execute(bin_path_exist_commands)[const.EXIT_CODE])
187 self.shell.Execute(bin_path_exist_commands)[const.EXIT_CODE])
DKernelLtpTest.py97 self.shell = self._dut.shell
98 self.shell.SetConnTimeout(TIMEOUT_TCP_IN_SECS)
101 self.shell)
102 self._shell_env = shell_environment.ShellEnvironment(self.shell)
119 def shell(self): member in KernelLtpTest
123 @shell.setter
124 def shell(self, shell): member in KernelLtpTest
126 self._shell = shell
167 self.shell.Execute("mkdir %s -p" % ltp_configs.LTPDIR)
168 self.shell.Execute("restorecon -F -R %s" % ltp_configs.LTPDIR)
[all …]
/test/vts-testcase/kernel/ltp/shell_environment/
Dshell_environment.py36 def __init__(self, shell): argument
37 self.shell = shell
51 def shell(self): member in ShellEnvironment
55 @shell.setter
56 def shell(self, shell): member in ShellEnvironment
57 self._shell = shell
76 results = self.shell.Execute('cat %s' %
/test/vts-testcase/performance/audio_loopback_test/
DAudioLoopbackTest.py45 self.dut.adb.shell("mkdir -p %s" % self.FULL_DATA_DIR_PATH)
47 self.dut.adb.shell("pm install -r -g /data/local/tmp/Loopback.apk")
50 self.dut.adb.shell("rm -rf %s" % self.FULL_DATA_DIR_PATH)
98 self.dut.shell.Execute(
100 self.dut.shell.Execute([
106 results = self.dut.shell.Execute(
111 results = self.dut.shell.Execute(
114 results = self.dut.shell.Execute(
/test/vts/testcases/template/hal_hidl_host_test/
Dhal_hidl_host_test.py40 self.shell = self.dut.shell
53 self, self.dut, self.shell, self.run_as_compliance_test):
66 self.profiling.EnableVTSProfiling(self.shell)
90 self.profiling.EnableVTSProfiling(self.shell)
97 self.profiling.DisableVTSProfiling(self.shell)
147 self.shell, service, self.abi_bitness,
/test/vts/utils/python/profiling/
Dprofiling_utils.py158 results = dut.shell.Execute("ls " + target_trace_file)
183 def EnableVTSProfiling(self, shell, hal_instrumentation_lib_path=None): argument
204 shell.Execute(
209 shell.Execute("chmod 777 " + TARGET_PROFILING_TRACE_PATH)
211 shell.Execute("setprop hal.instrumentation.lib.path.32 " +
213 shell.Execute("setprop hal.instrumentation.lib.path.64 " +
217 shell.Execute("setprop hal.instrumentation.profile.args true")
219 shell.Execute("setprop hal.instrumentation.profile.args false")
220 shell.Execute("setprop hal.instrumentation.enable true")
222 def DisableVTSProfiling(self, shell): argument
[all …]
/test/vts/utils/python/controllers/
Dandroid_device.py419 self.shell = None
448 if self.shell:
449 self.shell.shell_default_nohup = value
480 id_str = self.adb.shell("id -un").strip().decode("utf-8")
577 out = self.adb.shell(cmd)
635 out = self.adb.shell('uname -m')
646 out = self.adb.shell(total_memory_command)
698 response = self.adb.shell(command)
932 res = self.adb.shell(cmd, no_except=True)
954 self.adb.shell("start")
[all …]
/test/vts/utils/python/coverage/
Dsancov_utils.py106 serial = dut.adb.shell('getprop ro.serialno').strip()
112 entries = dut.adb.shell(
123 processes = dut.adb.shell('ps -p {0} -o comm='.format(
139 dut.adb.shell(cmd.format(process_name))
152 serial = dut.adb.shell('getprop ro.serialno').strip()
157 dut.adb.shell(self._FLUSH_COMMAND.format(hal))
286 serial = dut.adb.shell('getprop ro.serialno').strip()
287 product = dut.adb.shell('getprop ro.build.product').strip()
303 dut.adb.shell('find {0}/{1} -name \"*.sancov\"'.format(
316 dut.adb.shell('rm -rf {0}/{1}'.format(self._TARGET_SANCOV_PATH,
/test/vts/testcases/template/llvmfuzzer_test/
Dllvmfuzzer_test.py61 self._dut.adb.shell("mkdir %s -p" % config.FUZZER_TEST_DIR)
65 self._dut.adb.shell("rm -rf %s" % config.FUZZER_TEST_DIR)
148 self._dut.adb.shell("mkdir %s -p" % corpus_dir)
156 self._dut.adb.shell("\"%s\"" % cmd)
174 self._dut.adb.shell(chmod_cmd)
186 stdout = self._dut.adb.shell("'%s'" % fuzz_cmd)
213 output = self._dut.adb.shell(cmd)
/test/vts-testcase/security/system_property/
DVtsTrebleSysPropTest.py115 self.shell = self.dut.shell
161 self.shell, contexts_path, target_file_utils.IsReadable)
233 self.shell),
251 self.shell),
257 self.shell, self._PRODUCT_PROPERTY_CONTEXTS_FILE_PATH,
320 self.shell),
338 self.shell, self._SYSTEM_PROPERTY_CONTEXTS_FILE_PATH,
/test/vts/testcases/host/kernel_proc_file_api_test/
Dvts_kernel_proc_file_api_test.py142 out, err, r_code = self.dut.shell.Execute("which incident_helper")
149 out, err, r_code = self.dut.shell.Execute(
160 self.dut.shell.Execute("echo u > %s" % filepath)
163 self.dut.shell.Execute("echo b > %s" % filepath)
180 out, err, r_code = self.dut.shell.Execute(
198 self.dut.shell.Execute("echo %d %s > %s" % (root_uid, state, filepath))
200 self.dut.shell.Execute("echo foo")
266 out, _, _ = dut.shell.Execute('uname -m')
Dproc_utils.py77 self.shell = Shell(serial_number)
82 out, err, r_code = self.shell.Execute('stat -c %%a %s' % filepath)
137 out, err, r_code = self.shell.Execute("id -un")
155 out, err, r_code = self.shell.Execute(cmd)
/test/vts/testcases/template/binary_test/
Dbinary_test.py187 self.shell = self._dut.shell
200 self, self._dut, self.shell):
210 cmd_results = self.shell.Execute(cmd)
260 self.shell.Execute('ls %s' % dst)
329 self.profiling.DisableVTSProfiling(self.shell)
341 cmd_results = self.shell.Execute(cmd, no_except=True)
351 cmd_results = self.shell.Execute(cmd, no_except=True)
481 self.profiling.EnableVTSProfiling(self.shell,
486 command_results = self.shell.Execute(cmd)
492 self.profiling.DisableVTSProfiling(self.shell)
/test/vts-testcase/performance/binder_benchmark/
DBinderPerformanceTest.py76 self.dut.shell.Execute("stop")
77 self.dut.shell.Execute("setprop sys.boot_completed 0")
89 self.dut.shell.Execute("start")
111 results = self.dut.shell.Execute([
/test/vts-testcase/performance/hwbinder_benchmark/
DHwBinderPerformanceTest.py78 self.dut.shell.Execute("stop")
79 self.dut.shell.Execute("setprop sys.boot_completed 0")
91 self.dut.shell.Execute("start")
115 results = self.dut.shell.Execute([
/test/vts-testcase/security/poc/host/
DSecurityPoCKernelTest.py64 self._dut.adb.shell("rm -rf %s" % config.POC_TEST_DIR)
68 self._dut.adb.shell("mkdir %s -p" % config.POC_TEST_DIR)
88 out = self._dut.adb.shell("getprop ro.product.model")
147 self._dut.adb.shell(chmod_cmd)
156 stdout = self._dut.adb.shell(test_cmd)
/test/vts/testcases/host/kernel_proc_file_api_test/proc_tests/
DProcUidCpuPowerTests.py42 def file_optional(self, shell=None, dut=None): argument
67 def file_optional(self, shell=None, dut=None): argument
100 def file_optional(self, shell=None, dut=None): argument
/test/vts-testcase/hal/treble/platform_version/
DVtsTreblePlatformVersionTest.py32 self.dut.shell.InvokeTerminal("VtsTreblePlatformVersionTest")
37 results = self.dut.shell.Execute("getprop " + prop)
58 results = self.dut.shell.Execute("printenv " + env)
/test/vts-testcase/kernel/ltp/shell_environment/definitions/base_definitions/
Dcheck_setup_cleanup.py213 def shell(self): member in CheckSetupCleanup
215 return self.context.shell
230 return self.shell.Execute(cmd)
/test/vts-testcase/performance/fmq_benchmark/
DFmqPerformanceTest.py84 results = self.dut.shell.Execute([
99 results = self.dut.shell.Execute([
106 self.dut.shell.Execute("kill -9 `pidof mq_benchmark_service%s`" %

123