Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/rollback/
DPackageRollbackInfo.java46 public static class RestoreInfo { class in PackageRollbackInfo
51 public RestoreInfo(int userId, int appId, String seInfo) { in RestoreInfo() method in PackageRollbackInfo.RestoreInfo
71 private final ArrayList<RestoreInfo> mPendingRestores;
125 public ArrayList<RestoreInfo> getPendingRestores() { in getPendingRestores()
130 public RestoreInfo getRestoreInfo(int userId) { in getRestoreInfo()
131 for (RestoreInfo ri : mPendingRestores) { in getRestoreInfo()
141 public void removeRestoreInfo(RestoreInfo ri) { in removeRestoreInfo()
181 @NonNull IntArray pendingBackups, @NonNull ArrayList<RestoreInfo> pendingRestores, in PackageRollbackInfo()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackStore.java25 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
123 private static @NonNull JSONArray convertToJsonArray(@NonNull List<RestoreInfo> list) in convertToJsonArray()
126 for (RestoreInfo ri : list) { in convertToJsonArray()
137 private static @NonNull ArrayList<RestoreInfo> convertToRestoreInfoArray( in convertToRestoreInfoArray()
139 ArrayList<RestoreInfo> restoreInfos = new ArrayList<>(); in convertToRestoreInfoArray()
143 restoreInfos.add(new RestoreInfo( in convertToRestoreInfoArray()
321 List<RestoreInfo> pendingRestores = info.getPendingRestores(); in toJson()
344 final ArrayList<RestoreInfo> pendingRestores = convertToRestoreInfoArray( in packageRollbackInfoFromJson()
DAppDataRollbackHelper.java20 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
100 final List<RestoreInfo> pendingRestores = packageRollbackInfo.getPendingRestores(); in restoreAppData()
115 pendingRestores.add(new RestoreInfo(userId, appId, seInfo)); in restoreAppData()
203 final RestoreInfo ri = info.getRestoreInfo(userId); in computePendingRestores()
275 final RestoreInfo ri = info.getRestoreInfo(userId); in commitPendingBackupAndRestoreForUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/
DAppDataRollbackHelperTest.java34 import android.content.rollback.PackageRollbackInfo.RestoreInfo;
154 ArrayList<RestoreInfo> pendingRestores = info.getPendingRestores(); in testRestoreAppDataSnapshot_availableBackupForLockedUser()
178 ArrayList<RestoreInfo> pendingRestores = info.getPendingRestores(); in testRestoreAppDataSnapshot_availableBackupForUnlockedUser()
220 new RestoreInfo(37 /* userId */, 239 /* appId*/, "seInfo")); in commitPendingBackupAndRestoreForUser()
227 new RestoreInfo(37 /* userId */, 57 /* appId*/, "seInfo")); in commitPendingBackupAndRestoreForUser()
236 new RestoreInfo(73 /* userId */, 239 /* appId*/, "seInfo")); in commitPendingBackupAndRestoreForUser()