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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
H A DBackupUtilsTest.java39 import com.android.server.backup.BackupUtils;
57 private static final byte[] SIGNATURE_HASH_1 = BackupUtils.hashSignature(SIGNATURE_1);
58 private static final byte[] SIGNATURE_HASH_2 = BackupUtils.hashSignature(SIGNATURE_2);
59 private static final byte[] SIGNATURE_HASH_3 = BackupUtils.hashSignature(SIGNATURE_3);
60 private static final byte[] SIGNATURE_HASH_4 = BackupUtils.hashSignature(SIGNATURE_4);
73 boolean result = BackupUtils.signaturesMatch(storedSigHashes, null,
88 boolean result = BackupUtils.signaturesMatch(storedSigHashes, packageInfo,
108 boolean result = BackupUtils.signaturesMatch(null, packageInfo,
129 boolean result = BackupUtils.signaturesMatch(storedSigHashes, packageInfo,
147 boolean result = BackupUtils
[all...]
/frameworks/base/core/java/android/util/
H A DBackupUtils.java27 public class BackupUtils { class
H A DRecurrenceRule.java99 start = convertZonedDateTime(BackupUtils.readString(in));
100 end = convertZonedDateTime(BackupUtils.readString(in));
101 period = convertPeriod(BackupUtils.readString(in));
110 BackupUtils.writeString(out, convertZonedDateTime(start));
111 BackupUtils.writeString(out, convertZonedDateTime(end));
112 BackupUtils.writeString(out, convertPeriod(period));
/frameworks/base/core/java/android/net/
H A DNetworkTemplate.java39 import android.util.BackupUtils;
493 BackupUtils.writeString(out, mSubscriberId);
494 BackupUtils.writeString(out, mNetworkId);
500 throws IOException, BackupUtils.BadVersionException {
503 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version");
507 String subscriberId = BackupUtils.readString(in);
508 String networkId = BackupUtils.readString(in);
511 throw new BackupUtils.BadVersionException(
H A DNetworkPolicy.java21 import android.util.BackupUtils;
258 BackupUtils.BadVersionException {
261 throw new BackupUtils.BadVersionException("Unknown backup version: " + version);
270 final String cycleTimezone = BackupUtils.readString(in);
/frameworks/base/services/core/java/com/android/server/pm/
H A DShortcutPackageInfo.java29 import com.android.server.backup.BackupUtils;
145 if (!BackupUtils.signaturesMatch(mSigHashes, currentPackage, pmi)) {
176 pi.lastUpdateTime, BackupUtils.hashSignatureArray(signatures), /* shadow=*/ false);
205 mSigHashes = BackupUtils.hashSignatureArray(signatures);
/frameworks/base/services/core/java/com/android/server/backup/
H A DBackupUtils.java34 public class BackupUtils { class
35 private static final String TAG = "BackupUtils";
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DSettingsBackupAgent.java41 import android.util.BackupUtils;
845 } catch (IOException | BackupUtils.BadVersionException e) {
866 out.writeByte(BackupUtils.NOT_NULL);
870 out.writeByte(BackupUtils.NULL);
900 throw new BackupUtils.BadVersionException(
907 if (isNull == BackupUtils.NULL) continue;
916 } catch (NullPointerException | IOException | BackupUtils.BadVersionException
/frameworks/base/services/backup/java/com/android/server/backup/
H A DPackageManagerBackupAgent.java251 homeSigHashes = BackupUtils.hashSignatureArray(homeInfoSignatures);
270 && !BackupUtils.signaturesMatch(mStoredHomeSigHashes, homeInfo, pmi));
365 BackupUtils.hashSignatureArray(infoSignatures));
517 sigs = BackupUtils.hashSignatureArray(sigs);
/frameworks/base/wifi/java/android/net/wifi/
H A DWifiConfiguration.java34 import android.util.BackupUtils;
2231 BackupUtils.writeString(out, SSID);
2234 BackupUtils.writeString(out, preSharedKey);
2244 BackupUtils.BadVersionException {
2248 throw new BackupUtils.BadVersionException("Unknown Backup Serialization Version");
2253 config.SSID = BackupUtils.readString(in);
2256 config.preSharedKey = BackupUtils.readString(in);
/frameworks/base/services/backup/java/com/android/server/backup/restore/
H A DPerformUnifiedRestoreTask.java62 import com.android.server.backup.BackupUtils;
628 if (!BackupUtils.signaturesMatch(metaInfo.sigHashes, mCurrentPackage, pmi)) {
/frameworks/base/config/
H A Dboot-image-profile.txt6264 HPLandroid/util/BackupUtils;->writeString(Ljava/io/DataOutputStream;Ljava/lang/String;)V
[all...]

Completed in 255 milliseconds