1{
2  "methods": {
3    "__constructor__(android.content.Context)": {
4      "isImplementation": true,
5      "modifiers": [
6        "protected"
7      ],
8      "params": [
9        "context"
10      ],
11      "returnType": "void",
12      "exceptions": [],
13      "name": "__constructor__(android.content.Context)"
14    },
15    "addAvailableRestoreSets(long,java.util.List\u003cjava.lang.String\u003e)": {
16      "isImplementation": false,
17      "modifiers": [
18        "public"
19      ],
20      "params": [
21        "restoreToken",
22        "packages"
23      ],
24      "returnType": "void",
25      "exceptions": [],
26      "name": "addAvailableRestoreSets(long,java.util.List\u003cjava.lang.String\u003e)",
27      "documentation": "Adds a restore set available to be restored. "
28    },
29    "beginRestoreSession()": {
30      "isImplementation": true,
31      "modifiers": [
32        "protected"
33      ],
34      "params": [],
35      "returnType": "android.app.backup.RestoreSession",
36      "exceptions": [],
37      "name": "beginRestoreSession()"
38    },
39    "enforceBackupPermission(java.lang.String)": {
40      "isImplementation": false,
41      "modifiers": [
42        "private"
43      ],
44      "params": [
45        "message"
46      ],
47      "returnType": "void",
48      "exceptions": [],
49      "name": "enforceBackupPermission(java.lang.String)"
50    },
51    "getPackageRestoreToken(java.lang.String)": {
52      "isImplementation": false,
53      "modifiers": [
54        "public"
55      ],
56      "params": [
57        "packageName"
58      ],
59      "returnType": "long",
60      "exceptions": [],
61      "name": "getPackageRestoreToken(java.lang.String)",
62      "documentation": "Returns the restore token for the given package, or {@code 0} if the package was not restored.\n"
63    },
64    "isBackupEnabled()": {
65      "isImplementation": true,
66      "modifiers": [
67        "protected"
68      ],
69      "params": [],
70      "returnType": "boolean",
71      "exceptions": [],
72      "minSdk": 21,
73      "name": "isBackupEnabled()"
74    },
75    "reset()": {
76      "isImplementation": false,
77      "modifiers": [
78        "public",
79        "static"
80      ],
81      "params": [],
82      "returnType": "void",
83      "exceptions": [],
84      "name": "reset()"
85    },
86    "setBackupEnabled(boolean)": {
87      "isImplementation": true,
88      "modifiers": [
89        "protected"
90      ],
91      "params": [
92        "isEnabled"
93      ],
94      "returnType": "void",
95      "exceptions": [],
96      "minSdk": 21,
97      "name": "setBackupEnabled(boolean)"
98    }
99  },
100  "imports": [
101    "android.os.Build.VERSION_CODES.LOLLIPOP",
102    "android.app.backup.BackupManager",
103    "android.app.backup.IBackupManagerMonitor",
104    "android.app.backup.IRestoreObserver",
105    "android.app.backup.IRestoreSession",
106    "android.app.backup.RestoreSession",
107    "android.app.backup.RestoreSet",
108    "android.content.Context",
109    "android.os.Handler",
110    "android.os.IBinder",
111    "android.os.Looper",
112    "android.os.RemoteException",
113    "java.util.ArrayList",
114    "java.util.Arrays",
115    "java.util.HashMap",
116    "java.util.HashSet",
117    "java.util.List",
118    "java.util.Map",
119    "java.util.Set",
120    "org.robolectric.RuntimeEnvironment",
121    "org.robolectric.annotation.HiddenApi",
122    "org.robolectric.annotation.Implementation",
123    "org.robolectric.annotation.Implements",
124    "org.robolectric.annotation.RealObject",
125    "org.robolectric.annotation.Resetter",
126    "org.robolectric.shadow.api.Shadow",
127    "org.robolectric.util.ReflectionHelpers",
128    "org.robolectric.util.ReflectionHelpers.ClassParameter",
129    "org.robolectric.shadows.ShadowBackupManager.FakeRestoreSession",
130    "org.robolectric.shadows.ShadowBackupManager.BackupManagerServiceState",
131    "org.robolectric.shadows.ShadowBackupManager.RemoteRunnable"
132  ],
133  "name": "org.robolectric.shadows.ShadowBackupManager",
134  "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"
135}