1{
2  "methods": {
3    "addAutomaticZenRule(android.app.AutomaticZenRule)": {
4      "isImplementation": true,
5      "modifiers": [
6        "protected"
7      ],
8      "params": [
9        "automaticZenRule"
10      ],
11      "returnType": "java.lang.String",
12      "exceptions": [],
13      "minSdk": 24,
14      "name": "addAutomaticZenRule(android.app.AutomaticZenRule)"
15    },
16    "areNotificationsEnabled()": {
17      "isImplementation": true,
18      "modifiers": [
19        "protected"
20      ],
21      "params": [],
22      "returnType": "boolean",
23      "exceptions": [],
24      "minSdk": 24,
25      "name": "areNotificationsEnabled()"
26    },
27    "cancel(int)": {
28      "isImplementation": true,
29      "modifiers": [
30        "protected"
31      ],
32      "params": [
33        "id"
34      ],
35      "returnType": "void",
36      "exceptions": [],
37      "name": "cancel(int)"
38    },
39    "cancel(java.lang.String,int)": {
40      "isImplementation": true,
41      "modifiers": [
42        "protected"
43      ],
44      "params": [
45        "tag",
46        "id"
47      ],
48      "returnType": "void",
49      "exceptions": [],
50      "name": "cancel(java.lang.String,int)"
51    },
52    "cancelAll()": {
53      "isImplementation": true,
54      "modifiers": [
55        "protected"
56      ],
57      "params": [],
58      "returnType": "void",
59      "exceptions": [],
60      "name": "cancelAll()"
61    },
62    "copyAutomaticZenRule(android.app.AutomaticZenRule)": {
63      "isImplementation": false,
64      "modifiers": [
65        "private"
66      ],
67      "params": [
68        "automaticZenRule"
69      ],
70      "returnType": "android.app.AutomaticZenRule",
71      "exceptions": [],
72      "name": "copyAutomaticZenRule(android.app.AutomaticZenRule)",
73      "documentation": "Returns a copy of {@code automaticZenRule}. "
74    },
75    "createNotificationChannel(java.lang.Object)": {
76      "isImplementation": true,
77      "modifiers": [
78        "protected"
79      ],
80      "params": [
81        "channel"
82      ],
83      "returnType": "void",
84      "exceptions": [],
85      "minSdk": 26,
86      "name": "createNotificationChannel(java.lang.Object)"
87    },
88    "createNotificationChannelGroup(java.lang.Object)": {
89      "isImplementation": true,
90      "modifiers": [
91        "protected"
92      ],
93      "params": [
94        "group"
95      ],
96      "returnType": "void",
97      "exceptions": [],
98      "minSdk": 26,
99      "name": "createNotificationChannelGroup(java.lang.Object)"
100    },
101    "createNotificationChannels(java.util.List\u003cjava.lang.Object\u003e)": {
102      "isImplementation": true,
103      "modifiers": [
104        "protected"
105      ],
106      "params": [
107        "channelList"
108      ],
109      "returnType": "void",
110      "exceptions": [],
111      "minSdk": 26,
112      "name": "createNotificationChannels(java.util.List\u003cjava.lang.Object\u003e)"
113    },
114    "deleteNotificationChannel(java.lang.String)": {
115      "isImplementation": true,
116      "modifiers": [
117        "protected"
118      ],
119      "params": [
120        "channelId"
121      ],
122      "returnType": "void",
123      "exceptions": [],
124      "minSdk": 26,
125      "name": "deleteNotificationChannel(java.lang.String)"
126    },
127    "deleteNotificationChannelGroup(java.lang.String)": {
128      "isImplementation": true,
129      "modifiers": [
130        "protected"
131      ],
132      "params": [
133        "channelGroupId"
134      ],
135      "returnType": "void",
136      "exceptions": [],
137      "minSdk": 26,
138      "name": "deleteNotificationChannelGroup(java.lang.String)",
139      "documentation": "Delete a notification channel group and all notification channels associated with the group.\nThis method will not notify any NotificationListenerService of resulting changes to\nnotification channel groups nor to notification channels.\n"
140    },
141    "enforcePolicyAccess()": {
142      "isImplementation": false,
143      "modifiers": [
144        "private"
145      ],
146      "params": [],
147      "returnType": "void",
148      "exceptions": [],
149      "name": "enforcePolicyAccess()",
150      "documentation": "Enforces that the caller has notification policy access.\n\n@see NotificationManager#isNotificationPolicyAccessGranted()\n@throws SecurityException if the caller doesn\u0027t have notification policy access\n"
151    },
152    "getActiveNotifications()": {
153      "isImplementation": true,
154      "modifiers": [
155        "public"
156      ],
157      "params": [],
158      "returnType": "android.service.notification.StatusBarNotification[]",
159      "exceptions": [],
160      "minSdk": 23,
161      "name": "getActiveNotifications()"
162    },
163    "getAllNotifications()": {
164      "isImplementation": false,
165      "modifiers": [
166        "public"
167      ],
168      "params": [],
169      "returnType": "java.util.List\u003candroid.app.Notification\u003e",
170      "exceptions": [],
171      "name": "getAllNotifications()"
172    },
173    "getAutomaticZenRule(java.lang.String)": {
174      "isImplementation": true,
175      "modifiers": [
176        "protected"
177      ],
178      "params": [
179        "id"
180      ],
181      "returnType": "android.app.AutomaticZenRule",
182      "exceptions": [],
183      "minSdk": 24,
184      "name": "getAutomaticZenRule(java.lang.String)"
185    },
186    "getAutomaticZenRules()": {
187      "isImplementation": true,
188      "modifiers": [
189        "protected"
190      ],
191      "params": [],
192      "returnType": "java.util.Map\u003cjava.lang.String,android.app.AutomaticZenRule\u003e",
193      "exceptions": [],
194      "minSdk": 24,
195      "name": "getAutomaticZenRules()"
196    },
197    "getCurrentInterruptionFilter()": {
198      "isImplementation": true,
199      "modifiers": [
200        "protected",
201        "final"
202      ],
203      "params": [],
204      "returnType": "int",
205      "exceptions": [],
206      "minSdk": 23,
207      "name": "getCurrentInterruptionFilter()",
208      "documentation": "@return {@link NotificationManager#INTERRUPTION_FILTER_ALL} by default, or the value specified\n        via {@link #setInterruptionFilter(int)}\n"
209    },
210    "getNotification(int)": {
211      "isImplementation": false,
212      "modifiers": [
213        "public"
214      ],
215      "params": [
216        "id"
217      ],
218      "returnType": "android.app.Notification",
219      "exceptions": [],
220      "name": "getNotification(int)"
221    },
222    "getNotification(java.lang.String,int)": {
223      "isImplementation": false,
224      "modifiers": [
225        "public"
226      ],
227      "params": [
228        "tag",
229        "id"
230      ],
231      "returnType": "android.app.Notification",
232      "exceptions": [],
233      "name": "getNotification(java.lang.String,int)"
234    },
235    "getNotificationChannel(java.lang.String)": {
236      "isImplementation": true,
237      "modifiers": [
238        "protected"
239      ],
240      "params": [
241        "channelId"
242      ],
243      "returnType": "java.lang.Object",
244      "exceptions": [],
245      "minSdk": 26,
246      "name": "getNotificationChannel(java.lang.String)"
247    },
248    "getNotificationChannelGroup(java.lang.String)": {
249      "isImplementation": false,
250      "modifiers": [
251        "public"
252      ],
253      "params": [
254        "id"
255      ],
256      "returnType": "java.lang.Object",
257      "exceptions": [],
258      "name": "getNotificationChannelGroup(java.lang.String)"
259    },
260    "getNotificationChannelGroups()": {
261      "isImplementation": true,
262      "modifiers": [
263        "protected"
264      ],
265      "params": [],
266      "returnType": "java.util.List\u003cjava.lang.Object\u003e",
267      "exceptions": [],
268      "minSdk": 26,
269      "name": "getNotificationChannelGroups()"
270    },
271    "getNotificationChannels()": {
272      "isImplementation": true,
273      "modifiers": [
274        "public"
275      ],
276      "params": [],
277      "returnType": "java.util.List\u003cjava.lang.Object\u003e",
278      "exceptions": [],
279      "minSdk": 26,
280      "name": "getNotificationChannels()"
281    },
282    "getNotificationPolicy()": {
283      "isImplementation": true,
284      "modifiers": [
285        "protected",
286        "final"
287      ],
288      "params": [],
289      "returnType": "android.app.NotificationManager.Policy",
290      "exceptions": [],
291      "minSdk": 23,
292      "name": "getNotificationPolicy()",
293      "documentation": "@return the value specified via {@link #setNotificationPolicy(Policy)}\n"
294    },
295    "isChannelDeleted(java.lang.String)": {
296      "isImplementation": false,
297      "modifiers": [
298        "public"
299      ],
300      "params": [
301        "channelId"
302      ],
303      "returnType": "boolean",
304      "exceptions": [],
305      "name": "isChannelDeleted(java.lang.String)",
306      "documentation": "Checks whether a channel is considered a \"deleted\" channel by Android. This is a channel that\nwas created but later deleted. If a channel is created that was deleted before, it recreates\nthe channel with the old settings.\n"
307    },
308    "isNotificationPolicyAccessGranted()": {
309      "isImplementation": true,
310      "modifiers": [
311        "protected",
312        "final"
313      ],
314      "params": [],
315      "returnType": "boolean",
316      "exceptions": [],
317      "minSdk": 23,
318      "name": "isNotificationPolicyAccessGranted()",
319      "documentation": "@return the value specified via {@link #setNotificationPolicyAccessGranted(boolean)}\n"
320    },
321    "notify(int,android.app.Notification)": {
322      "isImplementation": true,
323      "modifiers": [
324        "protected"
325      ],
326      "params": [
327        "id",
328        "notification"
329      ],
330      "returnType": "void",
331      "exceptions": [],
332      "name": "notify(int,android.app.Notification)"
333    },
334    "notify(java.lang.String,int,android.app.Notification)": {
335      "isImplementation": true,
336      "modifiers": [
337        "protected"
338      ],
339      "params": [
340        "tag",
341        "id",
342        "notification"
343      ],
344      "returnType": "void",
345      "exceptions": [],
346      "name": "notify(java.lang.String,int,android.app.Notification)"
347    },
348    "removeAutomaticZenRule(java.lang.String)": {
349      "isImplementation": true,
350      "modifiers": [
351        "protected"
352      ],
353      "params": [
354        "id"
355      ],
356      "returnType": "boolean",
357      "exceptions": [],
358      "minSdk": 24,
359      "name": "removeAutomaticZenRule(java.lang.String)"
360    },
361    "setInterruptionFilter(int)": {
362      "isImplementation": true,
363      "modifiers": [
364        "protected",
365        "final"
366      ],
367      "params": [
368        "interruptionFilter"
369      ],
370      "returnType": "void",
371      "exceptions": [],
372      "minSdk": 23,
373      "name": "setInterruptionFilter(int)",
374      "documentation": "Currently does not support checking for granted policy access.\n\n@see NotificationManager#getCurrentInterruptionFilter()\n"
375    },
376    "setNotificationPolicy(android.app.NotificationManager.Policy)": {
377      "isImplementation": true,
378      "modifiers": [
379        "protected",
380        "final"
381      ],
382      "params": [
383        "policy"
384      ],
385      "returnType": "void",
386      "exceptions": [],
387      "minSdk": 23,
388      "name": "setNotificationPolicy(android.app.NotificationManager.Policy)",
389      "documentation": "Currently does not support checking for granted policy access.\n\n@see NotificationManager#getNotificationPolicy()\n"
390    },
391    "setNotificationPolicyAccessGranted(boolean)": {
392      "isImplementation": false,
393      "modifiers": [
394        "public"
395      ],
396      "params": [
397        "granted"
398      ],
399      "returnType": "void",
400      "exceptions": [],
401      "name": "setNotificationPolicyAccessGranted(boolean)",
402      "documentation": "Sets the value returned by {@link NotificationManager#isNotificationPolicyAccessGranted()}. If\n{@code granted} is false, this also deletes all {@link AutomaticZenRule}s.\n\n@see NotificationManager#isNotificationPolicyAccessGranted()\n"
403    },
404    "setNotificationsEnabled(boolean)": {
405      "isImplementation": false,
406      "modifiers": [
407        "public"
408      ],
409      "params": [
410        "areNotificationsEnabled"
411      ],
412      "returnType": "void",
413      "exceptions": [],
414      "name": "setNotificationsEnabled(boolean)"
415    },
416    "size()": {
417      "isImplementation": false,
418      "modifiers": [
419        "public"
420      ],
421      "params": [],
422      "returnType": "int",
423      "exceptions": [],
424      "name": "size()"
425    },
426    "updateAutomaticZenRule(java.lang.String,android.app.AutomaticZenRule)": {
427      "isImplementation": true,
428      "modifiers": [
429        "protected"
430      ],
431      "params": [
432        "id",
433        "automaticZenRule"
434      ],
435      "returnType": "boolean",
436      "exceptions": [],
437      "minSdk": 24,
438      "name": "updateAutomaticZenRule(java.lang.String,android.app.AutomaticZenRule)"
439    }
440  },
441  "imports": [
442    "android.app.NotificationManager.INTERRUPTION_FILTER_ALL",
443    "android.os.Build.VERSION_CODES.M",
444    "android.os.Build.VERSION_CODES.N",
445    "android.app.AutomaticZenRule",
446    "android.app.Notification",
447    "android.app.NotificationManager",
448    "android.app.NotificationManager.Policy",
449    "android.os.Build",
450    "android.os.Parcel",
451    "android.service.notification.StatusBarNotification",
452    "com.google.common.base.Preconditions",
453    "com.google.common.collect.ImmutableList",
454    "com.google.common.collect.ImmutableMap",
455    "java.util.ArrayList",
456    "java.util.HashMap",
457    "java.util.List",
458    "java.util.Map",
459    "java.util.UUID",
460    "org.robolectric.RuntimeEnvironment",
461    "org.robolectric.annotation.Implementation",
462    "org.robolectric.annotation.Implements",
463    "org.robolectric.util.ReflectionHelpers",
464    "org.robolectric.shadows.ShadowNotificationManager.Key"
465  ],
466  "name": "org.robolectric.shadows.ShadowNotificationManager"
467}