Home
last modified time | relevance | path

Searched refs:PackageManagerException (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerException.java28 public class PackageManagerException extends Exception { class
127 public static PackageManagerException ofInternalError(String detailMessage, in ofInternalError()
129 return new PackageManagerException( in ofInternalError()
133 protected PackageManagerException(int error, String detailMessage, int internalErrorCode) { in PackageManagerException() method in PackageManagerException
139 public PackageManagerException(int error, String detailMessage) { in PackageManagerException() method in PackageManagerException
145 public PackageManagerException(int error, String detailMessage, Throwable throwable) { in PackageManagerException() method in PackageManagerException
151 public PackageManagerException(Throwable e) { in PackageManagerException() method in PackageManagerException
157 public static PackageManagerException from(InstallerException e) in from()
158 throws PackageManagerException { in from()
159 throw new PackageManagerException(PackageManager.INSTALL_FAILED_INTERNAL_ERROR, in from()
DPackageSessionVerifier.java113 } catch (PackageManagerException e) { in verify()
121 private SigningDetails getSigningDetails(PackageInfo apexPkg) throws PackageManagerException { in getSigningDetails()
130 throw new PackageManagerException(PackageManager.INSTALL_FAILED_VERIFICATION_FAILURE, in getSigningDetails()
138 throws PackageManagerException { in checkApexSignature()
146 throw new PackageManagerException(PackageManager.INSTALL_FAILED_PACKAGE_CHANGED, in checkApexSignature()
157 throw new PackageManagerException(PackageManager.INSTALL_FAILED_VERIFICATION_FAILURE, in checkApexSignature()
167 throws PackageManagerException { in verifyAPK()
245 } catch (PackageManagerException e) { in verifyStaged()
281 } catch (PackageManagerException e) { in dispatchVerifyApex()
292 } catch (PackageManagerException e) { in dispatchEndVerification()
[all …]
DScanPackageUtils.java123 throws PackageManagerException { in scanPackageOnlyLI()
582 throws PackageManagerException { in assertCodePolicy()
585 throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, in assertCodePolicy()
594 throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, in assertCodePolicy()
602 @PackageManagerService.ScanFlags int scanFlags) throws PackageManagerException { in assertStaticSharedLibraryIsValid()
605 throw PackageManagerException.ofInternalError( in assertStaticSharedLibraryIsValid()
607 PackageManagerException.INTERNAL_ERROR_STATIC_SHARED_LIB_LOW_SDK); in assertStaticSharedLibraryIsValid()
612 throw PackageManagerException.ofInternalError( in assertStaticSharedLibraryIsValid()
614 PackageManagerException.INTERNAL_ERROR_STATIC_SHARED_LIB_INSTANT); in assertStaticSharedLibraryIsValid()
620 throw PackageManagerException.ofInternalError( in assertStaticSharedLibraryIsValid()
[all …]
DMovePackageHelper.java82 throws PackageManagerException { in movePackageInternal()
90 throw new PackageManagerException(MOVE_FAILED_DOESNT_EXIST, "Missing package"); in movePackageInternal()
98 throw new PackageManagerException(MOVE_FAILED_DOESNT_EXIST, in movePackageInternal()
104 throw new PackageManagerException(MOVE_FAILED_DOESNT_EXIST, "Missing package"); in movePackageInternal()
109 throw new PackageManagerException(MOVE_FAILED_SYSTEM_PACKAGE, in movePackageInternal()
117 throw new PackageManagerException(MOVE_FAILED_3RD_PARTY_NOT_ALLOWED_ON_INTERNAL, in movePackageInternal()
123 throw new PackageManagerException(MOVE_FAILED_INTERNAL_ERROR, in movePackageInternal()
129 throw new PackageManagerException(MOVE_FAILED_INTERNAL_ERROR, in movePackageInternal()
134 throw new PackageManagerException(MOVE_FAILED_DEVICE_ADMIN, in movePackageInternal()
139 throw new PackageManagerException(MOVE_FAILED_OPERATION_PENDING, in movePackageInternal()
[all …]
DPrepareFailure.java22 final class PrepareFailure extends PackageManagerException {
45 super(e instanceof PackageManagerException ? ((PackageManagerException) e).error in PrepareFailure()
DPackageInstallerSession.java1589 private void enableFsVerityToAddedApksWithIdsig() throws PackageManagerException { in enableFsVerityToAddedApksWithIdsig()
1604 private List<ApkLite> getAddedApkLitesLocked() throws PackageManagerException { in getAddedApkLitesLocked()
1615 throw new PackageManagerException(parseResult.getErrorCode(), in getAddedApkLitesLocked()
1637 throw new PackageManagerException(INSTALL_FAILED_INTERNAL_ERROR, in getAddedApkLitesLocked()
1641 throw new PackageManagerException(INSTALL_FAILED_VERIFICATION_FAILURE, in getAddedApkLitesLocked()
1647 throw new PackageManagerException(INSTALL_FAILED_VERIFICATION_FAILURE, in getAddedApkLitesLocked()
1651 throw new PackageManagerException(INSTALL_FAILED_VERIFICATION_FAILURE, in getAddedApkLitesLocked()
2192 } catch (PackageManagerException e) { in seal()
2197 private void sealInternal() throws PackageManagerException { in sealInternal()
2269 } catch (PackageManagerException e) { in handleStreamValidateAndCommit()
[all …]
DSystemDeleteException.java20 final PackageManagerException mReason;
22 SystemDeleteException(PackageManagerException reason) { in SystemDeleteException()
DReconcileFailure.java21 final class ReconcileFailure extends PackageManagerException {
34 ReconcileFailure(PackageManagerException e) { in ReconcileFailure()
DApexManager.java192 throws PackageManagerException; in submitStagedSession()
209 abstract void markStagedSessionReady(int sessionId) throws PackageManagerException; in markStagedSessionReady()
366 abstract ApexInfo installPackage(File apexFile, boolean force) throws PackageManagerException; in installPackage()
615 ApexInfoList submitStagedSession(ApexSessionParams params) throws PackageManagerException { in submitStagedSession()
624 throw new PackageManagerException( in submitStagedSession()
644 void markStagedSessionReady(int sessionId) throws PackageManagerException { in markStagedSessionReady()
651 throw new PackageManagerException( in markStagedSessionReady()
885 private SigningDetails getSigningDetails(PackageInfo pkg) throws PackageManagerException { in getSigningDetails()
893 throw new PackageManagerException(result.getErrorCode(), result.getErrorMessage(), in getSigningDetails()
900 throws PackageManagerException { in checkApexSignature()
[all …]
DMultiPackageVerifyingSession.java47 throws PackageManagerException { in MultiPackageVerifyingSession()
50 throw PackageManagerException.ofInternalError("No child sessions found!", in MultiPackageVerifyingSession()
51 PackageManagerException.INTERNAL_ERROR_VERIFY_MISSING_CHILD_SESSIONS); in MultiPackageVerifyingSession()
DInstallingSession.java359 request.setError(PackageManagerException.ofInternalError(errorMessage, in copyApkForFileInstall()
360 PackageManagerException.INTERNAL_ERROR_NATIVE_LIBRARY_COPY)); in copyApkForFileInstall()
382 request.setError(PackageManagerException.ofInternalError(errorMessage, in copyApkForMoveInstall()
383 PackageManagerException.INTERNAL_ERROR_MOVE)); in copyApkForMoveInstall()
456 throws PackageManagerException { in installStage()
610 throw PackageManagerException.ofInternalError( in installApexPackages()
612 PackageManagerException.INTERNAL_ERROR_APEX_NOT_DIRECTORY); in installApexPackages()
615 throw PackageManagerException.ofInternalError( in installApexPackages()
618 PackageManagerException.INTERNAL_ERROR_APEX_MORE_THAN_ONE_FILE); in installApexPackages()
633 } catch (PackageManagerException e) { in installApexPackages()
[all …]
DInstallPackageHelper.java51 import static com.android.server.pm.PackageManagerException.INTERNAL_ERROR_ARCHIVE_NO_INSTALLER_TIT…
1083 } catch (PackageManagerException e) { in installPackagesLI()
1094 request.setError(PackageManagerException.ofInternalError( in installPackagesLI()
1465 } catch (PackageManagerException e) { in preparePackageLI()
1633 request.setError(PackageManagerException.ofInternalError( in preparePackageLI()
1635 PackageManagerException.INTERNAL_ERROR_MISSING_SETTING_FOR_MOVE)); in preparePackageLI()
1670 } catch (PackageManagerException pme) { in preparePackageLI()
1674 PackageManagerException.INTERNAL_ERROR_DERIVING_ABI); in preparePackageLI()
1688 PackageManagerException.INTERNAL_ERROR_VERITY_SETUP); in preparePackageLI()
2292 installRequest.setError(PackageManagerException.ofInternalError( in updateSettingsInternalLI()
[all …]
DAppDataHelper.java402 } catch (PackageManagerException e) {
419 } catch (PackageManagerException e) {
468 String packageName, int userId) throws PackageManagerException {
471 throw PackageManagerException.ofInternalError("Package " + packageName + " is unknown",
472 PackageManagerException.INTERNAL_ERROR_STORAGE_INVALID_PACKAGE_UNKNOWN);
475 throw PackageManagerException.ofInternalError(
478 PackageManagerException.INTERNAL_ERROR_STORAGE_INVALID_VOLUME_UNKNOWN);
482 throw PackageManagerException.ofInternalError(
485 PackageManagerException.INTERNAL_ERROR_STORAGE_INVALID_NOT_INSTALLED_FOR_USER);
489 throw PackageManagerException.ofInternalError(
[all …]
DPackageAbiHelperImpl.java136 boolean forceMatch) throws PackageManagerException { in maybeThrowExceptionForMultiArchCopy()
140 throw new PackageManagerException(copyRet, message); in maybeThrowExceptionForMultiArchCopy()
144 throw new PackageManagerException( in maybeThrowExceptionForMultiArchCopy()
352 throws PackageManagerException { in derivePackageAbi()
420 throw new PackageManagerException(INSTALL_FAILED_INTERNAL_ERROR, in derivePackageAbi()
449 throw new PackageManagerException(INSTALL_FAILED_INTERNAL_ERROR, in derivePackageAbi()
488 throw new PackageManagerException( in derivePackageAbi()
507 throw new PackageManagerException(INSTALL_FAILED_INTERNAL_ERROR, in derivePackageAbi()
514 throw new PackageManagerException(INSTALL_FAILED_INTERNAL_ERROR, in derivePackageAbi()
DStagingManager.java269 throws PackageManagerException { in checkInstallationOfApkInApexSuccessful()
279 throw new PackageManagerException(PackageManager.INSTALL_ACTIVATION_FAILED, in checkInstallationOfApkInApexSuccessful()
372 boolean needsCheckpoint) throws PackageManagerException { in resumeSession()
426 void onInstallationFailure(StagedSession session, PackageManagerException e, in onInstallationFailure()
461 throws PackageManagerException { in checkDuplicateApkInApex()
476 throw new PackageManagerException( in checkDuplicateApkInApex()
487 private void installApksInSession(StagedSession session) throws PackageManagerException { in installApksInSession()
495 throw (PackageManagerException) ee.getCause(); in installApksInSession()
751 } catch (PackageManagerException e) { in restoreSessions()
755 onInstallationFailure(session, new PackageManagerException( in restoreSessions()
DParallelPackageParser.java128 throws PackageManagerException { in parsePackage()
132 throw new PackageManagerException(e.error, e.getMessage(), e); in parsePackage()
DSharedLibrariesImpl.java546 throws PackageManagerException {
653 } catch (PackageManagerException e) {
723 } catch (PackageManagerException e) {
917 throws PackageManagerException {
977 throws PackageManagerException {
993 throw new PackageManagerException(INSTALL_FAILED_MISSING_SHARED_LIBRARY,
1003 throw new PackageManagerException(INSTALL_FAILED_MISSING_SHARED_LIBRARY,
1011 throw new PackageManagerException(INSTALL_FAILED_MISSING_SHARED_LIBRARY,
1029 throw new PackageManagerException(INSTALL_FAILED_MISSING_SHARED_LIBRARY,
1041 throw new PackageManagerException(
[all …]
DReconcilePackageUtils.java99 PackageManagerException.INTERNAL_ERROR_SHARED_LIB_INSTALLED_TWICE); in reconcilePackages()
246 } catch (PackageManagerException e) { in reconcilePackages()
328 } catch (PackageManagerException e) { in reconcilePackages()
DKeySetManagerService.java202 throws PackageManagerException { in assertScannedPackageValid()
204 throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, in assertScannedPackageValid()
209 throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, in assertScannedPackageValid()
215 throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, in assertScannedPackageValid()
220 throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, in assertScannedPackageValid()
228 throw new PackageManagerException(INSTALL_FAILED_INVALID_APK, in assertScannedPackageValid()
DPackageManagerServiceUtils.java548 throws PackageManagerException { in verifySignatures()
595 throw new PackageManagerException(INSTALL_FAILED_UPDATE_INCOMPATIBLE, in verifySignatures()
628 throw new PackageManagerException(INSTALL_FAILED_SHARED_USER_INCOMPATIBLE, in verifySignatures()
637 throw new PackageManagerException(INSTALL_FAILED_SHARED_USER_INCOMPATIBLE, in verifySignatures()
969 throw new PackageManagerException(result.getErrorCode(), in calculateInstalledSize()
973 } catch (PackageManagerException | IOException e) { in calculateInstalledSize()
1424 throws PackageManagerException { in checkDowngrade()
1426 throw new PackageManagerException(INSTALL_FAILED_VERSION_DOWNGRADE, in checkDowngrade()
1431 throw new PackageManagerException(INSTALL_FAILED_VERSION_DOWNGRADE, in checkDowngrade()
1442 throw new PackageManagerException(INSTALL_FAILED_VERSION_DOWNGRADE, in checkDowngrade()
DPackageAbiHelper.java59 throws PackageManagerException; in derivePackageAbi()
DInstallRequest.java756 public void setError(PackageManagerException e) { in setError()
760 public void setError(String msg, PackageManagerException e) { in setError()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexMetadataHelperTest.java42 import com.android.server.pm.PackageManagerException;
142 throws PackageManagerException { in validatePackageDexMetadata()
152 throw new PackageManagerException( in validatePackageDexMetadata()
159 throws PackageManagerException { in validatePackageDexMetatadataVaryingRequireManifest()
165 public void testParsePackageWithDmFileValid() throws IOException, PackageManagerException, in testParsePackageWithDmFileValid()
183 throws IOException, PackageManagerException, PackageParserException { in testParsePackageSplitsWithDmFileValid()
206 throws IOException, PackageManagerException, PackageParserException { in testParsePackageSplitsNoBaseWithDmFileValid()
232 } catch (PackageManagerException e) { in testParsePackageWithDmFileInvalid()
240 } catch (PackageManagerException e) { in testParsePackageWithDmFileInvalid()
258 } catch (PackageManagerException e) { in testParsePackageSplitsWithDmFileInvalid()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageSessionVerifierTest.java51 assertThrows(PackageManagerException.class, in checkRebootlessApex()
73 assertThrows(PackageManagerException.class, in checkActiveSessions()
99 assertThrows(PackageManagerException.class, in checkRollbacks()
115 assertThrows(PackageManagerException.class, in checkOverlaps()
DApexManagerTest.java263 assertThrows(PackageManagerException.class, in testSubmitStagedSession_throwPackageManagerException()
296 assertThrows(PackageManagerException.class, in testMarkStagedSessionReady_throwPackageManagerException()
448 assertThrows(PackageManagerException.class, in testInstallPackageBinderCallFails()

12