Home
last modified time | relevance | path

Searched refs:isPackageInstalled (Results 1 – 25 of 39) sorted by relevance

12

/cts/hostsidetests/packagemanager/deletekeepdata/src/com/android/tests/deletekeepdata/host/
DDeleteKeepDataRebootTest.java49 assertTrue(isPackageInstalled(TEST_PACKAGE)); in setUp()
55 assertFalse(isPackageInstalled(TEST_PACKAGE)); in cleanUp()
63 assertFalse(isPackageInstalled(TEST_PACKAGE)); in testDataNotPreservedWithoutFlag()
74 assertFalse(isPackageInstalled(TEST_PACKAGE)); in testDataPreservedWithFlagWithoutReboot()
85 assertFalse(isPackageInstalled(TEST_PACKAGE)); in testDataPreservedWithFlagWithReboot()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DPackageInstallTest.java56 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testPackageInstall()
68 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testPackageInstall()
72 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testPackageUninstall()
84 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testPackageUninstall()
94 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testInstallExistingPackage()
98 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testInstallExistingPackage()
134 private boolean isPackageInstalled(String packageName) { in isPackageInstalled() method in PackageInstallTest
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSilentPackageInstallTest.java42 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testSilentInstallUninstall()
54 assertTrue(isPackageInstalled(TEST_APP_PKG)); in testUninstallBlocked()
60 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testUninstallBlocked()
DBasePackageInstallTest.java137 assertFalse(isPackageInstalled(TEST_APP_PKG)); in setUp()
178 assertFalse(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage()
192 assertTrue(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage()
196 assertTrue(isPackageInstalled(TEST_APP_PKG)); in tryUninstallPackage()
252 protected boolean isPackageInstalled(String packageName) { in isPackageInstalled() method in BasePackageInstallTest
/cts/hostsidetests/packagemanager/installedloadingprogess/hostside/src/com/android/tests/loadingprogress/host/
DNonIncrementalLoadingProgressTest.java49 assertFalse(getDevice().isPackageInstalled(TEST_APP_PACKAGE_NAME)); in setUp()
54 assertTrue(getDevice().isPackageInstalled(TEST_APP_PACKAGE_NAME)); in setUp()
60 assertFalse(getDevice().isPackageInstalled(TEST_APP_PACKAGE_NAME)); in tearDown()
DIncrementalLoadingProgressTest.java103 assertTrue(getDevice().isPackageInstalled(TEST_APP_PACKAGE_NAME)); in setUp()
112 assertFalse(getDevice().isPackageInstalled(TEST_APP_PACKAGE_NAME)); in tearDown()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java95 assertFalse(isPackageInstalled(TEST_APP_PKG)); in setUp()
120 assertFalse(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage()
122 assertTrue(isPackageInstalled(TEST_APP_PKG)); in assertInstallPackage()
163 protected boolean isPackageInstalled(String packageName) { in isPackageInstalled() method in BasePackageInstallTest
173 assertTrue(isPackageInstalled(TEST_APP_PKG)); in tryUninstallPackage()
DSilentPackageInstallTest.java30 assertFalse(isPackageInstalled(TEST_APP_PKG)); in testSilentInstallUninstall()
/cts/tests/framework/base/windowmanager/src/android/server/wm/other/
DDeprecatedAbiTest.java82 assumeTrue(isPackageInstalled(TEST_PACKAGE_NAME)); in testWarningDialog()
98 private boolean isPackageInstalled(String packageName) { in isPackageInstalled() method in DeprecatedAbiTest
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/
DAppCloningHostTest.java212 assertThat(isPackageInstalled(APP_A_PACKAGE, sCloneUserId)).isTrue(); in testPrivateAppDataDirectoryForCloneUser()
285 assertThat(isPackageInstalled(APP_A_PACKAGE, String.valueOf(currentUserId))).isTrue(); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp()
292 assertThat(isPackageInstalled(APP_A_PACKAGE, sCloneUserId)).isTrue(); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp()
317 assertThat(isPackageInstalled(APP_A_PACKAGE, in testDeletionOfAppInNotParentProfile_notDeletesCloneApp()
325 assertThat(isPackageInstalled(APP_A_PACKAGE, sCloneUserId)).isTrue(); in testDeletionOfAppInNotParentProfile_notDeletesCloneApp()
332 assertThat(isPackageInstalled(APP_A_PACKAGE, managedProfileId)).isTrue(); in testDeletionOfAppInNotParentProfile_notDeletesCloneApp()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DEphemeralTest.java90 .that(getDevice().isPackageInstalled(TEST_APP_PKG_NAME, in testRebootAndRemoveEphemeralUser_withAccount()
178 .that(getDevice().isPackageInstalled(DpcCommander.PKG_NAME)) in testRemoveUserWhenPossible_devicePolicyIsSet()
211 .that(getDevice().isPackageInstalled(TEST_APP_PKG_NAME)) in executeRemoveUserWhenPossible()
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/
DInstalledIncrementalPackageStatsTests.java59 assertTrue(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testInstalledIncrementalMetricsReported()
62 assertTrue(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE2, in testInstalledIncrementalMetricsReported()
DComponentStateChangedReportedStatsTests.java108 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedForWholeApp()
143 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedForLauncherActivity()
178 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedForNoLauncherActivity()
213 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedEnabledThenDisabled()
259 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedEnabledThenDisabledWholeApp()
306 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testComponentStateChangedReportedForTwoDifferentStateLauncherActivities()
DPackageInstallationSessionReportedStatsTests.java75 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testPackageInstallationSessionReportedForApkSuccessWithReplace()
198 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testPackageUninstalledReported()
202 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testPackageUninstalledReported()
229 assertThat(getDevice().isPackageInstalled(TEST_INSTALL_PACKAGE, in testPackageInstallationFailedVersionDowngradeReported()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/admin/
DDeviceAdminUninstallTestActivity.java96 mAdminInstalled = isPackageInstalled(ADMIN_PACKAGE_NAME); in onCreate()
126 private boolean isPackageInstalled(String packageName) { in isPackageInstalled() method in DeviceAdminUninstallTestActivity
155 mAdminRemoved = !isPackageInstalled(ADMIN_PACKAGE_NAME); in onActivityResult()
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DBaseHostTestCase.java44 protected boolean isPackageInstalled(String packageName, String userId) throws Exception { in isPackageInstalled() method in BaseHostTestCase
45 return getDevice().isPackageInstalled(packageName, userId); in isPackageInstalled()
/cts/hostsidetests/packagemanager/preferredactivity/src/com/android/cts/packagemanager/preferredactivity/host/
DPreferredActivityTests.java61 assertTrue(getDevice().isPackageInstalled(TEST_PACKAGE_NAME)); in setUp()
68 assertFalse(getDevice().isPackageInstalled(TEST_PACKAGE_NAME)); in tearDown()
/cts/hostsidetests/packagemanager/extractnativelibs/src/android/extractnativelibs/cts/
DCtsExtractNativeLibsHostTestFails.java53 assertFalse(isPackageInstalled(TEST_NO_EXTRACT_PKG)); in testExtractNativeLibsIncrementalFails()
DCtsExtractNativeLibsHostTestInstalls.java99 assertTrue(isPackageInstalled(testPackageName)); in testInstallAndRunSuccess()
/cts/hostsidetests/packagemanager/packagesetting/src/com/android/tests/packagesetting/host/
DPackageSettingTest.java47 Assert.assertFalse(isPackageInstalled(TEST_PACKAGE)); in cleanUp()
54 Assert.assertTrue(isPackageInstalled(TEST_PACKAGE)); in testAppInstallsWithReboot()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DSettingsProviderInvalidKeyTest.java38 assertTrue(getDevice().isPackageInstalled(TEST_PACKAGE)); in setUp()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39706/src/android/security/cts/CVE_2021_39706/
DDeviceTest.java97 protected boolean isPackageInstalled(String packageName) { in isPackageInstalled() method in DeviceTest
136 isPackageInstalled(settingsPkg)); in testCredentialReset()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/
DBaseHostTestCase.java58 protected boolean isPackageInstalled(String packageName, String userId) throws Exception { in isPackageInstalled() method in BaseHostTestCase
59 return sDevice.isPackageInstalled(packageName, userId); in isPackageInstalled()
/cts/hostsidetests/incrementalinstall/src/android/incrementalinstall/cts/
DIncrementalInstallTest.java119 assertFalse(isPackageInstalled(TEST_APP_PACKAGE_NAME)); in setup()
125 assertFalse(isPackageInstalled(TEST_APP_PACKAGE_NAME)); in teardown()
344 isPackageInstalled(packageName)); in verifyPackageInstalled()
350 isPackageInstalled(packageName)); in verifyPackageNotInstalled()
DIncrementalFeatureTest.java83 assertTrue(getDevice().isPackageInstalled(TEST_APP_PACKAGE_NAME)); in testFeatureWorkingWithInstallation()

12