/cts/hostsidetests/os/src/android/os/cts/ |
D | StaticSharedLibsHostTests.java | 111 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/ |
D | Poc17_01.java | 36 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 …]
|
D | Poc16_11.java | 35 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 …]
|
D | Poc18_02.java | 35 AdbUtils.runCommandLine("logcat -c" , getDevice()); in testPocCVE_2017_13232() 36 AdbUtils.runPocNoOutput("CVE-2017-13232", getDevice(), 60); in testPocCVE_2017_13232() 37 String logcatOutput = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2017_13232() 49 AdbUtils.runCommandLine("dmesg -c" ,getDevice()); in testPocCVE_2017_13273() 50 AdbUtils.runCommandLine("setenforce 0",getDevice()); in testPocCVE_2017_13273() 51 if(containsDriver(getDevice(), "/dev/xt_qtaguid") && in testPocCVE_2017_13273() 52 containsDriver(getDevice(), "/proc/net/xt_qtaguid/ctrl")) { in testPocCVE_2017_13273() 53 AdbUtils.runPoc("CVE-2017-13273", getDevice(), 60); in testPocCVE_2017_13273() 55 getDevice()); in testPocCVE_2017_13273() 59 AdbUtils.runCommandLine("setenforce 1",getDevice()); in testPocCVE_2017_13273()
|
D | Poc17_03.java | 37 if (containsDriver(getDevice(), "/dev/kgsl-3d0")) { in testPocCVE_2016_8479() 38 AdbUtils.runPocNoOutput("CVE-2016-8479", getDevice(), TIMEOUT_NONDETERMINISTIC); in testPocCVE_2016_8479() 51 if (containsDriver(getDevice(), "/dev/ion") && in testPocCVE_2017_0508() 52 containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0508() 53 AdbUtils.runPocNoOutput("CVE-2017-0508", getDevice(), 30); in testPocCVE_2017_0508() 66 if (containsDriver(getDevice(), "/dev/dri/renderD128")) { in testPocCVE_2017_0333() 67 AdbUtils.runPocNoOutput("CVE-2017-0333", getDevice(), 30); in testPocCVE_2017_0333() 79 if (containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0334() 80 String out = AdbUtils.runPoc("CVE-2017-0334", getDevice()); in testPocCVE_2017_0334() 109 AdbUtils.runPocAssertNoCrashes("CVE-2017-0479", getDevice(), "audioserver"); in testPocCVE_2017_0479() [all …]
|
/cts/hostsidetests/rollback/src/com/android/cts/rollback/host/ |
D | RollbackManagerHostTest.java | 80 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/appsecurity/src/android/appsecurity/cts/ |
D | PrivilegedUpdateTests.java | 59 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 …]
|
D | PackageVisibilityTest.java | 52 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 …]
|
D | DirectBootHostTest.java | 72 Utils.prepareSingleUser(getDevice()); in setUp() 76 getDevice().uninstallPackage(PKG); in setUp() 77 getDevice().uninstallPackage(OTHER_PKG); in setUp() 82 getDevice().uninstallPackage(PKG); in tearDown() 83 getDevice().uninstallPackage(OTHER_PKG); in tearDown() 140 getDevice().executeShellCommand("am start -a android.intent.action.MAIN" in doDirectBootTest() 154 final String res = getDevice().executeShellCommand("sm set-emulate-fbe true"); in doDirectBootTest() 158 getDevice().waitForDeviceNotAvailable(SHUTDOWN_TIME_MS); in doDirectBootTest() 159 getDevice().waitForDeviceOnline(120000); in doDirectBootTest() 161 getDevice().rebootUntilOnline(); in doDirectBootTest() [all …]
|
D | AuthBoundKeyTest.java | 42 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 2345"); 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 2345"); // Input password in useInvalidatedAuthBoundKey() [all …]
|
D | OverlayHostTest.java | 78 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 …]
|
D | AppSecurityTests.java | 92 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 …]
|
D | ResumeOnRebootHostTest.java | 82 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 …]
|
D | StorageHostTest.java | 56 mUsers = Utils.prepareMultipleUsers(getDevice()); in setUp() 63 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp() 72 getDevice().uninstallPackage(PKG_STATS); in tearDown() 73 getDevice().uninstallPackage(PKG_A); in tearDown() 74 getDevice().uninstallPackage(PKG_B); in tearDown() 79 Utils.runDeviceTests(getDevice(), PKG_STATS, CLASS_STATS, "testVerify"); in testVerify() 92 getDevice().executeShellCommand("sync"); in testVerifyAppStats() 167 getDevice().executeShellCommand("settings put global sys_storage_threshold_max_bytes 0"); in testCache() 168 getDevice().executeShellCommand("settings put global sys_storage_cache_max_bytes 0"); in testCache() 169 getDevice().executeShellCommand("svc data disable"); in testCache() [all …]
|
D | AdoptableHostTest.java | 59 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 …]
|
D | EphemeralTest.java | 124 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 …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | HostAtomTests.java | 88 ConfigUtils.removeConfig(getDevice()); in setUp() 89 ReportUtils.clearReports(getDevice()); in setUp() 90 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 91 DeviceUtils.turnBatteryStatsAutoResetOff(getDevice()); in setUp() 97 ConfigUtils.removeConfig(getDevice()); in tearDown() 98 ReportUtils.clearReports(getDevice()); in tearDown() 99 DeviceUtils.uninstallStatsdTestApp(getDevice()); in tearDown() 100 DeviceUtils.turnBatteryStatsAutoResetOn(getDevice()); in tearDown() 115 DeviceUtils.turnScreenOn(getDevice()); in testScreenStateChangedAtom() 117 DeviceUtils.turnScreenOff(getDevice()); in testScreenStateChangedAtom() [all …]
|
/cts/hostsidetests/testharness/src/android/testharness/cts/ |
D | TestHarnessModeDeviceTest.java | 51 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/ |
D | AppHibernationStatsTest.java | 46 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/statsdatom/src/android/cts/statsdatom/appstart/ |
D | AppStartStatsTests.java | 53 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/ |
D | CpuStatsTests.java | 41 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/angle/src/android/angle/cts/ |
D | CtsAngleDeveloperOptionHostTest.java | 44 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() 86 clearSettings(getDevice()); in setUp() 88 stopPackage(getDevice(), ANGLE_DRIVER_TEST_PKG); in setUp() 89 stopPackage(getDevice(), ANGLE_DRIVER_TEST_SEC_PKG); in setUp() 94 clearSettings(getDevice()); in tearDown() 102 Assume.assumeTrue(isAngleInstalled(getDevice())); in testEnableAngleForAll() [all …]
|
/cts/hostsidetests/appsearch/src/android/appsearch/cts/ |
D | AppSearchMultiUserTest.java | 54 getDevice().isMultiUserSupported()); in setUp() 56 mInitialUserId = getDevice().getCurrentUser(); in setUp() 57 mSecondaryUserId = getDevice().createUser("Test_User"); in setUp() 58 assertThat(getDevice().startUser(mSecondaryUserId)).isTrue(); in setUp() 69 if (getDevice().getInstalledPackageNames().contains(TARGET_PKG_A)) { in tearDown() 73 getDevice().removeUser(mSecondaryUserId); in tearDown() 89 getDevice().stopUser(mSecondaryUserId, /*waitFlag=*/true, /*forceFlag=*/true); in testStopUser_persistData() 90 getDevice().startUser(mSecondaryUserId, /*waitFlag=*/true); in testStopUser_persistData() 101 getDevice().stopUser(mSecondaryUserId, /*waitFlag=*/true, /*forceFlag=*/true); in testPackageUninstall_onLockedUser() 103 getDevice().startUser(mSecondaryUserId, /*waitFlag=*/true); in testPackageUninstall_onLockedUser() [all …]
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/sizecompatrestartbutton/ |
D | SizeCompatRestartButtonStatsTests.java | 69 getDevice().executeShellCommand(CMD_GET_STAY_ON).trim()); in setUp() 70 getDevice().executeShellCommand( in setUp() 72 getDevice().executeShellCommand( in setUp() 74 ConfigUtils.removeConfig(getDevice()); in setUp() 75 ReportUtils.clearReports(getDevice()); in setUp() 76 DeviceUtils.installStatsdTestApp(getDevice(), mCtsBuild); in setUp() 77 DeviceUtils.turnScreenOn(getDevice()); in setUp() 79 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), DeviceUtils.STATSD_ATOM_TEST_PKG, in setUp() 86 getDevice().executeShellCommand( in tearDown() 88 getDevice().executeShellCommand(CMD_RESET_DEVICE_STATE); in tearDown() [all …]
|
/cts/hostsidetests/signedconfig/hostside/src/com/android/cts/signedconfig/ |
D | SignedConfigHostTest.java | 85 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 …]
|