/cts/tests/tests/content/src/android/content/pm/cts/util/ |
D | AbandonAllPackageSessionsRule.kt | 33 val packageInstaller = InstrumentationRegistry.getInstrumentation() in apply() constant 34 .getContext().packageManager.packageInstaller in apply() 35 if (packageInstaller != null) { in apply() 36 packageInstaller.mySessions.forEach { in apply() 38 packageInstaller.abandonSession(it.sessionId) in apply()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2024_0044.java | 66 final PackageInstaller packageInstaller = in testPocCVE_2024_0044() local 68 final int sessionId = packageInstaller.createSession(params); in testPocCVE_2024_0044() 70 packageInstaller.getSessionInfo(sessionId).getAppPackageName(); in testPocCVE_2024_0044() 72 packageInstaller in testPocCVE_2024_0044() 75 packageInstaller.abandonSession(sessionId); in testPocCVE_2024_0044()
|
/cts/tests/tests/content/TestInstallerApp/src/com/android/cts/testinstallerapp/ |
D | MainActivity.java | 33 final PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate() local 39 packageInstaller.createSession(params); in onCreate()
|
/cts/libs/install/src/com/android/cts/install/lib/ |
D | Uninstall.java | 48 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in uninstallSinglePackage() local 50 packageInstaller.uninstall(packageName, sender.getIntentSender()); in uninstallSinglePackage()
|
D | InstallUtils.java | 389 PackageInstaller packageInstaller = getPackageInstaller(); in getStagedSessionInfo() local 390 for (PackageInstaller.SessionInfo session : packageInstaller.getStagedSessions()) { in getStagedSessionInfo()
|
/cts/tests/tests/security/testdata/src/android/security/cts/packageinstallertestapp/ |
D | BackgroundReceiver.java | 104 final PackageInstaller packageInstaller = in sendInstallCommit() local 106 final int sessionId = packageInstaller.createSession( in sendInstallCommit() 108 final Session session = packageInstaller.openSession(sessionId); in sendInstallCommit()
|
/cts/hostsidetests/packagemanager/multiuser/app/src/com/android/tests/packagemanager/multiuser/app/ |
D | PackageManagerMultiUserTest.java | 56 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in testUninstallExistingPackage() local 59 packageInstaller.uninstallExistingPackage(pkgName, sender.getIntentSender()); in testUninstallExistingPackage()
|
/cts/hostsidetests/install/app/src/android/cts/install/ |
D | InstallRule.java | 80 PackageInstaller packageInstaller = getPackageInstaller(); in cleanUp() local 81 packageInstaller.getStagedSessions().stream() in cleanUp() 86 packageInstaller.abandonSession(sessionInfo.getSessionId()); in cleanUp()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | SessionTestInstant.kt | 37 pm.packageInstaller.createSession( in instantAppsCannotCreateInstallSessions()
|
D | PackageInstallerTestBase.kt | 118 protected val pi = pm.packageInstaller in <lambda>()
|
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/ |
D | StagedInstallTest.java | 204 PackageInstaller packageInstaller = getPackageInstaller(); in cleanUp() local 205 List<PackageInstaller.SessionInfo> stagedSessions = packageInstaller.getStagedSessions(); in cleanUp() 215 packageInstaller.abandonSession(sessionInfo.getSessionId()); in cleanUp() 373 PackageInstaller packageInstaller = getPackageInstaller(); in testGetActiveStagedSessions() local 376 List<Integer> stagedSessionIds = packageInstaller.getActiveStagedSessions() in testGetActiveStagedSessions() 381 List<PackageInstaller.SessionInfo> allSessions = packageInstaller.getAllSessions(); in testGetActiveStagedSessions() 395 PackageInstaller packageInstaller = getPackageInstaller(); in testIsStagedSessionActive() local 398 List<PackageInstaller.SessionInfo> allSessions = packageInstaller.getAllSessions(); in testIsStagedSessionActive() 419 PackageInstaller packageInstaller = getPackageInstaller(); in testGetActiveStagedSessionsNoSessionActive() local 420 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getActiveStagedSessions(); in testGetActiveStagedSessionsNoSessionActive() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/qstiles/ |
D | TileServiceRequestVerifierActivity.java | 161 PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in requestAction() local 163 "Uninstalling package " + HELPER_PACKAGE_NAME + " using " + packageInstaller); in requestAction() 169 packageInstaller.uninstall(HELPER_ACTIVITY_COMPONENT.getPackageName(), in requestAction()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | CommandReceiverActivity.java | 674 final PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in installHelperPackage() local 675 final PackageInstaller.Session session = packageInstaller.openSession( in installHelperPackage() 676 packageInstaller.createSession(new PackageInstaller.SessionParams( in installHelperPackage() 699 PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in uninstallHelperPackage() local 700 Log.i(TAG, "Uninstalling package " + HELPER_APP_PKG + " using " + packageInstaller); in uninstallHelperPackage() 702 packageInstaller.uninstall(HELPER_APP_PKG, PendingIntent.getBroadcast(this, in uninstallHelperPackage()
|
/cts/tests/tests/appop2/src/android/app/appops2/cts/ |
D | AppOpsLoggingTest.kt | 93 .packageInstaller in <lambda>()
|
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/ |
D | NoPermissionTests.kt | 110 val pi = pm.packageInstaller in <lambda>()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Packages.java | 404 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in install() local 414 sessionId = packageInstaller.createSession(sessionParams); in install() 417 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in install()
|
/cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/ |
D | PackageInstallerTestBase.kt | 133 val pi = pm.packageInstaller in <lambda>()
|
/cts/tests/tests/packageinstaller/install_appop_default/src/android/packageinstaller/install_appop_default/cts/ |
D | PackageInstallerTestBase.kt | 133 val pi = pm.packageInstaller in <lambda>()
|
/cts/tests/tests/packageinstaller/packagescheme/src/android/packageinstaller/packagescheme/cts/ |
D | PackageSchemeTestBase.kt | 67 val mInstaller: PackageInstaller = mContext.packageManager.packageInstaller in <lambda>()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/NormalApp/src/com/android/cts/normalapp/ |
D | ClientTest.java | 555 final PackageInstaller packageInstaller = context.getPackageManager() in uninstallAndWaitForExtraUserInitiated() 557 packageInstaller.uninstall(packageName, null); in uninstallAndWaitForExtraUserInitiated()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageManagerTest.java | 2067 var packageInstaller = userContext.getPackageManager().getPackageInstaller(); in installArchivedAsUser() local 2072 packageInstaller.installPackageArchived(archivedPackageInfo, params, in installArchivedAsUser() 2106 var packageInstaller = mContext.getPackageManager().getPackageInstaller(); in testInvalidInstallSessionParamsPackageNames() local 2111 var session1 = packageInstaller.getSessionInfo(packageInstaller.createSession(params1)); in testInvalidInstallSessionParamsPackageNames() 2114 packageInstaller.openSession(session1.sessionId).abandon(); in testInvalidInstallSessionParamsPackageNames() 2119 var session2 = packageInstaller.getSessionInfo(packageInstaller.createSession(params2)); in testInvalidInstallSessionParamsPackageNames() 2122 packageInstaller.openSession(session2.sessionId).abandon(); in testInvalidInstallSessionParamsPackageNames()
|
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/ |
D | UserRestrictionInstallTest.kt | 367 val pi = pm.packageInstaller in <lambda>()
|