/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 …]
|
D | InstallTask.java | 21 import android.content.pm.PackageInstaller; 45 private PackageInstaller.Session mSession; 54 PackageInstallerImpl.InstallListener callback, PackageInstaller.Session session, in InstallTask()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallInstalling.java | 19 import static android.content.pm.PackageInstaller.SessionParams.UID_UNKNOWN; 26 import android.content.pm.PackageInstaller; 62 private PackageInstaller.SessionCallback mSessionCallback; 131 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in onCreate() 132 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in onCreate() 204 failureIntent.putExtra(PackageInstaller.EXTRA_LEGACY_STATUS, legacyStatus); in launchFailure() 205 failureIntent.putExtra(PackageInstaller.EXTRA_STATUS_MESSAGE, statusMessage); in launchFailure() 224 PackageInstaller installer = getPackageManager().getPackageInstaller(); in onResume() 225 PackageInstaller.SessionInfo sessionInfo = installer.getSessionInfo(mSessionId); in onResume() 289 if (statusCode == PackageInstaller.STATUS_SUCCESS) { in launchFinishBasedOnResult() [all …]
|
D | InstallFailed.java | 28 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() 82 int statusCode = getIntent().getIntExtra(PackageInstaller.EXTRA_STATUS, in onCreate() 83 PackageInstaller.STATUS_FAILURE); in onCreate() 86 int legacyStatus = getIntent().getIntExtra(PackageInstaller.EXTRA_LEGACY_STATUS, in onCreate() 123 if (statusCode == PackageInstaller.STATUS_FAILURE_STORAGE) { in onCreate()
|
D | InstallStart.java | 30 import android.content.pm.PackageInstaller; 58 PackageInstaller.ACTION_CONFIRM_INSTALL.equals(intent.getAction()); in onCreate() 63 ? intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID, -1) in onCreate() 66 PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate() 67 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in onCreate() 79 if (!isTrustedSource && originatingUid != PackageInstaller.SessionParams.UID_UNKNOWN) { in onCreate() 184 PackageInstaller.SessionParams.UID_UNKNOWN); in getOriginatingUid() 197 return PackageInstaller.SessionParams.UID_UNKNOWN; in getOriginatingUid()
|
D | UninstallUninstalling.java | 31 import android.content.pm.PackageInstaller; 68 mCallback = getIntent().getIBinderExtra(PackageInstaller.EXTRA_CALLBACK); in onCreate() 118 onResult(PackageInstaller.STATUS_FAILURE, PackageManager.DELETE_FAILED_INTERNAL_ERROR, in onCreate() 150 setResult(status == PackageInstaller.STATUS_SUCCESS ? Activity.RESULT_OK in onResult() 155 if (status != PackageInstaller.STATUS_SUCCESS) { in onResult()
|
D | UninstallFinish.java | 30 import android.content.pm.PackageInstaller; 57 int returnCode = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, 0); in onReceive() 61 if (returnCode == PackageInstaller.STATUS_PENDING_USER_ACTION) { in onReceive() 86 case PackageInstaller.STATUS_SUCCESS: in onReceive() 92 case PackageInstaller.STATUS_FAILURE_BLOCKED: { in onReceive() 93 int legacyStatus = intent.getIntExtra(PackageInstaller.EXTRA_LEGACY_STATUS, 0); in onReceive()
|
D | EventResultPersister.java | 23 import android.content.pm.PackageInstaller; 182 int status = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, 0); in onEventReceived() 184 if (status == PackageInstaller.STATUS_PENDING_USER_ACTION) { in onEventReceived() 191 String statusMessage = intent.getStringExtra(PackageInstaller.EXTRA_STATUS_MESSAGE); in onEventReceived() 192 int legacyStatus = intent.getIntExtra(PackageInstaller.EXTRA_LEGACY_STATUS, 0); in onEventReceived()
|
D | PackageInstallerActivity.java | 38 import android.content.pm.PackageInstaller; 82 private int mOriginatingUid = PackageInstaller.SessionParams.UID_UNKNOWN; 90 PackageInstaller mInstaller; 303 PackageInstaller.SessionParams.UID_UNKNOWN); in onCreate() 304 mOriginatingPackage = (mOriginatingUid != PackageInstaller.SessionParams.UID_UNKNOWN) in onCreate() 310 if (PackageInstaller.ACTION_CONFIRM_INSTALL.equals(intent.getAction())) { in onCreate() 311 final int sessionId = intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID, -1); in onCreate() 312 final PackageInstaller.SessionInfo info = mInstaller.getSessionInfo(sessionId); in onCreate() 570 if (mOriginatingUid != PackageInstaller.SessionParams.UID_UNKNOWN) { in startInstall()
|
D | UninstallerActivity.java | 45 import android.content.pm.PackageInstaller; 182 mDialogInfo.callback = intent.getIBinderExtra(PackageInstaller.EXTRA_CALLBACK); in onCreate() 296 newIntent.putExtra(PackageInstaller.EXTRA_CALLBACK, mDialogInfo.callback); in startUninstallProgress() 314 newIntent.putExtra(PackageInstaller.EXTRA_CALLBACK, mDialogInfo.callback); in startUninstallProgress()
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManager.java | 6893 public abstract @NonNull PackageInstaller getPackageInstaller(); in getPackageInstaller() 7011 case INSTALL_SUCCEEDED: return PackageInstaller.STATUS_SUCCESS; in installStatusToPublicStatus() 7012 case INSTALL_FAILED_ALREADY_EXISTS: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 7013 case INSTALL_FAILED_INVALID_APK: return PackageInstaller.STATUS_FAILURE_INVALID; in installStatusToPublicStatus() 7014 case INSTALL_FAILED_INVALID_URI: return PackageInstaller.STATUS_FAILURE_INVALID; in installStatusToPublicStatus() 7015 … case INSTALL_FAILED_INSUFFICIENT_STORAGE: return PackageInstaller.STATUS_FAILURE_STORAGE; in installStatusToPublicStatus() 7016 case INSTALL_FAILED_DUPLICATE_PACKAGE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 7017 case INSTALL_FAILED_NO_SHARED_USER: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 7018 … case INSTALL_FAILED_UPDATE_INCOMPATIBLE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 7019 … case INSTALL_FAILED_SHARED_USER_INCOMPATIBLE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() [all …]
|
D | IPackageInstaller.aidl | 22 import android.content.pm.PackageInstaller; 31 …int createSession(in PackageInstaller.SessionParams params, String installerPackageName, int userI… in createSession() 40 PackageInstaller.SessionInfo getSessionInfo(int sessionId); in getSessionInfo()
|
D | PackageInstaller.aidl | 19 parcelable PackageInstaller.SessionParams; 20 parcelable PackageInstaller.SessionInfo;
|
D | ILauncherApps.aidl | 28 import android.content.pm.PackageInstaller; 50 in PackageInstaller.SessionInfo sessionInfo, in Rect sourceBounds, in Bundle opts, in startSessionDetailsActivityAsUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageInstallerSessionTest.java | 26 import android.content.pm.PackageInstaller; 120 return createSession(false, false, 123, false, PackageInstaller.SessionInfo.INVALID_ID, in createSimpleSession() 125 return createSession(true, false, 123, false, PackageInstaller.SessionInfo.INVALID_ID, in createStagedSession() 130 return createSession(false, true, 123, false, PackageInstaller.SessionInfo.INVALID_ID, in createSessionWithGrantedPermissions() 137 PackageInstaller.SessionInfo.INVALID_ID, childSessionIds); in createMultiPackageParentSession() 148 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in createSession() 149 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in createSession() 183 PackageInstaller.SessionInfo.STAGED_SESSION_VERIFICATION_FAILED, in createSession() 255 private void assertSessionParamsEquivalent(PackageInstaller.SessionParams expected, in assertSessionParamsEquivalent() 256 PackageInstaller.SessionParams actual) { in assertSessionParamsEquivalent()
|
/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; 87 PackageInstaller installer = packageManager.getPackageInstaller(); in installApk() 124 int status = PackageInstaller.STATUS_FAILURE; in installApk() 128 if (status != PackageInstaller.STATUS_SUCCESS) { in installApk() 139 PackageInstaller.EXTRA_PACKAGE_NAME); in installApk()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackManagerServiceImpl.java | 31 import android.content.pm.PackageInstaller; 377 PackageInstaller packageInstaller = pm.getPackageInstaller(); in commitRollbackInternal() 378 PackageInstaller.SessionParams parentParams = new PackageInstaller.SessionParams( in commitRollbackInternal() 379 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commitRollbackInternal() 387 PackageInstaller.Session parentSession = packageInstaller.openSession(parentSessionId); in commitRollbackInternal() 390 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in commitRollbackInternal() 391 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commitRollbackInternal() 411 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in commitRollbackInternal() 439 int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in commitRollbackInternal() 440 PackageInstaller.STATUS_FAILURE); in commitRollbackInternal() [all …]
|
D | RollbackPackageHealthObserver.java | 31 import android.content.pm.PackageInstaller; 196 PackageInstaller packageInstaller = mContext.getPackageManager().getPackageInstaller(); in onBootCompleted() 234 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in onBootCompleted() 304 new IntentFilter(PackageInstaller.ACTION_SESSION_UPDATED); in listenForStagedSessionReady() 311 PackageInstaller packageInstaller = in handleStagedSessionChange() 319 && (sessionId != PackageInstaller.SessionInfo.INVALID_ID)) { in handleStagedSessionChange() 320 PackageInstaller.SessionInfo sessionInfo = in handleStagedSessionChange()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerService.java | 40 import android.content.pm.PackageInstaller; 41 import android.content.pm.PackageInstaller.SessionInfo; 42 import android.content.pm.PackageInstaller.SessionParams; 864 intent.putExtra(PackageInstaller.EXTRA_CALLBACK, adapter.getBinder().asBinder()); in uninstall() 963 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, mPackageName); in onUserActionRequired() 964 fillIn.putExtra(PackageInstaller.EXTRA_STATUS, in onUserActionRequired() 965 PackageInstaller.STATUS_PENDING_USER_ACTION); in onUserActionRequired() 986 fillIn.putExtra(PackageInstaller.EXTRA_PACKAGE_NAME, mPackageName); in onPackageDeleted() 987 fillIn.putExtra(PackageInstaller.EXTRA_STATUS, in onPackageDeleted() 989 fillIn.putExtra(PackageInstaller.EXTRA_STATUS_MESSAGE, in onPackageDeleted() [all …]
|
D | StagingManager.java | 30 import android.content.pm.PackageInstaller; 31 import android.content.pm.PackageInstaller.SessionInfo; 108 ParceledListSlice<PackageInstaller.SessionInfo> getSessions() { in getSessions() 109 final List<PackageInstaller.SessionInfo> result = new ArrayList<>(); in getSessions() 439 PackageInstaller.SessionParams params = originalSession.params.copy(); in createAndWriteApkSession() 504 final PackageInstaller.SessionParams params = session.params.copy(); in extractApksInSession() 550 int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in verifyApksInSession() 551 PackageInstaller.STATUS_FAILURE); in verifyApksInSession() 552 if (status != PackageInstaller.STATUS_SUCCESS) { in verifyApksInSession() 554 PackageInstaller.EXTRA_STATUS_MESSAGE); in verifyApksInSession() [all …]
|
D | PackageManagerShellCommand.java | 44 import android.content.pm.PackageInstaller; 45 import android.content.pm.PackageInstaller.SessionInfo; 46 import android.content.pm.PackageInstaller.SessionParams; 365 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in uninstallSystemUpdates() 366 PackageInstaller.STATUS_FAILURE); in uninstallSystemUpdates() 367 if (status != PackageInstaller.STATUS_SUCCESS) { in uninstallSystemUpdates() 1153 false /*logSuccess*/) != PackageInstaller.STATUS_SUCCESS) { in runInstall() 1157 != PackageInstaller.STATUS_SUCCESS) { in runInstall() 1182 PackageInstaller.SessionInfo si = mInterface.getPackageInstaller() in doWaitForStagedSessionRead() 1253 if (doCommitSession(sessionId, false /*logSuccess*/) != PackageInstaller.STATUS_SUCCESS) { in runInstallCommit() [all …]
|
D | PackageInstallerSession.java | 58 import android.content.pm.PackageInstaller; 59 import android.content.pm.PackageInstaller.SessionInfo; 60 import android.content.pm.PackageInstaller.SessionInfo.StagedSessionErrorCode; 61 import android.content.pm.PackageInstaller.SessionParams; 687 if (PackageInstaller.ENABLE_REVOCABLE_FD) { in doWriteInternal() 760 if (PackageInstaller.ENABLE_REVOCABLE_FD) { in doWriteInternal() 769 } else if (PackageInstaller.ENABLE_REVOCABLE_FD) { in doWriteInternal() 906 PackageInstaller.EXTRA_SESSION_ID, 0); in statusUpdate() 907 final int status = intent.getIntExtra(PackageInstaller.EXTRA_STATUS, in statusUpdate() 908 PackageInstaller.STATUS_FAILURE); in statusUpdate() [all …]
|
D | ApexManager.java | 33 import android.content.pm.PackageInstaller; 467 PackageInstaller.SessionInfo.STAGED_SESSION_VERIFICATION_FAILED, in submitStagedSession() 481 PackageInstaller.SessionInfo.STAGED_SESSION_VERIFICATION_FAILED, in markStagedSessionReady() 529 PackageInstaller.SessionInfo.STAGED_SESSION_VERIFICATION_FAILED, in abortStagedSession()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 35 import android.content.pm.PackageInstaller.SessionParams; 199 private PackageInstaller getPi() { in getPi() 203 private void writeSplitToInstallSession(PackageInstaller.Session session, String inPath, in writeSplitToInstallSession() 241 PackageInstaller.Session session = null; in invokeInstallPackage() 252 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in invokeInstallPackage() 253 PackageInstaller.STATUS_FAILURE); in invokeInstallPackage() 255 if (status != PackageInstaller.STATUS_SUCCESS) { in invokeInstallPackage() 259 if (status == PackageInstaller.STATUS_SUCCESS) { in invokeInstallPackage() 290 PackageInstaller.Session session = null; in invokeInstallPackageFail() 301 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in invokeInstallPackageFail() [all …]
|
/frameworks/base/packages/PackageInstaller/ |
D | Android.bp | 16 name: "PackageInstaller",
|