Home
last modified time | relevance | path

Searched refs:isDataRestoreSafe (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java433 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_systemAppWithBackupAgentAndRestoreAnyVersion_returnsAccept()
471 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_restoreAnyVersion_returnsAccept()
513 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept()
546 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_flagOnNotRestoreAnyVersionVToURestoreAndInAllowlist_returnsIgnore()
580 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_flagOffNotRestoreAnyVersionVToURestoreAndInAllowlist_returnsAccept()
614 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_flagOnNotRestoreAnyVersionVToURestoreAndNotInAllowlist_returnsIgnore()
662 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchButAllowApksAndHasApk_returnsAcceptIfApk()
706 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchAndDoesNotAllowApks_returnsIgnore()
DBackupEligibilityRulesTest.java801 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(signature1Copy, in signaturesMatch_singleStoredSignatureNoRotation_returnsTrue()
827 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(signature1Copy, in signaturesMatch_singleStoredSignatureWithRotationAssumeDataCapability_returnsTrue()
854 doReturn(false).when(mMockPackageManagerInternal).isDataRestoreSafe(signature1Copy, in signaturesMatch_singleStoredSignatureWithRotationAssumeNoDataCapability_returnsFalse()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java295 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(SIGNATURE_HASH_1, in signaturesMatch_singleStoredSignatureNoRotation_returnsTrue()
321 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(SIGNATURE_HASH_1, in signaturesMatch_singleStoredSignatureWithRotationAssumeDataCapability_returnsTrue()
348 doReturn(false).when(mMockPackageManagerInternal).isDataRestoreSafe(SIGNATURE_HASH_1, in signaturesMatch_singleStoredSignatureWithRotationAssumeNoDataCapability_returnsFalse()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java80 return pmi.isDataRestoreSafe(storedSigHashes.get(0), target.packageName); in signaturesMatch()
/frameworks/base/services/core/java/android/content/pm/
DPackageManagerInternal.java871 public abstract boolean isDataRestoreSafe(@NonNull byte[] restoringFromSigHash, in isDataRestoreSafe() method in PackageManagerInternal
878 public abstract boolean isDataRestoreSafe(@NonNull Signature restoringFromSig, in isDataRestoreSafe() method in PackageManagerInternal
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java439 return mPackageManagerInternal.isDataRestoreSafe(storedSigs[0], target.packageName); in signaturesMatch()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java4843 mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), anyString()); in checkCanRestoreTo()
5816 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in checkBackupAndRestore_success()
6004 mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in checkBackupAndRestore_publisherNotRestored()
6015 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_publisherNotRestored()
6147 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_launcherNotRestored()
6168 doReturn(!differentSignatures).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_launcherNotRestored()
6197 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_launcherNotRestored()
6255 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in checkBackupAndRestore_publisherAndLauncherNotRestored()
6370 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in testBackupAndRestore_disabled()
6458 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in testBackupAndRestore_manifestRePublished()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java6698 public boolean isDataRestoreSafe(byte[] restoringFromSigHash, String packageName) { in isDataRestoreSafe() method in PackageManagerService.PackageManagerInternalImpl
6709 public boolean isDataRestoreSafe(Signature restoringFromSig, String packageName) { in isDataRestoreSafe() method in PackageManagerService.PackageManagerInternalImpl
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt12555 Landroid/content/pm/PackageManagerInternal;->isDataRestoreSafe(Landroid/content/pm/Signature;Ljava/…
12556 Landroid/content/pm/PackageManagerInternal;->isDataRestoreSafe([BLjava/lang/String;)Z