/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() 85 getDevice().uninstallPackage(REVIEW_HELPER_PKG); in approveReviewPermissionDialog() 92 Utils.prepareSingleUser(getDevice()); in setUp() 96 getDevice().uninstallPackage(USES_PERMISSION_PKG); in setUp() 97 getDevice().uninstallPackage(ESCALATE_PERMISSION_PKG); in setUp() 98 getDevice().uninstallPackage(PERMISSION_POLICY_25_PKG); in setUp() 101 mScreenTimeoutBeforeTest = getDevice().getSetting(SCREEN_OFF_TIMEOUT_NS, in setUp() 103 getDevice().setSetting(SCREEN_OFF_TIMEOUT_NS, SCREEN_OFF_TIMEOUT_KEY, "1800000"); in setUp() 106 getDevice().executeShellCommand("input keyevent KEYCODE_WAKEUP"); in setUp() 107 getDevice().disableKeyguard(); in setUp() [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() 83 String overlayPackageForCurrentUser = overlayPackage + ":" + getDevice().getCurrentUser(); in getStateForOverlay() 119 getDevice().uninstallPackage(TARGET_PACKAGE); 120 getDevice().uninstallPackage(overlayPackage); 121 assertFalse(getDevice().getInstalledPackageNames().contains(OVERLAY_ALL_PACKAGE)); 122 assertFalse(getDevice().getInstalledPackageNames().contains(overlayPackage)); 128 getDevice().executeShellCommand("cmd overlay enable --user current " + overlayPackage); 131 getDevice().uninstallPackage(TARGET_PACKAGE); 132 getDevice().uninstallPackage(overlayPackage); [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 | AppSecurityTests.java | 87 Utils.prepareSingleUser(getDevice()); in setUp() 108 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() 109 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts() 115 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() 116 getDevice().uninstallPackage(SIMPLE_APP_DIFF_CERT_APK); in testAppUpgradeDifferentCerts() 137 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData() 138 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData() 146 getDevice().uninstallPackage(APP_WITH_DATA_PKG); in testAppFailAccessPrivateData() 147 getDevice().uninstallPackage(APP_ACCESS_DATA_PKG); in testAppFailAccessPrivateData() 167 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 | 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 | 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 | 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 | IsolatedSplitsTests.java | 50 Utils.prepareSingleUser(getDevice()); in setUp() 51 getDevice().uninstallPackage(PKG); in setUp() 56 getDevice().uninstallPackage(PKG); in tearDown() 73 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallBase() 90 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallBaseAndConfigSplit() 118 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadDefault"); in testInstallOneFeatureSplit() 119 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit() 121 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, in testInstallOneFeatureSplit() 140 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, "shouldLoadPolishLocale"); in testInstallOneFeatureSplitAndConfigSplits() 141 Utils.runDeviceTestsAsCurrentUser(getDevice(), PKG, TEST_CLASS, 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 | 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() 57 getDevice().executeShellCommand("cmd lock_settings set-pin 1234"); in useInvalidatedAuthBoundKey() 59 getDevice().executeShellCommand("cmd lock_settings clear --old 1234"); in useInvalidatedAuthBoundKey() 61 getDevice().executeShellCommand("cmd lock_settings set-pin 12345"); in useInvalidatedAuthBoundKey() 62 getDevice().executeShellCommand("input keyevent 26"); // Screen on in useInvalidatedAuthBoundKey() 63 getDevice().executeShellCommand("input keyevent 82"); // Bring up lock screen in useInvalidatedAuthBoundKey() 64 getDevice().executeShellCommand("input text 12345"); // Input password in useInvalidatedAuthBoundKey() [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 | 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/userspacereboot/src/com/android/cts/userspacereboot/host/ |
D | UserspaceRebootHostTest.java | 66 getDevice(), pkgName, pkgName + "." + className, testName, timeout.toMillis()); in runDeviceTest() 71 getDevice().installPackage(helper.getTestFile(apkFileName), false, true); in installApk() 79 getDevice().uninstallPackage(BASIC_TEST_APP_PACKAGE_NAME); in setUp() 80 getDevice().uninstallPackage(BOOT_COMPLETED_TEST_APP_PACKAGE_NAME); in setUp() 88 getDevice().uninstallPackage(BASIC_TEST_APP_PACKAGE_NAME); in cleanUp() 89 getDevice().uninstallPackage(BOOT_COMPLETED_TEST_APP_PACKAGE_NAME); in cleanUp() 90 getDevice().disableAdbRoot(); in cleanUp() 99 getDevice().getBooleanProperty(USERSPACE_REBOOT_SUPPORTED_PROP, false)); in testOnlyFbeDevicesSupportUserspaceReboot() 100 assertThat(getDevice().getProperty("ro.crypto.state")).isEqualTo("encrypted"); in testOnlyFbeDevicesSupportUserspaceReboot() 101 assertThat(getDevice().getProperty("ro.crypto.type")).isEqualTo("file"); in testOnlyFbeDevicesSupportUserspaceReboot() [all …]
|
/cts/hostsidetests/gputools/src/android/gputools/cts/ |
D | CtsRootlessGpuDebugHostTest.java | 132 return getDevice().executeShellCommand("date +\"%m-%d %H:%M:%S.%3N\""); in getTime() 139 getDevice().executeShellCommand("settings put global " + setting + " " + value); in applySetting() 148 … String returnedValue = getDevice().executeShellCommand("settings get global " + setting); in applySetting() 163 getDevice().executeShellCommand("shell settings delete global " + setting); in deleteSetting() 172 … String returnedValue = getDevice().executeShellCommand("settings get global " + setting); in deleteSetting() 191 String libPath = getDevice().executeAdbCommand("shell", "pm", "path", layerApp); in setupLayer() 198 … String layerPath = getDevice().executeAdbCommand("shell", "find", libPath + " -name " + layer); in setupLayer() 200 getDevice().executeAdbCommand("shell", "cp", layerPath + " /data/local/tmp"); in setupLayer() 238 String logcat = getDevice().executeShellCommand( in scanLog() 271 getDevice().executeAdbCommand("shell", "am", "force-stop", DEBUG_APP); in cleanup() [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() 65 startActivity(getDevice(), ANGLE_MAIN_ACTIVTY); in setAndValidatePkgDriver() 76 clearSettings(getDevice()); in setUp() 78 stopPackage(getDevice(), ANGLE_DRIVER_TEST_PKG); in setUp() 79 stopPackage(getDevice(), ANGLE_DRIVER_TEST_SEC_PKG); in setUp() 84 clearSettings(getDevice()); in tearDown() [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() 124 getDevice().reboot(); in testApkOnlyStagedRollback() 126 getDevice().reboot(); in testApkOnlyStagedRollback() 137 getDevice().reboot(); in testApkOnlyMultipleStagedRollback() 139 getDevice().reboot(); in testApkOnlyMultipleStagedRollback() 150 getDevice().reboot(); in testApkOnlyMultipleStagedPartialRollback() 152 getDevice().reboot(); in testApkOnlyMultipleStagedPartialRollback() [all …]
|
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/ |
D | StagedInstallTest.java | 97 getDevice().reboot(); in testInstallStagedApk() 111 getDevice().reboot(); in testAbandonStagedApkBeforeReboot() 120 getDevice().reboot(); in testInstallMultipleStagedApks() 127 getDevice().executeShellCommand("am get-current-user").trim(), equalTo(systemUser)); in assumeSystemUser() 164 assumeThat(getDevice().getBuildFlavor(), not(endsWith("-user"))); in testStagedInstallDowngrade_DowngradeRequested_DebugBuild() 167 getDevice().reboot(); in testStagedInstallDowngrade_DowngradeRequested_DebugBuild() 173 assumeThat(getDevice().getBuildFlavor(), endsWith("-user")); in testStagedInstallDowngrade_DowngradeRequested_UserBuild() 191 getDevice().reboot(); in testInstallStagedApex() 200 getDevice().reboot(); in testInstallStagedApexAndApk() 224 getDevice().reboot(); in testStageApkWithSameNameAsApexShouldFail() [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/hdmicec/src/android/hdmicec/cts/audio/ |
D | HdmiCecRemoteControlPassThroughTest.java | 71 ITestDevice device = getDevice(); in cect_11_2_13_1_UserControlPressAndRelease() 80 LogHelper.assertLog(getDevice(), CLASS, "Short press KEYCODE_DPAD_UP"); in cect_11_2_13_1_UserControlPressAndRelease() 83 LogHelper.assertLog(getDevice(), CLASS, "Short press KEYCODE_DPAD_DOWN"); in cect_11_2_13_1_UserControlPressAndRelease() 86 LogHelper.assertLog(getDevice(), CLASS, "Short press KEYCODE_DPAD_LEFT"); in cect_11_2_13_1_UserControlPressAndRelease() 89 LogHelper.assertLog(getDevice(), CLASS, "Short press KEYCODE_DPAD_RIGHT"); in cect_11_2_13_1_UserControlPressAndRelease() 92 LogHelper.assertLog(getDevice(), CLASS, "Short press KEYCODE_DPAD_CENTER"); in cect_11_2_13_1_UserControlPressAndRelease() 95 LogHelper.assertLog(getDevice(), CLASS, "Short press KEYCODE_BACK"); in cect_11_2_13_1_UserControlPressAndRelease() 105 ITestDevice device = getDevice(); in cect_11_2_13_2_UserControlPressAndHold() 114 LogHelper.assertLog(getDevice(), CLASS, "Long press KEYCODE_DPAD_UP"); in cect_11_2_13_2_UserControlPressAndHold() 117 LogHelper.assertLog(getDevice(), CLASS, "Long press KEYCODE_DPAD_DOWN"); in cect_11_2_13_2_UserControlPressAndHold() [all …]
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | DeviceOwnerTest.java | 111 getDevice().uninstallPackage(DEVICE_OWNER_PKG); in setUp() 115 getDevice().executeShellCommand(" mkdir " + TEST_UPDATE_LOCATION); in setUp() 117 …getDevice().executeShellCommand("cmd notification allow_listener com.android.cts.deviceowner/com.a… in setUp() 128 getDevice().uninstallPackage(DEVICE_OWNER_PKG); in tearDown() 131 getDevice().executeShellCommand(" rm -r " + TEST_UPDATE_LOCATION); in tearDown() 146 assertMetricsLogged(getDevice(), () -> { in testLockScreenInfo() 158 assertMetricsLogged(getDevice(), () -> { in testWifi() 185 getDevice().setSetting("global", "sys_storage_threshold_percentage", "100"); in testCreateAndManageUser_LowStorage() 186 getDevice().setSetting("global", "sys_storage_threshold_max_bytes", in testCreateAndManageUser_LowStorage() 193 getDevice().executeShellCommand( in testCreateAndManageUser_LowStorage() [all …]
|