Home
last modified time | relevance | path

Searched refs:oldPackageState (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DAppIdPermissionPolicyPermissionDefinitionsTest.kt326 val oldPackageState = mockPackageState( in testPermissionChanged() constant
330 addPackageState(oldPackageState) in testPermissionChanged()
408 val oldPackageState = mockPackageState(APP_ID_0, mockSimpleAndroidPackage()) in testPermissionDeclaration() constant
409 addPackageState(oldPackageState) in testPermissionDeclaration()
429 val oldPackageState = mockPackageState( in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked() constant
437 addPackageState(oldPackageState) in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked()
565 val oldPackageState = if (isOldPackageMissing) { in testRevokePermissionsOnPackageUpdate() constant
579 addPackageState(oldPackageState) in testRevokePermissionsOnPackageUpdate()
/frameworks/base/services/core/java/com/android/server/pm/
DInstallPackageHelper.java1705 final PackageSetting oldPackageState; in preparePackageLI() local
1717 oldPackageState = mPm.mSettings.getPackageLPr(pkgName11); in preparePackageLI()
1719 oldPackage = oldPackageState.getAndroidPackage(); in preparePackageLI()
1741 + ", old=" + oldPackageState.getName()); in preparePackageLI()
1758 SigningDetails oldPkgSigningDetails = oldPackageState.getSigningDetails(); in preparePackageLI()
1778 if (oldPackageState.getRestrictUpdateHash() != null in preparePackageLI()
1779 && oldPackageState.isSystem()) { in preparePackageLI()
1794 if (!Arrays.equals(oldPackageState.getRestrictUpdateHash(), digestBytes)) { in preparePackageLI()
1800 oldPackageState.getRestrictUpdateHash()); in preparePackageLI()
1874 removedInfo.mIsExternal = oldPackageState.isExternalStorage(); in preparePackageLI()
[all …]