/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | UnarchiveErrorFragment.java | 29 import android.content.pm.PackageInstaller; 54 mStatus = args.getInt(PackageInstaller.EXTRA_UNARCHIVE_STATUS, -1); in onCreateDialog() 73 case PackageInstaller.UNARCHIVAL_ERROR_USER_ACTION_NEEDED: in addButtons() 77 case PackageInstaller.UNARCHIVAL_ERROR_INSUFFICIENT_STORAGE: in addButtons() 81 case PackageInstaller.UNARCHIVAL_ERROR_INSTALLER_DISABLED: in addButtons() 85 case PackageInstaller.UNARCHIVAL_ERROR_NO_CONNECTIVITY: in addButtons() 86 case PackageInstaller.UNARCHIVAL_ERROR_INSTALLER_UNINSTALLED: in addButtons() 87 case PackageInstaller.UNARCHIVAL_GENERIC_ERROR: in addButtons() 98 case PackageInstaller.UNARCHIVAL_ERROR_USER_ACTION_NEEDED: in getBodyText() 100 case PackageInstaller.UNARCHIVAL_ERROR_INSUFFICIENT_STORAGE: in getBodyText() [all …]
|
D | InstallInstalling.java | 28 import android.content.pm.PackageInstaller; 89 launchFailure(PackageInstaller.STATUS_FAILURE, in onCreate() 144 launchFailure(PackageInstaller.STATUS_FAILURE, in onCreate() 150 try (PackageInstaller.Session ignored = in onCreate() 156 launchFailure(PackageInstaller.STATUS_FAILURE, in onCreate() 188 failureIntent.putExtra(PackageInstaller.EXTRA_STATUS, statusCode); in launchFailure() 189 failureIntent.putExtra(PackageInstaller.EXTRA_LEGACY_STATUS, legacyStatus); in launchFailure() 190 failureIntent.putExtra(PackageInstaller.EXTRA_STATUS_MESSAGE, statusMessage); in launchFailure() 202 PackageInstaller installer = getPackageManager().getPackageInstaller(); in onResume() 203 PackageInstaller.SessionInfo sessionInfo = installer.getSessionInfo(mSessionId); in onResume() [all …]
|
D | InstallFailed.java | 26 import android.content.pm.PackageInstaller; 58 case PackageInstaller.STATUS_FAILURE_BLOCKED: in setExplanationFromErrorCode() 61 case PackageInstaller.STATUS_FAILURE_CONFLICT: in setExplanationFromErrorCode() 64 case PackageInstaller.STATUS_FAILURE_INCOMPATIBLE: in setExplanationFromErrorCode() 67 case PackageInstaller.STATUS_FAILURE_INVALID: in setExplanationFromErrorCode() 85 int statusCode = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, in onCreate() 86 PackageInstaller.STATUS_FAILURE); in onCreate() 88 int legacyStatus = intent.getIntExtra(PackageInstaller.EXTRA_LEGACY_STATUS, in onCreate() 97 boolean userDenied = statusCode == PackageInstaller.STATUS_FAILURE_ABORTED in onCreate() 131 if (statusCode == PackageInstaller.STATUS_FAILURE_STORAGE) { in onCreate()
|
D | InstallStaging.java | 30 import android.content.pm.PackageInstaller; 60 private @Nullable PackageInstaller mInstaller; 121 final PackageInstaller.SessionInfo info = mInstaller.getSessionInfo( in onResume() 139 PackageInstaller.SessionParams params = createSessionParams( in onResume() 183 private static PackageInstaller.SessionParams createSessionParams( in createSessionParams() 184 @NonNull PackageInstaller installer, @NonNull Intent intent, in createSessionParams() 186 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in createSessionParams() 187 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in createSessionParams() 190 referrerUri != null ? PackageInstaller.PACKAGE_SOURCE_DOWNLOADED_FILE in createSessionParams() 191 : PackageInstaller.PACKAGE_SOURCE_LOCAL_FILE); in createSessionParams() [all …]
|
D | UnarchiveErrorActivity.java | 25 import android.content.pm.PackageInstaller; 44 int unarchivalStatus = extras.getInt(PackageInstaller.EXTRA_UNARCHIVE_STATUS); in onCreate() 52 if (unarchivalStatus == PackageInstaller.UNARCHIVAL_ERROR_USER_ACTION_NEEDED) { in onCreate() 63 args.putInt(PackageInstaller.EXTRA_UNARCHIVE_STATUS, unarchivalStatus); in onCreate()
|
D | UninstallUninstalling.java | 28 import android.content.pm.PackageInstaller; 69 mCallback = getIntent().getParcelableExtra(PackageInstaller.EXTRA_CALLBACK, in onCreate() 120 flags |= getIntent().getIntExtra(PackageInstaller.EXTRA_DELETE_FLAGS, 0); in onCreate() 132 onResult(PackageInstaller.STATUS_FAILURE, PackageManager.DELETE_FAILED_INTERNAL_ERROR, in onCreate() 159 setResult(status == PackageInstaller.STATUS_SUCCESS ? Activity.RESULT_OK in onResult() 164 if (status != PackageInstaller.STATUS_SUCCESS) { in onResult()
|
D | InstallStart.java | 30 import android.content.pm.PackageInstaller; 31 import android.content.pm.PackageInstaller.SessionInfo; 54 private PackageInstaller mPackageInstaller; 99 PackageInstaller.ACTION_CONFIRM_PRE_APPROVAL.equals(intent.getAction()) in onCreate() 100 || PackageInstaller.ACTION_CONFIRM_INSTALL.equals(intent.getAction()); in onCreate() 105 ? intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID, SessionInfo.INVALID_ID) in onCreate() 108 PackageInstaller.SessionInfo sessionInfo = mPackageInstaller.getSessionInfo(sessionId); in onCreate() 300 PackageInstaller.SessionInfo sessionInfo = mPackageInstaller.getSessionInfo(sessionId); in isCallerSessionOwner()
|
D | UninstallFinish.java | 28 import android.content.pm.PackageInstaller; 56 int returnCode = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, 0); in onReceive() 60 if (returnCode == PackageInstaller.STATUS_PENDING_USER_ACTION) { in onReceive() 85 case PackageInstaller.STATUS_SUCCESS: in onReceive() 94 case PackageInstaller.STATUS_FAILURE_BLOCKED: { in onReceive() 95 int legacyStatus = intent.getIntExtra(PackageInstaller.EXTRA_LEGACY_STATUS, 0); in onReceive()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | PackageInstallerImpl.java | 26 import android.content.pm.PackageInstaller; 50 private final PackageInstaller mPackageInstaller; 51 private final Map<String, PackageInstaller.SessionInfo> mSessionInfoMap; 52 private final Map<String, PackageInstaller.Session> mOpenSessionMap; 60 mSessionInfoMap = new HashMap<String, PackageInstaller.SessionInfo>(); in PackageInstallerImpl() 61 List<PackageInstaller.SessionInfo> mySessions = mPackageInstaller.getMySessions(); in PackageInstallerImpl() 63 PackageInstaller.SessionInfo sessionInfo = mySessions.get(i); in PackageInstallerImpl() 65 PackageInstaller.SessionInfo oldInfo = mSessionInfoMap.put(packageName, sessionInfo); in PackageInstallerImpl() 73 mOpenSessionMap = new HashMap<String, PackageInstaller.Session>(); in PackageInstallerImpl() 112 PackageInstaller.Session session = null; in install() [all …]
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | TestPackageInstaller.java | 25 import android.content.pm.PackageInstaller; 61 PackageInstaller packageInstaller = mContext.getPackageManager().getPackageInstaller(); in installPackage() 62 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in installPackage() 63 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in installPackage() 66 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in installPackage() 86 int status = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, in installPackage() 87 PackageInstaller.STATUS_FAILURE); in installPackage() 88 Assert.assertEquals(PackageInstaller.STATUS_SUCCESS, status); in installPackage() 89 String packageName = intent.getStringExtra(PackageInstaller.EXTRA_PACKAGE_NAME); in installPackage() 109 PackageInstaller packageInstaller = mContext.getPackageManager().getPackageInstaller(); in uninstall() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageInstaller.aidl | 19 parcelable PackageInstaller.InstallConstraints; 20 parcelable PackageInstaller.SessionParams; 21 parcelable PackageInstaller.SessionInfo; 22 parcelable PackageInstaller.PreapprovalDetails;
|
D | IPackageInstaller.aidl | 24 import android.content.pm.PackageInstaller; 35 int createSession(in PackageInstaller.SessionParams params, String installerPackageName, in createSession() 45 PackageInstaller.SessionInfo getSessionInfo(int sessionId); in getSessionInfo() 77 in PackageInstaller.InstallConstraints constraints, in RemoteCallback callback); in checkInstallConstraints() 79 in PackageInstaller.InstallConstraints constraints, in IntentSender callback, in waitForInstallConstraints() 90 in PackageInstaller.SessionParams params, in installPackageArchived()
|
/frameworks/base/apct-tests/perftests/packagemanager/src/android/content/pm/ |
D | PackageInstallerBenchmark.java | 69 private static class SessionCallback extends PackageInstaller.SessionCallback { 103 private PackageInstaller mPackageInstaller; 106 private List<PackageInstaller.Session> mExpectedSessions; 130 private List<PackageInstaller.Session> createSinglePackageSessions( in createSinglePackageSessions() 141 PackageInstaller.Session session = in createSinglePackageSessions() 157 private List<PackageInstaller.Session> createMultiplePackageSessions(BenchmarkState state, in createMultiplePackageSessions() 168 PackageInstaller.Session session = in createMultiplePackageSessions() 244 List<PackageInstaller.Session> sessions = in commit_aSingleApkSession_untilFinishBenchmark() 247 for (PackageInstaller.Session session : sessions) { in commit_aSingleApkSession_untilFinishBenchmark() 262 List<PackageInstaller.Session> sessions = createSinglePackageSessions( in commit_threeSingleApkSessions_untilFinishBenchmark() [all …]
|
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/ |
D | BackgroundInstallControlServiceTest.java | 30 import android.content.pm.PackageInstaller; 185 PackageInstaller.EXTRA_STATUS, in installPackage() 186 PackageInstaller.STATUS_FAILURE_INVALID); in installPackage() 187 if (packageInstallStatus == PackageInstaller.STATUS_SUCCESS) { in installPackage() 195 PackageInstaller packageInstaller = context.getPackageManager().getPackageInstaller(); in installPackage() 196 PackageInstaller.SessionParams params = in installPackage() 197 new PackageInstaller.SessionParams( in installPackage() 198 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in installPackage() 199 params.setRequireUserAction(PackageInstaller.SessionParams.USER_ACTION_NOT_REQUIRED); in installPackage() 202 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in installPackage()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/ui/fragments/ |
D | InstallFailedFragment.java | 23 import android.content.pm.PackageInstaller; 83 case PackageInstaller.STATUS_FAILURE_BLOCKED: in setExplanationFromErrorCode() 86 case PackageInstaller.STATUS_FAILURE_CONFLICT: in setExplanationFromErrorCode() 89 case PackageInstaller.STATUS_FAILURE_INCOMPATIBLE: in setExplanationFromErrorCode() 92 case PackageInstaller.STATUS_FAILURE_INVALID: in setExplanationFromErrorCode()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | RestoreUtils.java | 29 import android.content.pm.PackageInstaller; 30 import android.content.pm.PackageInstaller.Session; 31 import android.content.pm.PackageInstaller.SessionParams; 88 PackageInstaller installer = packageManager.getPackageInstaller(); in installApk() 130 int status = PackageInstaller.STATUS_FAILURE; in installApk() 134 if (status != PackageInstaller.STATUS_SUCCESS) { in installApk() 145 PackageInstaller.EXTRA_PACKAGE_NAME); in installApk()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/data/repository/ |
D | PackageInstallerMonitorTest.kt | 19 import android.content.pm.PackageInstaller in <lambda>() 20 import android.content.pm.PackageInstaller.SessionInfo in <lambda>() 55 @Mock private lateinit var packageInstaller: PackageInstaller in <lambda>() 127 withArgCaptor<PackageInstaller.SessionCallback> { in <lambda>() 151 withArgCaptor<PackageInstaller.SessionCallback> { in <lambda>() 175 withArgCaptor<PackageInstaller.SessionCallback> { in <lambda>() 198 withArgCaptor<PackageInstaller.SessionCallback> { in <lambda>()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/ |
D | InstallRepository.kt | 29 import android.content.pm.PackageInstaller in <lambda>() 30 import android.content.pm.PackageInstaller.SessionInfo in <lambda>() 31 import android.content.pm.PackageInstaller.SessionParams in <lambda>() 74 private val packageInstaller: PackageInstaller = packageManager.packageInstaller in <lambda>() 129 PackageInstaller.ACTION_CONFIRM_PRE_APPROVAL == intent.action in <lambda>() 130 || PackageInstaller.ACTION_CONFIRM_INSTALL == intent.action in <lambda>() 133 intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID, SessionInfo.INVALID_ID) in <lambda>() 379 PackageInstaller.PACKAGE_SOURCE_DOWNLOADED_FILE in <lambda>() 380 else PackageInstaller.PACKAGE_SOURCE_LOCAL_FILE in <lambda>() 400 } catch (e: PackageInstaller.PackageParsingException) { in <lambda>() [all …]
|
D | SessionStager.kt | 20 import android.content.pm.PackageInstaller in <lambda>() 45 val pi: PackageInstaller = context.packageManager.packageInstaller in <lambda>() 46 var sessionInfo: PackageInstaller.SessionInfo? in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | Rollback.java | 31 import android.content.pm.PackageInstaller; 547 PackageInstaller packageInstaller = pm.getPackageInstaller(); in commit() 548 PackageInstaller.SessionParams parentParams = new PackageInstaller.SessionParams( in commit() 549 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit() 558 PackageInstaller.Session parentSession = packageInstaller.openSession( in commit() 570 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in commit() 571 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit() 591 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in commit() 632 int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in commit() 633 PackageInstaller.STATUS_FAILURE); in commit() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/data/repository/ |
D | PackageInstallerMonitor.kt | 19 import android.content.pm.PackageInstaller in <lambda>() 47 private val packageInstaller: PackageInstaller, in <lambda>() 48 ) : PackageInstaller.SessionCallback() { in <lambda>() 145 private fun PackageInstaller.SessionInfo.toModel(): PackageInstallSession { in <lambda>() method
|
/frameworks/base/core/tests/PackageInstallerSessions/src/android/content/pm/ |
D | PackageSessionTests.kt | 26 import android.content.pm.PackageInstaller.SessionParams in <lambda>() 104 class SessionStatusTrackerCallback : PackageInstaller.SessionCallback { in <lambda>() 348 .getIntExtra(PackageInstaller.EXTRA_STATUS, PackageInstaller.STATUS_FAILURE) in <lambda>() 350 if (installStatus == PackageInstaller.STATUS_PENDING_USER_ACTION) { in <lambda>() 392 .getIntExtra(PackageInstaller.EXTRA_STATUS, PackageInstaller.STATUS_FAILURE) in <lambda>() 394 assertThat(installStatus).isEqualTo(PackageInstaller.STATUS_PENDING_USER_ACTION) in <lambda>()
|
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/pm/ |
D | TvPackageInstaller.java | 22 import android.content.pm.PackageInstaller; 26 private final PackageInstaller mPackageInstaller;
|
/frameworks/base/services/tests/PackageManagerServiceTests/preverifieddomains/src/com/android/server/pm/test/preverifieddomains/ |
D | PreVerifiedDomainsTests.kt | 22 import android.content.pm.PackageInstaller 23 import android.content.pm.PackageInstaller.SessionParams.MODE_FULL_INSTALL 126 private lateinit var packageInstaller: PackageInstaller 208 var session: PackageInstaller.Session? = null in testSetAndGetPreVerifiedDomains() 221 val sessionParam = PackageInstaller.SessionParams(MODE_FULL_INSTALL) in createSessionWithPreVerifiedDomains()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | WatchdogRollbackLoggerTest.java | 33 import android.content.pm.PackageInstaller; 66 PackageInstaller mockPi = mock(PackageInstaller.class); in setUp() 68 PackageInstaller.SessionInfo mockSessionInfo = mock(PackageInstaller.SessionInfo.class); in setUp()
|