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 23 (current min is 21): `android.content.Context#getSystemService`"
7        errorLine1="      final WifiManager wifiManager = getContext().getSystemService(WifiManager.class);"
8        errorLine2="                                                   ~~~~~~~~~~~~~~~~">
9        <location
10            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ConnectivityDeviceInfo.java"
11            line="88"
12            column="52"/>
13    </issue>
14
15    <issue
16        id="NewApi"
17        message="Call requires API level 30 (current min is 21): `android.net.wifi.WifiManager#isWifiStandardSupported`"
18        errorLine1="          if (wifiManager.isWifiStandardSupported(standard)) {"
19        errorLine2="                          ~~~~~~~~~~~~~~~~~~~~~~~">
20        <location
21            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ConnectivityDeviceInfo.java"
22            line="91"
23            column="27"/>
24    </issue>
25
26    <issue
27        id="NewApi"
28        message="Method reference requires API level 26 (current min is 21): `Build::getSerial`"
29        errorLine1="                    ShellIdentityUtils.invokeStaticMethodWithShellPermissions(Build::getSerial));"
30        errorLine2="                                                                              ~~~~~~~~~~~~~~~~">
31        <location
32            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GenericDeviceInfo.java"
33            line="80"
34            column="79"/>
35    </issue>
36
37    <issue
38        id="NewApi"
39        message="Call requires API level 26 (current min is 21): `android.os.Build#getSerial`"
40        errorLine1="            store.addResult(BUILD_SERIAL, Build.getSerial());"
41        errorLine2="                                                ~~~~~~~~~">
42        <location
43            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GenericDeviceInfo.java"
44            line="82"
45            column="49"/>
46    </issue>
47
48    <issue
49        id="NewApi"
50        message="Field requires API level 30 (current min is 21): `android.os.Build.VERSION#RELEASE_OR_CODENAME`"
51        errorLine1="            store.addResult(BUILD_VERSION_RELEASE, Build.VERSION.RELEASE_OR_CODENAME);"
52        errorLine2="                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
53        <location
54            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GenericDeviceInfo.java"
55            line="87"
56            column="52"/>
57    </issue>
58
59    <issue
60        id="NewApi"
61        message="Call requires API level 34 (current min is 21): `android.location.GnssCapabilities#hasLowPowerMode`"
62        errorLine1='        store.addResult("has_low_power_mode", gnssCapabilities.hasLowPowerMode());'
63        errorLine2="                                                               ~~~~~~~~~~~~~~~">
64        <location
65            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
66            line="86"
67            column="64"/>
68    </issue>
69
70    <issue
71        id="NewApi"
72        message="Call requires API level 34 (current min is 21): `android.location.GnssCapabilities#hasGeofencing`"
73        errorLine1='        store.addResult("has_geofencing", gnssCapabilities.hasGeofencing());'
74        errorLine2="                                                           ~~~~~~~~~~~~~">
75        <location
76            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
77            line="87"
78            column="60"/>
79    </issue>
80
81    <issue
82        id="NewApi"
83        message="Call requires API level 31 (current min is 21): `android.location.GnssCapabilities#hasMeasurements`"
84        errorLine1='        store.addResult("has_measurements", gnssCapabilities.hasMeasurements());'
85        errorLine2="                                                             ~~~~~~~~~~~~~~~">
86        <location
87            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
88            line="88"
89            column="62"/>
90    </issue>
91
92    <issue
93        id="NewApi"
94        message="Call requires API level 34 (current min is 21): `android.location.GnssCapabilities#hasMeasurementCorrections`"
95        errorLine1='                "has_measurement_corrections", gnssCapabilities.hasMeasurementCorrections());'
96        errorLine2="                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~">
97        <location
98            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
99            line="90"
100            column="65"/>
101    </issue>
102
103    <issue
104        id="NewApi"
105        message="Call requires API level 34 (current min is 21): `android.location.GnssCapabilities#hasMeasurementCorrectionsLosSats`"
106        errorLine1="                gnssCapabilities.hasMeasurementCorrectionsLosSats());"
107        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
108        <location
109            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
110            line="93"
111            column="34"/>
112    </issue>
113
114    <issue
115        id="NewApi"
116        message="Call requires API level 34 (current min is 21): `android.location.GnssCapabilities#hasMeasurementCorrectionsExcessPathLength`"
117        errorLine1="                gnssCapabilities.hasMeasurementCorrectionsExcessPathLength());"
118        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
119        <location
120            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
121            line="96"
122            column="34"/>
123    </issue>
124
125    <issue
126        id="NewApi"
127        message="Call requires API level 30 (current min is 21): `android.location.GnssCapabilities#hasSatelliteBlacklist`"
128        errorLine1='            store.addResult("has_satellite_blocklist", gnssCapabilities.hasSatelliteBlacklist());'
129        errorLine2="                                                                        ~~~~~~~~~~~~~~~~~~~~~">
130        <location
131            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
132            line="99"
133            column="73"/>
134    </issue>
135
136    <issue
137        id="NewApi"
138        message="Call requires API level 30 (current min is 21): `android.location.GnssCapabilities#hasNavMessages`"
139        errorLine1='            store.addResult("has_navigation_messages", gnssCapabilities.hasNavMessages());'
140        errorLine2="                                                                        ~~~~~~~~~~~~~~">
141        <location
142            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
143            line="100"
144            column="73"/>
145    </issue>
146
147    <issue
148        id="NewApi"
149        message="Call requires API level 30 (current min is 21): `android.location.GnssCapabilities#hasMeasurementCorrectionsReflectingPane`"
150        errorLine1="                    gnssCapabilities.hasMeasurementCorrectionsReflectingPane());"
151        errorLine2="                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
152        <location
153            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
154            line="103"
155            column="38"/>
156    </issue>
157
158    <issue
159        id="NewApi"
160        message="Call requires API level 34 (current min is 31): `android.location.GnssCapabilities#hasSatelliteBlocklist`"
161        errorLine1='            store.addResult("has_satellite_blocklist", gnssCapabilities.hasSatelliteBlocklist());'
162        errorLine2="                                                                        ~~~~~~~~~~~~~~~~~~~~~">
163        <location
164            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
165            line="105"
166            column="73"/>
167    </issue>
168
169    <issue
170        id="NewApi"
171        message="Call requires API level 34 (current min is 31): `android.location.GnssCapabilities#hasMeasurementCorrectionsReflectingPlane`"
172        errorLine1="                    gnssCapabilities.hasMeasurementCorrectionsReflectingPlane());"
173        errorLine2="                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
174        <location
175            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
176            line="109"
177            column="38"/>
178    </issue>
179
180    <issue
181        id="NewApi"
182        message="Call requires API level 34 (current min is 31): `android.location.GnssCapabilities#hasSatellitePvt`"
183        errorLine1='            store.addResult("has_satellite_pvt", gnssCapabilities.hasSatellitePvt());'
184        errorLine2="                                                                  ~~~~~~~~~~~~~~~">
185        <location
186            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
187            line="118"
188            column="67"/>
189    </issue>
190
191    <issue
192        id="NewApi"
193        message="Call requires API level 34 (current min is 31): `android.location.GnssCapabilities#hasMeasurementCorrelationVectors`"
194        errorLine1="                    gnssCapabilities.hasMeasurementCorrelationVectors());"
195        errorLine2="                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
196        <location
197            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
198            line="121"
199            column="38"/>
200    </issue>
201
202    <issue
203        id="NewApi"
204        message="Call requires API level 34 (current min is 31): `android.location.GnssCapabilities#hasMeasurementCorrectionsForDriving`"
205        errorLine1="                    gnssCapabilities.hasMeasurementCorrectionsForDriving());"
206        errorLine2="                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
207        <location
208            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
209            line="124"
210            column="38"/>
211    </issue>
212
213    <issue
214        id="NewApi"
215        message="Call requires API level 24 (current min is 21): `android.location.LocationManager#registerGnssMeasurementsCallback`"
216        errorLine1="        locationManager.registerGnssMeasurementsCallback(mMeasurementListener);"
217        errorLine2="                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
218        <location
219            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
220            line="139"
221            column="25"/>
222    </issue>
223
224    <issue
225        id="NewApi"
226        message="Call requires API level 24 (current min is 21): `android.location.GnssMeasurementsEvent#getMeasurements`"
227        errorLine1="            for (GnssMeasurement measurement : event.getMeasurements()) {"
228        errorLine2="                                                     ~~~~~~~~~~~~~~~">
229        <location
230            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
231            line="143"
232            column="54"/>
233    </issue>
234
235    <issue
236        id="NewApi"
237        message="Call requires API level 24 (current min is 21): `android.location.GnssMeasurement#getAccumulatedDeltaRangeState`"
238        errorLine1="                if ((measurement.getAccumulatedDeltaRangeState() &amp; ADR_STATE_VALID)"
239        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
240        <location
241            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
242            line="144"
243            column="34"/>
244    </issue>
245
246    <issue
247        id="NewApi"
248        message="Call requires API level 24 (current min is 21): `android.location.LocationManager#unregisterGnssMeasurementsCallback`"
249        errorLine1="        locationManager.unregisterGnssMeasurementsCallback(mMeasurementListener);"
250        errorLine2="                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
251        <location
252            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
253            line="152"
254            column="25"/>
255    </issue>
256
257    <issue
258        id="NewApi"
259        message="Class requires API level 24 (current min is 21): `android.location.GnssMeasurementsEvent.Callback`"
260        errorLine1="    private class TestGnssMeasurementListener extends GnssMeasurementsEvent.Callback {"
261        errorLine2="                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
262        <location
263            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
264            line="156"
265            column="55"/>
266    </issue>
267
268    <issue
269        id="NewApi"
270        message="Call requires API level 24 (current min is 21): `android.location.GnssMeasurementsEvent#getMeasurements`"
271        errorLine1="            if (event.getMeasurements().size() &gt; 0) {"
272        errorLine2="                      ~~~~~~~~~~~~~~~">
273        <location
274            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/GnssDeviceInfo.java"
275            line="175"
276            column="23"/>
277    </issue>
278
279    <issue
280        id="NewApi"
281        message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
282        errorLine1="                getContext().getSystemService(Vibrator.class));"
283        errorLine2="                             ~~~~~~~~~~~~~~~~">
284        <location
285            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/HapticsDeviceInfo.java"
286            line="46"
287            column="30"/>
288    </issue>
289
290    <issue
291        id="NewApi"
292        message="Call requires API level 34 (current min is 33): `android.os.Vibrator#getQFactor`"
293        errorLine1='            store.addResult("q_factor", vibrator.getQFactor());'
294        errorLine2="                                                 ~~~~~~~~~~">
295        <location
296            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/HapticsDeviceInfo.java"
297            line="98"
298            column="50"/>
299    </issue>
300
301    <issue
302        id="NewApi"
303        message="Call requires API level 34 (current min is 33): `android.os.Vibrator#getResonantFrequency`"
304        errorLine1='            store.addResult("resonant_frequency", vibrator.getResonantFrequency());'
305        errorLine2="                                                           ~~~~~~~~~~~~~~~~~~~~">
306        <location
307            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/HapticsDeviceInfo.java"
308            line="99"
309            column="60"/>
310    </issue>
311
312    <issue
313        id="NewApi"
314        message="Call requires API level 30 (current min is 21): `android.os.Vibrator#areAllEffectsSupported`"
315        errorLine1="                vibrator.areAllEffectsSupported(VibrationEffect.EFFECT_CLICK)"
316        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~">
317        <location
318            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/HapticsDeviceInfo.java"
319            line="118"
320            column="26"/>
321    </issue>
322
323    <issue
324        id="NewApi"
325        message="Call requires API level 30 (current min is 21): `android.os.Vibrator#areEffectsSupported`"
326        errorLine1="        int[] results = vibrator.areEffectsSupported(effectsToCheck);"
327        errorLine2="                                 ~~~~~~~~~~~~~~~~~~~">
328        <location
329            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/HapticsDeviceInfo.java"
330            line="124"
331            column="34"/>
332    </issue>
333
334    <issue
335        id="NewApi"
336        message="Call requires API level 30 (current min is 21): `android.os.Vibrator#arePrimitivesSupported`"
337        errorLine1="        boolean[] results = vibrator.arePrimitivesSupported(primitivesToCheck);"
338        errorLine2="                                     ~~~~~~~~~~~~~~~~~~~~~~">
339        <location
340            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/HapticsDeviceInfo.java"
341            line="142"
342            column="38"/>
343    </issue>
344
345    <issue
346        id="NewApi"
347        message="Call requires API level 29 (current min is 21): `android.content.res.Resources#getFloat`"
348        errorLine1="            store.addResult(resultName, res.getFloat(resId));"
349        errorLine2="                                            ~~~~~~~~">
350        <location
351            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/HapticsDeviceInfo.java"
352            line="197"
353            column="45"/>
354    </issue>
355
356    <issue
357        id="NewApi"
358        message="Cast from `KeyGenParameterSpec` to `AlgorithmParameterSpec` requires API level 23 (current min is 21)"
359        errorLine1="        keyPairGenerator.initialize(spec);"
360        errorLine2="                                    ~~~~">
361        <location
362            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
363            line="85"
364            column="37"/>
365    </issue>
366
367    <issue
368        id="NewApi"
369        message="Call requires API level 23 (current min is 21): `new android.security.keystore.KeyGenParameterSpec.Builder`"
370        errorLine1="                new KeyGenParameterSpec.Builder(testAlias, PURPOSE_SIGN | PURPOSE_VERIFY)"
371        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
372        <location
373            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
374            line="122"
375            column="17"/>
376    </issue>
377
378    <issue
379        id="NewApi"
380        message="Call requires API level 23 (current min is 21): `android.security.keystore.KeyGenParameterSpec.Builder#setAlgorithmParameterSpec`"
381        errorLine1='                        .setAlgorithmParameterSpec(new ECGenParameterSpec("secp256r1"))'
382        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~">
383        <location
384            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
385            line="123"
386            column="26"/>
387    </issue>
388
389    <issue
390        id="NewApi"
391        message="Call requires API level 23 (current min is 21): `android.security.keystore.KeyGenParameterSpec.Builder#setDigests`"
392        errorLine1="                        .setDigests(DIGEST_SHA256)"
393        errorLine2="                         ~~~~~~~~~~">
394        <location
395            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
396            line="124"
397            column="26"/>
398    </issue>
399
400    <issue
401        id="NewApi"
402        message="Call requires API level 31 (current min is 21): `android.security.keystore.KeyGenParameterSpec.Builder#setDevicePropertiesAttestationIncluded`"
403        errorLine1="                        .setDevicePropertiesAttestationIncluded("
404        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
405        <location
406            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
407            line="125"
408            column="26"/>
409    </issue>
410
411    <issue
412        id="NewApi"
413        message="Call requires API level 24 (current min is 21): `android.security.keystore.KeyGenParameterSpec.Builder#setAttestationChallenge`"
414        errorLine1="                        .setAttestationChallenge(CHALLENGE)"
415        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~">
416        <location
417            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
418            line="129"
419            column="26"/>
420    </issue>
421
422    <issue
423        id="NewApi"
424        message="Call requires API level 28 (current min is 21): `android.security.keystore.KeyGenParameterSpec.Builder#setIsStrongBoxBacked`"
425        errorLine1="                        .setIsStrongBoxBacked(isStrongBoxBacked)"
426        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~">
427        <location
428            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
429            line="130"
430            column="26"/>
431    </issue>
432
433    <issue
434        id="NewApi"
435        message="Call requires API level 23 (current min is 21): `android.security.keystore.KeyGenParameterSpec.Builder#build`"
436        errorLine1="                        .build();"
437        errorLine2="                         ~~~~~">
438        <location
439            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
440            line="131"
441            column="26"/>
442    </issue>
443
444    <issue
445        id="NewApi"
446        message="Call requires API level 26 (current min is 21): `java.util.Base64#getEncoder`"
447        errorLine1="                    Base64.getEncoder().encodeToString(rootOfTrust.get().verifiedBootKey));"
448        errorLine2="                           ~~~~~~~~~~">
449        <location
450            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
451            line="207"
452            column="28"/>
453    </issue>
454
455    <issue
456        id="NewApi"
457        message="Call requires API level 26 (current min is 21): `java.util.Base64.Encoder#encodeToString`"
458        errorLine1="                    Base64.getEncoder().encodeToString(rootOfTrust.get().verifiedBootKey));"
459        errorLine2="                                        ~~~~~~~~~~~~~~">
460        <location
461            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
462            line="207"
463            column="41"/>
464    </issue>
465
466    <issue
467        id="NewApi"
468        message="Call requires API level 26 (current min is 21): `java.util.Base64#getEncoder`"
469        errorLine1="                    Base64.getEncoder().encodeToString(rootOfTrust.get().verifiedBootHash));"
470        errorLine2="                           ~~~~~~~~~~">
471        <location
472            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
473            line="212"
474            column="28"/>
475    </issue>
476
477    <issue
478        id="NewApi"
479        message="Call requires API level 26 (current min is 21): `java.util.Base64.Encoder#encodeToString`"
480        errorLine1="                    Base64.getEncoder().encodeToString(rootOfTrust.get().verifiedBootHash));"
481        errorLine2="                                        ~~~~~~~~~~~~~~">
482        <location
483            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/KeystoreAttestationDeviceInfo.java"
484            line="212"
485            column="41"/>
486    </issue>
487
488    <issue
489        id="NewApi"
490        message="Call requires API level 24 (current min is 21): `android.icu.util.ULocale#getAvailableLocales`"
491        errorLine1="        List&lt;String&gt; icuLocales = Arrays.stream(ULocale.getAvailableLocales())"
492        errorLine2="                                                        ~~~~~~~~~~~~~~~~~~~">
493        <location
494            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
495            line="62"
496            column="57"/>
497    </issue>
498
499    <issue
500        id="NewApi"
501        message="Call requires API level 24 (current min is 21): `android.icu.util.ULocale#toLanguageTag`"
502        errorLine1="            .map((uLocale -&gt; uLocale.toLanguageTag()))"
503        errorLine2="                                     ~~~~~~~~~~~~~">
504        <location
505            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
506            line="63"
507            column="38"/>
508    </issue>
509
510    <issue
511        id="NewApi"
512        message="Call requires API level 24 (current min is 21): `android.icu.util.ULocale#toLanguageTag`"
513        errorLine1="            icuLocales.add(ULocale.US.toLanguageTag());"
514        errorLine2="                                      ~~~~~~~~~~~~~">
515        <location
516            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
517            line="67"
518            column="39"/>
519    </issue>
520
521    <issue
522        id="NewApi"
523        message="Field requires API level 24 (current min is 21): `android.icu.util.ULocale#US`"
524        errorLine1="            icuLocales.add(ULocale.US.toLanguageTag());"
525        errorLine2="                           ~~~~~~~~~~">
526        <location
527            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
528            line="67"
529            column="28"/>
530    </issue>
531
532    <issue
533        id="NewApi"
534        message="Call requires API level 26 (current min is 21): `java.nio.file.Files#walk`"
535        errorLine1="        try (Stream&lt;Path&gt; stream = Files.walk(Paths.get(HYPHEN_BINARY_LOCATION))) {"
536        errorLine2="                                         ~~~~">
537        <location
538            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
539            line="74"
540            column="42"/>
541    </issue>
542
543    <issue
544        id="NewApi"
545        message="Call requires API level 26 (current min is 21): `java.nio.file.Paths#get`"
546        errorLine1="        try (Stream&lt;Path&gt; stream = Files.walk(Paths.get(HYPHEN_BINARY_LOCATION))) {"
547        errorLine2="                                                    ~~~">
548        <location
549            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
550            line="74"
551            column="53"/>
552    </issue>
553
554    <issue
555        id="NewApi"
556        message="Call requires API level 26 (current min is 21): `java.nio.file.Files#isDirectory`"
557        errorLine1="                    .filter(file -&gt; !Files.isDirectory(file))"
558        errorLine2="                                           ~~~~~~~~~~~">
559        <location
560            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
561            line="76"
562            column="44"/>
563    </issue>
564
565    <issue
566        id="NewApi"
567        message="Method reference requires API level 26 (current min is 21): `Path::getFileName`"
568        errorLine1="                    .map(Path::getFileName)"
569        errorLine2="                         ~~~~~~~~~~~~~~~~~">
570        <location
571            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
572            line="77"
573            column="26"/>
574    </issue>
575
576    <issue
577        id="NewApi"
578        message="Method reference requires API level 26 (current min is 21): `Path::toString`"
579        errorLine1="                    .map(Path::toString)"
580        errorLine2="                         ~~~~~~~~~~~~~~">
581        <location
582            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
583            line="78"
584            column="26"/>
585    </issue>
586
587    <issue
588        id="NewApi"
589        message="Call requires API level 24 (current min is 21): `java.util.regex.Pattern#asPredicate`"
590        errorLine1="                    .filter(HYPHEN_BINARY_PATTERN.asPredicate())"
591        errorLine2="                                                  ~~~~~~~~~~~">
592        <location
593            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
594            line="79"
595            column="51"/>
596    </issue>
597
598    <issue
599        id="NewApi"
600        message="Call requires API level 24 (current min is 21): `android.icu.util.VersionInfo#getMajor`"
601        errorLine1="        int icuVersion = VersionInfo.ICU_VERSION.getMajor();"
602        errorLine2="                                                 ~~~~~~~~">
603        <location
604            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
605            line="100"
606            column="50"/>
607    </issue>
608
609    <issue
610        id="NewApi"
611        message="Field requires API level 24 (current min is 21): `android.icu.util.VersionInfo#ICU_VERSION`"
612        errorLine1="        int icuVersion = VersionInfo.ICU_VERSION.getMajor();"
613        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~">
614        <location
615            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/LocaleDeviceInfo.java"
616            line="100"
617            column="26"/>
618    </issue>
619
620    <issue
621        id="NewApi"
622        message="Class requires API level 29 (current min is 24): `android.app.role.RoleManager`"
623        errorLine1="        final RoleManager roleManager = getContext().getSystemService(RoleManager.class);"
624        errorLine2="                                                                      ~~~~~~~~~~~">
625        <location
626            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/PackageDeviceInfo.java"
627            line="387"
628            column="71"/>
629    </issue>
630
631    <issue
632        id="NewApi"
633        message="Call requires API level 29 (current min is 24): `android.app.role.RoleManager#getRoleHolders`"
634        errorLine1="                () -&gt; roleManager.getRoleHolders(roleName),"
635        errorLine2="                                  ~~~~~~~~~~~~~~">
636        <location
637            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/PackageDeviceInfo.java"
638            line="403"
639            column="35"/>
640    </issue>
641
642    <issue
643        id="NewApi"
644        message="Call requires API level 23 (current min is 21): `android.view.Display#getMode`"
645        errorLine1="        Display.Mode activeMode = display.getMode();"
646        errorLine2="                                          ~~~~~~~">
647        <location
648            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
649            line="124"
650            column="43"/>
651    </issue>
652
653    <issue
654        id="NewApi"
655        message="Call requires API level 23 (current min is 21): `android.view.Display#getSupportedModes`"
656        errorLine1="        Display.Mode[] supportedModes = display.getSupportedModes();"
657        errorLine2="                                                ~~~~~~~~~~~~~~~~~">
658        <location
659            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
660            line="128"
661            column="49"/>
662    </issue>
663
664    <issue
665        id="NewApi"
666        message="Method reference requires API level 23 (current min is 21): `Display.Mode::getPhysicalWidth`"
667        errorLine1="                Display.Mode::getPhysicalWidth).thenComparingInt("
668        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
669        <location
670            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
671            line="130"
672            column="17"/>
673    </issue>
674
675    <issue
676        id="NewApi"
677        message="Method reference requires API level 23 (current min is 21): `Display.Mode::getPhysicalHeight`"
678        errorLine1="                Display.Mode::getPhysicalHeight).thenComparingDouble("
679        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
680        <location
681            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
682            line="131"
683            column="17"/>
684    </issue>
685
686    <issue
687        id="NewApi"
688        message="Method reference requires API level 23 (current min is 21): `Display.Mode::getRefreshRate`"
689        errorLine1="                Display.Mode::getRefreshRate);"
690        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
691        <location
692            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
693            line="132"
694            column="17"/>
695    </issue>
696
697    <issue
698        id="NewApi"
699        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getPhysicalWidth`"
700        errorLine1='        store.addResult(propertyPrefix + "physical_width_pixels", mode.getPhysicalWidth());'
701        errorLine2="                                                                       ~~~~~~~~~~~~~~~~">
702        <location
703            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
704            line="141"
705            column="72"/>
706    </issue>
707
708    <issue
709        id="NewApi"
710        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getPhysicalHeight`"
711        errorLine1='        store.addResult(propertyPrefix + "physical_height_pixels", mode.getPhysicalHeight());'
712        errorLine2="                                                                        ~~~~~~~~~~~~~~~~~">
713        <location
714            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
715            line="142"
716            column="73"/>
717    </issue>
718
719    <issue
720        id="NewApi"
721        message="Call requires API level 23 (current min is 21): `android.view.Display.Mode#getRefreshRate`"
722        errorLine1='        store.addResult(propertyPrefix + "refresh_rate", mode.getRefreshRate());'
723        errorLine2="                                                              ~~~~~~~~~~~~~~">
724        <location
725            file="cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ScreenDeviceInfo.java"
726            line="143"
727            column="63"/>
728    </issue>
729
730</issues>