Home
last modified time | relevance | path

Searched refs:packageInstaller (Results 1 – 16 of 16) sorted by relevance

/cts/tests/tests/content/src/android/content/pm/cts/util/
DAbandonAllPackageSessionsRule.kt33 val packageInstaller = InstrumentationRegistry.getInstrumentation() in apply() constant
34 .getContext().packageManager.packageInstaller in apply()
35 packageInstaller.mySessions.forEach { in apply()
37 packageInstaller.abandonSession(it.sessionId) in apply()
/cts/tests/tests/permission/src/android/permission/cts/
DNoRollbackPermissionTest.java36 PackageInstaller packageInstaller = in testCreateInstallSessionWithReasonRollbackFails() local
46 assertThrows(SecurityException.class, () -> packageInstaller.createSession(parentParams)); in testCreateInstallSessionWithReasonRollbackFails()
/cts/libs/install/src/com/android/cts/install/lib/
DUninstall.java48 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in uninstallSinglePackage() local
50 packageInstaller.uninstall(packageName, sender.getIntentSender()); in uninstallSinglePackage()
DInstallUtils.java397 PackageInstaller packageInstaller = getPackageInstaller(); in getStagedSessionInfo() local
398 for (PackageInstaller.SessionInfo session : packageInstaller.getStagedSessions()) { in getStagedSessionInfo()
/cts/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/
DPackageManagerMultiUserTest.java54 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in testUninstallExistingPackage() local
56 packageInstaller.uninstallExistingPackage(pkgName, null); in testUninstallExistingPackage()
/cts/hostsidetests/install/app/src/android/cts/install/
DInstallRule.java80 PackageInstaller packageInstaller = getPackageInstaller(); in cleanUp() local
81 packageInstaller.getStagedSessions().stream() in cleanUp()
86 packageInstaller.abandonSession(sessionInfo.getSessionId()); in cleanUp()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java193 PackageInstaller packageInstaller = getPackageInstaller(); in cleanUp() local
194 List<PackageInstaller.SessionInfo> stagedSessions = packageInstaller.getStagedSessions(); in cleanUp()
204 packageInstaller.abandonSession(sessionInfo.getSessionId()); in cleanUp()
364 PackageInstaller packageInstaller = getPackageInstaller(); in testGetActiveStagedSessions() local
367 List<Integer> stagedSessionIds = packageInstaller.getActiveStagedSessions() in testGetActiveStagedSessions()
372 List<PackageInstaller.SessionInfo> allSessions = packageInstaller.getAllSessions(); in testGetActiveStagedSessions()
386 PackageInstaller packageInstaller = getPackageInstaller(); in testIsStagedSessionActive() local
389 List<PackageInstaller.SessionInfo> allSessions = packageInstaller.getAllSessions(); in testIsStagedSessionActive()
410 PackageInstaller packageInstaller = getPackageInstaller(); in testGetActiveStagedSessionsNoSessionActive() local
411 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getActiveStagedSessions(); in testGetActiveStagedSessionsNoSessionActive()
[all …]
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionTestInstant.kt37 pm.packageInstaller.createSession( in instantAppsCannotCreateInstallSessions()
DPackageInstallerTestBase.kt141 val pi = pm.packageInstaller in <lambda>()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DCommandReceiverActivity.java561 final PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in installHelperPackage() local
562 final PackageInstaller.Session session = packageInstaller.openSession( in installHelperPackage()
563 packageInstaller.createSession(new PackageInstaller.SessionParams( in installHelperPackage()
585 PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in uninstallHelperPackage() local
586 Log.i(TAG, "Uninstalling package " + HELPER_APP_PKG + " using " + packageInstaller); in uninstallHelperPackage()
588 packageInstaller.uninstall(HELPER_APP_PKG, PendingIntent.getBroadcast(this, in uninstallHelperPackage()
/cts/tests/tests/permission2/src/android/permission2/cts/
DRestrictedPermissionsTest.java396 final PackageInstaller packageInstaller = getContext() in installRestrictedPermissionUserApp() local
398 final int sessionId = packageInstaller.createSession(params); in installRestrictedPermissionUserApp()
399 final Session session = packageInstaller.openSession(sessionId); in installRestrictedPermissionUserApp()
/cts/tests/tests/appop2/src/android/app/appops2/cts/
DAppOpsLoggingTest.kt93 .packageInstaller in <lambda>()
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/
DPackageInstallerTestBase.kt133 val pi = pm.packageInstaller in <lambda>()
/cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/
DPackageInstallerTestBase.kt133 val pi = pm.packageInstaller in <lambda>()
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt132 val pi = pm.packageInstaller in launchPackageInstallerViaSession()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/
DClientTest.java555 final PackageInstaller packageInstaller = context.getPackageManager() in uninstallAndWaitForExtraUserInitiated()
557 packageInstaller.uninstall(packageName, null); in uninstallAndWaitForExtraUserInitiated()