/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | AppSecurityTests.java | 116 getDevice().uninstallPackage(SHARED_UI_PKG); in testSharedUidDifferentCerts() 117 getDevice().uninstallPackage(SHARED_UI_DIFF_CERT_PKG); in testSharedUidDifferentCerts() 120 String installResult = getDevice().installPackage(getTestAppFile(SHARED_UI_APK), in testSharedUidDifferentCerts() 124 installResult = getDevice().installPackage(getTestAppFile(SHARED_UI_DIFF_CERT_APK), in testSharedUidDifferentCerts() 131 getDevice().uninstallPackage(SHARED_UI_PKG); in testSharedUidDifferentCerts() 132 getDevice().uninstallPackage(SHARED_UI_DIFF_CERT_PKG); in testSharedUidDifferentCerts() 144 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() 147 String installResult = getDevice().installPackage(getTestAppFile(SIMPLE_APP_APK), in testAppUpgradeDifferentCerts() 151 installResult = getDevice().installPackage(getTestAppFile(SIMPLE_APP_DIFF_CERT_APK), in testAppUpgradeDifferentCerts() 158 getDevice().uninstallPackage(SIMPLE_APP_PKG); in testAppUpgradeDifferentCerts() [all …]
|
D | PrivilegedUpdateTests.java | 69 getDevice().uninstallPackage(SHIM_PKG); in setUp() 70 getDevice().uninstallPackage(TEST_PKG); in setUp() 72 assertNull(getDevice().installPackage( in setUp() 74 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in setUp() 81 getDevice().uninstallPackage(SHIM_PKG); in tearDown() 82 getDevice().uninstallPackage(TEST_PKG); in tearDown() 83 getDevice().executeShellCommand("pm enable " + SHIM_PKG); in tearDown() 87 getDevice().uninstallPackage(SHIM_PKG); in testPrivilegedAppUpgradeRestricted() 88 assertEquals(RESTRICTED_UPGRADE_FAILURE, getDevice().installPackage( in testPrivilegedAppUpgradeRestricted() 101 getDevice().uninstallPackage(SHIM_PKG); in testPrivilegedAppUpgradePriorities() [all …]
|
D | PermissionsHostTest.java | 58 getDevice().uninstallPackage(PKG); in setUp() 65 getDevice().uninstallPackage(PKG); in tearDown() 70 assertNull(getDevice().installPackage( in testFail() 82 assertNull(getDevice().installPackage( in testKill() 93 assertNull(getDevice().installPackage( in testCompatDefault22() 101 assertNull(getDevice().installPackage( in testCompatRevoked22() 115 assertNull(getDevice().installPackage( in testNoRuntimePrompt22() 123 assertNull(getDevice().installPackage( in testDefault23() 130 assertNull(getDevice().installPackage( in testGranted23() 137 assertNull(getDevice().installPackage( in testInteractiveGrant23() [all …]
|
D | ExternalStorageHostTest.java | 93 getDevice().uninstallPackage(NONE_PKG); in testExternalStorageNone() 95 assertNull(getDevice().installPackage(getTestAppFile(NONE_APK), false, options)); in testExternalStorageNone() 102 getDevice().uninstallPackage(NONE_PKG); in testExternalStorageNone() 117 getDevice().uninstallPackage(READ_PKG); in testExternalStorageRead() 119 assertNull(getDevice().installPackage(getTestAppFile(READ_APK), false, options)); in testExternalStorageRead() 126 getDevice().uninstallPackage(READ_PKG); in testExternalStorageRead() 141 getDevice().uninstallPackage(WRITE_PKG); in testExternalStorageWrite() 143 assertNull(getDevice().installPackage(getTestAppFile(WRITE_APK), false, options)); in testExternalStorageWrite() 150 getDevice().uninstallPackage(WRITE_PKG); in testExternalStorageWrite() 164 getDevice().uninstallPackage(NONE_PKG); in testExternalStorageGifts() [all …]
|
D | AdoptableHostTest.java | 63 getDevice().uninstallPackage(PKG); in setUp() 70 getDevice().uninstallPackage(PKG); in tearDown() 89 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in testApps() 93 assertSuccess(getDevice().executeShellCommand( in testApps() 100 getDevice().executeShellCommand("sm unmount " + vol.volId); in testApps() 101 getDevice().executeShellCommand("sm mount " + vol.volId); in testApps() 107 assertSuccess(getDevice().executeShellCommand("pm move-package " + PKG + " internal")); in testApps() 113 getDevice().executeShellCommand("sm partition " + diskId + " public"); in testApps() 127 final String originalVol = getDevice() in testPrimaryStorage() 149 assertEmpty(getDevice().executeShellCommand("sm partition " + diskId + " private")); in verifyPrimaryInternal() [all …]
|
D | DirectBootHostTest.java | 70 getDevice().uninstallPackage(PKG); in setUp() 71 getDevice().uninstallPackage(OTHER_PKG); in setUp() 78 getDevice().uninstallPackage(PKG); in tearDown() 79 getDevice().uninstallPackage(OTHER_PKG); in tearDown() 137 getDevice().executeShellCommand("am start -a android.intent.action.MAIN" in doDirectBootTest() 150 getDevice().executeShellCommand("sm set-emulate-fbe true"); in doDirectBootTest() 151 getDevice().waitForDeviceOnline(); in doDirectBootTest() 153 getDevice().rebootUntilOnline(); in doDirectBootTest() 168 getDevice().uninstallPackage(PKG); in doDirectBootTest() 173 getDevice().executeShellCommand("sm set-emulate-fbe false"); in doDirectBootTest() [all …]
|
D | UsesLibraryHostTest.java | 57 getDevice().uninstallPackage(PKG); in setUp() 64 getDevice().uninstallPackage(PKG); in tearDown() 68 assertNull(getDevice().installPackage( in testUsesLibrary() 74 assertNull(getDevice().installPackage( in testMissingLibrary() 80 assertNull(getDevice().installPackage( in testDuplicateLibrary() 87 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName); in runDeviceTests()
|
D | DocumentsTestCase.java | 54 getDevice().uninstallPackage(CLIENT_PKG); in setUp() 56 assertNull(getDevice().installPackage( in setUp() 64 getDevice().uninstallPackage(CLIENT_PKG); in tearDown() 69 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName); in runDeviceTests()
|
D | DocumentsTest.java | 33 getDevice().uninstallPackage(PROVIDER_PKG); in setUp() 35 assertNull(getDevice().installPackage( in setUp() 43 getDevice().uninstallPackage(PROVIDER_PKG); in tearDown()
|
/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() 122 assertTrue(getDevice().startUser(mSecondaryUserId)); in testNumberBlocking() 139 true /* setToSmsApp */, getDevice().getPrimaryUserId()); in testNumberBlocking() [all …]
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | CustomDeviceOwnerTest.java | 61 getDevice().uninstallPackage(DEVICE_OWNER_PKG); in tearDown() 62 getDevice().uninstallPackage(ACCOUNT_MANAGEMENT_PKG); in tearDown() 92 getDevice().uninstallPackage(INTENT_RECEIVER_PKG); in testOwnerChangedBroadcast() 145 getDevice().uninstallPackage(TEST_APP_PKG); in testSilentPackageInstall() 146 assertTrue(getDevice().pushFile(apk, TEST_APP_LOCATION + apk.getName())); in testSilentPackageInstall() 153 String commandOutput = getDevice().executeShellCommand(command); in testSilentPackageInstall() 154 getDevice().uninstallPackage(TEST_APP_PKG); in testSilentPackageInstall() 155 getDevice().uninstallPackage(PACKAGE_INSTALLER_PKG); in testSilentPackageInstall() 169 getDevice().uninstallPackage(DEVICE_OWNER_PKG); in testIsProvisioningAllowed()
|
D | BaseDevicePolicyTest.java | 95 mHasFeature = getDevice().getApiLevel() >= 21 /* Build.VERSION_CODES.L */ in setUp() 100 mPackageVerifier = getDevice().executeShellCommand( in setUp() 102 getDevice().executeShellCommand("settings put global package_verifier_enable 0"); in setUp() 118 getDevice().executeShellCommand("settings put global package_verifier_enable " in tearDown() 133 String result = getDevice().installPackageForUser( in installAppAsUser() 142 getDevice().startUser(userId); in startUser() 149 String commandOutput = getDevice().executeShellCommand(command); in switchUser() 154 return getDevice().getMaxNumberOfUsersSupported(); in getMaxNumberOfUsersSupported() 159 String commandOutput = getDevice().executeShellCommand(command); in getUserFlags() 180 return getDevice().listUsers(); in listUsers() [all …]
|
D | DeviceAndProfileOwnerTest.java | 98 getDevice().uninstallPackage(DEVICE_ADMIN_PKG); in tearDown() 99 getDevice().uninstallPackage(PERMISSIONS_APP_PKG); in tearDown() 100 getDevice().uninstallPackage(SIMPLE_PRE_M_APP_PKG); in tearDown() 101 getDevice().uninstallPackage(APP_RESTRICTIONS_MANAGING_APP_PKG); in tearDown() 102 getDevice().uninstallPackage(APP_RESTRICTIONS_TARGET_APP_PKG); in tearDown() 103 getDevice().uninstallPackage(CERT_INSTALLER_PKG); in tearDown() 104 getDevice().uninstallPackage(ACCOUNT_MANAGEMENT_PKG); in tearDown() 105 getDevice().uninstallPackage(VPN_APP_PKG); in tearDown() 106 getDevice().uninstallPackage(INTENT_RECEIVER_PKG); in tearDown() 107 getDevice().uninstallPackage(INTENT_SENDER_PKG); in tearDown() [all …]
|
D | BaseLauncherAppsTest.java | 45 getDevice().uninstallPackage(LAUNCHER_TESTS_PKG); in uninstallTestApps() 46 getDevice().uninstallPackage(LAUNCHER_TESTS_SUPPORT_PKG); in uninstallTestApps() 47 getDevice().uninstallPackage(SIMPLE_APP_PKG); in uninstallTestApps() 54 CLog.d("Output for command " + command + ": " + getDevice().executeShellCommand(command)); in startCallbackService()
|
D | ManagedProfileTest.java | 106 getDevice().uninstallPackage(MANAGED_PROFILE_PKG); in tearDown() 107 getDevice().uninstallPackage(INTENT_SENDER_PKG); in tearDown() 108 getDevice().uninstallPackage(INTENT_RECEIVER_PKG); in tearDown() 187 + getDevice().executeShellCommand(command)); in testCrossProfileIntentFilters() 322 if (getDevice().isAdbRoot()) { in testNoDebuggingFeaturesRestriction() 524 getDevice().uninstallPackage(DEVICE_OWNER_PKG); in testCannotSetDeviceOwnerWhenProfilePresent() 560 getDevice().executeShellCommand("appwidget grantbind --user " + mParentUserId in testCrossProfileWidgets() 594 getDevice().uninstallPackage(WIDGET_PROVIDER_PKG); in testCrossProfileWidgets() 619 + getDevice().executeShellCommand(command)); in setDirectoryPrefix() 730 + getDevice().executeShellCommand(command)); in disableActivityForUser() [all …]
|
/cts/hostsidetests/trustedvoice/src/android/trustedvoice/cts/ |
D | TrustedVoiceHostTest.java | 97 getDevice().executeAdbCommand("logcat", "-c"); in testUnlock() 99 getDevice().executeShellCommand(SLEEP_COMMAND); in testUnlock() 101 getDevice().executeShellCommand(START_COMMAND); in testUnlock() 103 String logs = getDevice().executeAdbCommand( in testUnlock() 125 getDevice().executeShellCommand(AWAKE_COMMAND); in testUnlock() 126 getDevice().executeShellCommand(DISMISS_KEYGUARD_COMMAND); in testUnlock()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | BaseMultiUserTest.java | 51 mSupportsMultiUser = getDevice().getMaxNumberOfUsersSupported() > 1; in setUp() 53 mPrimaryUserId = getDevice().getPrimaryUserId(); in setUp() 59 getDevice().switchUser(mPrimaryUserId); in setUp() 74 final String output = getDevice().executeShellCommand(command); in createRestrictedProfile() 90 for (int userId : getDevice().listUsers()) { in removeTestUsers() 92 getDevice().removeUser(userId); in removeTestUsers() 98 final String commandOuput = getDevice().executeShellCommand( in checkIfSplitSystemUser()
|
D | CreateUsersPermissionTest.java | 24 getDevice().createUser( in testCanCreateGuestUser() 34 getDevice().createUser( in testCanCreateEphemeralUser() 49 final String output = getDevice().executeShellCommand(setRestriction + "1"); in testCantSetUserRestriction()
|
/cts/hostsidetests/atrace/src/android/atrace/cts/ |
D | AtraceHostTest.java | 157 String output = getDevice().executeShellCommand("atrace"); in testSimpleRun() 172 String output = getDevice().executeShellCommand("atrace --list_categories"); in testCategories() 201 getDevice().uninstallPackage(TEST_PKG); in testTracingContent() 205 String installResult = getDevice().installPackage(testAppFile, false); in testTracingContent() 213 getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent() 214 getDevice().executeShellCommand("atrace --async_start " + atraceArgs); in testTracingContent() 215 getDevice().executeShellCommand("am start " + TEST_PKG); in testTracingContent() 216 getDevice().executeShellCommand("sleep 1"); in testTracingContent() 217 atraceOutput = getDevice().executeShellCommand("atrace --async_stop " + atraceArgs); in testTracingContent() 220 getDevice().uninstallPackage(TEST_PKG); in testTracingContent()
|
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/ |
D | JdwpSecurityHostTest.java | 76 boolean success = getDevice().pushFile(tempFile, getDeviceScriptFilepath()); in setUp() 85 getDevice().executeShellCommand("chmod 755 " + getDeviceScriptFilepath()); in setUp() 89 boolean success = getDevice().pushFile(jarFile, getDeviceJarFilepath()); in setUp() 96 getDevice().executeShellCommand(String.format("rm -r %s", DEVICE_LOCATION)); in tearDown() 266 return ArrayUtil.buildArray(new String[] {"adb", "-s", getDevice().getSerialNumber()}, in buildAdbCommand() 271 if (getDevice().doesFileExist(remoteFilePath)) { in createRemoteDir() 281 getDevice().executeShellCommand(String.format("mkdir %s", remoteFilePath)); in createRemoteDir() 282 return getDevice().doesFileExist(remoteFilePath); in createRemoteDir()
|
/cts/hostsidetests/systemui/src/android/host/systemui/ |
D | BaseTileServiceTest.java | 102 getDevice().executeShellCommand(cmd); in execute() 118 String logs = getDevice().executeAdbCommand("logcat", "-v", "brief", "-d", mService + ":I", in hasLog() 124 getDevice().executeAdbCommand("logcat", "-c"); in clearLogcat() 128 String features = getDevice().executeShellCommand("pm list features"); in supportedHardware()
|
/cts/hostsidetests/net/src/com/android/cts/net/ |
D | HostsideNetworkTestCase.java | 68 assertTrue("wi-fi not enabled", getDevice().isWifiEnabled()); in setUp() 83 assertNull(getDevice().installPackage(MigrationHelper.getTestFile(mCtsBuild, apk), false)); in installPackage() 88 final String result = getDevice().uninstallPackage(packageName); in uninstallPackage() 132 "android.support.test.runner.AndroidJUnitRunner", getDevice().getIDevice()); in runDeviceTests() 143 getDevice().runInstrumentationTests(testRunner, listener); in runDeviceTests() 182 final String output = getDevice().executeShellCommand(command); in runCommand()
|
/cts/hostsidetests/tv/src/com/android/cts/tv/ |
D | TvInputManagerHostTest.java | 54 assertNull(getDevice().installPackage( in installPackage() 60 final String result = getDevice().uninstallPackage(packageName); in uninstallPackage() 104 ITestDevice device = getDevice(); in testInputUpdated() 135 String commandOutput = getDevice().executeShellCommand(command); in hasDeviceFeature()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
D | JUnitDeviceTest.java | 93 public ITestDevice getDevice() { in getDevice() method in JUnitDeviceTest 155 CLog.d("Installing %s on %s", f, getDevice().getSerialNumber()); in installJars() 160 boolean result = getDevice().pushFile(jarFile, fullJarPath); in installJars() 177 CLog.d("Uninstalling %s on %s", fullJarPath, getDevice().getSerialNumber()); in removeJars() 178 getDevice().executeShellCommand(String.format("rm %s", fullJarPath)); in removeJars()
|
D | TestNGDeviceTest.java | 89 public ITestDevice getDevice() { in getDevice() method in TestNGDeviceTest 151 CLog.d("Installing %s on %s", f, getDevice().getSerialNumber()); in installJars() 156 boolean result = getDevice().pushFile(jarFile, fullJarPath); in installJars() 175 CLog.d("Uninstalling %s on %s", fullJarPath, getDevice().getSerialNumber()); in removeJars() 176 getDevice().executeShellCommand(String.format("rm %s", fullJarPath)); in removeJars()
|