Home
last modified time | relevance | path

Searched refs:packageInstaller (Results 1 – 22 of 22) 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 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/
DCVE_2024_0044.java66 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/
DMainActivity.java33 final PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate() local
39 packageInstaller.createSession(params); in onCreate()
/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.java389 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/
DBackgroundReceiver.java104 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/
DPackageManagerMultiUserTest.java56 PackageInstaller packageInstaller = packageManager.getPackageInstaller(); in testUninstallExistingPackage() local
59 packageInstaller.uninstallExistingPackage(pkgName, sender.getIntentSender()); 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/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionTestInstant.kt37 pm.packageInstaller.createSession( in instantAppsCannotCreateInstallSessions()
DPackageInstallerTestBase.kt118 protected val pi = pm.packageInstaller in <lambda>()
/cts/hostsidetests/stagedinstall/app/src/com/android/tests/stagedinstall/
DStagedInstallTest.java204 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/
DTileServiceRequestVerifierActivity.java161 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/
DCommandReceiverActivity.java674 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/
DAppOpsLoggingTest.kt93 .packageInstaller in <lambda>()
/cts/tests/tests/packageinstaller/nopermission/src/android.packageinstaller.nopermission.cts/
DNoPermissionTests.kt110 val pi = pm.packageInstaller in <lambda>()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackages.java404 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/
DPackageInstallerTestBase.kt133 val pi = pm.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/packagescheme/src/android/packageinstaller/packagescheme/cts/
DPackageSchemeTestBase.kt67 val mInstaller: PackageInstaller = mContext.packageManager.packageInstaller in <lambda>()
/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()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java2067 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/
DUserRestrictionInstallTest.kt367 val pi = pm.packageInstaller in <lambda>()