{ "methods": { "__constructor__(android.content.Context)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "context" ], "returnType": "void", "exceptions": [], "name": "__constructor__(android.content.Context)" }, "addAvailableRestoreSets(long,java.util.List\u003cjava.lang.String\u003e)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "restoreToken", "packages" ], "returnType": "void", "exceptions": [], "name": "addAvailableRestoreSets(long,java.util.List\u003cjava.lang.String\u003e)", "documentation": "Adds a restore set available to be restored. " }, "beginRestoreSession()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "android.app.backup.RestoreSession", "exceptions": [], "name": "beginRestoreSession()" }, "enforceBackupPermission(java.lang.String)": { "isImplementation": false, "modifiers": [ "private" ], "params": [ "message" ], "returnType": "void", "exceptions": [], "name": "enforceBackupPermission(java.lang.String)" }, "getPackageRestoreToken(java.lang.String)": { "isImplementation": false, "modifiers": [ "public" ], "params": [ "packageName" ], "returnType": "long", "exceptions": [], "name": "getPackageRestoreToken(java.lang.String)", "documentation": "Returns the restore token for the given package, or {@code 0} if the package was not restored.\n" }, "isBackupEnabled()": { "isImplementation": true, "modifiers": [ "protected" ], "params": [], "returnType": "boolean", "exceptions": [], "minSdk": 21, "name": "isBackupEnabled()" }, "reset()": { "isImplementation": false, "modifiers": [ "public", "static" ], "params": [], "returnType": "void", "exceptions": [], "name": "reset()" }, "setBackupEnabled(boolean)": { "isImplementation": true, "modifiers": [ "protected" ], "params": [ "isEnabled" ], "returnType": "void", "exceptions": [], "minSdk": 21, "name": "setBackupEnabled(boolean)" } }, "imports": [ "android.os.Build.VERSION_CODES.LOLLIPOP", "android.app.backup.BackupManager", "android.app.backup.IBackupManagerMonitor", "android.app.backup.IRestoreObserver", "android.app.backup.IRestoreSession", "android.app.backup.RestoreSession", "android.app.backup.RestoreSet", "android.content.Context", "android.os.Handler", "android.os.IBinder", "android.os.Looper", "android.os.RemoteException", "java.util.ArrayList", "java.util.Arrays", "java.util.HashMap", "java.util.HashSet", "java.util.List", "java.util.Map", "java.util.Set", "org.robolectric.RuntimeEnvironment", "org.robolectric.annotation.HiddenApi", "org.robolectric.annotation.Implementation", "org.robolectric.annotation.Implements", "org.robolectric.annotation.RealObject", "org.robolectric.annotation.Resetter", "org.robolectric.shadow.api.Shadow", "org.robolectric.util.ReflectionHelpers", "org.robolectric.util.ReflectionHelpers.ClassParameter", "org.robolectric.shadows.ShadowBackupManager.FakeRestoreSession", "org.robolectric.shadows.ShadowBackupManager.BackupManagerServiceState", "org.robolectric.shadows.ShadowBackupManager.RemoteRunnable" ], "name": "org.robolectric.shadows.ShadowBackupManager", "documentation": "A stub implementation of {@link BackupManager} that instead of connecting to a real backup\ntransport and performing restores, stores which packages are restored from which backup set, and\ncan be verified using methods on the shadow like {@link #getPackageRestoreToken(String)}.\n" }