Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/
DPackageInstallerMonitorTest.kt55 @Mock private lateinit var packageInstaller: PackageInstaller in <lambda>() variable in com.android.systemui.common.data.repository.PackageInstallerMonitorTest
97 whenever(packageInstaller.allSessions).thenReturn(defaultSessions) in <lambda>()
98 whenever(packageInstaller.getSessionInfo(1)).thenReturn(session1) in <lambda>()
99 whenever(packageInstaller.getSessionInfo(2)).thenReturn(session2) in <lambda>()
106 packageInstaller, in <lambda>()
114 verify(packageInstaller, never()).registerSessionCallback(any(), eq(handler)) in <lambda>()
128 verify(packageInstaller).registerSessionCallback(capture(), eq(handler)) in <lambda>()
132 verify(packageInstaller, never()).unregisterSessionCallback(any()) in <lambda>()
139 verify(packageInstaller).unregisterSessionCallback(eq(callback)) in <lambda>()
152 verify(packageInstaller).registerSessionCallback(capture(), eq(handler)) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/data/repository/
DPackageInstallerMonitor.kt47 private val packageInstaller: PackageInstaller, in <lambda>() constant
65 packageInstaller.allSessions in <lambda>()
71 packageInstaller.registerSessionCallback( in <lambda>()
80 packageInstaller.unregisterSessionCallback(this@PackageInstallerMonitor) in <lambda>()
125 val session = packageInstaller.getSessionInfo(sessionId) in <lambda>()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DTestPackageInstaller.java61 PackageInstaller packageInstaller = mContext.getPackageManager().getPackageInstaller(); in installPackage() local
65 int sessionId = packageInstaller.createSession(params); in installPackage()
66 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in installPackage()
109 PackageInstaller packageInstaller = mContext.getPackageManager().getPackageInstaller(); in uninstall() local
110 packageInstaller.uninstall(mPackageName, intentSender.getIntentSender(mSessionId)); in uninstall()
/frameworks/base/services/tests/PackageManagerServiceTests/preverifieddomains/src/com/android/server/pm/test/preverifieddomains/
DPreVerifiedDomainsTests.kt126 private lateinit var packageInstaller: PackageInstaller variable in com.android.server.pm.test.preverifieddomains.PreVerifiedDomainsTests
140 packageInstaller = packageManager.packageInstaller in setUp()
212 session = packageInstaller.openSession(sessionId) in testSetAndGetPreVerifiedDomains()
222 val sessionId = packageInstaller.createSession(sessionParam) in createSessionWithPreVerifiedDomains()
223 val session = packageInstaller.openSession(sessionId) in createSessionWithPreVerifiedDomains()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/
DInstallRepository.kt74 private val packageInstaller: PackageInstaller = packageManager.packageInstaller in <lambda>() constant in com.android.packageinstaller.v2.model.InstallRepository
149 packageInstaller.getSessionInfo(sessionId) in <lambda>()
183 && !isCallerSessionOwner(packageInstaller, originatingUid, sessionId)) in <lambda>()
185 && !isCallerSessionOwner(packageInstaller, Process.myUid(), stagedSessionId)) in <lambda>()
295 val info: SessionInfo? = packageInstaller.getSessionInfo(stagedSessionId) in <lambda>()
313 stagedSessionId = packageInstaller.createSession(params) in <lambda>()
362 packageInstaller.abandonSession(stagedSessionId) in <lambda>()
396 val installInfo = packageInstaller.readInstallInfo(pfd, debugPathName, 0) in <lambda>()
482 val info = packageInstaller.getSessionInfo(sessionId) in <lambda>()
495 val info = packageInstaller.getSessionInfo(sessionId) in <lambda>()
[all …]
DSessionStager.kt45 val pi: PackageInstaller = context.packageManager.packageInstaller in <lambda>()
DUninstallRepository.kt723 .packageManager.packageInstaller.uninstall( in startUninstall()
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/
DBackgroundInstallControlServiceTest.java195 PackageInstaller packageInstaller = context.getPackageManager().getPackageInstaller(); in installPackage() local
201 int sessionId = packageInstaller.createSession(params); in installPackage()
202 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in installPackage()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollback.java547 PackageInstaller packageInstaller = pm.getPackageInstaller(); in commit() local
557 int parentSessionId = packageInstaller.createSession(parentParams); in commit()
558 PackageInstaller.Session parentSession = packageInstaller.openSession( in commit()
590 int sessionId = packageInstaller.createSession(params); in commit()
591 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in commit()
DWatchdogRollbackLogger.java122 PackageInstaller packageInstaller = context.getPackageManager().getPackageInstaller(); in logRollbackStatusOnBoot() local
150 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in logRollbackStatusOnBoot()
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/
DStagedInstallInternalTest.java651 PackageInstaller packageInstaller = getPackageInstaller(); in assertSessionState() local
653 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getStagedSessions(); in assertSessionState()
665 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in assertSessionState()
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/
DPackageSessionTests.kt77 private val installer = context.packageManager.packageInstaller in <lambda>()