1<?xml version="1.0" encoding="UTF-8"?>
2<issues format="6" by="lint 8.4.0-alpha01" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha01">
3
4    <issue
5        id="NewApi"
6        message="Call requires API level 24 (current min is 20): `new java.util.concurrent.CompletableFuture`"
7        errorLine1="            new CompletableFuture&lt;&gt;();"
8        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~">
9        <location
10            file="cts/tests/app/shared/src/android/app/stubs/shared/AppAccessibilityService.java"
11            line="36"
12            column="13"/>
13    </issue>
14
15    <issue
16        id="NewApi"
17        message="Call requires API level 23 (current min is 20): `android.content.Context#getSystemService`"
18        errorLine1="        mWindowManager = getSystemService(WindowManager.class);"
19        errorLine2="                         ~~~~~~~~~~~~~~~~">
20        <location
21            file="cts/tests/app/shared/src/android/app/stubs/shared/AppAccessibilityService.java"
22            line="54"
23            column="26"/>
24    </issue>
25
26    <issue
27        id="NewApi"
28        message="Call requires API level 24 (current min is 20): `java.util.concurrent.CompletableFuture#obtrudeValue`"
29        errorLine1="        sServiceFuture.obtrudeValue(this);"
30        errorLine2="                       ~~~~~~~~~~~~">
31        <location
32            file="cts/tests/app/shared/src/android/app/stubs/shared/AppAccessibilityService.java"
33            line="71"
34            column="24"/>
35    </issue>
36
37    <issue
38        id="NewApi"
39        message="Call requires API level 24 (current min is 20): `new java.util.concurrent.CompletableFuture`"
40        errorLine1="        sServiceFuture = new CompletableFuture&lt;&gt;();"
41        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~">
42        <location
43            file="cts/tests/app/shared/src/android/app/stubs/shared/AppAccessibilityService.java"
44            line="86"
45            column="26"/>
46    </issue>
47
48    <issue
49        id="NewApi"
50        message="Call requires API level 23 (current min is 20): `android.content.Context#getSystemService`"
51        errorLine1="        mNotificationManager = getSystemService(NotificationManager.class);"
52        errorLine2="                               ~~~~~~~~~~~~~~~~">
53        <location
54            file="cts/tests/app/shared/src/android/app/stubs/shared/CloseSystemDialogsTestService.java"
55            line="64"
56            column="32"/>
57    </issue>
58
59    <issue
60        id="NewApi"
61        message="Call requires API level 26 (current min is 20): `new android.app.Notification.Builder`"
62        errorLine1="                new Notification.Builder(this, NOTIFICATION_CHANNEL_ID)"
63        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~">
64        <location
65            file="cts/tests/app/shared/src/android/app/stubs/shared/CloseSystemDialogsTestService.java"
66            line="174"
67            column="17"/>
68    </issue>
69
70    <issue
71        id="NewApi"
72        message="Call requires API level 26 (current min is 20): `new android.app.NotificationChannel`"
73        errorLine1="        NotificationChannel notificationChannel = new NotificationChannel(NOTIFICATION_CHANNEL_ID,"
74        errorLine2="                                                  ~~~~~~~~~~~~~~~~~~~~~~~">
75        <location
76            file="cts/tests/app/shared/src/android/app/stubs/shared/CloseSystemDialogsTestService.java"
77            line="178"
78            column="51"/>
79    </issue>
80
81    <issue
82        id="NewApi"
83        message="Call requires API level 26 (current min is 20): `android.app.NotificationManager#createNotificationChannel`"
84        errorLine1="        mNotificationManager.createNotificationChannel(notificationChannel);"
85        errorLine2="                             ~~~~~~~~~~~~~~~~~~~~~~~~~">
86        <location
87            file="cts/tests/app/shared/src/android/app/stubs/shared/CloseSystemDialogsTestService.java"
88            line="180"
89            column="30"/>
90    </issue>
91
92    <issue
93        id="NewApi"
94        message="Call requires API level 24 (current min is 20): `new java.util.concurrent.CompletableFuture`"
95        errorLine1="    private volatile CompletableFuture&lt;IBinder&gt; mFuture = new CompletableFuture&lt;&gt;();"
96        errorLine2="                                                          ~~~~~~~~~~~~~~~~~~~~~~~">
97        <location
98            file="cts/tests/app/shared/src/android/app/stubs/shared/FutureServiceConnection.java"
99            line="30"
100            column="59"/>
101    </issue>
102
103    <issue
104        id="NewApi"
105        message="Call requires API level 24 (current min is 20): `java.util.concurrent.CompletableFuture#get`"
106        errorLine1="        return mFuture.get(timeoutMs, TimeUnit.MILLISECONDS);"
107        errorLine2="                       ~~~">
108        <location
109            file="cts/tests/app/shared/src/android/app/stubs/shared/FutureServiceConnection.java"
110            line="33"
111            column="24"/>
112    </issue>
113
114    <issue
115        id="NewApi"
116        message="Call requires API level 24 (current min is 20): `java.util.concurrent.CompletableFuture#complete`"
117        errorLine1="        mFuture.complete(service);"
118        errorLine2="                ~~~~~~~~">
119        <location
120            file="cts/tests/app/shared/src/android/app/stubs/shared/FutureServiceConnection.java"
121            line="38"
122            column="17"/>
123    </issue>
124
125    <issue
126        id="NewApi"
127        message="Call requires API level 24 (current min is 20): `new java.util.concurrent.CompletableFuture`"
128        errorLine1="        mFuture = new CompletableFuture&lt;&gt;();"
129        errorLine2="                  ~~~~~~~~~~~~~~~~~~~~~~~">
130        <location
131            file="cts/tests/app/shared/src/android/app/stubs/shared/FutureServiceConnection.java"
132            line="44"
133            column="19"/>
134    </issue>
135
136    <issue
137        id="NewApi"
138        message="Call requires API level 23 (current min is 20): `android.content.Context#getSystemService`"
139        errorLine1="        mNotificationManager = mContext.getSystemService(NotificationManager.class);"
140        errorLine2="                                        ~~~~~~~~~~~~~~~~">
141        <location
142            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
143            line="86"
144            column="41"/>
145    </issue>
146
147    <issue
148        id="NewApi"
149        message="Call requires API level 23 (current min is 20): `android.app.NotificationManager#getActiveNotifications`"
150        errorLine1="                        Arrays.asList(mNotificationManager.getActiveNotifications()));"
151        errorLine2="                                                           ~~~~~~~~~~~~~~~~~~~~~~">
152        <location
153            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
154            line="173"
155            column="60"/>
156    </issue>
157
158    <issue
159        id="NewApi"
160        message="Call requires API level 26 (current min is 20): `android.service.notification.NotificationListenerService#getSnoozedNotifications`"
161        errorLine1="                        Arrays.asList(mNotificationListener.getSnoozedNotifications()));"
162        errorLine2="                                                            ~~~~~~~~~~~~~~~~~~~~~~~">
163        <location
164            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
165            line="180"
166            column="61"/>
167    </issue>
168
169    <issue
170        id="NewApi"
171        message="Call requires API level 23 (current min is 20): `android.content.Context#getSystemService`"
172        errorLine1="        final NotificationManager nm = mContext.getSystemService(NotificationManager.class);"
173        errorLine2="                                                ~~~~~~~~~~~~~~~~">
174        <location
175            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
176            line="206"
177            column="49"/>
178    </issue>
179
180    <issue
181        id="NewApi"
182        message="Call requires API level 27 (current min is 20): `android.app.NotificationManager#isNotificationListenerAccessGranted`"
183        errorLine1="                false, nm.isNotificationListenerAccessGranted(component));"
184        errorLine2="                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
185        <location
186            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
187            line="208"
188            column="27"/>
189    </issue>
190
191    <issue
192        id="NewApi"
193        message="Call requires API level 29 (current min is 20): `android.app.UiAutomation#adoptShellPermissionIdentity`"
194        errorLine1='                .adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE",'
195        errorLine2="                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
196        <location
197            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
198            line="216"
199            column="18"/>
200    </issue>
201
202    <issue
203        id="NewApi"
204        message="Call requires API level 29 (current min is 20): `android.app.UiAutomation#dropShellPermissionIdentity`"
205        errorLine1="                .getUiAutomation().dropShellPermissionIdentity();"
206        errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
207        <location
208            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
209            line="227"
210            column="36"/>
211    </issue>
212
213    <issue
214        id="NewApi"
215        message="Call requires API level 29 (current min is 20): `android.app.UiAutomation#adoptShellPermissionIdentity`"
216        errorLine1='                .adoptShellPermissionIdentity("android.permission.STATUS_BAR_SERVICE",'
217        errorLine2="                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
218        <location
219            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
220            line="236"
221            column="18"/>
222    </issue>
223
224    <issue
225        id="NewApi"
226        message="Call requires API level 29 (current min is 20): `android.app.UiAutomation#dropShellPermissionIdentity`"
227        errorLine1="                .getUiAutomation().dropShellPermissionIdentity();"
228        errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
229        <location
230            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
231            line="245"
232            column="36"/>
233    </issue>
234
235    <issue
236        id="NewApi"
237        message="Call requires API level 21 (current min is 20): `android.app.UiAutomation#executeShellCommand`"
238        errorLine1="        try (ParcelFileDescriptor fd = uiAutomation.executeShellCommand(command)) {"
239        errorLine2="                                                    ~~~~~~~~~~~~~~~~~~~">
240        <location
241            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHelper.java"
242            line="253"
243            column="53"/>
244    </issue>
245
246    <issue
247        id="NewApi"
248        message="Call requires API level 28 (current min is 20): `android.app.Activity#requireViewById`"
249        errorLine1="        get() = requireViewById&lt;FrameLayout&gt;(R.id.content).getChildAt(0)"
250        errorLine2="                ~~~~~~~~~~~~~~~">
251        <location
252            file="cts/tests/app/shared/src/android/app/stubs/shared/NotificationHostActivity.kt"
253            line="39"
254            column="17"/>
255    </issue>
256
257    <issue
258        id="NewApi"
259        message="Call requires API level 23 (current min is 20): `android.content.Context#getSystemService`"
260        errorLine1="        mNotificationManager = getSystemService(NotificationManager.class);"
261        errorLine2="                               ~~~~~~~~~~~~~~~~">
262        <location
263            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationAssistant.java"
264            line="73"
265            column="32"/>
266    </issue>
267
268    <issue
269        id="NewApi"
270        message="Call requires API level 21 (current min is 20): `new android.service.notification.NotificationListenerService.Ranking`"
271        errorLine1="        Ranking ranking = new Ranking();"
272        errorLine2="                          ~~~~~~~~~~~">
273        <location
274            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationAssistant.java"
275            line="130"
276            column="27"/>
277    </issue>
278
279    <issue
280        id="NewApi"
281        message="Call requires API level 21 (current min is 20): `android.service.notification.NotificationListenerService.RankingMap#getRanking`"
282        errorLine1="        rankingMap.getRanking(sbn.getKey(), ranking);"
283        errorLine2="                   ~~~~~~~~~~">
284        <location
285            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationAssistant.java"
286            line="131"
287            column="20"/>
288    </issue>
289
290    <issue
291        id="NewApi"
292        message="Call requires API level 21 (current min is 20): `android.service.notification.NotificationListenerService.Ranking#getRank`"
293        errorLine1="        mNotificationRank = ranking.getRank();"
294        errorLine2="                                    ~~~~~~~">
295        <location
296            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationAssistant.java"
297            line="132"
298            column="37"/>
299    </issue>
300
301    <issue
302        id="NewApi"
303        message="Call requires API level 21 (current min is 20): `android.service.notification.StatusBarNotification#getUser`"
304        errorLine1="                sbn.getUser());"
305        errorLine2="                    ~~~~~~~">
306        <location
307            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationAssistant.java"
308            line="144"
309            column="21"/>
310    </issue>
311
312    <issue
313        id="NewApi"
314        message="Call requires API level 21 (current min is 20): `android.service.notification.NotificationListenerService.RankingMap#getOrderedKeys`"
315        errorLine1="        for (String key : rankingMap.getOrderedKeys()) {"
316        errorLine2="                                     ~~~~~~~~~~~~~~">
317        <location
318            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationListener.java"
319            line="188"
320            column="38"/>
321    </issue>
322
323    <issue
324        id="NewApi"
325        message="Call requires API level 21 (current min is 20): `new android.service.notification.NotificationListenerService.Ranking`"
326        errorLine1="            Ranking rank = new Ranking();"
327        errorLine2="                           ~~~~~~~~~~~">
328        <location
329            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationListener.java"
330            line="189"
331            column="28"/>
332    </issue>
333
334    <issue
335        id="NewApi"
336        message="Call requires API level 21 (current min is 20): `android.service.notification.NotificationListenerService.RankingMap#getRanking`"
337        errorLine1="            if (rankingMap.getRanking(key, rank)) {"
338        errorLine2="                           ~~~~~~~~~~">
339        <location
340            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationListener.java"
341            line="190"
342            column="28"/>
343    </issue>
344
345    <issue
346        id="NewApi"
347        message="Call requires API level 21 (current min is 20): `android.service.notification.NotificationListenerService.Ranking#matchesInterruptionFilter`"
348        errorLine1="                mIntercepted.put(key, !rank.matchesInterruptionFilter());"
349        errorLine2="                                            ~~~~~~~~~~~~~~~~~~~~~~~~~">
350        <location
351            file="cts/tests/app/shared/src/android/app/stubs/shared/TestNotificationListener.java"
352            line="193"
353            column="45"/>
354    </issue>
355
356</issues>