/test/vts-testcase/kernel/checkpoint/ |
D | VtsKernelCheckpointTest.py | 32 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 …]
|
D | vts_kernel_checkpoint_test.py | 34 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/ |
D | vts_kernel_proc_file_api_test.py | 138 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/ |
D | precondition_utils.py | 28 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/ |
D | corpus_manager_test.py | 23 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/ |
D | vts_treble_sys_prop_test.py | 172 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 …]
|
D | VtsTrebleSysPropTest.py | 114 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/ |
D | android_device_test.py | 29 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/ |
D | AudioLoopbackTest.py | 44 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/ |
D | coverage_utils.py | 237 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 …]
|
D | sancov_utils.py | 98 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/ |
D | BinderPerformanceTest.py | 75 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/ |
D | HwBinderPerformanceTest.py | 77 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/ |
D | hal_hidl_host_test.py | 39 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/ |
D | VtsTreblePlatformVersionTest.py | 31 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()
|
D | vts_treble_platform_version_test.py | 32 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/ |
D | ProcQtaguidCtrlTest.py | 57 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)
|
D | KernelProcFileTestBase.py | 139 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
|
D | ProcUidCpuPowerTests.py | 42 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
|
D | ProcFsFileTests.py | 63 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
|
D | ProcModulesTest.py | 24 def prepare_test(self, dut): argument 25 api_level = dut.getLaunchApiLevel(strict=False)
|
/test/vts-testcase/performance/fmq_benchmark/ |
D | FmqPerformanceTest.py | 52 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/ |
D | LibBionicLibmFuzzTest.py | 28 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/ |
D | vndk_utils.py | 22 def IsVndkRuntimeEnforced(dut): argument 36 api_level = dut.getLaunchApiLevel(strict=False) 42 return not dut.vndk_lite
|
/test/vts/utils/python/profiling/ |
D | profiling_utils.py | 137 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)
|