Searched refs:BackupUtils (Results 1 – 12 of 12) sorted by relevance
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 26 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/ |
D | NetworkTemplate.java | 36 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()
|
D | NetworkPolicy.java | 21 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/ |
D | RecurrenceRule.java | 99 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()
|
D | BackupUtils.java | 27 public class BackupUtils { class
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 24 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/ |
D | SettingsBackupAgent.java | 38 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/ |
D | PackageManagerBackupAgent.java | 208 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()
|
D | BackupManagerService.java | 9007 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage)) { in restoreKeyValue()
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiConfiguration.java | 30 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/ |
D | BackupUtils.java | 30 public class BackupUtils { class
|
/frameworks/base/services/backup/java/com/android/server/backup/restore/ |
D | PerformUnifiedRestoreTask.java | 60 import com.android.server.backup.BackupUtils; 599 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage)) { in restoreKeyValue()
|