/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 37 import com.android.server.backup.BackupUtils; 55 private static final byte[] SIGNATURE_HASH_1 = BackupUtils.hashSignature(SIGNATURE_1); 56 private static final byte[] SIGNATURE_HASH_2 = BackupUtils.hashSignature(SIGNATURE_2); 57 private static final byte[] SIGNATURE_HASH_3 = BackupUtils.hashSignature(SIGNATURE_3); 58 private static final byte[] SIGNATURE_HASH_4 = BackupUtils.hashSignature(SIGNATURE_4); 71 boolean result = BackupUtils.signaturesMatch(storedSigHashes, null, in signaturesMatch_targetIsNull_returnsFalse() 86 boolean result = BackupUtils.signaturesMatch(storedSigHashes, packageInfo, in signaturesMatch_systemApplication_returnsTrue() 105 boolean result = BackupUtils.signaturesMatch(null, packageInfo, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse() 125 boolean result = BackupUtils.signaturesMatch(storedSigHashes, packageInfo, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse() 143 boolean result = BackupUtils.signaturesMatch(storedSigHashes, packageInfo, in signaturesMatch_disallowsUnsignedApps_targetSignatureEmpty_returnsFalse() [all …]
|
/frameworks/base/services/robotests/backup/src/android/app/backup/ |
D | BackupUtilsTest.java | 52 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(file("a/b.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasIt() 61 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasItsDirectory() 69 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(file("a/c.txt"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasOtherFile() 76 boolean isSpecified = BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths()); in testIsFileSpecifiedInPathList_whenFileAndPathListEmpty() 84 BackupUtils.isFileSpecifiedInPathList(directory("a"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenDirectoryAndPathListHasIt() 91 boolean isSpecified = BackupUtils.isFileSpecifiedInPathList(directory("a"), paths()); in testIsFileSpecifiedInPathList_whenDirectoryAndPathListEmpty() 99 BackupUtils.isFileSpecifiedInPathList(directory("a/b"), paths(directory("a"))); in testIsFileSpecifiedInPathList_whenDirectoryAndPathListHasParent() 108 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("c"))); in testIsFileSpecifiedInPathList_whenFileAndPathListDoesntContainDirectory() 117 BackupUtils.isFileSpecifiedInPathList(file("a/b.txt"), paths(directory("a/b"))); in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix() 126 BackupUtils.isFileSpecifiedInPathList( in testIsFileSpecifiedInPathList_whenFileAndPathListHasDirectoryWhoseNameIsPrefix2() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | SoftApBackupRestore.java | 24 import android.util.BackupUtils; 83 BackupUtils.writeString(out, config.getSsid()); in retrieveBackupDataFromSoftApConfiguration() 86 BackupUtils.writeString(out, config.getPassphrase()); in retrieveBackupDataFromSoftApConfiguration() 118 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in retrieveSoftApConfigurationFromBackupData() 123 configBuilder.setSsid(BackupUtils.readString(in)); in retrieveSoftApConfigurationFromBackupData() 138 String passphrase = BackupUtils.readString(in); in retrieveSoftApConfigurationFromBackupData() 180 } catch (BackupUtils.BadVersionException badVersion) { in retrieveSoftApConfigurationFromBackupData()
|
/frameworks/base/core/java/android/util/ |
D | RecurrenceRule.java | 102 start = convertZonedDateTime(BackupUtils.readString(in)); in RecurrenceRule() 103 end = convertZonedDateTime(BackupUtils.readString(in)); in RecurrenceRule() 104 period = convertPeriod(BackupUtils.readString(in)); in RecurrenceRule() 113 BackupUtils.writeString(out, convertZonedDateTime(start)); in writeToStream() 114 BackupUtils.writeString(out, convertZonedDateTime(end)); in writeToStream() 115 BackupUtils.writeString(out, convertPeriod(period)); in writeToStream()
|
D | BackupUtils.java | 27 public class BackupUtils { class
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupUtils.java | 26 public class BackupUtils { class 28 private BackupUtils() {} in BackupUtils() method in BackupUtils
|
D | BackupAgent.java | 887 BackupUtils.isFileSpecifiedInPathList(destination, excludes)) { in isFileEligibleForRestore() 902 BackupUtils.isFileSpecifiedInPathList(destination, domainIncludes); in isFileEligibleForRestore()
|
/frameworks/base/core/java/android/net/ |
D | NetworkTemplate.java | 45 import android.util.BackupUtils; 665 BackupUtils.writeString(out, mSubscriberId); in getBytesForBackup() 666 BackupUtils.writeString(out, mNetworkId); in getBytesForBackup() 672 throws IOException, BackupUtils.BadVersionException { in getNetworkTemplateFromBackup() 675 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getNetworkTemplateFromBackup() 679 String subscriberId = BackupUtils.readString(in); in getNetworkTemplateFromBackup() 680 String networkId = BackupUtils.readString(in); in getNetworkTemplateFromBackup() 683 throw new BackupUtils.BadVersionException( in getNetworkTemplateFromBackup()
|
D | NetworkPolicy.java | 22 import android.util.BackupUtils; 270 BackupUtils.BadVersionException { in getNetworkPolicyFromBackup() 273 throw new BackupUtils.BadVersionException("Unknown backup version: " + version); in getNetworkPolicyFromBackup() 282 final String cycleTimezone = BackupUtils.readString(in); in getNetworkPolicyFromBackup()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 29 import com.android.server.backup.BackupUtils; 145 if (!BackupUtils.signaturesMatch(mSigHashes, currentPackage, pmi)) { in canRestoreTo() 176 pi.lastUpdateTime, BackupUtils.hashSignatureArray(signatures), /* shadow=*/ false); in generateForInstalledPackageForTest() 205 mSigHashes = BackupUtils.hashSignatureArray(signatures); in refreshSignature()
|
/frameworks/base/services/core/java/com/android/server/backup/ |
D | BackupUtils.java | 34 public class BackupUtils { class
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | PackageManagerBackupAgent.java | 254 homeSigHashes = BackupUtils.hashSignatureArray(homeInfoSignatures); in onBackup() 273 && !BackupUtils.signaturesMatch(mStoredHomeSigHashes, homeInfo, pmi)); in onBackup() 368 BackupUtils.hashSignatureArray(infoSignatures)); in onBackup() 520 sigs = BackupUtils.hashSignatureArray(sigs); in readSignatureHashArray()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsBackupAgent.java | 47 import android.util.BackupUtils; 1072 out.writeByte(BackupUtils.NOT_NULL); in getNetworkPolicies() 1076 out.writeByte(BackupUtils.NULL); in getNetworkPolicies() 1106 throw new BackupUtils.BadVersionException( in restoreNetworkPolicies() 1113 if (isNull == BackupUtils.NULL) continue; in restoreNetworkPolicies() 1122 } catch (NullPointerException | IOException | BackupUtils.BadVersionException in restoreNetworkPolicies()
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 62 import com.android.server.backup.BackupUtils; 643 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage, pmi)) { in restoreKeyValue()
|
/frameworks/base/wifi/ |
D | jarjar-rules.txt | 88 rule android.util.BackupUtils* com.android.wifi.x.@0
|
/frameworks/base/ |
D | Android.bp | 1195 "core/java/android/util/BackupUtils.java",
|
/frameworks/base/config/ |
D | preloaded-classes | 6482 android.util.BackupUtils$BadVersionException 6483 android.util.BackupUtils
|
D | boot-image-profile.txt | 46787 Landroid/util/BackupUtils$BadVersionException; 46788 Landroid/util/BackupUtils;
|
/frameworks/base/services/ |
D | art-profile | 10800 HPLcom/android/server/backup/BackupUtils;->hashSignature(Landroid/content/pm/Signature;)[B 10801 HPLcom/android/server/backup/BackupUtils;->hashSignature([B)[B 10802 HPLcom/android/server/backup/BackupUtils;->hashSignatureArray([Landroid/content/pm/Signature;)Ljava… 10803 HPLcom/android/server/backup/BackupUtils;->signaturesMatch(Ljava/util/ArrayList;Landroid/content/pm… 42021 Lcom/android/server/backup/BackupUtils;
|