1{
2  "methods": {
3    "getLatestWakeLock()": {
4      "isImplementation": false,
5      "modifiers": [
6        "public",
7        "static"
8      ],
9      "params": [],
10      "returnType": "android.os.PowerManager.WakeLock",
11      "exceptions": [],
12      "name": "getLatestWakeLock()",
13      "documentation": "Retrieves the most recent wakelock registered by the application\n\n@return Most recent wake lock.\n"
14    },
15    "getRebootReasons()": {
16      "isImplementation": false,
17      "modifiers": [
18        "public"
19      ],
20      "params": [],
21      "returnType": "com.google.common.collect.ImmutableList\u003cjava.lang.String\u003e",
22      "exceptions": [],
23      "name": "getRebootReasons()",
24      "documentation": "Returns the list of reasons for each reboot, in chronological order. "
25    },
26    "getTimesRebooted()": {
27      "isImplementation": false,
28      "modifiers": [
29        "public"
30      ],
31      "params": [],
32      "returnType": "int",
33      "exceptions": [],
34      "name": "getTimesRebooted()",
35      "documentation": "Returns the number of times {@link #reboot(String)} was called. "
36    },
37    "isDeviceIdleMode()": {
38      "isImplementation": true,
39      "modifiers": [
40        "protected"
41      ],
42      "params": [],
43      "returnType": "boolean",
44      "exceptions": [],
45      "minSdk": 23,
46      "name": "isDeviceIdleMode()",
47      "documentation": "@return `false` by default, or the value specified via {@link #setIsDeviceIdleMode(boolean)}\n"
48    },
49    "isIgnoringBatteryOptimizations(java.lang.String)": {
50      "isImplementation": true,
51      "modifiers": [
52        "protected"
53      ],
54      "params": [
55        "packageName"
56      ],
57      "returnType": "boolean",
58      "exceptions": [],
59      "minSdk": 23,
60      "name": "isIgnoringBatteryOptimizations(java.lang.String)"
61    },
62    "isInteractive()": {
63      "isImplementation": true,
64      "modifiers": [
65        "protected"
66      ],
67      "params": [],
68      "returnType": "boolean",
69      "exceptions": [],
70      "minSdk": 21,
71      "name": "isInteractive()"
72    },
73    "isPowerSaveMode()": {
74      "isImplementation": true,
75      "modifiers": [
76        "protected"
77      ],
78      "params": [],
79      "returnType": "boolean",
80      "exceptions": [],
81      "minSdk": 21,
82      "name": "isPowerSaveMode()"
83    },
84    "isScreenOn()": {
85      "isImplementation": true,
86      "modifiers": [
87        "protected"
88      ],
89      "params": [],
90      "returnType": "boolean",
91      "exceptions": [],
92      "name": "isScreenOn()"
93    },
94    "isWakeLockLevelSupported(int)": {
95      "isImplementation": true,
96      "modifiers": [
97        "protected"
98      ],
99      "params": [
100        "level"
101      ],
102      "returnType": "boolean",
103      "exceptions": [],
104      "minSdk": 21,
105      "name": "isWakeLockLevelSupported(int)"
106    },
107    "newWakeLock(int,java.lang.String)": {
108      "isImplementation": true,
109      "modifiers": [
110        "protected"
111      ],
112      "params": [
113        "flags",
114        "tag"
115      ],
116      "returnType": "android.os.PowerManager.WakeLock",
117      "exceptions": [],
118      "name": "newWakeLock(int,java.lang.String)"
119    },
120    "reboot(java.lang.String)": {
121      "isImplementation": true,
122      "modifiers": [
123        "protected"
124      ],
125      "params": [
126        "reason"
127      ],
128      "returnType": "void",
129      "exceptions": [],
130      "name": "reboot(java.lang.String)"
131    },
132    "reset()": {
133      "isImplementation": false,
134      "modifiers": [
135        "public",
136        "static"
137      ],
138      "params": [],
139      "returnType": "void",
140      "exceptions": [],
141      "name": "reset()",
142      "documentation": "Discards the most recent {@code PowerManager.WakeLock}s "
143    },
144    "setIgnoringBatteryOptimizations(java.lang.String,boolean)": {
145      "isImplementation": false,
146      "modifiers": [
147        "public"
148      ],
149      "params": [
150        "packageName",
151        "value"
152      ],
153      "returnType": "void",
154      "exceptions": [],
155      "name": "setIgnoringBatteryOptimizations(java.lang.String,boolean)"
156    },
157    "setIsDeviceIdleMode(boolean)": {
158      "isImplementation": false,
159      "modifiers": [
160        "public"
161      ],
162      "params": [
163        "isDeviceIdleMode"
164      ],
165      "returnType": "void",
166      "exceptions": [],
167      "name": "setIsDeviceIdleMode(boolean)",
168      "documentation": "Sets the value returned by {@link #isDeviceIdleMode()}. "
169    },
170    "setIsInteractive(boolean)": {
171      "isImplementation": false,
172      "modifiers": [
173        "public"
174      ],
175      "params": [
176        "interactive"
177      ],
178      "returnType": "void",
179      "exceptions": [],
180      "name": "setIsInteractive(boolean)"
181    },
182    "setIsPowerSaveMode(boolean)": {
183      "isImplementation": false,
184      "modifiers": [
185        "public"
186      ],
187      "params": [
188        "powerSaveMode"
189      ],
190      "returnType": "void",
191      "exceptions": [],
192      "name": "setIsPowerSaveMode(boolean)",
193      "documentation": "Alters the power-save mode without verifying that the package under test has the required\npermission.\n"
194    },
195    "setIsScreenOn(boolean)": {
196      "isImplementation": false,
197      "modifiers": [
198        "public"
199      ],
200      "params": [
201        "screenOn"
202      ],
203      "returnType": "void",
204      "exceptions": [],
205      "name": "setIsScreenOn(boolean)"
206    },
207    "setIsWakeLockLevelSupported(int,boolean)": {
208      "isImplementation": false,
209      "modifiers": [
210        "public"
211      ],
212      "params": [
213        "level",
214        "supported"
215      ],
216      "returnType": "void",
217      "exceptions": [],
218      "name": "setIsWakeLockLevelSupported(int,boolean)"
219    },
220    "setPowerSaveMode(boolean)": {
221      "isImplementation": true,
222      "modifiers": [
223        "protected"
224      ],
225      "params": [
226        "powerSaveMode"
227      ],
228      "returnType": "boolean",
229      "exceptions": [],
230      "minSdk": 20,
231      "name": "setPowerSaveMode(boolean)"
232    }
233  },
234  "imports": [
235    "android.os.Build.VERSION_CODES.KITKAT_WATCH",
236    "android.os.Build.VERSION_CODES.LOLLIPOP",
237    "android.os.Build.VERSION_CODES.M",
238    "org.robolectric.shadows.ShadowApplication.getInstance",
239    "android.Manifest.permission",
240    "android.content.Context",
241    "android.content.pm.PackageManager",
242    "android.os.PowerManager",
243    "android.os.WorkSource",
244    "com.google.common.collect.ImmutableList",
245    "java.util.ArrayList",
246    "java.util.HashMap",
247    "java.util.List",
248    "java.util.Map",
249    "org.robolectric.RuntimeEnvironment",
250    "org.robolectric.annotation.HiddenApi",
251    "org.robolectric.annotation.Implementation",
252    "org.robolectric.annotation.Implements",
253    "org.robolectric.annotation.Resetter",
254    "org.robolectric.shadow.api.Shadow",
255    "org.robolectric.shadows.ShadowPowerManager.ShadowWakeLock"
256  ],
257  "name": "org.robolectric.shadows.ShadowPowerManager"
258}