Home
last modified time | relevance | path

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

/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/tests/servicestests/src/com/android/server/backup/utils/
DTarBackupReaderTest.java423 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_systemAppWithBackupAgentAndRestoreAnyVersion_returnsAccept()
461 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_restoreAnyVersion_returnsAccept()
503 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_notRestoreAnyVersionButVersionMatch_returnsAccept()
547 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchButAllowApksAndHasApk_returnsAcceptIfApk()
587 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(FAKE_SIGNATURE_1, in chooseRestorePolicy_notRestoreAnyVersionAndVersionMismatchAndDoesNotAllowApks_returnsIgnore()
DAppBackupUtilsTest.java629 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(signature1Copy, in signaturesMatch_singleStoredSignatureNoRotation_returnsTrue()
655 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(signature1Copy, in signaturesMatch_singleStoredSignatureWithRotationAssumeDataCapability_returnsTrue()
682 doReturn(false).when(mMockPackageManagerInternal).isDataRestoreSafe(signature1Copy, in signaturesMatch_singleStoredSignatureWithRotationAssumeNoDataCapability_returnsFalse()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java78 return pmi.isDataRestoreSafe(storedSigHashes.get(0), target.packageName); in signaturesMatch()
/frameworks/base/core/java/android/content/pm/
DPackageManagerInternal.java763 public abstract boolean isDataRestoreSafe(@NonNull byte[] restoringFromSigHash, in isDataRestoreSafe() method in PackageManagerInternal
770 public abstract boolean isDataRestoreSafe(@NonNull Signature restoringFromSig, in isDataRestoreSafe() method in PackageManagerInternal
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DAppBackupUtils.java269 return pmi.isDataRestoreSafe(storedSigs[0], target.packageName); in signaturesMatch()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest1.java4004 mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), anyString()); in checkCanRestoreTo()
4978 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in checkBackupAndRestore_success()
5174 mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in checkBackupAndRestore_publisherNotRestored()
5185 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_publisherNotRestored()
5317 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_launcherNotRestored()
5338 doReturn(!differentSignatures).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_launcherNotRestored()
5367 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in checkBackupAndRestore_launcherNotRestored()
5425 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in checkBackupAndRestore_publisherAndLauncherNotRestored()
5540 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe(any(byte[].class), in testBackupAndRestore_disabled()
5628 doReturn(true).when(mMockPackageManagerInternal).isDataRestoreSafe( in testBackupAndRestore_manifestRePublished()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java24280 public boolean isDataRestoreSafe(byte[] restoringFromSigHash, String packageName) {
24290 public boolean isDataRestoreSafe(Signature restoringFromSig, String packageName) {
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt16505 Landroid/content/pm/PackageManagerInternal;->isDataRestoreSafe(Landroid/content/pm/Signature;Ljava/…
16506 Landroid/content/pm/PackageManagerInternal;->isDataRestoreSafe([BLjava/lang/String;)Z