/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/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/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; 91 launchFailure(PackageInstaller.STATUS_FAILURE, in onCreate() 131 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in onCreate() 132 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in onCreate() 171 launchFailure(PackageInstaller.STATUS_FAILURE, in onCreate() 178 launchFailure(PackageInstaller.STATUS_FAILURE, in onCreate() 210 failureIntent.putExtra(PackageInstaller.EXTRA_STATUS, statusCode); in launchFailure() 211 failureIntent.putExtra(PackageInstaller.EXTRA_LEGACY_STATUS, legacyStatus); in launchFailure() 212 failureIntent.putExtra(PackageInstaller.EXTRA_STATUS_MESSAGE, statusMessage); in launchFailure() [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 | 29 import android.content.pm.PackageInstaller; 63 PackageInstaller.ACTION_CONFIRM_INSTALL.equals(intent.getAction()); in onCreate() 68 ? intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID, -1) in onCreate() 71 PackageInstaller packageInstaller = getPackageManager().getPackageInstaller(); in onCreate() 72 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in onCreate() 86 if (!isTrustedSource && originatingUid != PackageInstaller.SessionParams.UID_UNKNOWN) { in onCreate() 195 PackageInstaller.SessionParams.UID_UNKNOWN); in getOriginatingUid() 208 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() 119 onResult(PackageInstaller.STATUS_FAILURE, PackageManager.DELETE_FAILED_INTERNAL_ERROR, in onCreate() 151 setResult(status == PackageInstaller.STATUS_SUCCESS ? Activity.RESULT_OK in onResult() 156 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 | 41 import android.content.pm.PackageInstaller; 86 private int mOriginatingUid = PackageInstaller.SessionParams.UID_UNKNOWN; 94 PackageInstaller mInstaller; 320 PackageInstaller.SessionParams.UID_UNKNOWN); in onCreate() 321 mOriginatingPackage = (mOriginatingUid != PackageInstaller.SessionParams.UID_UNKNOWN) in onCreate() 326 if (PackageInstaller.ACTION_CONFIRM_INSTALL.equals(intent.getAction())) { in onCreate() 327 final int sessionId = intent.getIntExtra(PackageInstaller.EXTRA_SESSION_ID, -1); in onCreate() 328 final PackageInstaller.SessionInfo info = mInstaller.getSessionInfo(sessionId); in onCreate() 621 if (mOriginatingUid != PackageInstaller.SessionParams.UID_UNKNOWN) { in startInstall()
|
/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() 190 PackageInstaller.SessionInfo.STAGED_SESSION_VERIFICATION_FAILED, in createSession() 260 private void assertSessionParamsEquivalent(PackageInstaller.SessionParams expected, in assertSessionParamsEquivalent() 261 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/core/java/android/content/pm/ |
D | PackageInstaller.aidl | 19 parcelable PackageInstaller.SessionParams; 20 parcelable PackageInstaller.SessionInfo;
|
D | PackageManager.java | 8218 public abstract @NonNull PackageInstaller getPackageInstaller(); in getPackageInstaller() 8343 case INSTALL_SUCCEEDED: return PackageInstaller.STATUS_SUCCESS; in installStatusToPublicStatus() 8344 case INSTALL_FAILED_ALREADY_EXISTS: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 8345 case INSTALL_FAILED_INVALID_APK: return PackageInstaller.STATUS_FAILURE_INVALID; in installStatusToPublicStatus() 8346 case INSTALL_FAILED_INVALID_URI: return PackageInstaller.STATUS_FAILURE_INVALID; in installStatusToPublicStatus() 8347 … case INSTALL_FAILED_INSUFFICIENT_STORAGE: return PackageInstaller.STATUS_FAILURE_STORAGE; in installStatusToPublicStatus() 8348 case INSTALL_FAILED_DUPLICATE_PACKAGE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 8349 case INSTALL_FAILED_NO_SHARED_USER: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 8350 … case INSTALL_FAILED_UPDATE_INCOMPATIBLE: return PackageInstaller.STATUS_FAILURE_CONFLICT; in installStatusToPublicStatus() 8351 … 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, in createSession() 41 PackageInstaller.SessionInfo getSessionInfo(int sessionId); in getSessionInfo()
|
D | InstallationFile.java | 40 public InstallationFile(@PackageInstaller.FileLocation int location, @NonNull String name, in InstallationFile() 60 public @PackageInstaller.FileLocation int getLocation() { in getLocation()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | Rollback.java | 30 import android.content.pm.PackageInstaller; 530 PackageInstaller packageInstaller = pm.getPackageInstaller(); in commit() 531 PackageInstaller.SessionParams parentParams = new PackageInstaller.SessionParams( in commit() 532 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit() 541 PackageInstaller.Session parentSession = packageInstaller.openSession( in commit() 553 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in commit() 554 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in commit() 574 PackageInstaller.Session session = packageInstaller.openSession(sessionId); in commit() 615 int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in commit() 616 PackageInstaller.STATUS_FAILURE); in commit() [all …]
|
D | RollbackPackageHealthObserver.java | 28 import android.content.pm.PackageInstaller; 214 new IntentFilter(PackageInstaller.ACTION_SESSION_UPDATED); in listenForStagedSessionReady() 223 PackageInstaller packageInstaller = in handleStagedSessionChange() 231 && (sessionId != PackageInstaller.SessionInfo.INVALID_ID)) { in handleStagedSessionChange() 232 PackageInstaller.SessionInfo sessionInfo = in handleStagedSessionChange()
|
/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/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()
|
/frameworks/base/tests/StagedInstallTest/app/src/com/android/tests/stagedinstallinternal/ |
D | StagedInstallInternalTest.java | 28 import android.content.pm.PackageInstaller; 108 PackageInstaller.SessionInfo info = in testDuplicateApkInApexShouldFail_Verify() 155 PackageInstaller.SessionInfo info = InstallUtils.getStagedSessionInfo(sessionId); in testStagedSessionShouldCleanUpOnOnSuccess_Verify() 183 PackageInstaller.SessionInfo info = in testFailStagedSessionIfStagingDirectoryDeleted_Verify() 432 int sessionId, Consumer<PackageInstaller.SessionInfo> assertion) { in assertSessionState() 433 PackageInstaller packageInstaller = getPackageInstaller(); in assertSessionState() 435 List<PackageInstaller.SessionInfo> sessions = packageInstaller.getStagedSessions(); in assertSessionState() 437 for (PackageInstaller.SessionInfo session : sessions) { in assertSessionState() 447 PackageInstaller.SessionInfo sessionInfo = packageInstaller.getSessionInfo(sessionId); in assertSessionState()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/ |
D | PreRebootLoggerTest.java | 26 import android.content.pm.PackageInstaller; 27 import android.content.pm.PackageInstaller.SessionInfo; 61 @Mock PackageInstaller mPackageInstaller;
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 35 import android.content.pm.PackageInstaller.SessionParams; 203 private PackageInstaller getPi() { in getPi() 207 private void writeSplitToInstallSession(PackageInstaller.Session session, String inPath, in writeSplitToInstallSession() 245 PackageInstaller.Session session = null; in invokeInstallPackage() 256 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in invokeInstallPackage() 257 PackageInstaller.STATUS_FAILURE); in invokeInstallPackage() 259 if (status != PackageInstaller.STATUS_SUCCESS) { in invokeInstallPackage() 263 if (status == PackageInstaller.STATUS_SUCCESS) { in invokeInstallPackage() 294 PackageInstaller.Session session = null; in invokeInstallPackageFail() 305 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in invokeInstallPackageFail() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommand.java | 19 import static android.content.pm.PackageInstaller.LOCATION_DATA_APP; 41 import android.content.pm.PackageInstaller; 42 import android.content.pm.PackageInstaller.SessionInfo; 43 import android.content.pm.PackageInstaller.SessionParams; 470 final int status = result.getIntExtra(PackageInstaller.EXTRA_STATUS, in uninstallSystemUpdates() 471 PackageInstaller.STATUS_FAILURE); in uninstallSystemUpdates() 472 if (status != PackageInstaller.STATUS_SUCCESS) { in uninstallSystemUpdates() 1347 != PackageInstaller.STATUS_SUCCESS) { in doRunInstall() 1352 != PackageInstaller.STATUS_SUCCESS) { in doRunInstall() 1357 != PackageInstaller.STATUS_SUCCESS) { in doRunInstall() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | StagingManagerTest.java | 36 import android.content.pm.PackageInstaller; 37 import android.content.pm.PackageInstaller.SessionInfo; 38 import android.content.pm.PackageInstaller.SessionInfo.StagedSessionErrorCode; 524 PackageInstaller.SessionParams params = new PackageInstaller.SessionParams( in createSession() 525 PackageInstaller.SessionParams.MODE_FULL_INSTALL); in createSession() 559 /* stagedSessionErrorCode */ PackageInstaller.SessionInfo.STAGED_SESSION_NO_ERROR, in createSession() 694 public PackageInstaller.SessionParams sessionParams() { in sessionParams()
|