Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppRestoreButtonTest.kt54 private val packageInstaller = mock<PackageInstaller>() constant
62 whenever(userPackageManager.packageInstaller).thenReturn(packageInstaller) in setUp()
115 verify(packageInstaller).requestUnarchive( in appRestoreButton_clicked()
DAppArchiveButtonTest.kt55 private val packageInstaller = mock<PackageInstaller>() constant
65 whenever(userPackageManager.packageInstaller).thenReturn(packageInstaller) in setUp()
150 verify(packageInstaller).requestArchive( in appArchiveButton_clicked()
DAppButtonsTest.kt73 private lateinit var packageInstaller: PackageInstaller variable in com.android.settings.spa.app.appinfo.AppButtonsTest
89 whenever(packageManager.packageInstaller).thenReturn(packageInstaller) in setUp()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoRollbackPermissionTest.java36 PackageInstaller packageInstaller = in testCreateInstallSessionWithReasonRollbackFails() local
46 assertThrows(SecurityException.class, () -> packageInstaller.createSession(parentParams)); in testCreateInstallSessionWithReasonRollbackFails()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppArchiveButton.kt54 private val packageInstaller = userPackageManager.packageInstaller in <lambda>() constant
112 packageInstaller.requestArchive(app.packageName, pendingIntent.intentSender) in <lambda>()
DAppRestoreButton.kt51 private val packageInstaller = userPackageManager.packageInstaller in <lambda>() constant
101 packageInstaller.requestUnarchive(app.packageName, pendingIntent.intentSender) in <lambda>()
/packages/modules/Permission/tests/cts/permissionmultiuser/src/android/permissionmultiuser/cts/
DAppDataSharingUpdatesTest.kt213 @JvmStatic private val packageInstaller = packageManager.packageInstaller in <lambda>() constant
296 val sessionId = packageInstaller.createSession(sessionParam) in <lambda>()
297 return packageInstaller.openSession(sessionId) in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAddWorkspaceItemsTask.java127 InstallSessionHelper packageInstaller = in execute() local
154 SessionInfo sessionInfo = packageInstaller.getActiveSessionInfo(item.user, in execute()
157 if (!packageInstaller.verifySessionInfo(sessionInfo)) { in execute()
DFirstScreenBroadcast.java177 private static void printList(String packageInstaller, String label, Set<String> packages) { in printList() argument
179 Log.d(TAG, packageInstaller + ":" + label + ":" + pkg); in printList()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DBasePermissionTest.kt101 private val packageInstaller = packageManager.packageInstaller in <lambda>() constant
472 val sessionId = packageInstaller.createSession(sessionParam) in <lambda>()
473 val session = packageInstaller.openSession(sessionId)!! in <lambda>()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DInstallPackageTask.java278 PackageInstaller packageInstaller = mPm.getPackageInstaller(); in onFinished() local
279 packageInstaller.unregisterSessionCallback(mSessionCallback); in onFinished()
/packages/modules/Permission/tests/cts/permissionpolicy/src/android/permissionpolicy/cts/
DRestrictedPermissionsTest.java427 final PackageInstaller packageInstaller = getContext() in installRestrictedPermissionUserApp() local
429 final int sessionId = packageInstaller.createSession(params); in installRestrictedPermissionUserApp()
430 final Session session = packageInstaller.openSession(sessionId); in installRestrictedPermissionUserApp()