/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/appsecurity/src/android/appsecurity/cts/ |
D | PermissionsHostTest.java | 81 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(REVIEW_HELPER_APK), true, in approveReviewPermissionDialog() 91 Utils.prepareSingleUser(getDevice()); in setUp() 95 getDevice().uninstallPackage(USES_PERMISSION_PKG); in setUp() 96 getDevice().uninstallPackage(ESCALATE_PERMISSION_PKG); in setUp() 97 getDevice().uninstallPackage(PERMISSION_POLICY_25_PKG); in setUp() 100 mScreenTimeoutBeforeTest = getDevice().getSetting(SCREEN_OFF_TIMEOUT_NS, in setUp() 102 getDevice().setSetting(SCREEN_OFF_TIMEOUT_NS, SCREEN_OFF_TIMEOUT_KEY, "1800000"); in setUp() 105 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in setUp() 106 getDevice().disableKeyguard(); in setUp() 113 getDevice().setSetting(SCREEN_OFF_TIMEOUT_NS, SCREEN_OFF_TIMEOUT_KEY, in tearDown() [all …]
|
D | ExternalStorageHostTest.java | 101 mUsers = Utils.prepareMultipleUsers(getDevice()); in setUp() 109 getDevice().uninstallPackage(NONE_PKG); in cleanUp() 110 getDevice().uninstallPackage(READ_PKG); in cleanUp() 111 getDevice().uninstallPackage(WRITE_PKG); in cleanUp() 112 getDevice().uninstallPackage(MULTIUSER_PKG); in cleanUp() 122 getDevice().uninstallPackage(WRITE_PKG); in testExternalStorageRename() 129 getDevice().uninstallPackage(WRITE_PKG); in testExternalStorageRename() 141 getDevice().uninstallPackage(NONE_PKG); in testExternalStorageNone() 143 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone() 150 getDevice().uninstallPackage(NONE_PKG); in testExternalStorageNone() [all …]
|
D | OverlayHostTest.java | 77 getDevice().uninstallPackage(TEST_APP_PACKAGE); in tearDown() 81 String result = getDevice().executeShellCommand("cmd overlay dump"); in getStateForOverlay() 116 getDevice().uninstallPackage(TARGET_PACKAGE); 117 getDevice().uninstallPackage(overlayPackage); 118 assertFalse(getDevice().getInstalledPackageNames().contains(OVERLAY_ALL_PACKAGE)); 119 assertFalse(getDevice().getInstalledPackageNames().contains(overlayPackage)); 125 getDevice().executeShellCommand("cmd overlay enable " + overlayPackage); 128 getDevice().uninstallPackage(TARGET_PACKAGE); 129 getDevice().uninstallPackage(overlayPackage); 137 getDevice().uninstallPackage(TARGET_PACKAGE); [all …]
|
D | AppSecurityTests.java | 86 Utils.prepareSingleUser(getDevice()); in setUp() 107 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() 108 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts() 114 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() 115 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts() 136 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData() 137 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData() 145 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData() 146 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData() 166 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testUninstallRemovesData() [all …]
|
D | PrivilegedUpdateTests.java | 58 String defaultAbi = AbiFormatter.getDefaultAbi(getDevice(), mAbi.getBitness()); in isDefaultAbi() 76 Utils.prepareSingleUser(getDevice()); in setUp() 80 getDevice().uninstallPackage(SHIM_PKG); in setUp() 81 getDevice().uninstallPackage(TEST_PKG); in setUp() 83 assertNull(getDevice().installPackage(mBuildHelper.getTestFile(TEST_APK), false)); in setUp() 84 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp() 91 getDevice().uninstallPackage(SHIM_PKG); in tearDown() 92 getDevice().uninstallPackage(TEST_PKG); in tearDown() 93 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown() 97 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 | AdoptableHostTest.java | 55 Utils.prepareMultipleUsers(getDevice(), Integer.MAX_VALUE); in setUp() 57 getDevice().uninstallPackage(PKG); in setUp() 63 getDevice().executeShellCommand("sm set-virtual-disk true"); in setUp() 69 getDevice().uninstallPackage(PKG); in tearDown() 72 getDevice().executeShellCommand("sm set-virtual-disk false"); in tearDown() 107 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps() 111 assertSuccess(getDevice().executeShellCommand( in testApps() 118 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps() 119 getDevice().executeShellCommand("sm mount " + vol.volId); in testApps() 122 String pkgPath = getDevice().executeShellCommand("pm path " + PKG); in testApps() [all …]
|
D | DirectBootHostTest.java | 64 Utils.prepareSingleUser(getDevice()); in setUp() 68 getDevice().uninstallPackage(PKG); in setUp() 69 getDevice().uninstallPackage(OTHER_PKG); in setUp() 74 getDevice().uninstallPackage(PKG); in tearDown() 75 getDevice().uninstallPackage(OTHER_PKG); in tearDown() 152 getDevice().executeShellCommand("am start -a android.intent.action.MAIN" in doDirectBootTest() 166 final String res = getDevice().executeShellCommand("sm set-emulate-fbe true"); in doDirectBootTest() 170 getDevice().waitForDeviceNotAvailable(SHUTDOWN_TIME_MS); in doDirectBootTest() 171 getDevice().waitForDeviceOnline(120000); in doDirectBootTest() 173 getDevice().rebootUntilOnline(); in doDirectBootTest() [all …]
|
D | EphemeralTest.java | 123 Utils.prepareSingleUser(getDevice()); in setUp() 144 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testQuery"); in testNormalQuery() 152 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, "testStartNormal"); in testNormalStartNormal() 160 Utils.runDeviceTestsAsCurrentUser(getDevice(), NORMAL_PKG, TEST_CLASS, in testNormalStartEphemeral() 169 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, "testQuery"); in testEphemeralQuery() 177 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartNormal() 189 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed01() 197 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed02() 205 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed03() 213 Utils.runDeviceTestsAsCurrentUser(getDevice(), EPHEMERAL_1_PKG, TEST_CLASS, in testEphemeralStartExposed04() [all …]
|
D | IsolatedSplitsTests.java | 49 Utils.prepareSingleUser(getDevice()); in setUp() 50 getDevice().uninstallPackage(PKG); in setUp() 55 getDevice().uninstallPackage(PKG); in tearDown() 70 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallBase() 85 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallBaseAndConfigSplit() 109 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallOneFeatureSplit() 110 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadFeatureADefault"); in testInstallOneFeatureSplit() 111 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadFeatureAReceivers"); in testInstallOneFeatureSplit() 127 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallOneFeatureSplitAndConfigSplits() 128 Utils.runDeviceTests(getDevice(), PKG, TEST_CLASS, "shouldLoadFeatureAPolishLocale"); in testInstallOneFeatureSplitAndConfigSplits() [all …]
|
D | StorageHostTest.java | 55 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 …]
|
D | AuthBoundKeyTest.java | 40 Utils.prepareSingleUser(getDevice()); in setUp() 41 getDevice().uninstallPackage(PKG); in setUp() 46 getDevice().uninstallPackage(PKG); in tearDown() 53 getDevice().executeShellCommand("cmd lock_settings set-pin 1234"); in useInvalidatedAuthBoundKey() 55 getDevice().executeShellCommand("cmd lock_settings clear --old 1234 --user 0"); in useInvalidatedAuthBoundKey() 57 getDevice().executeShellCommand("cmd lock_settings set-pin 12345"); in useInvalidatedAuthBoundKey() 58 getDevice().executeShellCommand("input keyevent 26"); // Screen on in useInvalidatedAuthBoundKey() 59 getDevice().executeShellCommand("input keyevent 82"); // Bring up lock screen in useInvalidatedAuthBoundKey() 60 getDevice().executeShellCommand("input text 12345"); // Input password in useInvalidatedAuthBoundKey() 61 getDevice().executeShellCommand("input keyevent 66"); // Submit input in useInvalidatedAuthBoundKey() [all …]
|
D | ApplicationVisibilityTest.java | 50 mUsers = Utils.prepareMultipleUsers(getDevice(), 2); in setUpPackage() 52 getDevice().executeShellCommand("settings get global package_verifier_enable"); in setUpPackage() 53 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUpPackage() 58 getDevice().uninstallPackage(TEST_WITH_PERMISSION_PKG); in tearDown() 59 getDevice().uninstallPackage(TINY_PKG); in tearDown() 60 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown() 78 getDevice(), in testPackageListCrossUserGrant() 84 getDevice(), in testPackageListCrossUserGrant() 105 getDevice(), in testPackageListCrossUserNoGrant() 111 getDevice(), in testPackageListCrossUserNoGrant() [all …]
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | Poc17_01.java | 30 if(containsDriver(getDevice(), "/dev/nvhost-vic")) { in testPocCVE_2016_8425() 31 AdbUtils.runPoc("CVE-2016-8425", getDevice(), 60); in testPocCVE_2016_8425() 40 if(containsDriver(getDevice(), "/dev/nvhost-gpu")) { in testPocCVE_2016_8426() 41 AdbUtils.runPoc("CVE-2016-8426", getDevice(), 60); in testPocCVE_2016_8426() 50 if(containsDriver(getDevice(), "/dev/nvhost-gpu") || in testPocCVE_2016_8427() 51 containsDriver(getDevice(), "/dev/nvhost-dbg-gpu")) { in testPocCVE_2016_8427() 52 AdbUtils.runPoc("CVE-2016-8427", getDevice(), 60); in testPocCVE_2016_8427() 61 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8428() 62 AdbUtils.runPoc("CVE-2016-8428", getDevice(), 60); in testPocCVE_2016_8428() 71 if(containsDriver(getDevice(), "/dev/nvmap")) { in testPocCVE_2016_8429() [all …]
|
D | Poc16_11.java | 29 AdbUtils.runCommandLine("logcat -c", getDevice()); in testPocCVE_2012_6702() 30 AdbUtils.runPoc("CVE-2012-6702", getDevice(), 60); in testPocCVE_2012_6702() 31 String logcat = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2012_6702() 40 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6730() 41 AdbUtils.runPoc("CVE-2016-6730", getDevice(), 60); in testPocCVE_2016_6730() 50 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6731() 51 AdbUtils.runPoc("CVE-2016-6731", getDevice(), 60); in testPocCVE_2016_6731() 60 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6732() 61 AdbUtils.runPoc("CVE-2016-6732", getDevice(), 60); in testPocCVE_2016_6732() 70 if(containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2016_6733() [all …]
|
D | Poc17_03.java | 28 if (containsDriver(getDevice(), "/dev/kgsl-3d0")) { in testPocCVE_2016_8479() 29 AdbUtils.runPocNoOutput("CVE-2016-8479", getDevice(), 180); in testPocCVE_2016_8479() 41 if (containsDriver(getDevice(), "/dev/ion") && in testPocCVE_2017_0508() 42 containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0508() 43 AdbUtils.runPocNoOutput("CVE-2017-0508", getDevice(), 30); in testPocCVE_2017_0508() 55 if (containsDriver(getDevice(), "/dev/dri/renderD128")) { in testPocCVE_2017_0333() 56 AdbUtils.runPocNoOutput("CVE-2017-0333", getDevice(), 30); in testPocCVE_2017_0333() 67 if (containsDriver(getDevice(), "/dev/dri/renderD129")) { in testPocCVE_2017_0334() 68 String out = AdbUtils.runPoc("CVE-2017-0334", getDevice()); in testPocCVE_2017_0334() 79 AdbUtils.runCommandLine("logcat -c" , getDevice()); in testPocCVE_2017_0479() [all …]
|
D | Poc18_02.java | 29 AdbUtils.runCommandLine("logcat -c" , getDevice()); in testPocCVE_2017_13232() 30 AdbUtils.runPocNoOutput("CVE-2017-13232", getDevice(), 60); in testPocCVE_2017_13232() 31 String logcatOutput = AdbUtils.runCommandLine("logcat -d", getDevice()); in testPocCVE_2017_13232() 42 AdbUtils.runCommandLine("dmesg -c" ,getDevice()); in testPocCVE_2017_13273() 43 AdbUtils.runCommandLine("setenforce 0",getDevice()); in testPocCVE_2017_13273() 44 if(containsDriver(getDevice(), "/dev/xt_qtaguid") && in testPocCVE_2017_13273() 45 containsDriver(getDevice(), "/proc/net/xt_qtaguid/ctrl")) { in testPocCVE_2017_13273() 46 AdbUtils.runPoc("CVE-2017-13273", getDevice(), 60); in testPocCVE_2017_13273() 48 getDevice()); in testPocCVE_2017_13273() 52 AdbUtils.runCommandLine("setenforce 1",getDevice()); in testPocCVE_2017_13273()
|
/cts/hostsidetests/angle/src/android/angle/cts/ |
D | CtsAngleDeveloperOptionHostTest.java | 45 setGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_PKGS, pkgName); in setAndValidateAngleDevOptionPkgDriver() 46 setGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_VALUES, driverValue); in setAndValidateAngleDevOptionPkgDriver() 48 String devOption = getGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_PKGS); in setAndValidateAngleDevOptionPkgDriver() 54 devOption = getGlobalSetting(getDevice(), SETTINGS_GLOBAL_DRIVER_VALUES); in setAndValidateAngleDevOptionPkgDriver() 62 stopPackage(getDevice(), pkgName); in setAndValidatePkgDriver() 66 startActivity(getDevice(), ANGLE_MAIN_ACTIVTY); in setAndValidatePkgDriver() 77 clearSettings(getDevice()); in setUp() 79 stopPackage(getDevice(), ANGLE_DRIVER_TEST_PKG); in setUp() 80 stopPackage(getDevice(), ANGLE_DRIVER_TEST_SEC_PKG); in setUp() 85 clearSettings(getDevice()); in tearDown() [all …]
|
/cts/hostsidetests/gputools/src/android/gputools/cts/ |
D | CtsRootlessGpuDebugHostTest.java | 133 return getDevice().executeShellCommand("date +\"%m-%d %H:%M:%S.%3N\""); in getTime() 140 getDevice().executeShellCommand("settings put global " + setting + " " + value); in applySetting() 149 … String returnedValue = getDevice().executeShellCommand("settings get global " + setting); in applySetting() 164 getDevice().executeShellCommand("shell settings delete global " + setting); in deleteSetting() 173 … String returnedValue = getDevice().executeShellCommand("settings get global " + setting); in deleteSetting() 192 String libPath = getDevice().executeAdbCommand("shell", "pm", "path", layerApp); in setupLayer() 199 … String layerPath = getDevice().executeAdbCommand("shell", "find", libPath + " -name " + layer); in setupLayer() 201 getDevice().executeAdbCommand("shell", "cp", layerPath + " /data/local/tmp"); in setupLayer() 239 String logcat = getDevice().executeShellCommand( in scanLog() 272 getDevice().executeAdbCommand("shell", "am", "force-stop", DEBUG_APP); in cleanup() [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/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 …]
|
/cts/hostsidetests/rollback/src/com/android/cts/rollback/host/ |
D | RollbackManagerHostTest.java | 57 return "true".equals(getDevice().getProperty("ro.apex.updatable")); in isApexUpdateSupported() 77 final String errorMessage = getDevice().uninstallPackage(SHIM_APEX_PACKAGE_NAME); in uninstallShimApexIfNecessary() 81 getDevice().reboot(); in uninstallShimApexIfNecessary() 89 return getDevice().getActiveApexes().stream().filter( in getShimApex() 103 getDevice().uninstallPackage(TEST_APK_PACKAGE_NAME); in tearDown() 113 getDevice().reboot(); in testApkOnlyStagedRollback() 115 getDevice().reboot(); in testApkOnlyStagedRollback() 127 getDevice().reboot(); in testApexOnlyStagedRollback() 129 getDevice().reboot(); in testApexOnlyStagedRollback() 131 getDevice().reboot(); in testApexOnlyStagedRollback() [all …]
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceOwnerTest.java | 117 getDevice().uninstallPackage(DEVICE_OWNER_PKG); in setUp() 121 getDevice().executeShellCommand(" mkdir " + TEST_UPDATE_LOCATION); in setUp() 132 getDevice().uninstallPackage(DEVICE_OWNER_PKG); in tearDown() 135 getDevice().executeShellCommand(" rm -r " + TEST_UPDATE_LOCATION); in tearDown() 150 assertMetricsLogged(getDevice(), () -> { in testLockScreenInfo() 162 assertMetricsLogged(getDevice(), () -> { in testWifi() 189 getDevice().setSetting("global", "sys_storage_threshold_percentage", "100"); in testCreateAndManageUser_LowStorage() 190 getDevice().setSetting("global", "sys_storage_threshold_max_bytes", in testCreateAndManageUser_LowStorage() 197 getDevice().executeShellCommand( in testCreateAndManageUser_LowStorage() 199 getDevice().executeShellCommand( in testCreateAndManageUser_LowStorage() [all …]
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 62 mHasFeature = getDevice().isMultiUserSupported() in setUp() 63 && getDevice().hasFeature(FEATURE_TELEPHONY) in setUp() 64 && getDevice().hasFeature(FEATURE_CONNECTION_SERVICE); in setUp() 70 installTestAppForUser(getDevice().getPrimaryUserId()); in setUp() 74 mPrimaryUserSerialNumber = getUserSerialNumber(getDevice().getPrimaryUserId()); in setUp() 81 getDevice().removeUser(mSecondaryUserId); in tearDown() 103 true /* setToSmsApp */, getDevice().getPrimaryUserId()); in testNumberBlocking() 111 false /* setToSmsApp */, getDevice().getPrimaryUserId()); in testNumberBlocking() 139 true /* setToSmsApp */, getDevice().getPrimaryUserId()); in testNumberBlocking() 147 getDevice().startUser(userId); in startUserAndWait() [all …]
|