Home
last modified time | relevance | path

Searched refs:BackupUtils (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java37 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/
DBackupUtilsTest.java52 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/base/core/java/android/util/
DRecurrenceRule.java102 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()
DBackupUtils.java27 public class BackupUtils { class
/frameworks/base/core/java/android/app/backup/
DBackupUtils.java26 public class BackupUtils { class
28 private BackupUtils() {} in BackupUtils() method in BackupUtils
DBackupAgent.java862 BackupUtils.isFileSpecifiedInPathList(destination, excludes)) { in isFileEligibleForRestore()
877 BackupUtils.isFileSpecifiedInPathList(destination, domainIncludes); in isFileEligibleForRestore()
/frameworks/base/core/java/android/net/
DNetworkTemplate.java44 import android.util.BackupUtils;
636 BackupUtils.writeString(out, mSubscriberId); in getBytesForBackup()
637 BackupUtils.writeString(out, mNetworkId); in getBytesForBackup()
643 throws IOException, BackupUtils.BadVersionException { in getNetworkTemplateFromBackup()
646 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getNetworkTemplateFromBackup()
650 String subscriberId = BackupUtils.readString(in); in getNetworkTemplateFromBackup()
651 String networkId = BackupUtils.readString(in); in getNetworkTemplateFromBackup()
654 throw new BackupUtils.BadVersionException( in getNetworkTemplateFromBackup()
DNetworkPolicy.java22 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/
DShortcutPackageInfo.java29 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/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java41 import android.util.BackupUtils;
876 } catch (IOException | BackupUtils.BadVersionException e) { in restoreSoftApConfiguration()
897 out.writeByte(BackupUtils.NOT_NULL); in getNetworkPolicies()
901 out.writeByte(BackupUtils.NULL); in getNetworkPolicies()
931 throw new BackupUtils.BadVersionException( in restoreNetworkPolicies()
938 if (isNull == BackupUtils.NULL) continue; in restoreNetworkPolicies()
947 } catch (NullPointerException | IOException | BackupUtils.BadVersionException in restoreNetworkPolicies()
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java254 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/services/core/java/com/android/server/backup/
DBackupUtils.java34 public class BackupUtils { class
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java38 import android.util.BackupUtils;
2604 BackupUtils.writeString(out, SSID); in getBytesForBackup()
2607 BackupUtils.writeString(out, preSharedKey); in getBytesForBackup()
2618 BackupUtils.BadVersionException { in getWifiConfigFromBackup()
2622 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getWifiConfigFromBackup()
2627 config.SSID = BackupUtils.readString(in); in getWifiConfigFromBackup()
2630 config.preSharedKey = BackupUtils.readString(in); in getWifiConfigFromBackup()
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java61 import com.android.server.backup.BackupUtils;
628 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage, pmi)) { in restoreKeyValue()
/frameworks/base/services/
Dart-profile4762 PLcom/android/server/backup/BackupUtils;->hashSignature(Landroid/content/pm/Signature;)[B
4763 PLcom/android/server/backup/BackupUtils;->hashSignature([B)[B
4764 PLcom/android/server/backup/BackupUtils;->signaturesMatch(Ljava/util/ArrayList;Landroid/content/pm/…
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt71545 Landroid/util/BackupUtils$BadVersionException;-><init>(Ljava/lang/String;)V
71546 Landroid/util/BackupUtils;-><init>()V
71547 Landroid/util/BackupUtils;->NOT_NULL:I
71548 Landroid/util/BackupUtils;->NULL:I
71549 Landroid/util/BackupUtils;->readString(Ljava/io/DataInputStream;)Ljava/lang/String;
71550 Landroid/util/BackupUtils;->writeString(Ljava/io/DataOutputStream;Ljava/lang/String;)V