Home
last modified time | relevance | path

Searched refs:BackupUtils (Results 1 – 10 of 10) 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;
482 BackupUtils.writeString(out, mSubscriberId); in getBytesForBackup()
483 BackupUtils.writeString(out, mNetworkId); in getBytesForBackup()
489 throws IOException, BackupUtils.BadVersionException { in getNetworkTemplateFromBackup()
492 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getNetworkTemplateFromBackup()
496 String subscriberId = BackupUtils.readString(in); in getNetworkTemplateFromBackup()
497 String networkId = BackupUtils.readString(in); in getNetworkTemplateFromBackup()
DNetworkPolicy.java23 import android.util.BackupUtils;
212 BackupUtils.writeString(out, cycleTimezone); in getBytesForBackup()
223 BackupUtils.BadVersionException { in getNetworkPolicyFromBackup()
226 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getNetworkPolicyFromBackup()
231 String cycleTimeZone = BackupUtils.readString(in); in getNetworkPolicyFromBackup()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java22 import com.android.server.backup.BackupUtils;
100 if (!BackupUtils.signaturesMatch(mSigHashes, target)) { in canRestoreTo()
115 BackupUtils.hashSignatureArray(pi.signatures), /* shadow=*/ false); in generateForInstalledPackage()
134 mSigHashes = BackupUtils.hashSignatureArray(pi.signatures); in refresh()
/frameworks/base/core/java/android/util/
DBackupUtils.java27 public class BackupUtils { class
/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.java8341 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage)) { in restoreKeyValue()
/frameworks/base/wifi/java/android/net/wifi/
DWifiConfiguration.java29 import android.util.BackupUtils;
2068 BackupUtils.writeString(out, SSID); in getBytesForBackup()
2071 BackupUtils.writeString(out, preSharedKey); in getBytesForBackup()
2081 BackupUtils.BadVersionException { in getWifiConfigFromBackup()
2085 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version"); in getWifiConfigFromBackup()
2090 config.SSID = BackupUtils.readString(in); in getWifiConfigFromBackup()
2093 config.preSharedKey = BackupUtils.readString(in); in getWifiConfigFromBackup()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java39 import android.util.BackupUtils;
1270 } catch (IOException | BackupUtils.BadVersionException e) { in restoreSoftApConfiguration()
1288 out.writeByte(BackupUtils.NOT_NULL); in getNetworkPolicies()
1292 out.writeByte(BackupUtils.NULL); in getNetworkPolicies()
1311 throw new BackupUtils.BadVersionException( in restoreNetworkPolicies()
1318 if (isNull == BackupUtils.NULL) continue; in restoreNetworkPolicies()
1327 } catch (NullPointerException | IOException | BackupUtils.BadVersionException e) { in restoreNetworkPolicies()
/frameworks/base/services/core/java/com/android/server/backup/
DBackupUtils.java30 public class BackupUtils { class