Package org.robolectric.shadows
Class PackageRollbackInfoBuilder
java.lang.Object
org.robolectric.shadows.PackageRollbackInfoBuilder
public final class PackageRollbackInfoBuilder extends Object
Builder for 
PackageRollbackInfo as PackageRollbackInfo has hidden constructors, this
 builder class has been added as a way to make custom PackageRollbackInfo objects when needed.- 
Method SummaryModifier and Type Method Description PackageRollbackInfoBuilderaddInstalledUser(int installedUser)Adds installed user.PackageRollbackInfoBuilderaddPendingBackup(int pendingBackup)Adds pending backup.PackageRollbackInfoBuilderaddPendingRestore(int userId, int appId, String seInfo)Adds pending restores.PackageRollbackInfoBuilderaddSnapshottedUser(int snapshottedUser)Adds snapshotted user.android.content.rollback.PackageRollbackInfobuild()Returns aPackageRollbackInfowith the data that was given.static PackageRollbackInfoBuildernewBuilder()Start building a new PackageRollbackInfoPackageRollbackInfoBuildersetCeSnapshotInodes(SparseLongArray ceSnapshotInodes)Sets ce snapshot inodes.PackageRollbackInfoBuildersetIsApex(boolean isApex)Sets is apex.PackageRollbackInfoBuildersetIsApkInApex(boolean isApkInApex)Sets is apk in apex.PackageRollbackInfoBuildersetPackageRolledBackFrom(VersionedPackage packageRolledBackFrom)Sets the version packaged rolled back from.PackageRollbackInfoBuildersetPackageRolledBackTo(VersionedPackage packageRolledBackTo)Sets the version packaged rolled back to.
- 
Method Details- 
newBuilderStart building a new PackageRollbackInfo- Returns:
- a new instance of PackageRollbackInfoBuilder.
 
- 
setPackageRolledBackFromSets the version packaged rolled back from.
- 
setPackageRolledBackToSets the version packaged rolled back to.
- 
addPendingBackupAdds pending backup. We choose this API because IntArray is not publicly available.
- 
addPendingRestoreAdds pending restores. We choose this API because RestoreInfo is not publicly available.
- 
setIsApexSets is apex.
- 
setIsApkInApexSets is apk in apex.
- 
addInstalledUserAdds installed user. We choose this API because IntArray is not publicly available.
- 
addSnapshottedUserAdds snapshotted user. We choose this API because IntArray is not publicly available.
- 
setCeSnapshotInodesSets ce snapshot inodes.
- 
buildpublic android.content.rollback.PackageRollbackInfo build()Returns aPackageRollbackInfowith the data that was given.
 
-