Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java26 import com.android.server.backup.BackupUtils;
52 final ArrayList<byte[]> stored1 = BackupUtils.hashSignatureArray(Arrays.asList( in testSignaturesMatch()
54 final ArrayList<byte[]> stored2 = BackupUtils.hashSignatureArray(Arrays.asList( in testSignaturesMatch()
60 assertFalse(BackupUtils.signaturesMatch(stored1, null)); in testSignaturesMatch()
65 assertTrue(BackupUtils.signaturesMatch(stored1, pi)); in testSignaturesMatch()
68 assertTrue(BackupUtils.signaturesMatch(stored1, genPackage("abc"))); in testSignaturesMatch()
71 assertTrue(BackupUtils.signaturesMatch(stored1, genPackage("abc", "xyz"))); in testSignaturesMatch()
72 assertTrue(BackupUtils.signaturesMatch(stored1, genPackage("xyz", "abc"))); in testSignaturesMatch()
74 assertFalse(BackupUtils.signaturesMatch(stored1, genPackage("xyz"))); in testSignaturesMatch()
75 assertFalse(BackupUtils.signaturesMatch(stored1, genPackage("xyz", "def"))); in testSignaturesMatch()
[all …]
/frameworks/base/core/java/android/net/
DNetworkTemplate.java36 import android.util.BackupUtils;
514 BackupUtils.writeString(out, mSubscriberId); in getBytesForBackup()
515 BackupUtils.writeString(out, mNetworkId); in getBytesForBackup()
521 throws IOException, BackupUtils.BadVersionException { in getNetworkTemplateFromBackup()
524 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getNetworkTemplateFromBackup()
528 String subscriberId = BackupUtils.readString(in); in getNetworkTemplateFromBackup()
529 String networkId = BackupUtils.readString(in); in getNetworkTemplateFromBackup()
532 throw new BackupUtils.BadVersionException( in getNetworkTemplateFromBackup()
DNetworkPolicy.java21 import android.util.BackupUtils;
240 BackupUtils.BadVersionException { in getNetworkPolicyFromBackup()
246 String cycleTimeZone = BackupUtils.readString(in); in getNetworkPolicyFromBackup()
269 throw new BackupUtils.BadVersionException("Unknown backup version: " + version); in getNetworkPolicyFromBackup()
/frameworks/base/core/java/android/util/
DRecurrenceRule.java99 start = convertZonedDateTime(BackupUtils.readString(in)); in RecurrenceRule()
100 end = convertZonedDateTime(BackupUtils.readString(in)); in RecurrenceRule()
101 period = convertPeriod(BackupUtils.readString(in)); in RecurrenceRule()
109 BackupUtils.writeString(out, convertZonedDateTime(start)); in writeToStream()
110 BackupUtils.writeString(out, convertZonedDateTime(end)); in writeToStream()
111 BackupUtils.writeString(out, convertPeriod(period)); in writeToStream()
DBackupUtils.java27 public class BackupUtils { class
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java24 import com.android.server.backup.BackupUtils;
117 if (!BackupUtils.signaturesMatch(mSigHashes, target)) { in canRestoreTo()
133 BackupUtils.hashSignatureArray(pi.signatures), /* shadow=*/ false); in generateForInstalledPackageForTest()
151 mSigHashes = BackupUtils.hashSignatureArray(pi.signatures); in refreshSignature()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java38 import android.util.BackupUtils;
845 } catch (IOException | BackupUtils.BadVersionException e) { in restoreSoftApConfiguration()
863 out.writeByte(BackupUtils.NOT_NULL); in getNetworkPolicies()
867 out.writeByte(BackupUtils.NULL); in getNetworkPolicies()
897 throw new BackupUtils.BadVersionException( in restoreNetworkPolicies()
904 if (isNull == BackupUtils.NULL) continue; in restoreNetworkPolicies()
913 } catch (NullPointerException | IOException | BackupUtils.BadVersionException e) { in restoreNetworkPolicies()
/frameworks/base/services/backup/java/com/android/server/backup/
DPackageManagerBackupAgent.java208 homeSigHashes = BackupUtils.hashSignatureArray(homeInfo.signatures); in onBackup()
225 && !BackupUtils.signaturesMatch(mStoredHomeSigHashes, homeInfo)); in onBackup()
312 BackupUtils.hashSignatureArray(info.signatures)); in onBackup()
484 sigs = BackupUtils.hashSignatureArray(sigs); in readSignatureHashArray()
DBackupManagerService.java9007 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage)) { in restoreKeyValue()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java30 import android.util.BackupUtils;
2272 BackupUtils.writeString(out, SSID); in getBytesForBackup()
2275 BackupUtils.writeString(out, preSharedKey); in getBytesForBackup()
2285 BackupUtils.BadVersionException { in getWifiConfigFromBackup()
2289 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getWifiConfigFromBackup()
2294 config.SSID = BackupUtils.readString(in); in getWifiConfigFromBackup()
2297 config.preSharedKey = BackupUtils.readString(in); in getWifiConfigFromBackup()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java30 public class BackupUtils { class
/frameworks/base/services/backup/java/com/android/server/backup/restore/
DPerformUnifiedRestoreTask.java60 import com.android.server.backup.BackupUtils;
599 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage)) { in restoreKeyValue()