Home
last modified time | relevance | path

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

12345678910>>...18

/cts/hostsidetests/os/src/android/os/cts/
DStaticSharedLibsHostTests.java111 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG); in doTestInstallSharedLibrary()
112 getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG); in doTestInstallSharedLibrary()
113 getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG); in doTestInstallSharedLibrary()
122 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG)); in doTestInstallSharedLibrary()
124 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG)); in doTestInstallSharedLibrary()
126 assertNull(getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG)); in doTestInstallSharedLibrary()
128 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG); in doTestInstallSharedLibrary()
129 getDevice().uninstallPackage(STATIC_LIB_PROVIDER2_PKG); in doTestInstallSharedLibrary()
130 getDevice().uninstallPackage(STATIC_LIB_PROVIDER_RECURSIVE_PKG); in doTestInstallSharedLibrary()
146 getDevice().uninstallPackage(STATIC_LIB_PROVIDER1_PKG); in doTestCannotInstallSharedLibraryWithMissingDependency()
[all …]
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DPoc17_01.java36 if(containsDriver(getDevice(), "/dev/nvhost-vic")) { in testPocCVE_2016_8425()
37 AdbUtils.runPoc("CVE-2016-8425", getDevice(), 60); in testPocCVE_2016_8425()
47 if(containsDriver(getDevice(), "/dev/nvhost-gpu")) { in testPocCVE_2016_8426()
48 AdbUtils.runPoc("CVE-2016-8426", getDevice(), 60); in testPocCVE_2016_8426()
58 if(containsDriver(getDevice(), "/dev/nvhost-gpu") || in testPocCVE_2016_8427()
59 containsDriver(getDevice(), "/dev/nvhost-dbg-gpu")) { in testPocCVE_2016_8427()
60 AdbUtils.runPoc("CVE-2016-8427", getDevice(), 60); in testPocCVE_2016_8427()
70 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8428()
71 AdbUtils.runPoc("CVE-2016-8428", getDevice(), 60); in testPocCVE_2016_8428()
81 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8429()
[all …]
DPoc16_11.java35 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2012_6702()
36 AdbUtils.runPoc("CVE-2012-6702", getDevice(), 60); in testPocCVE_2012_6702()
37 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2012_6702()
47 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6730()
48 AdbUtils.runPoc("CVE-2016-6730", getDevice(), 60); in testPocCVE_2016_6730()
58 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6731()
59 AdbUtils.runPoc("CVE-2016-6731", getDevice(), 60); in testPocCVE_2016_6731()
69 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6732()
70 AdbUtils.runPoc("CVE-2016-6732", getDevice(), 60); in testPocCVE_2016_6732()
80 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6733()
[all …]
/cts/hostsidetests/content/src/android/content/cts/
DContextCrossProfileHostTest.java75 mParentUserId = getDevice().getCurrentUser(); in setUp()
77 if (!getDevice().hasFeature("feature:android.hardware.type.automotive")) { in setUp()
84 getDevice().installPackageForUser( in setUp()
91 getDevice().uninstallPackage(TEST_WITH_PERMISSION_PKG); in tearDown()
92 getDevice().uninstallPackage(TEST_SERVICE_WITH_PERMISSION_PKG); in tearDown()
107 getDevice().startUser(userInSameProfileGroup, /* waitFlag= */true); in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
109 getDevice().installPackageForUser( in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
115 getDevice().installPackageForUser( in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
120 getDevice(), in testBindServiceAsUser_differentUser_bindsServiceToCorrectUser()
135 getDevice().startUser(userInSameProfileGroup, /* waitFlag= */true); in testBindServiceAsUser_sameProfileGroup_samePackage_withAcrossUsersPermission_bindsService()
[all …]
/cts/hostsidetests/rollback/src/com/android/cts/rollback/host/
DRollbackManagerHostTest.java80 getDevice().executeShellCommand("for i in $(pm list staged-sessions --only-sessionid " in cleanUp()
82 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.A"); in cleanUp()
83 getDevice().executeShellCommand("pm uninstall com.android.cts.install.lib.testapp.B"); in cleanUp()
94 getDevice().reboot(); in testApkOnlyStagedRollback()
96 getDevice().reboot(); in testApkOnlyStagedRollback()
109 getDevice().reboot(); in testApkOnlyMultipleStagedRollback()
111 getDevice().reboot(); in testApkOnlyMultipleStagedRollback()
124 getDevice().reboot(); in testApkOnlyMultipleStagedPartialRollback()
126 getDevice().reboot(); in testApkOnlyMultipleStagedPartialRollback()
138 getDevice().reboot(); in testApexOnlyStagedRollback()
[all …]
/cts/hostsidetests/userspacereboot/src/com/android/cts/userspacereboot/host/
DUserspaceRebootHostTest.java66 getDevice(), pkgName, pkgName + "." + className, testName, timeout.toMillis()); in runDeviceTest()
71 getDevice().installPackage(helper.getTestFile(apkFileName), false, true, in installApk()
72 getDevice().isAppEnumerationSupported() in installApk()
82 getDevice().uninstallPackage(BASIC_TEST_APP_PACKAGE_NAME); in setUp()
83 getDevice().uninstallPackage(BOOT_COMPLETED_TEST_APP_PACKAGE_NAME); in setUp()
91 getDevice().uninstallPackage(BASIC_TEST_APP_PACKAGE_NAME); in cleanUp()
92 getDevice().uninstallPackage(BOOT_COMPLETED_TEST_APP_PACKAGE_NAME); in cleanUp()
93 getDevice().disableAdbRoot(); in cleanUp()
102 getDevice().getBooleanProperty(USERSPACE_REBOOT_SUPPORTED_PROP, false)); in testOnlyFbeDevicesSupportUserspaceReboot()
103 assertThat(getDevice().getProperty("ro.crypto.state")).isEqualTo("encrypted"); in testOnlyFbeDevicesSupportUserspaceReboot()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/
DHostAtomTests.java87 ConfigUtils.removeConfig(getDevice()); in setUp()
88 ReportUtils.clearReports(getDevice()); in setUp()
89 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
90 DeviceUtils.turnBatteryStatsAutoResetOff(getDevice()); in setUp()
96 ConfigUtils.removeConfig(getDevice()); in tearDown()
97 ReportUtils.clearReports(getDevice()); in tearDown()
98 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
99 DeviceUtils.turnBatteryStatsAutoResetOn(getDevice()); in tearDown()
114 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom()
116 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom()
[all …]
DUidAtomTests.java94 ConfigUtils.removeConfig(getDevice()); in setUp()
95 ReportUtils.clearReports(getDevice()); in setUp()
96 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
102 ConfigUtils.removeConfig(getDevice()); in tearDown()
103 ReportUtils.clearReports(getDevice()); in tearDown()
104 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
118 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testIsolatedToHostUidMapping()
122 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", in testIsolatedToHostUidMapping()
126 List<EventMetricData> data = ReportUtils.getEventMetricDataList(getDevice()); in testIsolatedToHostUidMapping()
129 assertThat(atom.getUid()).isEqualTo(DeviceUtils.getStatsdTestAppUid(getDevice())); in testIsolatedToHostUidMapping()
[all …]
/cts/hostsidetests/angle/src/android/angle/cts/
DCtsAngleDeveloperOptionHostTest.java44 setGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_PKGS, pkgName); in setAndValidateAngleDevOptionPkgDriver()
45 setGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_VALUES, driverValue); in setAndValidateAngleDevOptionPkgDriver()
47 String devOption = getGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_PKGS); in setAndValidateAngleDevOptionPkgDriver()
53 devOption = getGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_VALUES); in setAndValidateAngleDevOptionPkgDriver()
61 stopPackage(getDevice(), pkgName); in setAndValidatePkgDriver()
65 startActivity(getDevice(), ANGLE_MAIN_ACTIVTY); in setAndValidatePkgDriver()
88 clearSettings(getDevice()); in setUp()
90 stopPackage(getDevice(), ANGLE_DRIVER_TEST_PKG); in setUp()
91 stopPackage(getDevice(), ANGLE_DRIVER_TEST_SEC_PKG); in setUp()
96 clearSettings(getDevice()); in tearDown()
[all …]
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPrivilegedUpdateTests.java59 String defaultAbi = AbiFormatter.getDefaultAbi(getDevice(), mAbi.getBitness()); in isDefaultAbi()
77 Utils.prepareSingleUser(getDevice()); in setUp()
81 getDevice().uninstallPackage(SHIM_PKG); in setUp()
82 getDevice().uninstallPackage(TEST_PKG); in setUp()
84 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false)); in setUp()
85 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp()
92 getDevice().uninstallPackage(SHIM_PKG); in tearDown()
93 getDevice().uninstallPackage(TEST_PKG); in tearDown()
94 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown()
98 getDevice().uninstallPackage(SHIM_PKG); in testPrivilegedAppUpgradeRestricted()
[all …]
DPackageVisibilityTest.java52 mUsers = Utils.prepareMultipleUsers(getDevice()); in setUpPackage()
54 getDevice().executeShellCommand("settings get global package_verifier_enable"); in setUpPackage()
55 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUpPackage()
56 getDevice().uninstallPackage(TEST_PKG); in setUpPackage()
57 getDevice().uninstallPackage(TINY_PKG); in setUpPackage()
63 getDevice().uninstallPackage(TEST_PKG); in tearDown()
64 getDevice().uninstallPackage(TINY_PKG); in tearDown()
65 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown()
86 getDevice().startUser(userId); in testUninstalledPackageVisibility()
97 Utils.runDeviceTests(getDevice(), TEST_PKG, in testUninstalledPackageVisibility()
[all …]
DOverlayHostTest.java78 getDevice().uninstallPackage(TEST_APP_PACKAGE); in tearDown()
82 String result = getDevice().executeShellCommand("cmd overlay dump"); in getStateForOverlay()
84 String overlayPackageForCurrentUser = overlayPackage + ":" + getDevice().getCurrentUser(); in getStateForOverlay()
120 getDevice().uninstallPackage(TARGET_PACKAGE);
121 getDevice().uninstallPackage(overlayPackage);
122 assertFalse(getDevice().getInstalledPackageNames().contains(OVERLAY_ALL_PACKAGE));
123 assertFalse(getDevice().getInstalledPackageNames().contains(overlayPackage));
129 getDevice().executeShellCommand("cmd overlay enable --user current " + overlayPackage);
132 getDevice().uninstallPackage(TARGET_PACKAGE);
133 getDevice().uninstallPackage(overlayPackage);
[all …]
DDirectBootHostTest.java70 Utils.prepareSingleUser(getDevice()); in setUp()
74 getDevice().uninstallPackage(PKG); in setUp()
75 getDevice().uninstallPackage(OTHER_PKG); in setUp()
80 getDevice().uninstallPackage(PKG); in tearDown()
81 getDevice().uninstallPackage(OTHER_PKG); in tearDown()
138 getDevice().executeShellCommand("am start -a android.intent.action.MAIN" in doDirectBootTest()
152 final String res = getDevice().executeShellCommand("sm set-emulate-fbe true"); in doDirectBootTest()
156 getDevice().waitForDeviceNotAvailable(SHUTDOWN_TIME_MS); in doDirectBootTest()
157 getDevice().waitForDeviceOnline(120000); in doDirectBootTest()
159 getDevice().rebootUntilOnline(); in doDirectBootTest()
[all …]
DAppSecurityTests.java92 Utils.prepareSingleUser(getDevice()); in setUp()
113 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts()
114 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts()
120 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts()
121 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts()
142 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData()
143 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData()
151 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData()
152 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData()
172 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testUninstallRemovesData()
[all …]
DResumeOnRebootHostTest.java82 mSupportsMultiUser = getDevice().getMaxNumberOfUsersSupported() > 1; in setUp()
101 int[] users = Utils.prepareSingleUser(getDevice()); in resumeOnReboot_SingleUser_Success()
136 if (!getDevice().hasFeature("android.software.managed_users")) { in resumeOnReboot_ManagedProfile_Success()
141 int[] users = Utils.prepareSingleUser(getDevice()); in resumeOnReboot_ManagedProfile_Success()
187 int[] users = Utils.prepareMultipleUsers(getDevice(), 2); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
211 getDevice().startUser(secondaryUser); in resumeOnReboot_TwoUsers_SingleUserUnlock_Success()
244 int[] users = Utils.prepareMultipleUsers(getDevice(), 2); in resumeOnReboot_TwoUsers_BothUserUnlock_Success()
270 getDevice().startUser(secondaryUser); in resumeOnReboot_TwoUsers_BothUserUnlock_Success()
293 boolean isAtleastS = ApiLevelUtil.isAfter(getDevice(), 30 /* BUILD.VERSION_CODES.R */) in isSupportedSDevice()
294 || ApiLevelUtil.codenameEquals(getDevice(), "S"); in isSupportedSDevice()
[all …]
DStorageHostTest.java55 mUsers = Utils.prepareMultipleUsers(getDevice()); in setUp()
62 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp()
71 getDevice().uninstallPackage(PKG_STATS); in tearDown()
72 getDevice().uninstallPackage(PKG_A); in tearDown()
73 getDevice().uninstallPackage(PKG_B); in tearDown()
78 Utils.runDeviceTests(getDevice(), PKG_STATS, CLASS_STATS, "testVerify"); in testVerify()
91 getDevice().executeShellCommand("sync"); in testVerifyAppStats()
166 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache()
167 getDevice().executeShellCommand("settings put global sys_storage_cache_max_bytes 0"); in testCache()
168 getDevice().executeShellCommand("svc data disable"); in testCache()
[all …]
DEphemeralTest.java124 Utils.prepareSingleUser(getDevice()); in setUp()
145 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testQuery"); in testNormalQuery()
153 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testStartNormal"); in testNormalStartNormal()
161 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, in testNormalStartEphemeral()
170 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, "testQuery"); in testEphemeralQuery()
178 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartNormal()
190 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed01()
198 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed02()
206 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed03()
214 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed04()
[all …]
DAdoptableHostTest.java59 Utils.prepareMultipleUsers(getDevice(), Integer.MAX_VALUE); in setUp()
65 mListVolumesInitialState = getDevice().executeShellCommand("sm list-volumes"); in setUp()
67 getDevice().uninstallPackage(PKG); in setUp()
73 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp()
81 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in setUp()
92 getDevice().uninstallPackage(PKG); in tearDown()
95 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown()
103 result = getDevice().executeShellCommand("sm list-disks adoptable").trim(); in tearDown()
116 result = getDevice().executeShellCommand("sm list-volumes"); in tearDown()
145 result = getDevice().executeShellCommand("sm list-volumes"); in waitForVolumeReady()
[all …]
DAuthBoundKeyTest.java42 Utils.prepareSingleUser(getDevice()); in setUp()
43 getDevice().uninstallPackage(PKG); in setUp()
48 getDevice().uninstallPackage(PKG); in tearDown()
55 getDevice().hasFeature("android.software.secure_lock_screen")); in useInvalidatedAuthBoundKey()
59 getDevice().executeShellCommand("cmd lock_settings set-pin 1234"); in useInvalidatedAuthBoundKey()
61 getDevice().executeShellCommand("cmd lock_settings clear --old 1234"); in useInvalidatedAuthBoundKey()
63 getDevice().executeShellCommand("cmd lock_settings set-pin 12345"); in useInvalidatedAuthBoundKey()
64 getDevice().executeShellCommand("input keyevent 26"); // Screen on in useInvalidatedAuthBoundKey()
65 getDevice().executeShellCommand("input keyevent 82"); // Bring up lock screen in useInvalidatedAuthBoundKey()
66 getDevice().executeShellCommand("input text 12345"); // Input password in useInvalidatedAuthBoundKey()
[all …]
/cts/hostsidetests/testharness/src/android/testharness/cts/
DTestHarnessModeDeviceTest.java51 getDevice().executeShellCommand("touch /sdcard/test.txt"); in testHarnessModeDeletesFiles()
52 getDevice().executeShellCommand("touch /data/local/tmp/test.txt"); in testHarnessModeDeletesFiles()
54 if (getDevice().doesFileExist("/sdcard/test.txt") in testHarnessModeDeletesFiles()
55 && getDevice().doesFileExist("/data/local/tmp/test.txt")) { in testHarnessModeDeletesFiles()
75 getDevice().executeShellCommand("settings get global transition_animation_scale"); in testHarnessModeRemovesAndResetsSettings()
77 getDevice().executeShellCommand("settings put global test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
78 getDevice().executeShellCommand("settings put secure test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
79 getDevice().executeShellCommand("settings put system test_harness_test 1234"); in testHarnessModeRemovesAndResetsSettings()
80 getDevice().executeShellCommand("settings put global transition_animation_scale 2.0"); in testHarnessModeRemovesAndResetsSettings()
87 getDevice().executeShellCommand("settings get global test_harness_test").trim()); in testHarnessModeRemovesAndResetsSettings()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/apphibernation/
DAppHibernationStatsTest.java46 ConfigUtils.removeConfig(getDevice()); in setUp()
47 ReportUtils.clearReports(getDevice()); in setUp()
48 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
49 getDevice().executeShellCommand(CMD_ENABLE_APP_HIBERNATION); in setUp()
55 ConfigUtils.removeConfig(getDevice()); in tearDown()
56 ReportUtils.clearReports(getDevice()); in tearDown()
57 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
68 getDevice().executeShellCommand( in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
71 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
75 getDevice().executeShellCommand( in testUserLevelAppHibernationStateChanged_fromNotHibernatingToHibernating()
[all …]
/cts/hostsidetests/gputools/src/android/gputools/cts/
DCtsRootlessGpuDebugHostTest.java140 return getDevice().executeShellCommand("date +\"%m-%d %H:%M:%S.%3N\""); in getTime()
147 getDevice().executeShellCommand("settings put global " + setting + " " + value); in applySetting()
148 getDevice().executeShellCommand("am refresh-settings-cache"); in applySetting()
155 getDevice().executeShellCommand("settings delete global " + setting); in deleteSetting()
156 getDevice().executeShellCommand("am refresh-settings-cache"); in deleteSetting()
165 String libPath = getDevice().executeAdbCommand("shell", "pm", "path", layerApp); in setupLayer()
172 … String layerPath = getDevice().executeAdbCommand("shell", "find", libPath + " -name " + layer); in setupLayer()
174 getDevice().executeAdbCommand("shell", "cp", layerPath + " /data/local/tmp"); in setupLayer()
247 String logcat = getDevice().executeShellCommand( in scanLog()
280 getDevice().executeAdbCommand("shell", "am", "force-stop", DEBUG_APP); in cleanup()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appstart/
DAppStartStatsTests.java53 ConfigUtils.removeConfig(getDevice()); in setUp()
54 ReportUtils.clearReports(getDevice()); in setUp()
55 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
57 getDevice().executeShellCommand(CMD_GET_STAY_ON).trim()); in setUp()
58 getDevice().executeShellCommand(CMD_ENABLE_STAY_ON); in setUp()
59 DeviceUtils.turnScreenOn(getDevice()); in setUp()
65 getDevice().executeShellCommand( in tearDown()
67 ConfigUtils.removeConfig(getDevice()); in tearDown()
68 ReportUtils.clearReports(getDevice()); in tearDown()
69 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/cpu/
DCpuStatsTests.java41 ConfigUtils.removeConfig(getDevice()); in setUp()
42 ReportUtils.clearReports(getDevice()); in setUp()
43 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp()
49 ConfigUtils.removeConfig(getDevice()); in tearDown()
50 ReportUtils.clearReports(getDevice()); in tearDown()
51 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown()
61 if (DeviceUtils.hasFeature(getDevice(), DeviceUtils.FEATURE_WATCH)) return; in testCpuTimePerUid()
63 ConfigUtils.uploadConfigForPulledAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in testCpuTimePerUid()
67 DeviceUtils.runDeviceTestsOnStatsdApp(getDevice(), ".AtomTests", "testSimpleCpu"); in testCpuTimePerUid()
70 AtomTestUtils.sendAppBreadcrumbReportedAtom(getDevice()); in testCpuTimePerUid()
[all …]
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/
DSignedConfigHostTest.java85 public ITestDevice getDevice() { in getDevice() method in SignedConfigHostTest
95 String output = getDevice().executeShellCommand("settings delete global " + name); in deleteSetting()
105 getDevice().uninstallPackage(TEST_APP_PACKAGE_NAME); in uninstallTestApps()
106 getDevice().uninstallPackage(TEST_APP_PACKAGE2_NAME); in uninstallTestApps()
114 v = getDevice().getSetting("global", setting); in waitUntilSettingMatches()
142 assertThat(getDevice().installPackage(getTestApk(apkName), false, extraArgs)).isNull(); in installPackage()
149 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigAppliedOnInstall()
157 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigAppliedOnInstallInstant()
167 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigUpgradedOnInstall()
177 assertThat(getDevice().getSetting("global", SETTING_BLACKLIST_EXEMPTIONS)).isEqualTo( in testConfigUpgradedOnInstallInstant()
[all …]

12345678910>>...18