Home
last modified time | relevance | path

Searched refs:TINY_PKG (Results 1 – 5 of 5) sorted by relevance

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageVisibilityTest.java38 private static final String TINY_PKG = "android.appsecurity.cts.tinyapp"; field in PackageVisibilityTest
57 getDevice().uninstallPackage(TINY_PKG); in setUpPackage()
64 getDevice().uninstallPackage(TINY_PKG); in tearDown()
93 assertTrue(isAppVisibleForUser(TINY_PKG, mPrimaryUserId, MATCH_NORMAL)); in testUninstalledPackageVisibility()
94 assertTrue(isAppVisibleForUser(TINY_PKG, mPrimaryUserId, MATCH_UNINSTALLED)); in testUninstalledPackageVisibility()
103 assertFalse(isAppVisibleForUser(TINY_PKG, userId, MATCH_NORMAL)); in testUninstalledPackageVisibility()
104 assertFalse(isAppVisibleForUser(TINY_PKG, userId, MATCH_UNINSTALLED)); in testUninstalledPackageVisibility()
115 getDevice().uninstallPackage(TINY_PKG); in testUninstalledPackageVisibility()
121 assertTrue(isAppVisibleForUser(TINY_PKG, userId, MATCH_NORMAL)); in testUninstalledPackageVisibility()
122 assertTrue(isAppVisibleForUser(TINY_PKG, userId, MATCH_UNINSTALLED)); in testUninstalledPackageVisibility()
[all …]
DPackageResolutionHostTest.java35 private static final String TINY_PKG = "android.appsecurity.cts.orderedactivity"; field in PackageResolutionHostTest
41 getDevice().uninstallPackage(TINY_PKG); in setUp()
46 getDevice().uninstallPackage(TINY_PKG); in tearDown()
63 Utils.runDeviceTests(getDevice(), TINY_PKG, in testResolveOrderedActivity() local
81 Utils.runDeviceTests(getDevice(), TINY_PKG, in testResolveOrderedService() local
99 Utils.runDeviceTests(getDevice(), TINY_PKG, in testResolveOrderedReceiver() local
DApplicationVisibilityTest.java38 private static final String TINY_PKG = "android.appsecurity.cts.tinyapp"; field in ApplicationVisibilityTest
59 getDevice().uninstallPackage(TINY_PKG); in tearDown()
/cts/hostsidetests/appsecurity/test-apps/PackageAccessApp/src/com/android/cts/packageaccessapp/
DPackageAccessTest.java39 private String TINY_PKG = "android.appsecurity.cts.tinyapp"; field in PackageAccessTest
52 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_inUser()
63 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_inUserUninstalled()
74 PackageInfo pi = pm.getPackageInfo(TINY_PKG, 0); in testPackageAccess_notInOtherUser()
85 PackageInfo pi = pm.getPackageInfo(TINY_PKG, PackageManager.MATCH_UNINSTALLED_PACKAGES); in testPackageAccess_notInOtherUserUninstalled()
98 if (TINY_PKG.equals(pi.packageName)) { in testPackageAccess_getPackagesCantSeeTiny()
99 fail(TINY_PKG + " visible in user"); in testPackageAccess_getPackagesCantSeeTiny()
110 if (TINY_PKG.equals(pi.packageName)) { in testPackageAccess_getPackagesCanSeeTiny()
114 fail(TINY_PKG + " not found in getInstalledPackages()"); in testPackageAccess_getPackagesCanSeeTiny()
/cts/hostsidetests/appsecurity/test-apps/ApplicationVisibilityCrossUserApp/src/com/android/cts/applicationvisibility/
DApplicationVisibilityCrossUserTest.java43 private String TINY_PKG = "android.appsecurity.cts.tinyapp"; field in ApplicationVisibilityCrossUserTest
57 assertFalse(isAppInPackageList(TINY_PKG, packageList)); in testPackageVisibility_currentUser()
66 assertTrue(isAppInPackageList(TINY_PKG, packageList)); in testPackageVisibility_anyUserCrossUserGrant()
87 assertTrue(isAppInPackageList(TINY_PKG, packageList)); in testPackageVisibility_otherUserGrant()
108 assertFalse(isAppInApplicationList(TINY_PKG, applicationList)); in testApplicationVisibility_currentUser()
117 assertTrue(isAppInApplicationList(TINY_PKG, applicationList)); in testApplicationVisibility_anyUserCrossUserGrant()
138 assertTrue(isAppInApplicationList(TINY_PKG, applicationList)); in testApplicationVisibility_otherUserGrant()