/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | RollbackStoreTest.java | 23 import android.content.rollback.PackageRollbackInfo; 57 private static final Correspondence<PackageRollbackInfo.RestoreInfo, 58 PackageRollbackInfo.RestoreInfo> 60 Correspondence.from((PackageRollbackInfo.RestoreInfo a, 61 PackageRollbackInfo.RestoreInfo b) -> { 186 PackageRollbackInfo pkgInfo1 = in saveAndLoadRollback() 187 new PackageRollbackInfo(new VersionedPackage("com.made.up", 18), in saveAndLoadRollback() 195 new PackageRollbackInfo.RestoreInfo(4980, 3442322, "seInfo")); in saveAndLoadRollback() 197 new PackageRollbackInfo.RestoreInfo(-89, 15, "otherSeInfo")); in saveAndLoadRollback() 203 PackageRollbackInfo pkgInfo2 = new PackageRollbackInfo( in saveAndLoadRollback() [all …]
|
D | RollbackUnitTest.java | 31 import android.content.rollback.PackageRollbackInfo; 149 PackageRollbackInfo pkgInfo1 = newPkgInfoFor(PKG_1, 12, 10, false); in getPackageNamesAllAndJustApex() 150 PackageRollbackInfo pkgInfo2 = newPkgInfoFor(PKG_2, 18, 11, true); in getPackageNamesAllAndJustApex() 151 PackageRollbackInfo pkgInfo3 = newPkgInfoFor(PKG_3, 19, 1, false); in getPackageNamesAllAndJustApex() 152 PackageRollbackInfo pkgInfo4 = newPkgInfoFor(PKG_4, 12, 1, true); in getPackageNamesAllAndJustApex() 163 PackageRollbackInfo pkgInfo1 = newPkgInfoFor(PKG_1, 12, 10, false); in includesPackagesAfterEnable() 164 PackageRollbackInfo pkgInfo2 = newPkgInfoFor(PKG_2, 18, 12, true); in includesPackagesAfterEnable() 165 PackageRollbackInfo pkgInfo3 = newPkgInfoFor(PKG_3, 157, 156, false); in includesPackagesAfterEnable() 166 PackageRollbackInfo pkgInfo4 = newPkgInfoFor(PKG_4, 99, 1, true); in includesPackagesAfterEnable() 191 PackageRollbackInfo pkgInfo1 = newPkgInfoFor(PKG_1, 12, 10, false); in snapshotWhenEnabling() [all …]
|
D | AppDataRollbackHelperTest.java | 33 import android.content.rollback.PackageRollbackInfo; 34 import android.content.rollback.PackageRollbackInfo.RestoreInfo; 70 PackageRollbackInfo info = createPackageRollbackInfo("com.foo.bar"); in testSnapshotAppData() 89 PackageRollbackInfo info2 = createPackageRollbackInfo("com.foo.bar"); in testSnapshotAppData() 111 private static PackageRollbackInfo createPackageRollbackInfo(String packageName, in createPackageRollbackInfo() 113 return new PackageRollbackInfo( in createPackageRollbackInfo() 118 private static PackageRollbackInfo createPackageRollbackInfo(String packageName) { in createPackageRollbackInfo() 133 PackageRollbackInfo info = createPackageRollbackInfo("com.foo"); in testRestoreAppDataSnapshot_pendingBackupForUser() 159 PackageRollbackInfo info = createPackageRollbackInfo("com.foo"); in testRestoreAppDataSnapshot_availableBackupForLockedUser() 183 PackageRollbackInfo info = createPackageRollbackInfo("com.foo"); in testRestoreAppDataSnapshot_availableBackupForUnlockedUser() [all …]
|
/frameworks/base/core/java/android/content/rollback/ |
D | PackageRollbackInfo.java | 35 public final class PackageRollbackInfo implements Parcelable { class 178 public PackageRollbackInfo(VersionedPackage packageRolledBackFrom, in PackageRollbackInfo() method in PackageRollbackInfo 187 public PackageRollbackInfo(VersionedPackage packageRolledBackFrom, in PackageRollbackInfo() method in PackageRollbackInfo 202 private PackageRollbackInfo(Parcel in) { in PackageRollbackInfo() method in PackageRollbackInfo 226 public static final @NonNull Parcelable.Creator<PackageRollbackInfo> CREATOR = 227 new Parcelable.Creator<PackageRollbackInfo>() { 228 public PackageRollbackInfo createFromParcel(Parcel in) { 229 return new PackageRollbackInfo(in); 232 public PackageRollbackInfo[] newArray(int size) { 233 return new PackageRollbackInfo[size];
|
D | RollbackInfo.java | 42 private final List<PackageRollbackInfo> mPackages; 53 List<PackageRollbackInfo> packages, in RollbackInfo() 69 List<PackageRollbackInfo> packages, in RollbackInfo() 85 mPackages = in.createTypedArrayList(PackageRollbackInfo.CREATOR); in RollbackInfo() 99 public List<PackageRollbackInfo> getPackages() { in getPackages()
|
D | PackageRollbackInfo.aidl | 18 parcelable PackageRollbackInfo;
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/ |
D | RollbackPackageHealthObserverTest.java | 41 import android.content.rollback.PackageRollbackInfo; 88 PackageRollbackInfo mPackageRollbackInfo; 263 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo(appAFrom, appATo, in healthCheckFailed_impactLevelLow_onePackage() 294 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo(appAFrom, appATo, in healthCheckFailed_impactLevelHigh_onePackage() 325 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo(appAFrom, appATo, in healthCheckFailed_impactLevelManualOnly_onePackage() 355 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo(appAFrom, appATo, in healthCheckFailed_impactLevelLowAndHigh_onePackage() 363 PackageRollbackInfo packageRollbackInfoB = new PackageRollbackInfo(appBFrom, appBTo, in healthCheckFailed_impactLevelLowAndHigh_onePackage() 395 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo(appAFrom, appATo, in execute_impactLevelLow_nativeCrash_rollback() 429 PackageRollbackInfo packageRollbackInfoA = new PackageRollbackInfo(appAFrom, appATo, in execute_impactLevelLow_rollbackFailedPackage() 438 PackageRollbackInfo packageRollbackInfoB = new PackageRollbackInfo(appBFrom, appBTo, in execute_impactLevelLow_rollbackFailedPackage() [all …]
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | AppDataRollbackHelper.java | 20 import android.content.rollback.PackageRollbackInfo; 21 import android.content.rollback.PackageRollbackInfo.RestoreInfo; 62 int rollbackId, PackageRollbackInfo packageRollbackInfo, int[] userIds) { in snapshotAppData() 87 public boolean restoreAppData(int rollbackId, PackageRollbackInfo packageRollbackInfo, in restoreAppData() 121 PackageRollbackInfo packageRollbackInfo, int userId, int rollbackId, int flags) { in doSnapshot() 142 private boolean doRestoreOrWipe(PackageRollbackInfo packageRollbackInfo, int userId, in doRestoreOrWipe() 189 public void destroyAppDataSnapshot(int rollbackId, PackageRollbackInfo packageRollbackInfo, in destroyAppDataSnapshot() 227 for (PackageRollbackInfo info : rollback.info.getPackages()) { in commitPendingBackupAndRestoreForUser()
|
D | Rollback.java | 35 import android.content.rollback.PackageRollbackInfo; 414 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo( in enableForPackage() 442 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo( in enableForPackageInApex() 468 for (PackageRollbackInfo pkgRollbackInfo : info.getPackages()) { in snapshotUserData() 562 for (PackageRollbackInfo pkgRollbackInfo : info.getPackages()) { in commit() 713 for (PackageRollbackInfo pkgRollbackInfo : info.getPackages()) { in restoreUserDataForPackageIfInProgress() 739 for (PackageRollbackInfo pkgInfo : info.getPackages()) { in delete() 791 for (PackageRollbackInfo packageRollbackInfo : info.getPackages()) { in includesPackage() 806 for (PackageRollbackInfo pkgRollbackInfo : info.getPackages()) { in includesPackageWithDifferentVersion() 823 for (PackageRollbackInfo pkgRollbackInfo : info.getPackages()) { in getPackageNames() [all …]
|
D | RollbackStore.java | 25 import android.content.rollback.PackageRollbackInfo; 26 import android.content.rollback.PackageRollbackInfo.RestoreInfo; 310 for (PackageRollbackInfo info : rollback.info.getPackages()) { in deletePackageCodePaths() 425 private static JSONObject toJson(PackageRollbackInfo info) throws JSONException { in toJson() 447 private static PackageRollbackInfo packageRollbackInfoFromJson(JSONObject json) in packageRollbackInfoFromJson() 469 return new PackageRollbackInfo(versionRolledBackFrom, versionRolledBackTo, in packageRollbackInfoFromJson() 492 private static JSONArray toJson(List<PackageRollbackInfo> infos) throws JSONException { in toJson() 494 for (PackageRollbackInfo info : infos) { in toJson() 500 private static List<PackageRollbackInfo> packageRollbackInfosFromJson(JSONArray json) in packageRollbackInfosFromJson() 502 List<PackageRollbackInfo> infos = new ArrayList<>(); in packageRollbackInfosFromJson()
|
D | RollbackPackageHealthObserver.java | 28 import android.content.rollback.PackageRollbackInfo; 283 for (PackageRollbackInfo info : rollback.getPackages()) { in isRebootlessApex() 322 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in getAvailableRollback() 356 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in getRollbackForPackage()
|
D | WatchdogRollbackLogger.java | 38 import android.content.rollback.PackageRollbackInfo; 141 for (PackageRollbackInfo packageRollback : rollback.getPackages()) { in logRollbackStatusOnBoot()
|
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/ |
D | MainActivity.java | 27 import android.content.rollback.PackageRollbackInfo; 142 PackageRollbackInfo pkgInfo = rollbackInfo.getPackages().get(i); in getView()
|
/frameworks/base/tests/PackageWatchdog/src/com/android/server/ |
D | CrashRecoveryTest.java | 41 import android.content.rollback.PackageRollbackInfo; 387 PackageRollbackInfo packageRollbackInfo = new PackageRollbackInfo(appFrom, appTo, null, in getRollbackInfo()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerShellCommand.java | 80 import android.content.rollback.PackageRollbackInfo; 639 for (PackageRollbackInfo info : r.getPackages()) { in runRollbackApp()
|
/frameworks/base/boot/ |
D | preloaded-classes | 2020 android.content.rollback.PackageRollbackInfo$1 2021 android.content.rollback.PackageRollbackInfo
|
D | boot-image-profile.txt | 24400 Landroid/content/rollback/PackageRollbackInfo$1; 24401 Landroid/content/rollback/PackageRollbackInfo;
|
/frameworks/base/config/ |
D | preloaded-classes | 2024 android.content.rollback.PackageRollbackInfo$1 2025 android.content.rollback.PackageRollbackInfo
|
D | boot-image-profile.txt | 34534 Landroid/content/rollback/PackageRollbackInfo$1; 34535 Landroid/content/rollback/PackageRollbackInfo;
|
/frameworks/base/core/api/ |
D | system-current.txt | 4585 public final class PackageRollbackInfo implements android.os.Parcelable { 4591 …c static final android.os.Parcelable.Creator<android.content.rollback.PackageRollbackInfo> CREATOR; 4598 … method @NonNull public java.util.List<android.content.rollback.PackageRollbackInfo> getPackages();
|