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 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
7        errorLine1="                    mUiAutomation.adoptShellPermissionIdentity(mPermissions);"
8        errorLine2="                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
9        <location
10            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AdoptShellPermissionsRule.java"
11            line="63"
12            column="35"/>
13    </issue>
14
15    <issue
16        id="NewApi"
17        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
18        errorLine1="                    mUiAutomation.adoptShellPermissionIdentity();"
19        errorLine2="                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
20        <location
21            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AdoptShellPermissionsRule.java"
22            line="65"
23            column="35"/>
24    </issue>
25
26    <issue
27        id="NewApi"
28        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
29        errorLine1="                    mUiAutomation.dropShellPermissionIdentity();"
30        errorLine2="                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
31        <location
32            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AdoptShellPermissionsRule.java"
33            line="70"
34            column="35"/>
35    </issue>
36
37    <issue
38        id="NewApi"
39        message="Call requires API level 23 (current min is 21): `new android.util.ArraySet`"
40        errorLine1="    private final ArraySet&lt;String&gt; mNotExpected = new ArraySet&lt;&gt;();"
41        errorLine2="                                                  ~~~~~~~~~~~~~~">
42        <location
43            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AmMonitor.java"
44            line="74"
45            column="51"/>
46    </issue>
47
48    <issue
49        id="NewApi"
50        message="Call requires API level 31 (current min is 21): `android.app.UiAutomation#executeShellCommandRw`"
51        errorLine1='                .executeShellCommandRw("am monitor");'
52        errorLine2="                 ~~~~~~~~~~~~~~~~~~~~~">
53        <location
54            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AmMonitor.java"
55            line="83"
56            column="18"/>
57    </issue>
58
59    <issue
60        id="NewApi"
61        message="Call requires API level 23 (current min is 21): `android.util.ArraySet#addAll`"
62        errorLine1="            mNotExpected.addAll(Arrays.asList(notExpected));"
63        errorLine2="                         ~~~~~~">
64        <location
65            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AmMonitor.java"
66            line="91"
67            column="26"/>
68    </issue>
69
70    <issue
71        id="NewApi"
72        message="Call requires API level 23 (current min is 21): `android.util.ArraySet#contains`"
73        errorLine1="                    if (mNotExpected.contains(line)) {"
74        errorLine2="                                     ~~~~~~~~">
75        <location
76            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AmMonitor.java"
77            line="168"
78            column="38"/>
79    </issue>
80
81    <issue
82        id="NewApi"
83        message="Call requires API level 31 (current min is 21): `android.app.UiAutomation#executeShellCommandRw`"
84        errorLine1='                    .executeShellCommandRw("am monitor -s -k -p " + mTargetProcess);'
85        errorLine2="                     ~~~~~~~~~~~~~~~~~~~~~">
86        <location
87            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AnrMonitor.java"
88            line="158"
89            column="22"/>
90    </issue>
91
92    <issue
93        id="NewApi"
94        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
95        errorLine1="        final AppOpsManager aom = InstrumentationRegistry.getTargetContext().getSystemService("
96        errorLine2="                                                                             ~~~~~~~~~~~~~~~~">
97        <location
98            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AppOpsUtils.java"
99            line="85"
100            column="78"/>
101    </issue>
102
103    <issue
104        id="NewApi"
105        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
106        errorLine1="            .getTargetContext().getSystemService(UsageStatsManager.class);"
107        errorLine2="                                ~~~~~~~~~~~~~~~~">
108        <location
109            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/AppStandbyUtils.java"
110            line="29"
111            column="33"/>
112    </issue>
113
114    <issue
115        id="NewApi"
116        message="Call requires API level 23 (current min is 21): `new android.util.ArraySet`"
117        errorLine1="            violations.get(packageName).put(message, new ArraySet&lt;&gt;());"
118        errorLine2="                                                     ~~~~~~~~~~~~~~">
119        <location
120            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
121            line="271"
122            column="54"/>
123    </issue>
124
125    <issue
126        id="NewApi"
127        message="Call requires API level 23 (current min is 21): `android.util.ArraySet#add`"
128        errorLine1="        violations.get(packageName).get(message).add(permission);"
129        errorLine2="                                                 ~~~">
130        <location
131            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
132            line="274"
133            column="50"/>
134    </issue>
135
136    <issue
137        id="NewApi"
138        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
139        errorLine1="            PermissionManager permissionManager = context.getSystemService(PermissionManager.class);"
140        errorLine2="                                                          ~~~~~~~~~~~~~~~~">
141        <location
142            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
143            line="422"
144            column="59"/>
145    </issue>
146
147    <issue
148        id="NewApi"
149        message="Call requires API level 23 (current min is 21): `new android.util.ArraySet`"
150        errorLine1="        Set&lt;String&gt; platformSignedPackages = new ArraySet&lt;&gt;();"
151        errorLine2="                                             ~~~~~~~~~~~~~~">
152        <location
153            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
154            line="469"
155            column="46"/>
156    </issue>
157
158    <issue
159        id="NewApi"
160        message="Cast from `ArraySet` to `Set` requires API level 23 (current min is 21)"
161        errorLine1="        Set&lt;String&gt; platformSignedPackages = new ArraySet&lt;&gt;();"
162        errorLine2="                                             ~~~~~~~~~~~~~~~~">
163        <location
164            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
165            line="469"
166            column="46"/>
167    </issue>
168
169    <issue
170        id="NewApi"
171        message="Call requires API level 28 (current min is 21): `android.content.pm.PermissionInfo#getProtection`"
172        errorLine1="                if ((permInfo.getProtection() &amp; PROTECTION_DANGEROUS) != 0) {"
173        errorLine2="                              ~~~~~~~~~~~~~">
174        <location
175            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
176            line="503"
177            column="31"/>
178    </issue>
179
180    <issue
181        id="NewApi"
182        message="The type of the for loop iterated value is android.util.ArraySet&lt;java.lang.String&gt;, which requires API level 23 (current min is 21)"
183        errorLine1="                for (String permission : violations.get(packageName).get(message)) {"
184        errorLine2="                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
185        <location
186            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
187            line="705"
188            column="42"/>
189    </issue>
190
191    <issue
192        id="NewApi"
193        message="The type of the for loop iterated value is android.util.ArraySet&lt;com.android.compatibility.common.util.BaseDefaultPermissionGrantPolicyTest.UidState.GrantReason&gt;, which requires API level 23 (current min is 21)"
194        errorLine1="                    for (GrantReason reason : permissionsToReasons.get(permission)) {"
195        errorLine2="                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
196        <location
197            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
198            line="787"
199            column="47"/>
200    </issue>
201
202    <issue
203        id="NewApi"
204        message="Call requires API level 23 (current min is 21): `new android.util.ArraySet`"
205        errorLine1="                mGrantReasons.get(packageName).put(permission, new ArraySet&lt;&gt;());"
206        errorLine2="                                                               ~~~~~~~~~~~~~~">
207        <location
208            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
209            line="847"
210            column="64"/>
211    </issue>
212
213    <issue
214        id="NewApi"
215        message="Call requires API level 23 (current min is 21): `android.util.ArraySet#add`"
216        errorLine1="            mGrantReasons.get(packageName).get(permission).add(new GrantReason(reason, override,"
217        errorLine2="                                                           ~~~">
218        <location
219            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BaseDefaultPermissionGrantPolicyTest.java"
220            line="850"
221            column="60"/>
222    </issue>
223
224    <issue
225        id="NewApi"
226        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
227        errorLine1="        return InstrumentationRegistry.getContext().getSystemService(BatteryManager.class);"
228        errorLine2="                                                    ~~~~~~~~~~~~~~~~">
229        <location
230            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BatteryUtils.java"
231            line="43"
232            column="53"/>
233    </issue>
234
235    <issue
236        id="NewApi"
237        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
238        errorLine1="        return InstrumentationRegistry.getContext().getSystemService(PowerManager.class);"
239        errorLine2="                                                    ~~~~~~~~~~~~~~~~">
240        <location
241            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BatteryUtils.java"
242            line="47"
243            column="53"/>
244    </issue>
245
246    <issue
247        id="NewApi"
248        message="Call requires API level 26 (current min is 21): `android.content.pm.PackageManager#isInstantApp`"
249        errorLine1="        if (InstrumentationRegistry.getContext().getPackageManager().isInstantApp()) {"
250        errorLine2="                                                                     ~~~~~~~~~~~~">
251        <location
252            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BatteryUtils.java"
253            line="87"
254            column="70"/>
255    </issue>
256
257    <issue
258        id="NewApi"
259        message="Field requires API level 24 (current min is 21): `android.provider.BlockedNumberContract.BlockedNumbers#CONTENT_URI`"
260        errorLine1="        Uri uri = mContentResolver.insert(CONTENT_URI, cv);"
261        errorLine2="                                          ~~~~~~~~~~~">
262        <location
263            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BlockedNumberService.java"
264            line="91"
265            column="43"/>
266    </issue>
267
268    <issue
269        id="NewApi"
270        message="Field requires API level 24 (current min is 21): `android.provider.BlockedNumberContract.BlockedNumbers#CONTENT_URI`"
271        errorLine1="                CONTENT_URI, true,"
272        errorLine2="                ~~~~~~~~~~~">
273        <location
274            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BlockedNumberService.java"
275            line="111"
276            column="17"/>
277    </issue>
278
279    <issue
280        id="NewApi"
281        message="Call requires API level 26 (current min is 21): `android.content.Context#registerReceiver`"
282        errorLine1="            mContext.registerReceiver(this, intentFilter,"
283        errorLine2="                     ~~~~~~~~~~~~~~~~">
284        <location
285            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BlockingBroadcastReceiver.java"
286            line="155"
287            column="22"/>
288    </issue>
289
290    <issue
291        id="NewApi"
292        message="Call requires API level 26 (current min is 21): `android.content.Context#registerReceiver`"
293        errorLine1="            context.registerReceiver(mReceiver, fi, /* permission=*/ null,"
294        errorLine2="                    ~~~~~~~~~~~~~~~~">
295        <location
296            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/BroadcastMessenger.java"
297            line="152"
298            column="21"/>
299    </issue>
300
301    <issue
302        id="NewApi"
303        message="Call requires API level 26 (current min is 21): `android.content.Context#registerReceiver`"
304        errorLine1="            InstrumentationRegistry.getContext().registerReceiver(mReceiver, filter,"
305        errorLine2="                                                 ~~~~~~~~~~~~~~~~">
306        <location
307            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/CallbackAsserter.java"
308            line="104"
309            column="50"/>
310    </issue>
311
312    <issue
313        id="NewApi"
314        message="Call requires API level 26 (current min is 21): `android.graphics.Color#getColorSpace`"
315        errorLine1="        if (!expected.getColorSpace().equals(observed.getColorSpace())) {"
316        errorLine2="                      ~~~~~~~~~~~~~">
317        <location
318            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ColorUtils.java"
319            line="92"
320            column="23"/>
321    </issue>
322
323    <issue
324        id="NewApi"
325        message="Call requires API level 26 (current min is 21): `android.graphics.Color#getColorSpace`"
326        errorLine1="        if (!expected.getColorSpace().equals(observed.getColorSpace())) {"
327        errorLine2="                                                      ~~~~~~~~~~~~~">
328        <location
329            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ColorUtils.java"
330            line="92"
331            column="55"/>
332    </issue>
333
334    <issue
335        id="NewApi"
336        message="Call requires API level 26 (current min is 21): `android.graphics.Color#red`"
337        errorLine1='        String red = verifyChannel("red", expected, observed, tolerance, (c) -&gt; c.red());'
338        errorLine2="                                                                                  ~~~">
339        <location
340            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ColorUtils.java"
341            line="98"
342            column="83"/>
343    </issue>
344
345    <issue
346        id="NewApi"
347        message="Call requires API level 26 (current min is 21): `android.graphics.Color#green`"
348        errorLine1='        String green = verifyChannel("green", expected, observed, tolerance, (c) -&gt; c.green());'
349        errorLine2="                                                                                      ~~~~~">
350        <location
351            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ColorUtils.java"
352            line="99"
353            column="87"/>
354    </issue>
355
356    <issue
357        id="NewApi"
358        message="Call requires API level 26 (current min is 21): `android.graphics.Color#blue`"
359        errorLine1='        String blue = verifyChannel("blue", expected, observed, tolerance, (c) -&gt; c.blue());'
360        errorLine2="                                                                                    ~~~~">
361        <location
362            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ColorUtils.java"
363            line="100"
364            column="85"/>
365    </issue>
366
367    <issue
368        id="NewApi"
369        message="Call requires API level 26 (current min is 21): `android.graphics.Color#alpha`"
370        errorLine1='        String alpha = verifyChannel("alpha", expected, observed, tolerance, (c) -&gt; c.alpha());'
371        errorLine2="                                                                                      ~~~~~">
372        <location
373            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ColorUtils.java"
374            line="101"
375            column="87"/>
376    </issue>
377
378    <issue
379        id="NewApi"
380        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
381        errorLine1="        final NetworkInfo networkInfo = context.getSystemService(ConnectivityManager.class)"
382        errorLine2="                                                ~~~~~~~~~~~~~~~~">
383        <location
384            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ConnectivityUtils.java"
385            line="30"
386            column="49"/>
387    </issue>
388
389    <issue
390        id="NewApi"
391        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
392        errorLine1="        DevicePolicyManager dpm = context.getSystemService(DevicePolicyManager.class);"
393        errorLine2="                                          ~~~~~~~~~~~~~~~~">
394        <location
395            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/enterprise/DeviceAdminReceiverUtils.java"
396            line="61"
397            column="43"/>
398    </issue>
399
400    <issue
401        id="NewApi"
402        message="Call requires API level 24 (current min is 21): `android.app.admin.DevicePolicyManager#clearProfileOwner`"
403        errorLine1="            dpm.clearProfileOwner(admin);"
404        errorLine2="                ~~~~~~~~~~~~~~~~~">
405        <location
406            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/enterprise/DeviceAdminReceiverUtils.java"
407            line="71"
408            column="17"/>
409    </issue>
410
411    <issue
412        id="NewApi"
413        message="Call requires API level 28 (current min is 21): `android.content.Context#getMainExecutor`"
414        errorLine1="        DeviceConfig.addOnPropertiesChangedListener(mNamespace, mContext.getMainExecutor(),"
415        errorLine2="                                                                         ~~~~~~~~~~~~~~~">
416        <location
417            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DeviceConfigStateManager.java"
418            line="69"
419            column="74"/>
420    </issue>
421
422    <issue
423        id="NewApi"
424        message="Call requires API level 26 (current min is 21): `java.util.Base64#getEncoder`"
425        errorLine1="        mJsonWriter.value(Base64.getEncoder().encodeToString(bytes));"
426        errorLine2="                                 ~~~~~~~~~~">
427        <location
428            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DeviceInfoStore.java"
429            line="268"
430            column="34"/>
431    </issue>
432
433    <issue
434        id="NewApi"
435        message="Call requires API level 26 (current min is 21): `java.util.Base64.Encoder#encodeToString`"
436        errorLine1="        mJsonWriter.value(Base64.getEncoder().encodeToString(bytes));"
437        errorLine2="                                              ~~~~~~~~~~~~~~">
438        <location
439            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DeviceInfoStore.java"
440            line="268"
441            column="47"/>
442    </issue>
443
444    <issue
445        id="NewApi"
446        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
447        errorLine1="        HdmiControlManager cecManager = context.getSystemService(HdmiControlManager.class);"
448        errorLine2="                                                ~~~~~~~~~~~~~~~~">
449        <location
450            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
451            line="39"
452            column="49"/>
453    </issue>
454
455    <issue
456        id="NewApi"
457        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getModeId`"
458        errorLine1="        if (from.getModeId() == to.getModeId()) {"
459        errorLine2="                 ~~~~~~~~~">
460        <location
461            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
462            line="64"
463            column="18"/>
464    </issue>
465
466    <issue
467        id="NewApi"
468        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getModeId`"
469        errorLine1="        if (from.getModeId() == to.getModeId()) {"
470        errorLine2="                                   ~~~~~~~~~">
471        <location
472            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
473            line="64"
474            column="36"/>
475    </issue>
476
477    <issue
478        id="NewApi"
479        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getPhysicalHeight`"
480        errorLine1="        if (from.getPhysicalHeight() != to.getPhysicalHeight()"
481        errorLine2="                 ~~~~~~~~~~~~~~~~~">
482        <location
483            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
484            line="68"
485            column="18"/>
486    </issue>
487
488    <issue
489        id="NewApi"
490        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getPhysicalHeight`"
491        errorLine1="        if (from.getPhysicalHeight() != to.getPhysicalHeight()"
492        errorLine2="                                           ~~~~~~~~~~~~~~~~~">
493        <location
494            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
495            line="68"
496            column="44"/>
497    </issue>
498
499    <issue
500        id="NewApi"
501        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getPhysicalWidth`"
502        errorLine1="                || from.getPhysicalWidth() != to.getPhysicalWidth()) {"
503        errorLine2="                        ~~~~~~~~~~~~~~~~">
504        <location
505            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
506            line="69"
507            column="25"/>
508    </issue>
509
510    <issue
511        id="NewApi"
512        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getPhysicalWidth`"
513        errorLine1="                || from.getPhysicalWidth() != to.getPhysicalWidth()) {"
514        errorLine2="                                                 ~~~~~~~~~~~~~~~~">
515        <location
516            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
517            line="69"
518            column="50"/>
519    </issue>
520
521    <issue
522        id="NewApi"
523        message="Call requires API level 31 (current min is 21): `android.view.Display.Mode#getAlternativeRefreshRates`"
524        errorLine1="        for (float alternativeRefreshRate : from.getAlternativeRefreshRates()) {"
525        errorLine2="                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~">
526        <location
527            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
528            line="73"
529            column="50"/>
530    </issue>
531
532    <issue
533        id="NewApi"
534        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getRefreshRate`"
535        errorLine1="            if (Math.abs(alternativeRefreshRate - to.getRefreshRate()) &lt;  REFRESH_RATE_TOLERANCE) {"
536        errorLine2="                                                     ~~~~~~~~~~~~~~">
537        <location
538            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
539            line="74"
540            column="54"/>
541    </issue>
542
543    <issue
544        id="NewApi"
545        message="Call requires API level 31 (current min is 21): `android.hardware.display.DisplayManager#getMatchContentFrameRateUserPreference`"
546        errorLine1="        return toSwitchingType(displayManager.getMatchContentFrameRateUserPreference());"
547        errorLine2="                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
548        <location
549            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/DisplayUtil.java"
550            line="83"
551            column="47"/>
552    </issue>
553
554    <issue
555        id="NewApi"
556        message="Call requires API level 24 (current min is 21): `java.util.concurrent.CompletableFuture#complete`"
557        errorLine1="        requests[requestCode]!!.complete(resultCode)"
558        errorLine2="                                ~~~~~~~~">
559        <location
560            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/FutureResultActivity.kt"
561            line="48"
562            column="33"/>
563    </issue>
564
565    <issue
566        id="NewApi"
567        message="Call requires API level 24 (current min is 21): `java.util.concurrent.CompletableFuture()`"
568        errorLine1="        val future = CompletableFuture&lt;Int&gt;()"
569        errorLine2="                     ~~~~~~~~~~~~~~~~~~~~~~~~">
570        <location
571            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/FutureResultActivity.kt"
572            line="53"
573            column="22"/>
574    </issue>
575
576    <issue
577        id="NewApi"
578        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
579        errorLine1="        mWindowManager = context.getSystemService(WindowManager.class);"
580        errorLine2="                                 ~~~~~~~~~~~~~~~~">
581        <location
582            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
583            line="61"
584            column="34"/>
585    </issue>
586
587    <issue
588        id="NewApi"
589        message="Field requires API level 29 (current min is 21): `android.graphics.Insets#bottom`"
590        errorLine1="        outRect.set(insets.left, insets.top, insets.right, insets.bottom);"
591        errorLine2="                                                           ~~~~~~~~~~~~~">
592        <location
593            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
594            line="80"
595            column="60"/>
596    </issue>
597
598    <issue
599        id="NewApi"
600        message="Field requires API level 29 (current min is 21): `android.graphics.Insets#left`"
601        errorLine1="        outRect.set(insets.left, insets.top, insets.right, insets.bottom);"
602        errorLine2="                    ~~~~~~~~~~~">
603        <location
604            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
605            line="80"
606            column="21"/>
607    </issue>
608
609    <issue
610        id="NewApi"
611        message="Field requires API level 29 (current min is 21): `android.graphics.Insets#right`"
612        errorLine1="        outRect.set(insets.left, insets.top, insets.right, insets.bottom);"
613        errorLine2="                                             ~~~~~~~~~~~~">
614        <location
615            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
616            line="80"
617            column="46"/>
618    </issue>
619
620    <issue
621        id="NewApi"
622        message="Field requires API level 29 (current min is 21): `android.graphics.Insets#top`"
623        errorLine1="        outRect.set(insets.left, insets.top, insets.right, insets.bottom);"
624        errorLine2="                                 ~~~~~~~~~~">
625        <location
626            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
627            line="80"
628            column="34"/>
629    </issue>
630
631    <issue
632        id="NewApi"
633        message="Call requires API level 30 (current min is 21): `android.view.WindowManager#getCurrentWindowMetrics`"
634        errorLine1="            WindowInsets insets = mWindowManager.getCurrentWindowMetrics().getWindowInsets();"
635        errorLine2="                                                 ~~~~~~~~~~~~~~~~~~~~~~~">
636        <location
637            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
638            line="127"
639            column="50"/>
640    </issue>
641
642    <issue
643        id="NewApi"
644        message="Call requires API level 30 (current min is 21): `android.view.WindowMetrics#getWindowInsets`"
645        errorLine1="            WindowInsets insets = mWindowManager.getCurrentWindowMetrics().getWindowInsets();"
646        errorLine2="                                                                           ~~~~~~~~~~~~~~~">
647        <location
648            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
649            line="127"
650            column="76"/>
651    </issue>
652
653    <issue
654        id="NewApi"
655        message="Call requires API level 30 (current min is 21): `android.view.WindowInsets#getInsetsIgnoringVisibility`"
656        errorLine1="            Insets navInsets = insets.getInsetsIgnoringVisibility("
657        errorLine2="                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
658        <location
659            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
660            line="128"
661            column="39"/>
662    </issue>
663
664    <issue
665        id="NewApi"
666        message="Call requires API level 30 (current min is 21): `android.view.WindowInsets.Type#navigationBars`"
667        errorLine1="                    WindowInsets.Type.navigationBars());"
668        errorLine2="                                      ~~~~~~~~~~~~~~">
669        <location
670            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/GestureNavSwitchHelper.java"
671            line="129"
672            column="39"/>
673    </issue>
674
675    <issue
676        id="NewApi"
677        message="Call requires API level 23 (current min is 21): `android.media.MediaCodecInfo.VideoCapabilities#getAchievableFrameRatesFor`"
678        errorLine1="                    .getAchievableFrameRatesFor(width, height);"
679        errorLine2="                     ~~~~~~~~~~~~~~~~~~~~~~~~~~">
680        <location
681            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaPerfUtils.java"
682            line="80"
683            column="22"/>
684    </issue>
685
686    <issue
687        id="NewApi"
688        message="Call requires API level 23 (current min is 21): `android.media.MediaCodecInfo.VideoCapabilities#getAchievableFrameRatesFor`"
689        errorLine1="            MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h);"
690        errorLine2="                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~">
691        <location
692            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaPerfUtils.java"
693            line="163"
694            column="57"/>
695    </issue>
696
697    <issue
698        id="NewApi"
699        message="Call requires API level 23 (current min is 21): `android.media.MediaCodecInfo.VideoCapabilities#getAchievableFrameRatesFor`"
700        errorLine1="            MediaUtils.getVideoCapabilities(name, mime).getAchievableFrameRatesFor(w, h);"
701        errorLine2="                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~">
702        <location
703            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaPerfUtils.java"
704            line="216"
705            column="57"/>
706    </issue>
707
708    <issue
709        id="NewApi"
710        message="Call requires API level 29 (current min is 21): `android.media.MediaCodecInfo#isAlias`"
711        errorLine1="            if (info.isAlias()) {"
712        errorLine2="                     ~~~~~~~">
713        <location
714            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaUtils.java"
715            line="228"
716            column="22"/>
717    </issue>
718
719    <issue
720        id="NewApi"
721        message="Call requires API level 29 (current min is 21): `android.media.MediaCodecInfo#isHardwareAccelerated`"
722        errorLine1="                &amp;&amp; mci.isHardwareAccelerated()) {"
723        errorLine2="                       ~~~~~~~~~~~~~~~~~~~~~">
724        <location
725            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaUtils.java"
726            line="374"
727            column="24"/>
728    </issue>
729
730    <issue
731        id="NewApi"
732        message="Call requires API level 29 (current min is 21): `android.media.MediaCodecInfo.VideoCapabilities#getSupportedPerformancePoints`"
733        errorLine1="                            caps.getSupportedPerformancePoints();"
734        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
735        <location
736            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaUtils.java"
737            line="378"
738            column="34"/>
739    </issue>
740
741    <issue
742        id="NewApi"
743        message="Call requires API level 29 (current min is 21): `new android.media.MediaCodecInfo.VideoCapabilities.PerformancePoint`"
744        errorLine1="                            new VideoCapabilities.PerformancePoint(width, height, (int) rate);"
745        errorLine2="                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
746        <location
747            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaUtils.java"
748            line="380"
749            column="29"/>
750    </issue>
751
752    <issue
753        id="NewApi"
754        message="Call requires API level 29 (current min is 21): `android.media.MediaCodecInfo.VideoCapabilities.PerformancePoint#covers`"
755        errorLine1="                if (point.covers(target)) {"
756        errorLine2="                          ~~~~~~">
757        <location
758            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaUtils.java"
759            line="382"
760            column="27"/>
761    </issue>
762
763    <issue
764        id="NewApi"
765        message="Call requires API level 29 (current min is 21): `android.media.MediaCodecInfo#isHardwareAccelerated`"
766        errorLine1="            if (info.isEncoder() == encode &amp;&amp; info.isHardwareAccelerated()) {"
767        errorLine2="                                                   ~~~~~~~~~~~~~~~~~~~~~">
768        <location
769            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaUtils.java"
770            line="889"
771            column="52"/>
772    </issue>
773
774    <issue
775        id="NewApi"
776        message="Call requires API level 24 (current min is 21): `android.drm.DrmManagerClient#close`"
777        errorLine1="            drmClient.close();"
778        errorLine2="                      ~~~~~">
779        <location
780            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/MediaUtils.java"
781            line="1245"
782            column="23"/>
783    </issue>
784
785    <issue
786        id="NewApi"
787        message="Call requires API level 28 (current min is 21): `android.content.pm.SigningInfo#getApkContentsSigners`"
788        errorLine1="        messageDigest.update(packageInfo.signingInfo.getApkContentsSigners()[0].toByteArray());"
789        errorLine2="                                                     ~~~~~~~~~~~~~~~~~~~~~">
790        <location
791            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/ModuleDetector.java"
792            line="88"
793            column="54"/>
794    </issue>
795
796    <issue
797        id="NewApi"
798        message="Field requires API level 28 (current min is 21): `android.content.pm.PackageInfo#signingInfo`"
799        errorLine1="        messageDigest.update(packageInfo.signingInfo.getApkContentsSigners()[0].toByteArray());"
800        errorLine2="                             ~~~~~~~~~~~~~~~~~~~~~~~">
801        <location
802            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/mainline/ModuleDetector.java"
803            line="88"
804            column="30"/>
805    </issue>
806
807    <issue
808        id="NewApi"
809        message="Call requires API level 33 (current min is 21): `android.animation.ValueAnimator#getDurationScale`"
810        errorLine1="                    Math.abs(ValueAnimator.getDurationScale() - mAnimationScale) &lt; 0.001);"
811        errorLine2="                                           ~~~~~~~~~~~~~~~~">
812        <location
813            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/OverrideAnimationScaleRule.java"
814            line="60"
815            column="44"/>
816    </issue>
817
818    <issue
819        id="NewApi"
820        message="Call requires API level 28 (current min is 21): `android.content.pm.PackageInfo#getLongVersionCode`"
821        errorLine1="                    info.getLongVersionCode() : (long) info.versionCode;"
822        errorLine2="                         ~~~~~~~~~~~~~~~~~~">
823        <location
824            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/PackageUtil.java"
825            line="117"
826            column="26"/>
827    </issue>
828
829    <issue
830        id="NewApi"
831        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
832        errorLine1="            uiAutomation.adoptShellPermissionIdentity();"
833        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
834        <location
835            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
836            line="111"
837            column="26"/>
838    </issue>
839
840    <issue
841        id="NewApi"
842        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
843        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
844        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
845        <location
846            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
847            line="114"
848            column="26"/>
849    </issue>
850
851    <issue
852        id="NewApi"
853        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
854        errorLine1="            uiAutomation.adoptShellPermissionIdentity(permissions);"
855        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
856        <location
857            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
858            line="130"
859            column="26"/>
860    </issue>
861
862    <issue
863        id="NewApi"
864        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
865        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
866        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
867        <location
868            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
869            line="133"
870            column="26"/>
871    </issue>
872
873    <issue
874        id="NewApi"
875        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
876        errorLine1="            uiAutomation.adoptShellPermissionIdentity(permissions);"
877        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
878        <location
879            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
880            line="160"
881            column="26"/>
882    </issue>
883
884    <issue
885        id="NewApi"
886        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
887        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
888        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
889        <location
890            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
891            line="163"
892            column="26"/>
893    </issue>
894
895    <issue
896        id="NewApi"
897        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
898        errorLine1="            uiAutomation.adoptShellPermissionIdentity(permissions);"
899        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
900        <location
901            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
902            line="182"
903            column="26"/>
904    </issue>
905
906    <issue
907        id="NewApi"
908        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
909        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
910        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
911        <location
912            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
913            line="185"
914            column="26"/>
915    </issue>
916
917    <issue
918        id="NewApi"
919        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
920        errorLine1="            uiAutomation.adoptShellPermissionIdentity(permissions);"
921        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
922        <location
923            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
924            line="204"
925            column="26"/>
926    </issue>
927
928    <issue
929        id="NewApi"
930        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
931        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
932        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
933        <location
934            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
935            line="207"
936            column="26"/>
937    </issue>
938
939    <issue
940        id="NewApi"
941        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
942        errorLine1="            uiAutomation.adoptShellPermissionIdentity(permissions);"
943        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
944        <location
945            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
946            line="225"
947            column="26"/>
948    </issue>
949
950    <issue
951        id="NewApi"
952        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
953        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
954        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
955        <location
956            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
957            line="228"
958            column="26"/>
959    </issue>
960
961    <issue
962        id="NewApi"
963        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
964        errorLine1="            uiAutomation.adoptShellPermissionIdentity(permissions);"
965        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
966        <location
967            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
968            line="245"
969            column="26"/>
970    </issue>
971
972    <issue
973        id="NewApi"
974        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
975        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
976        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
977        <location
978            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
979            line="248"
980            column="26"/>
981    </issue>
982
983    <issue
984        id="NewApi"
985        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
986        errorLine1="            uiAutomation.adoptShellPermissionIdentity();"
987        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
988        <location
989            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
990            line="265"
991            column="26"/>
992    </issue>
993
994    <issue
995        id="NewApi"
996        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
997        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
998        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
999        <location
1000            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1001            line="268"
1002            column="26"/>
1003    </issue>
1004
1005    <issue
1006        id="NewApi"
1007        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1008        errorLine1="            uiAutomation.adoptShellPermissionIdentity(permissions);"
1009        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1010        <location
1011            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1012            line="286"
1013            column="26"/>
1014    </issue>
1015
1016    <issue
1017        id="NewApi"
1018        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1019        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
1020        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1021        <location
1022            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1023            line="289"
1024            column="26"/>
1025    </issue>
1026
1027    <issue
1028        id="NewApi"
1029        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1030        errorLine1="            uiAutomation.adoptShellPermissionIdentity();"
1031        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1032        <location
1033            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1034            line="306"
1035            column="26"/>
1036    </issue>
1037
1038    <issue
1039        id="NewApi"
1040        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1041        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
1042        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1043        <location
1044            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1045            line="309"
1046            column="26"/>
1047    </issue>
1048
1049    <issue
1050        id="NewApi"
1051        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1052        errorLine1="            uiAutomation.adoptShellPermissionIdentity();"
1053        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1054        <location
1055            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1056            line="337"
1057            column="26"/>
1058    </issue>
1059
1060    <issue
1061        id="NewApi"
1062        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1063        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
1064        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1065        <location
1066            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1067            line="340"
1068            column="26"/>
1069    </issue>
1070
1071    <issue
1072        id="NewApi"
1073        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1074        errorLine1="        uiAutomation.dropShellPermissionIdentity();"
1075        errorLine2="                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1076        <location
1077            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1078            line="352"
1079            column="22"/>
1080    </issue>
1081
1082    <issue
1083        id="NewApi"
1084        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1085        errorLine1="            uiAutomation.adoptShellPermissionIdentity();"
1086        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1087        <location
1088            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1089            line="366"
1090            column="26"/>
1091    </issue>
1092
1093    <issue
1094        id="NewApi"
1095        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1096        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
1097        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1098        <location
1099            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1100            line="369"
1101            column="26"/>
1102    </issue>
1103
1104    <issue
1105        id="NewApi"
1106        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1107        errorLine1="            uiAutomation.adoptShellPermissionIdentity();"
1108        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1109        <location
1110            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1111            line="383"
1112            column="26"/>
1113    </issue>
1114
1115    <issue
1116        id="NewApi"
1117        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1118        errorLine1="            uiAutomation.dropShellPermissionIdentity();"
1119        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1120        <location
1121            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ShellIdentityUtils.java"
1122            line="386"
1123            column="26"/>
1124    </issue>
1125
1126    <issue
1127        id="NewApi"
1128        message="Call requires API level 26 (current min is 21): `android.content.Context#registerReceiver`"
1129        errorLine1="            mContext.registerReceiver(this, new IntentFilter(mAction),"
1130        errorLine2="                     ~~~~~~~~~~~~~~~~">
1131        <location
1132            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/devicepolicy/provisioning/SilentProvisioningTestManager.java"
1133            line="166"
1134            column="22"/>
1135    </issue>
1136
1137    <issue
1138        id="NewApi"
1139        message="Call requires API level 34 (current min is 21): `android.app.UiAutomation#executeShellCommandRwe`"
1140        errorLine1="            ParcelFileDescriptor[] fds = automation.executeShellCommandRwe(cmd);"
1141        errorLine2="                                                    ~~~~~~~~~~~~~~~~~~~~~~">
1142        <location
1143            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/SystemUtil.java"
1144            line="144"
1145            column="53"/>
1146    </issue>
1147
1148    <issue
1149        id="NewApi"
1150        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1151        errorLine1="        automan.adoptShellPermissionIdentity(permissions);"
1152        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1153        <location
1154            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/SystemUtil.java"
1155            line="284"
1156            column="17"/>
1157    </issue>
1158
1159    <issue
1160        id="NewApi"
1161        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1162        errorLine1="            automan.dropShellPermissionIdentity();"
1163        errorLine2="                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1164        <location
1165            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/SystemUtil.java"
1166            line="290"
1167            column="21"/>
1168    </issue>
1169
1170    <issue
1171        id="NewApi"
1172        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1173        errorLine1="        automan.adoptShellPermissionIdentity();"
1174        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1175        <location
1176            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/SystemUtil.java"
1177            line="300"
1178            column="17"/>
1179    </issue>
1180
1181    <issue
1182        id="NewApi"
1183        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1184        errorLine1="            automan.dropShellPermissionIdentity();"
1185        errorLine2="                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1186        <location
1187            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/SystemUtil.java"
1188            line="304"
1189            column="21"/>
1190    </issue>
1191
1192    <issue
1193        id="NewApi"
1194        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#adoptShellPermissionIdentity`"
1195        errorLine1="        automan.adoptShellPermissionIdentity(permissions);"
1196        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1197        <location
1198            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/SystemUtil.java"
1199            line="317"
1200            column="17"/>
1201    </issue>
1202
1203    <issue
1204        id="NewApi"
1205        message="Call requires API level 29 (current min is 21): `android.app.UiAutomation#dropShellPermissionIdentity`"
1206        errorLine1="            automan.dropShellPermissionIdentity();"
1207        errorLine2="                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1208        <location
1209            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/SystemUtil.java"
1210            line="321"
1211            column="21"/>
1212    </issue>
1213
1214    <issue
1215        id="NewApi"
1216        message="Field requires API level 23 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_LEFT`"
1217        errorLine1='        sNodeActions.put(AccessibilityAction.ACTION_SCROLL_LEFT, "←");'
1218        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1219        <location
1220            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1221            line="126"
1222            column="26"/>
1223    </issue>
1224
1225    <issue
1226        id="NewApi"
1227        message="Field requires API level 23 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_RIGHT`"
1228        errorLine1='        sNodeActions.put(AccessibilityAction.ACTION_SCROLL_RIGHT, "→");'
1229        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1230        <location
1231            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1232            line="128"
1233            column="26"/>
1234    </issue>
1235
1236    <issue
1237        id="NewApi"
1238        message="Field requires API level 23 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_DOWN`"
1239        errorLine1='        sNodeActions.put(AccessibilityAction.ACTION_SCROLL_DOWN, "↓");'
1240        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1241        <location
1242            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1243            line="129"
1244            column="26"/>
1245    </issue>
1246
1247    <issue
1248        id="NewApi"
1249        message="Field requires API level 23 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SCROLL_UP`"
1250        errorLine1='        sNodeActions.put(AccessibilityAction.ACTION_SCROLL_UP, "↑");'
1251        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1252        <location
1253            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1254            line="130"
1255            column="26"/>
1256    </issue>
1257
1258    <issue
1259        id="NewApi"
1260        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
1261        errorLine1="                .getSystemService(WindowManager.class)"
1262        errorLine2="                 ~~~~~~~~~~~~~~~~">
1263        <location
1264            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1265            line="140"
1266            column="18"/>
1267    </issue>
1268
1269    <issue
1270        id="NewApi"
1271        message="Call requires API level 24 (current min is 21): `android.view.accessibility.AccessibilityWindowInfo#getTitle`"
1272        errorLine1="            if (!isEmpty(window.getTitle())) {"
1273        errorLine2="                                ~~~~~~~~">
1274        <location
1275            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1276            line="207"
1277            column="33"/>
1278    </issue>
1279
1280    <issue
1281        id="NewApi"
1282        message="Call requires API level 24 (current min is 21): `android.view.accessibility.AccessibilityWindowInfo#getTitle`"
1283        errorLine1="                out.append(window.getTitle());"
1284        errorLine2="                                  ~~~~~~~~">
1285        <location
1286            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1287            line="208"
1288            column="35"/>
1289    </issue>
1290
1291    <issue
1292        id="NewApi"
1293        message="Call requires API level 26 (current min is 21): `android.view.accessibility.AccessibilityWindowInfo#isInPictureInPictureMode`"
1294        errorLine1='            if (window.isInPictureInPictureMode()) out.append("#PIP ");'
1295        errorLine2="                       ~~~~~~~~~~~~~~~~~~~~~~~~">
1296        <location
1297            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1298            line="220"
1299            column="24"/>
1300    </issue>
1301
1302    <issue
1303        id="NewApi"
1304        message="Call requires API level 24 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo#isImportantForAccessibility`"
1305        errorLine1="            } else if (!node.isImportantForAccessibility()) {"
1306        errorLine2="                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1307        <location
1308            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1309            line="266"
1310            column="30"/>
1311    </issue>
1312
1313    <issue
1314        id="NewApi"
1315        message="Call requires API level 24 (current min is 21): `java.lang.Iterable#forEach`"
1316        errorLine1="                symbols.forEach(out::append);"
1317        errorLine2="                        ~~~~~~~">
1318        <location
1319            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1320            line="300"
1321            column="25"/>
1322    </issue>
1323
1324    <issue
1325        id="NewApi"
1326        message="Call requires API level 28 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo#getPaneTitle`"
1327        errorLine1="            if (!isEmpty(node.getPaneTitle())) {"
1328        errorLine2="                              ~~~~~~~~~~~~">
1329        <location
1330            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1331            line="347"
1332            column="31"/>
1333    </issue>
1334
1335    <issue
1336        id="NewApi"
1337        message="Call requires API level 28 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo#getPaneTitle`"
1338        errorLine1="                out.append(escape(node.getPaneTitle()));"
1339        errorLine2="                                       ~~~~~~~~~~~~">
1340        <location
1341            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1342            line="348"
1343            column="40"/>
1344    </issue>
1345
1346    <issue
1347        id="NewApi"
1348        message="Call requires API level 28 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo#getPaneTitle`"
1349        errorLine1='        ifNotEmpty(node.getPaneTitle(), s -&gt; out.append("## ").append(s).append(" "));'
1350        errorLine2="                        ~~~~~~~~~~~~">
1351        <location
1352            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1353            line="378"
1354            column="25"/>
1355    </issue>
1356
1357    <issue
1358        id="NewApi"
1359        message="Field requires API level 23 (current min is 21): `android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction#ACTION_SHOW_ON_SCREEN`"
1360        errorLine1="                .filter(a -&gt; !AccessibilityAction.ACTION_SHOW_ON_SCREEN.equals(a)"
1361        errorLine2="                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1362        <location
1363            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiDumpUtils.java"
1364            line="465"
1365            column="31"/>
1366    </issue>
1367
1368    <issue
1369        id="NewApi"
1370        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
1371        errorLine1="                        .getSystemService(TelephonyManager.class);"
1372        errorLine2="                         ~~~~~~~~~~~~~~~~">
1373        <location
1374            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UiccUtil.java"
1375            line="128"
1376            column="26"/>
1377    </issue>
1378
1379    <issue
1380        id="NewApi"
1381        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
1382        errorLine1="        UserManager userManager = context.getSystemService(UserManager.class);"
1383        errorLine2="                                          ~~~~~~~~~~~~~~~~">
1384        <location
1385            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UserHelper.java"
1386            line="72"
1387            column="43"/>
1388    </issue>
1389
1390    <issue
1391        id="NewApi"
1392        message="Call requires API level 31 (current min is 21): `android.os.UserManager#isUserForeground`"
1393        errorLine1="        boolean isForeground = userManager.isUserForeground();"
1394        errorLine2="                                           ~~~~~~~~~~~~~~~~">
1395        <location
1396            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UserHelper.java"
1397            line="93"
1398            column="44"/>
1399    </issue>
1400
1401    <issue
1402        id="NewApi"
1403        message="Call requires API level 33 (current min is 21): `android.os.UserManager#isProfile`"
1404        errorLine1="        boolean isProfile = userManager.isProfile();"
1405        errorLine2="                                        ~~~~~~~~~">
1406        <location
1407            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UserHelper.java"
1408            line="94"
1409            column="41"/>
1410    </issue>
1411
1412    <issue
1413        id="NewApi"
1414        message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`"
1415        errorLine1="        ActivityOptions augmentedOptions = options != null ? options : ActivityOptions.makeBasic();"
1416        errorLine2="                                                                                       ~~~~~~~~~">
1417        <location
1418            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UserHelper.java"
1419            line="205"
1420            column="88"/>
1421    </issue>
1422
1423    <issue
1424        id="NewApi"
1425        message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`"
1426        errorLine1="            augmentedOptions.setLaunchDisplayId(mDisplayId);"
1427        errorLine2="                             ~~~~~~~~~~~~~~~~~~">
1428        <location
1429            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/UserHelper.java"
1430            line="207"
1431            column="30"/>
1432    </issue>
1433
1434    <issue
1435        id="NewApi"
1436        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
1437        errorLine1="        this(context, context.getApplicationContext().getSystemService(WifiManager.class));"
1438        errorLine2="                                                      ~~~~~~~~~~~~~~~~">
1439        <location
1440            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/WifiConfigCreator.java"
1441            line="68"
1442            column="55"/>
1443    </issue>
1444
1445    <issue
1446        id="NewApi"
1447        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
1448        errorLine1="        mCurrentUserWifiManager = mContext.getSystemService(WifiManager.class);"
1449        errorLine2="                                           ~~~~~~~~~~~~~~~~">
1450        <location
1451            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/WifiConfigCreator.java"
1452            line="74"
1453            column="44"/>
1454    </issue>
1455
1456    <issue
1457        id="NewApi"
1458        message="Method reference requires API level 26 (current min is 21): `WifiConfiguration::getHttpProxy`"
1459        errorLine1="                .map(WifiConfiguration::getHttpProxy)"
1460        errorLine2="                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1461        <location
1462            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/WifiConfigCreator.java"
1463            line="136"
1464            column="22"/>
1465    </issue>
1466
1467    <issue
1468        id="NewApi"
1469        message="Call requires API level 26 (current min is 21): `android.net.wifi.WifiConfiguration#setHttpProxy`"
1470        errorLine1="            conf.setHttpProxy(ProxyInfo.buildPacProxy(Uri.parse(pacProxyUrl)));"
1471        errorLine2="                 ~~~~~~~~~~~~">
1472        <location
1473            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/WifiConfigCreator.java"
1474            line="146"
1475            column="18"/>
1476    </issue>
1477
1478    <issue
1479        id="NewApi"
1480        message="Call requires API level 26 (current min is 21): `android.content.ContextWrapper#registerReceiver`"
1481        errorLine1="        registerReceiver(mBroadcastReceiver, new IntentFilter(BROADCAST_ACTION_TRIGGER),"
1482        errorLine2="        ~~~~~~~~~~~~~~~~">
1483        <location
1484            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/concurrentuser/ConcurrentUserActivityBase.java"
1485            line="83"
1486            column="9"/>
1487    </issue>
1488
1489    <issue
1490        id="NewApi"
1491        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
1492        errorLine1="                getInstrumentation().getTargetContext().getSystemService(UserManager.class);"
1493        errorLine2="                                                        ~~~~~~~~~~~~~~~~">
1494        <location
1495            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/concurrentuser/ConcurrentUserActivityUtils.java"
1496            line="68"
1497            column="57"/>
1498    </issue>
1499
1500    <issue
1501        id="DefaultLocale"
1502        message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead"
1503        errorLine1="                fail(String.format(&quot;Failed to launch activity %s as user %d&quot;, activityName,"
1504        errorLine2="                     ^">
1505        <location
1506            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/concurrentuser/ConcurrentUserActivityUtils.java"
1507            line="114"
1508            column="22"/>
1509    </issue>
1510
1511    <issue
1512        id="DefaultLocale"
1513        message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead"
1514        errorLine1="                fail(String.format(&quot;Failed to send %s to %s (user %d)&quot;, bundleToSend,"
1515        errorLine2="                     ^">
1516        <location
1517            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/concurrentuser/ConcurrentUserActivityUtils.java"
1518            line="152"
1519            column="22"/>
1520    </issue>
1521
1522    <issue
1523        id="InlinedApi"
1524        message="Field requires API level 33 (current min is 21): `android.content.Context#RECEIVER_EXPORTED`"
1525        errorLine1="                RECEIVER_EXPORTED);"
1526        errorLine2="                ~~~~~~~~~~~~~~~~~">
1527        <location
1528            file="cts/common/device-side/util-axt/src/com/android/compatibility/common/util/concurrentuser/ConcurrentUserActivityBase.java"
1529            line="84"
1530            column="17"/>
1531    </issue>
1532
1533</issues>