Home
last modified time | relevance | path

Searched refs:RestoreInfo (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/content/rollback/
DPackageRollbackInfo.java45 public static class RestoreInfo { class in PackageRollbackInfo
50 public RestoreInfo(int userId, int appId, String seInfo) { in RestoreInfo() method in PackageRollbackInfo.RestoreInfo
70 private final ArrayList<RestoreInfo> mPendingRestores;
128 public ArrayList<RestoreInfo> getPendingRestores() { in getPendingRestores()
133 public RestoreInfo getRestoreInfo(int userId) { in getRestoreInfo()
134 for (RestoreInfo ri : mPendingRestores) { in getRestoreInfo()
144 public void removeRestoreInfo(RestoreInfo ri) { in removeRestoreInfo()
180 @NonNull List<Integer> pendingBackups, @NonNull ArrayList<RestoreInfo> pendingRestores, in PackageRollbackInfo()
189 @NonNull List<Integer> pendingBackups, @NonNull ArrayList<RestoreInfo> pendingRestores, in PackageRollbackInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DRollbackStoreTest.java56 private static final Correspondence<PackageRollbackInfo.RestoreInfo,
57 PackageRollbackInfo.RestoreInfo>
59 Correspondence.from((PackageRollbackInfo.RestoreInfo a,
60 PackageRollbackInfo.RestoreInfo b) -> {
187 new PackageRollbackInfo.RestoreInfo(4980, 3442322, "seInfo")); in saveAndLoadRollback()
189 new PackageRollbackInfo.RestoreInfo(-89, 15, "otherSeInfo")); in saveAndLoadRollback()
202 new PackageRollbackInfo.RestoreInfo(180, -120, "")); in saveAndLoadRollback()
237 new PackageRollbackInfo.RestoreInfo(498, 32322, "wombles")); in loadFromJsonNoExtensionVersions()
239 new PackageRollbackInfo.RestoreInfo(-895, 1, "pingu")); in loadFromJsonNoExtensionVersions()
251 new PackageRollbackInfo.RestoreInfo(18, -12, "")); in loadFromJsonNoExtensionVersions()
[all …]
DAppDataRollbackHelperTest.java34 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
168 ArrayList<RestoreInfo> pendingRestores = info.getPendingRestores(); in testRestoreAppDataSnapshot_availableBackupForLockedUser()
192 ArrayList<RestoreInfo> pendingRestores = info.getPendingRestores(); in testRestoreAppDataSnapshot_availableBackupForUnlockedUser()
231 new RestoreInfo(37 /* userId */, 239 /* appId*/, "seInfo")); in commitPendingBackupAndRestoreForUser()
237 new RestoreInfo(37 /* userId */, 57 /* appId*/, "seInfo")); in commitPendingBackupAndRestoreForUser()
246 new RestoreInfo(73 /* userId */, 239 /* appId*/, "seInfo")); in commitPendingBackupAndRestoreForUser()
/frameworks/base/services/core/java/com/android/server/rollback/
DAppDataRollbackHelper.java21 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
92 final List<RestoreInfo> pendingRestores = packageRollbackInfo.getPendingRestores(); in restoreAppData()
107 pendingRestores.add(new RestoreInfo(userId, appId, seInfo)); in restoreAppData()
238 RestoreInfo ri = info.getRestoreInfo(userId); in commitPendingBackupAndRestoreForUser()
DRollbackStore.java25 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
134 private static @NonNull JSONArray convertToJsonArray(@NonNull List<RestoreInfo> list) in convertToJsonArray()
137 for (RestoreInfo ri : list) { in convertToJsonArray()
148 private static @NonNull ArrayList<RestoreInfo> convertToRestoreInfoArray( in convertToRestoreInfoArray()
150 ArrayList<RestoreInfo> restoreInfos = new ArrayList<>(); in convertToRestoreInfoArray()
154 restoreInfos.add(new RestoreInfo( in convertToRestoreInfoArray()
411 List<RestoreInfo> pendingRestores = info.getPendingRestores(); in toJson()
436 final ArrayList<RestoreInfo> pendingRestores = convertToRestoreInfoArray( in packageRollbackInfoFromJson()