Home
last modified time | relevance | path

Searched refs:getDevice (Results 1 – 25 of 58) sorted by relevance

123

/test/cts-root/hostsidetests/rollback/src/com/android/cts_root/rollback/host/
DRollbackManagerHostTest.java90 getDevice().enableAdbRoot(); in cleanUp()
91 getDevice().executeShellCommand("for i in $(pm list staged-sessions --only-sessionid " in cleanUp()
93 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.A"); in cleanUp()
94 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.B"); in cleanUp()
95 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.C"); in cleanUp()
102 getDevice().enableAdbRoot(); in setUp()
103 mLogger.start(getDevice()); in setUp()
108 getDevice().enableAdbRoot(); in tearDown()
120 getDevice().reboot(); in testRollbackDataPolicy()
122 getDevice().reboot(); in testRollbackDataPolicy()
[all …]
/test/cts-root/hostsidetests/packageinstaller/src/com/android/cts_root/packageinstaller/host/
DSessionCleanUpHostTest.java86 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.A"); in cleanUp()
87 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.B"); in cleanUp()
88 getDevice().uninstallPackage("com.android.cts.install.lib.testapp.C"); in cleanUp()
163 getDevice().reboot(); in testSessionCleanUp_Single_Expire()
176 getDevice().reboot(); in testSessionCleanUp_Multi_Expire()
187 Instant t1 = Instant.ofEpochMilli(getDevice().getDeviceDate()); in testSessionCleanUp_LowStorage()
192 getDevice().setDate(Date.from(t2)); in testSessionCleanUp_LowStorage()
193 getDevice().executeShellCommand("am broadcast -a android.intent.action.TIME_SET"); in testSessionCleanUp_LowStorage()
198 getDevice().setDate(Date.from(t1)); in testSessionCleanUp_LowStorage()
199 getDevice().executeShellCommand("am broadcast -a android.intent.action.TIME_SET"); in testSessionCleanUp_LowStorage()
[all …]
/test/vts-testcase/kernel/api/sysfs/src/com/android/tests/sysfs/
DKernelApiSysfsTest.java50 if (getDevice().doesFileExist(state)) { in testAndroidUSB()
51 assertTrue(TargetFileUtils.isReadOnly(state, getDevice())); in testAndroidUSB()
52 String content = getDevice().pullFileContents(state).trim(); in testAndroidUSB()
69 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testCpuOnlineFormat()
70 String content = getDevice().pullFileContents(filePath).trim(); in testCpuOnlineFormat()
76 TargetFileUtils.isReadOnly(filePath, getDevice())); in isReadOnlyAndIntegerContent()
77 String content = getDevice().pullFileContents(filePath).trim(); in isReadOnlyAndIntegerContent()
84 TargetFileUtils.isReadWriteOnly(filePath, getDevice())); in isReadWriteAndIntegerContent()
85 String content = getDevice().pullFileContents(filePath).trim(); in isReadWriteAndIntegerContent()
97 assertTrue(TargetFileUtils.isReadOnly(filePath, getDevice())); in testPerCpuCpufreq()
[all …]
/test/vts/tests/fastboot_getvar/src/com/android/tests/
DFastbootGetvarUserspaceTest.java68 boolean isKernelARM64 = testInfo.getDevice() in setUpClass()
73 String output = testInfo.getDevice().executeShellCommand("uname -r"); in setUpClass()
83 String codeName = testInfo.getDevice().getProperty(DeviceProperties.BUILD_CODENAME); in setUpClass()
89 sDeviceIsGKI10.put(testInfo.getDevice(), isGKI10); in setUpClass()
90 sDeviceCodeName.put(testInfo.getDevice(), codeName); in setUpClass()
94 testInfo.getDevice().rebootIntoFastbootd(); in setUpClass()
101 sDeviceIsGKI10.get(getTestInformation().getDevice())); in setUp()
106 if (!sDeviceIsGKI10.get(testInfo.getDevice())) { in tearDownClass()
107 testInfo.getDevice().reboot(); // reboot from fastbootd to adb. in tearDownClass()
109 sDeviceIsGKI10.remove(testInfo.getDevice()); in tearDownClass()
[all …]
/test/vts/tests/fastboot_test/src/com/android/tests/
DFastbootVerifyUserspaceTest.java70 boolean isKernelARM64 = testInfo.getDevice() in setUpClass()
75 String output = testInfo.getDevice().executeShellCommand("uname -r"); in setUpClass()
84 sDeviceIsGKI10.put(testInfo.getDevice(), isGKI10); in setUpClass()
88 testInfo.getDevice().rebootIntoFastbootd(); in setUpClass()
95 sDeviceIsGKI10.get(getTestInformation().getDevice())); in setUp()
106 if (!sDeviceIsGKI10.get(testInfo.getDevice())) { in tearDownClass()
110 if (!TestDeviceState.FASTBOOTD.equals(testInfo.getDevice().getDeviceState())) { in tearDownClass()
111 ((IManagedTestDevice) testInfo.getDevice()) in tearDownClass()
114 testInfo.getDevice().reboot(); // reboot from fastbootd to adb. in tearDownClass()
116 sDeviceIsGKI10.remove(testInfo.getDevice()); in tearDownClass()
[all …]
/test/vts/tests/gpu_test/src/com/android/gpu/vts/
DVulkanTest.java83 final String output = getDevice().executeShellCommand("cmd gpu vkjson"); in setUp()
86 if (ApiLevelUtil.isBefore(getDevice(), Build.OC)) { in setUp()
96 final String profiles = getDevice().executeShellCommand("cmd gpu vkprofiles"); in setUp()
108 PropertyUtil.getVsrApiLevel(getDevice()) >= Build.QT); in checkVulkan1_1Requirements()
110 getDevice().getProperty("ro.product.cpu.abi").contains("64")); in checkVulkan1_1Requirements()
133 PropertyUtil.getVsrApiLevel(getDevice()) >= Build.UDC); in checkVulkan1_3Requirements()
135 !FeatureUtil.isAutomotive(getDevice()) in checkVulkan1_3Requirements()
136 || PropertyUtil.getVsrApiLevel(getDevice()) > Build.UDC); in checkVulkan1_3Requirements()
140 if (PropertyUtil.getVsrApiLevel(getDevice()) == Build.UDC) { in checkVulkan1_3Requirements()
142 getDevice().getProperty("ro.product.cpu.abi").contains("64")); in checkVulkan1_3Requirements()
[all …]
DGpuProfilingTest.java49 final String output = getDevice().executeShellCommand("cmd gpu vkjson"); in setUp()
52 if (ApiLevelUtil.isBefore(getDevice(), Build.OC)) { in setUp()
69 final int apiLevel = Util.getVendorApiLevelOrFirstProductApiLevel(getDevice()); in checkGpuProfilingRequirements()
74 getDevice().getProperty("ro.product.cpu.abi").contains("64")); in checkGpuProfilingRequirements()
75 assumeTrue("Test does not apply for non-handheld devices", Util.isHandheld(getDevice())); in checkGpuProfilingRequirements()
82 PropertyUtil.propertyEquals(getDevice(), "graphics.gpu.profiler.support", "true")); in checkGpuProfilingRequirements()
DOpenGlEsTest.java39 final int apiLevel = Util.getVendorApiLevelOrFirstProductApiLevel(getDevice()); in checkOpenGlEsDeqpLevelIsHighEnough()
65 final String output = getDevice().executeShellCommand( in checkOpenGlEsDeqpLevelIsHighEnough()
75 getDevice().executeShellCommand("pm list features | grep deqp")); in checkOpenGlEsDeqpLevelIsHighEnough()
/test/vts/tests/selinux_test/src/com/android/tests/selinux/
DKernelSelinuxFileApiTest.java58 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxCheckReqProt()
60 String permissionBits = TargetFileUtils.getPermission(filePath, getDevice()); in testSelinuxCheckReqProt()
65 getDevice().pullFile(filePath, selinuxTmpFile); in testSelinuxCheckReqProt()
76 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxPolicy()
85 "%s: File does not exist.".format(filePath), getDevice().doesFileExist(filePath)); in testSelinuxNull()
87 String permissionBits = TargetFileUtils.getPermission(filePath, getDevice()); in testSelinuxNull()
/test/app_compat/csuite/harness/src/main/java/com/android/compatibility/targetprep/
DCheckGmsPreparer.java54 testInfo.getDevice().reboot(); in setUp()
55 testInfo.getDevice().waitForBootComplete(WAIT_FOR_BOOT_COMPLETE_TIMEOUT_MILLIS); in setUp()
62 testInfo.getDevice().getDeviceDescriptor(), in setUp()
69 CommandResult res = testInfo.getDevice().executeShellV2Command(CHECK_GMS_COMMAND); in isGmsRunning()
DAppSetupPreparer.java214 e.getMessage(), e, testInfo.getDevice().getDeviceDescriptor()); in setUp()
217 waitForDeviceAvailable(testInfo.getDevice()); in setUp()
230 e.getMessage(), e, testInfo.getDevice().getDeviceDescriptor()); in setUp()
248 e.getMessage(), e, testInfo.getDevice().getDeviceDescriptor()); in setUpOnce()
252 SystemPackageUninstaller.uninstallPackage(mPackageName, testInfo.getDevice()); in setUpOnce()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/art/targetprep/
DAllProcessesImgdiag.java53 Assert.assertTrue(testInformation.getDevice().doesFileExist(mImgdiagOutPath)); in tearDown()
57 .getDevice() in tearDown()
72 testInformation.getDevice().executeShellCommand(imgdiagCmd); in tearDown()
74 File imgdiagFile = testInformation.getDevice().pullFile(outFilePath); in tearDown()
DAggregateImgdiagOutput.java58 Assert.assertTrue(testInformation.getDevice().doesFileExist(mImgdiagOutPath)); in tearDown()
64 IFileEntry deviceImgdiagOutDir = testInformation.getDevice().getFileEntry(mImgdiagOutPath); in tearDown()
73 String fileContents = testInformation.getDevice().pullFileContents(child.getFullPath()); in tearDown()
/test/vts-testcase/hal/usb/gadget/V1_0/host/src/com/android/tests/usbgadget/
DHalUsbGadgetV1_0HostTest.java56 testInfo.getDevice() in beforeClassWithDevice()
114 getDevice().executeShellCommand("svc usb setFunctions mtp true"); in testMtp()
128 getDevice().executeShellCommand("svc usb setFunctions ptp true"); in testPtp()
142 getDevice().hasFeature(FEATURE_AUTOMOTIVE)); in testMIDI()
144 getDevice().executeShellCommand("svc usb setFunctions midi true"); in testMIDI()
/test/vts-testcase/kernel/sdcardfs/src/com/android/sdcardfs/vts/
DSdcardfsTest.java40 String result = getDevice().getProperty("ro.product.first_api_level"); in should_run()
64 CommandResult result = getDevice().executeShellV2Command("uname -r"); in testSdcardfsNotPresent()
71 String output = getDevice().executeShellCommand(cmd); in testSdcardfsNotPresent()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/webview/tests/
DWebviewAppLaunchTest.java96 mApkInstaller = ApkInstaller.getInstance(getDevice()); in setUp()
105 DeviceUtils.getInstance(getDevice()).freezeRotation(); in setUp()
153 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in tearDown()
162 DeviceUtils.getInstance(getDevice()).resetPackage(mPackageName); in assertAppLaunchNoCrash()
180 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in launchPackageAndCheckForCrash()
DWebviewAppCrawlTest.java184 mApkInstaller = ApkInstaller.getInstance(getDevice()); in setUp()
193 DeviceUtils.getInstance(getDevice()).freezeRotation(); in setUp()
255 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in tearDown()
263 getDevice().uninstallPackage(mPackageName); in tearDown()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/art/tests/
DAppLaunchImgdiagTest.java43 getDevice().executeShellCommand("pidof " + mPackageName).strip().split(" "); in tearDown()
53 CommandResult res = getDevice().executeShellV2Command(imgdiagCmd); in tearDown()
60 File imgdiagFile = getDevice().pullFile(outFilePath); in tearDown()
DAppCompileLaunchTest.java131 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in testCompileLaunch()
134 mApkInstaller = ApkInstaller.getInstance(getDevice()); in testCompileLaunch()
158 getDevice().executeShellV2Command("cmd package compile -m speed " + mPackageName); in testCompileLaunch()
206 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in doTestAppCrash()
271 testUtils.getTestInformation().getDevice().getScreenshot()) { in doTestAppCrash()
284 testUtils.getTestInformation().getDevice().getSerialNumber()); in doTestAppCrash()
297 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in tearDown()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/csuite/tests/
DAppLaunchTest.java129 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in setUp()
132 mApkInstaller = ApkInstaller.getInstance(getDevice()); in setUp()
151 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in testAppCrash()
216 testUtils.getTestInformation().getDevice().getScreenshot()) { in testAppCrash()
228 testUtils.getTestInformation().getDevice().getSerialNumber()); in testAppCrash()
242 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in tearDown()
DAppCrawlTest.java163 DeviceUtils deviceUtils = DeviceUtils.getInstance(getDevice()); in setUp()
179 mApkInstaller = ApkInstaller.getInstance(getDevice()); in setUp()
233 getDevice().uninstallPackage(mPackageName); in tearDown()
/test/vts-testcase/hal/usb/gadget/aidl/host/src/com/android/usb/gadget/vts/
DVtsHalUsbGadgetV2_0HostTest.java65 mDevice = getDevice(); in setUp()
71 testInfo.getDevice() in beforeClassWithDevice()
133 getDevice().executeShellCommand("svc usb setFunctions mtp true"); in testMtp()
149 getDevice().executeShellCommand("svc usb setFunctions ptp true"); in testPtp()
164 getDevice().hasFeature(FEATURE_AUTOMOTIVE)); in testMIDI()
167 getDevice().executeShellCommand("svc usb setFunctions midi true"); in testMIDI()
/test/app_compat/csuite/test_scripts/src/main/java/com/android/webview/lib/
DWebviewUtils.java108 .getDevice() in uninstallWebview()
117 .getDevice() in updateWebviewImplementation()
127 String dumpsys = mTestInformation.getDevice().executeShellCommand("dumpsys webviewupdate"); in getCurrentWebviewPackage()
/test/suite_harness/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DApkInstrumentationPreparer.java88 ITestDevice device = testInfo.getDevice(); in run()
141 ITestDevice device = testInfo.getDevice(); in instrument()
147 testInfo.getDevice().waitForDeviceAvailable(); in instrument()
/test/vts-testcase/hal/usb/usb/aidl/host/src/com/android/usb/vts/
DVtsAidlUsbHostTest.java54 mDevice = getDevice(); in setUp()
60 testInfo.getDevice() in beforeClassWithDevice()

123