Home
last modified time | relevance | path

Searched refs:dut (Results 1 – 25 of 37) sorted by relevance

12

/test/vts-testcase/kernel/checkpoint/
DVtsKernelCheckpointTest.py32 self.dut.adb.root()
35 extension = self.dut.adb.shell("getprop ro.boot." + prop, no_except = True)
41 contents = self.dut.adb.shell("cat " + filename + extension, no_except = True)
65 self.dut = self.android_devices[0]
66 self.shell = self.dut.shell
70 self.dut.adb.reboot()
72 self.dut.adb.wait_for_device(timeout=900)
73 except self.dut.adb.AdbError as e:
80 self.dut.adb.root()
87 self.dut.adb.shell("ls");
[all …]
Dvts_kernel_checkpoint_test.py34 self.dut = utils.AndroidDevice(serial_number)
44 out, err, return_code = self.dut.Execute("getprop ro.boot." + prop)
50 out, err, return_code = self.dut.Execute("cat " + filename + extension)
91 self.dut.Execute("ls");
98 out, err, return_code = self.dut.Execute("getprop sys.boot_completed")
109 out, err, return_code = self.dut.Execute("getprop ro.product.first_api_level")
128 self.dut.Execute("setprop persist.vold.dont_commit_checkpoint 1")
129 self.dut.Execute("echo " + self._ORIGINALVALUE + " > " + self._CHECKPOINTTESTFILE)
130 out, err, return_code = self.dut.Execute("vdc checkpoint startCheckpoint 1")
135 self.dut.Execute("echo " + self._MODIFIEDVALUE + " > " + self._CHECKPOINTTESTFILE)
[all …]
/test/vts/testcases/host/kernel_proc_file_api_test/
Dvts_kernel_proc_file_api_test.py138 self.dut = utils.AndroidDevice(serial_number)
142 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)
164 self.assertTrue(self.dut.IsShutdown(10), "Device is still alive.")
165 self.assertTrue(self.dut.WaitForBootCompletion(300))
166 self.assertTrue(self.dut.Root())
180 out, err, r_code = self.dut.shell.Execute(
198 self.dut.shell.Execute("echo %d %s > %s" % (root_uid, state, filepath))
[all …]
/test/vts/utils/python/precondition/
Dprecondition_utils.py28 dut, argument
44 dut.shell.InvokeTerminal("check_hal_preconditions")
45 shell = dut.shell.check_hal_preconditions
97 def CheckFeaturePrecondition(test_instance, dut, shell=None): argument
118 if not dut.isFrameworkRunning():
119 if not dut.start():
124 dut.shell.InvokeTerminal("check_feature_precondition")
125 shell = dut.shell.check_feature_precondition
135 def MeetFirstApiLevelPrecondition(test_instance, dut=None): argument
164 if not dut:
[all …]
/test/vts/utils/python/fuzzer/
Dcorpus_manager_test.py23 dut = mock.Mock() variable
24 dut.build_alias = 'Pie.118.wj12e'
25 dut.product_type = 'Pixel3_XL'
26 dut.serial = 'HT1178BBZWQ'
39 _corpus_manager = corpus_manager.CorpusManager({}, dut)
48 _corpus_manager = corpus_manager.CorpusManager({}, dut)
60 _corpus_manager = corpus_manager.CorpusManager({}, dut)
74 _corpus_manager = corpus_manager.CorpusManager({}, dut)
88 _corpus_manager = corpus_manager.CorpusManager({}, dut)
102 _corpus_manager = corpus_manager.CorpusManager({}, dut)
[all …]
/test/vts-testcase/security/system_property/
Dvts_treble_sys_prop_test.py172 self.dut = utils.AndroidDevice(serial_number)
212 self.dut._GetProp("ro.actionable_compatible_property.enabled"),
221 self.dut.AdbPull(contexts_path, self._temp_dir)
234 if self.dut.GetLaunchApiLevel() <= api.PLATFORM_API_LEVEL_R:
250 self.dut.AdbPull(property_contexts_file, downloaded)
277 if self.dut.GetLaunchApiLevel() <= api.PLATFORM_API_LEVEL_P:
290 if self.dut.GetLaunchApiLevel() <= api.PLATFORM_API_LEVEL_P:
294 if (not self.dut.Exists(self._ODM_PROPERTY_CONTEXTS_FILE_PATH)):
306 if self.dut.GetLaunchApiLevel() <= api.PLATFORM_API_LEVEL_P:
310 if (not self.dut.Exists(self._PRODUCT_PROPERTY_CONTEXTS_FILE_PATH)):
[all …]
DVtsTrebleSysPropTest.py114 self.dut = self.android_devices[0]
115 self.shell = self.dut.shell
155 self.dut.getProp("ro.actionable_compatible_property.enabled"),
164 self.dut.adb.pull(contexts_path, self._temp_dir)
188 self.dut.adb.pull(property_contexts_file, downloaded)
216 self.dut.getLaunchApiLevel() <= api.PLATFORM_API_LEVEL_P,
228 self.dut.getLaunchApiLevel() <= api.PLATFORM_API_LEVEL_P,
246 self.dut.getLaunchApiLevel() <= api.PLATFORM_API_LEVEL_P,
261 self.dut.adb.pull(self._PRODUCT_PROPERTY_CONTEXTS_FILE_PATH,
288 self.dut.getLaunchApiLevel() <= api.PLATFORM_API_LEVEL_Q,
[all …]
/test/vts/utils/python/controllers/
Dandroid_device_test.py29 self.dut = android_device.AndroidDevice(available_serials[0])
39 self.dut.start()
42 self.assertTrue(self.dut.isFrameworkRunning(), err_msg)
45 self.dut.stop()
48 self.assertFalse(self.dut.isFrameworkRunning(), err_msg)
51 self.dut.start()
54 self.assertTrue(self.dut.isFrameworkRunning(), err_msg)
/test/vts-testcase/performance/audio_loopback_test/
DAudioLoopbackTest.py44 self.dut = self.android_devices[0]
45 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/utils/python/coverage/
Dcoverage_utils.py237 def _ClearTargetGcov(self, dut, serial, path_suffix=None): argument
248 self._ExecuteOneAdbShellCommand(dut, serial, _CLEAN_TRACE_COMMAND)
250 def _GetHalPids(self, dut, hal_names): argument
264 dut.rootAdb()
265 entries = dut.adb.shell(
276 def InitializeDeviceCoverage(self, dut=None, serial=None): argument
285 self._ExecuteOneAdbShellCommand(dut, serial, "setenforce 0")
286 self._ExecuteOneAdbShellCommand(dut, serial, _FLUSH_COMMAND)
288 self._ClearTargetGcov(dut, serial)
292 pids = self._GetHalPids(dut, self._hal_names)
[all …]
Dsancov_utils.py98 def InitializeDeviceCoverage(self, dut, hals): argument
106 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))
144 def FlushDeviceCoverage(self, dut, hals): argument
152 serial = dut.adb.shell('getprop ro.serialno').strip()
157 dut.adb.shell(self._FLUSH_COMMAND.format(hal))
275 def ProcessDeviceCoverage(self, dut, hals): argument
286 serial = dut.adb.shell('getprop ro.serialno').strip()
[all …]
/test/vts-testcase/performance/binder_benchmark/
DBinderPerformanceTest.py75 self.dut = self.android_devices[0]
76 self.dut.shell.Execute("stop")
77 self.dut.shell.Execute("setprop sys.boot_completed 0")
78 self._cpu_freq = cpu_frequency_scaling.CpuFrequencyScalingController(self.dut)
89 self.dut.shell.Execute("start")
90 self.dut.waitForBootCompletion()
111 results = self.dut.shell.Execute([
/test/vts-testcase/performance/hwbinder_benchmark/
DHwBinderPerformanceTest.py77 self.dut = self.android_devices[0]
78 self.dut.shell.Execute("stop")
79 self.dut.shell.Execute("setprop sys.boot_completed 0")
80 self._cpu_freq = cpu_frequency_scaling.CpuFrequencyScalingController(self.dut)
91 self.dut.shell.Execute("start")
92 self.dut.waitForBootCompletion()
115 results = self.dut.shell.Execute([
/test/vts/testcases/template/hal_hidl_host_test/
Dhal_hidl_host_test.py39 self.dut = self.android_devices[0]
40 self.shell = self.dut.shell
53 self, self.dut, self.shell, self.run_as_compliance_test):
59 self.coverage.InitializeDeviceCoverage(self.dut)
81 self.coverage.SetCoverageData(dut=self.dut, isGlobal=True)
96 self.profiling.ProcessTraceDataForTestCase(self.dut)
/test/vts-testcase/hal/treble/platform_version/
DVtsTreblePlatformVersionTest.py31 self.dut = self.android_devices[0]
32 self.dut.shell.InvokeTerminal("VtsTreblePlatformVersionTest")
37 results = self.dut.shell.Execute("getprop " + prop)
58 results = self.dut.shell.Execute("printenv " + env)
72 launchApiLevel = self.dut.GetLaunchApiLevel()
110 firstApiLevel = self.dut.getLaunchApiLevel()
Dvts_treble_platform_version_test.py32 self.dut = utils.AndroidDevice(serial_number)
37 out, err, return_code = self.dut.Execute("getprop " + prop)
58 out, err, return_code = self.dut.Execute("printenv " + env)
72 firstApiLevel = self.dut.GetLaunchApiLevel()
103 firstApiLevel = self.dut.GetLaunchApiLevel()
/test/vts/testcases/host/kernel_proc_file_api_test/proc_tests/
DProcQtaguidCtrlTest.py57 def file_optional(self, shell=None, dut=None): argument
71 (version, patchlevel, sublevel) = self._kernel_version(dut)
77 def _kernel_version(self, dut): argument
90 out, _, _ = dut.shell.Execute(cmd)
DKernelProcFileTestBase.py139 def set_api_level(self, dut): argument
140 self.api_level = dut.getLaunchApiLevel(strict=False)
181 def prepare_test(self, dut): argument
192 def file_optional(self, shell=None, dut=None): argument
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
DProcFsFileTests.py63 def prepare_test(self, dut): argument
65 out, err, r_code = dut.shell.Execute('readlink /proc/mounts')
114 def file_optional(self, shell=None, dut=None): argument
DProcModulesTest.py24 def prepare_test(self, dut): argument
25 api_level = dut.getLaunchApiLevel(strict=False)
/test/vts-testcase/performance/fmq_benchmark/
DFmqPerformanceTest.py52 self.dut = self.android_devices[0]
54 self.dut)
84 results = self.dut.shell.Execute([
99 results = self.dut.shell.Execute([
106 self.dut.shell.Execute("kill -9 `pidof mq_benchmark_service%s`" %
/test/vts/testcases/fuzz/lib_bionic/
DLibBionicLibmFuzzTest.py28 self.dut = self.android_devices[0]
29 self.dut.lib.InitSharedLib(
41 logging.info("result %s", self.dut.lib.libm.fabs(5.0))
/test/vts/utils/python/vndk/
Dvndk_utils.py22 def IsVndkRuntimeEnforced(dut): argument
36 api_level = dut.getLaunchApiLevel(strict=False)
42 return not dut.vndk_lite
/test/vts/utils/python/profiling/
Dprofiling_utils.py137 dut, argument
158 results = dut.shell.Execute("ls " + target_trace_file)
167 dut.adb.pull("%s %s" % (line, temp_file_name))
386 def ProcessTraceDataForTestCase(self, dut, measure_api_coverage=True): argument
409 dut,
414 trace_files = self.GetTraceFiles(dut)

12