blob: 8d29912842a4f4310ca727682fd857e42682ba8a [file] [log] [blame]
Pedro Loureirobb1f1242021-02-25 15:32:14 +00001<?xml version="1.0" encoding="UTF-8"?>
2<issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0">
3
4 <issue
5 id="NewApi"
6 message="Call requires API level R (current min is 25): `android.view.WindowManager#getCurrentWindowMetrics`"
7 errorLine1=" .getCurrentWindowMetrics()"
8 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
9 <location
10 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
11 line="229"
12 column="18"/>
13 </issue>
14
15 <issue
16 id="NewApi"
17 message="Call requires API level R (current min is 25): `android.view.WindowMetrics#getWindowInsets`"
18 errorLine1=" .getWindowInsets()"
19 errorLine2=" ~~~~~~~~~~~~~~~">
20 <location
21 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
22 line="230"
23 column="18"/>
24 </issue>
25
26 <issue
27 id="NewApi"
28 message="Call requires API level R (current min is 25): `android.view.WindowInsets#getInsets`"
29 errorLine1=" .getInsets(WindowInsets.Type.systemBars());"
30 errorLine2=" ~~~~~~~~~">
31 <location
32 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
33 line="231"
34 column="18"/>
35 </issue>
36
37 <issue
38 id="NewApi"
39 message="Call requires API level R (current min is 25): `android.view.WindowInsets.Type#systemBars`"
40 errorLine1=" .getInsets(WindowInsets.Type.systemBars());"
41 errorLine2=" ~~~~~~~~~~">
42 <location
43 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
44 line="231"
45 column="46"/>
46 </issue>
47
48 <issue
49 id="NewApi"
50 message="Call requires API level R (current min is 25): `android.view.WindowManager#getCurrentWindowMetrics`"
51 errorLine1=" Rect displayBounds = getWindowManager().getCurrentWindowMetrics().getBounds();"
52 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
53 <location
54 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
55 line="233"
56 column="49"/>
57 </issue>
58
59 <issue
60 id="NewApi"
61 message="Call requires API level R (current min is 25): `android.view.WindowMetrics#getBounds`"
62 errorLine1=" Rect displayBounds = getWindowManager().getCurrentWindowMetrics().getBounds();"
63 errorLine2=" ~~~~~~~~~">
64 <location
65 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
66 line="233"
67 column="75"/>
68 </issue>
69
70 <issue
71 id="NewApi"
72 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#left`"
73 errorLine1=" int leftX = systemBarInsets.left;"
74 errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
75 <location
76 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
77 line="235"
78 column="21"/>
79 </issue>
80
81 <issue
82 id="NewApi"
83 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#right`"
84 errorLine1=" int rightX = displayBounds.width() - systemBarInsets.right;"
85 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
86 <location
87 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
88 line="236"
89 column="46"/>
90 </issue>
91
92 <issue
93 id="NewApi"
94 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#top`"
95 errorLine1=" int topY = systemBarInsets.top;"
96 errorLine2=" ~~~~~~~~~~~~~~~~~~~">
97 <location
98 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
99 line="237"
100 column="20"/>
101 </issue>
102
103 <issue
104 id="NewApi"
105 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#bottom`"
106 errorLine1=" int bottomY = displayBounds.height() - systemBarInsets.bottom;"
107 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
108 <location
109 file="packages/services/Car/service/src/com/android/car/pm/ActivityBlockingActivity.java"
110 line="238"
111 column="48"/>
112 </issue>
113
114 <issue
115 id="NewApi"
116 message="Call requires API level R (current min is 25): `android.content.Context#bindServiceAsUser`"
117 errorLine1=" mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT,"
118 errorLine2=" ~~~~~~~~~~~~~~~~~">
119 <location
120 file="packages/services/Car/service/src/com/android/car/pm/AppBlockingPolicyProxy.java"
121 line="83"
122 column="18"/>
123 </issue>
124
125 <issue
126 id="NewApi"
127 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
128 errorLine1=" if (mFocusOwners.contains(appType)) {"
129 errorLine2=" ~~~~~~~~">
130 <location
131 file="packages/services/Car/service/src/com/android/car/AppFocusService.java"
132 line="211"
133 column="30"/>
134 </issue>
135
136 <issue
137 id="NewApi"
138 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
139 errorLine1=" if (mFocusOwners.contains(appType)) {"
140 errorLine2=" ~~~~~~~~">
141 <location
142 file="packages/services/Car/service/src/com/android/car/AppFocusService.java"
143 line="281"
144 column="30"/>
145 </issue>
146
147 <issue
148 id="NewApi"
149 message="Call requires API level 26 (current min is 25): `java.lang.String#join`"
150 errorLine1=" Slog.d(TAG, String.join(&quot; &quot;, msgParts));"
151 errorLine2=" ~~~~">
152 <location
153 file="packages/services/Car/service/src/com/android/car/BluetoothDeviceConnectionPolicy.java"
154 line="416"
155 column="32"/>
156 </issue>
157
158 <issue
159 id="NewApi"
160 message="Call requires API level 28 (current min is 25): `android.os.Handler#postDelayed`"
161 errorLine1=" mHandler.postDelayed(() -> {"
162 errorLine2=" ~~~~~~~~~~~">
163 <location
164 file="packages/services/Car/service/src/com/android/car/BluetoothProfileDeviceManager.java"
165 line="662"
166 column="22"/>
167 </issue>
168
169 <issue
170 id="NewApi"
171 message="Call requires API level 28 (current min is 25): `android.os.Handler#postDelayed`"
172 errorLine1=" mHandler.postDelayed("
173 errorLine2=" ~~~~~~~~~~~">
174 <location
175 file="packages/services/Car/service/src/com/android/car/BluetoothProfileInhibitManager.java"
176 line="521"
177 column="26"/>
178 </issue>
179
180 <issue
181 id="NewApi"
182 message="Call requires API level 26 (current min is 25): `new android.app.Notification.Builder`"
183 errorLine1=" new Notification.Builder(mContext, NotificationChannel.DEFAULT_CHANNEL_ID)"
184 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
185 <location
186 file="packages/services/Car/service/src/com/android/car/CanBusErrorNotifier.java"
187 line="91"
188 column="17"/>
189 </issue>
190
191 <issue
192 id="NewApi"
193 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
194 errorLine1=" return mAudioDeviceInfo.getAddress();"
195 errorLine2=" ~~~~~~~~~~">
196 <location
197 file="packages/services/Car/service/src/com/android/car/audio/CarAudioDeviceInfo.java"
198 line="82"
199 column="33"/>
200 </issue>
201
202 <issue
203 id="NewApi"
204 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
205 errorLine1=" return &quot;address: &quot; + mAudioDeviceInfo.getAddress()"
206 errorLine2=" ~~~~~~~~~~">
207 <location
208 file="packages/services/Car/service/src/com/android/car/audio/CarAudioDeviceInfo.java"
209 line="225"
210 column="47"/>
211 </issue>
212
213 <issue
214 id="NewApi"
215 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
216 errorLine1=" writer.printf(&quot;CarAudioDeviceInfo Device(%s)\n&quot;, mAudioDeviceInfo.getAddress());"
217 errorLine2=" ~~~~~~~~~~">
218 <location
219 file="packages/services/Car/service/src/com/android/car/audio/CarAudioDeviceInfo.java"
220 line="235"
221 column="75"/>
222 </issue>
223
224 <issue
225 id="NewApi"
226 message="Class requires API level 26 (current min is 25): `android.media.AudioManager.AudioPlaybackCallback`"
227 errorLine1="final class CarAudioPlaybackCallback extends AudioManager.AudioPlaybackCallback {"
228 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
229 <location
230 file="packages/services/Car/service/src/com/android/car/audio/CarAudioPlaybackCallback.java"
231 line="37"
232 column="46"/>
233 </issue>
234
235 <issue
236 id="NewApi"
237 message="Call requires API level 31 (current min is 25): `android.media.AudioPlaybackConfiguration#getAudioDeviceInfo`"
238 errorLine1=" .isAudioDeviceInfoValidForZone(configuration.getAudioDeviceInfo())) {"
239 errorLine2=" ~~~~~~~~~~~~~~~~~~">
240 <location
241 file="packages/services/Car/service/src/com/android/car/audio/CarAudioPlaybackCallback.java"
242 line="116"
243 column="66"/>
244 </issue>
245
246 <issue
247 id="NewApi"
248 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
249 errorLine1=" configuration.getAudioDeviceInfo().getAddress(), configuration);"
250 errorLine2=" ~~~~~~~~~~">
251 <location
252 file="packages/services/Car/service/src/com/android/car/audio/CarAudioPlaybackCallback.java"
253 line="118"
254 column="60"/>
255 </issue>
256
257 <issue
258 id="NewApi"
259 message="Call requires API level 31 (current min is 25): `android.media.AudioPlaybackConfiguration#getAudioDeviceInfo`"
260 errorLine1=" configuration.getAudioDeviceInfo().getAddress(), configuration);"
261 errorLine2=" ~~~~~~~~~~~~~~~~~~">
262 <location
263 file="packages/services/Car/service/src/com/android/car/audio/CarAudioPlaybackCallback.java"
264 line="118"
265 column="39"/>
266 </issue>
267
268 <issue
269 id="NewApi"
270 message="Call requires API level 28 (current min is 25): `android.media.AudioManager#getStreamMinVolume`"
271 errorLine1=" return mAudioManager.getStreamMinVolume("
272 errorLine2=" ~~~~~~~~~~~~~~~~~~">
273 <location
274 file="packages/services/Car/service/src/com/android/car/audio/CarAudioService.java"
275 line="492"
276 column="38"/>
277 </issue>
278
279 <issue
280 id="NewApi"
281 message="Call requires API level 26 (current min is 25): `android.media.AudioManager#registerAudioPlaybackCallback`"
282 errorLine1=" mAudioManager.registerAudioPlaybackCallback(mCarAudioPlaybackCallback, null);"
283 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
284 <location
285 file="packages/services/Car/service/src/com/android/car/audio/CarAudioService.java"
286 line="652"
287 column="23"/>
288 </issue>
289
290 <issue
291 id="NewApi"
292 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
293 errorLine1=" String address = info.getAddress();"
294 errorLine2=" ~~~~~~~~~~">
295 <location
296 file="packages/services/Car/service/src/com/android/car/audio/CarAudioService.java"
297 line="742"
298 column="47"/>
299 </issue>
300
301 <issue
302 id="NewApi"
303 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
304 errorLine1=" if (sourceAddress.equals(info.getAddress())) {"
305 errorLine2=" ~~~~~~~~~~">
306 <location
307 file="packages/services/Car/service/src/com/android/car/audio/CarAudioService.java"
308 line="779"
309 column="43"/>
310 </issue>
311
312 <issue
313 id="NewApi"
314 message="Call requires API level 26 (current min is 25): `android.media.AudioManager#getActivePlaybackConfigurations`"
315 errorLine1=" .getActivePlaybackConfigurations();"
316 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
317 <location
318 file="packages/services/Car/service/src/com/android/car/audio/CarAudioService.java"
319 line="954"
320 column="18"/>
321 </issue>
322
323 <issue
324 id="NewApi"
325 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
326 errorLine1=" return mCarAudioZones.contains(zoneId);"
327 errorLine2=" ~~~~~~~~">
328 <location
329 file="packages/services/Car/service/src/com/android/car/audio/CarAudioService.java"
330 line="1505"
331 column="35"/>
332 </issue>
333
334 <issue
335 id="NewApi"
336 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
337 errorLine1=" Preconditions.checkArgument(mCarAudioZones.contains(zoneId),"
338 errorLine2=" ~~~~~~~~">
339 <location
340 file="packages/services/Car/service/src/com/android/car/audio/CarAudioService.java"
341 line="1523"
342 column="52"/>
343 </issue>
344
345 <issue
346 id="NewApi"
347 message="Call requires API level 31 (current min is 25): `android.media.AudioPlaybackConfiguration#getAudioDeviceInfo`"
348 errorLine1=" if (isAudioDeviceInfoValidForZone(configuration.getAudioDeviceInfo())) {"
349 errorLine2=" ~~~~~~~~~~~~~~~~~~">
350 <location
351 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZone.java"
352 line="216"
353 column="65"/>
354 </issue>
355
356 <issue
357 id="NewApi"
358 message="Call requires API level 26 (current min is 25): `android.media.AudioPlaybackConfiguration#getAudioAttributes`"
359 errorLine1=" configuration.getAudioAttributes().getSystemUsage()));"
360 errorLine2=" ~~~~~~~~~~~~~~~~~~">
361 <location
362 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZone.java"
363 line="220"
364 column="43"/>
365 </issue>
366
367 <issue
368 id="NewApi"
369 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
370 errorLine1=" &amp;&amp; info.getAddress() != null"
371 errorLine2=" ~~~~~~~~~~">
372 <location
373 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZone.java"
374 line="229"
375 column="25"/>
376 </issue>
377
378 <issue
379 id="NewApi"
380 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
381 errorLine1=" &amp;&amp; !info.getAddress().isEmpty()"
382 errorLine2=" ~~~~~~~~~~">
383 <location
384 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZone.java"
385 line="230"
386 column="26"/>
387 </issue>
388
389 <issue
390 id="NewApi"
391 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
392 errorLine1=" &amp;&amp; containsDeviceAddress(info.getAddress());"
393 errorLine2=" ~~~~~~~~~~">
394 <location
395 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZone.java"
396 line="231"
397 column="47"/>
398 </issue>
399
400 <issue
401 id="NewApi"
402 message="Call requires API level 28 (current min is 25): `android.media.AudioDeviceInfo#getAddress`"
403 errorLine1=" deviceAddressToInputDeviceMap.put(device.getAddress(), device);"
404 errorLine2=" ~~~~~~~~~~">
405 <location
406 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZonesHelper.java"
407 line="185"
408 column="58"/>
409 </issue>
410
411 <issue
412 id="NewApi"
413 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
414 errorLine1=" if (newZone.getId() == PRIMARY_AUDIO_ZONE &amp;&amp; zones.contains(PRIMARY_AUDIO_ZONE)) {"
415 errorLine2=" ~~~~~~~~">
416 <location
417 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZonesHelper.java"
418 line="244"
419 column="60"/>
420 </issue>
421
422 <issue
423 id="NewApi"
424 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
425 errorLine1=" if (!zones.contains(PRIMARY_AUDIO_ZONE)) {"
426 errorLine2=" ~~~~~~~~">
427 <location
428 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZonesHelper.java"
429 line="251"
430 column="20"/>
431 </issue>
432
433 <issue
434 id="NewApi"
435 message="Call requires API level 26 (current min is 25): `java.lang.Integer#parseUnsignedInt`"
436 errorLine1=" return Integer.parseUnsignedInt(integerString);"
437 errorLine2=" ~~~~~~~~~~~~~~~~">
438 <location
439 file="packages/services/Car/service/src/com/android/car/audio/CarAudioZonesHelper.java"
440 line="329"
441 column="28"/>
442 </issue>
443
444 <issue
445 id="NewApi"
446 message="Call requires API level 26 (current min is 25): `android.os.RemoteCallbackList#getRegisteredCallbackItem`"
447 errorLine1=" mDrivingStateClients.getRegisteredCallbackItem(i);"
448 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
449 <location
450 file="packages/services/Car/service/src/com/android/car/CarDrivingStateService.java"
451 line="130"
452 column="46"/>
453 </issue>
454
455 <issue
456 id="NewApi"
457 message="Call requires API level 26 (current min is 25): `java.lang.String#join`"
458 errorLine1=" String.join(&quot;, &quot;, mAddressesToDuck));"
459 errorLine2=" ~~~~">
460 <location
461 file="packages/services/Car/service/src/com/android/car/audio/CarDuckingInfo.java"
462 line="67"
463 column="24"/>
464 </issue>
465
466 <issue
467 id="NewApi"
468 message="Call requires API level 26 (current min is 25): `java.lang.String#join`"
469 errorLine1=" String.join(&quot;, &quot;, mAddressesToUnduck));"
470 errorLine2=" ~~~~">
471 <location
472 file="packages/services/Car/service/src/com/android/car/audio/CarDuckingInfo.java"
473 line="69"
474 column="24"/>
475 </issue>
476
477 <issue
478 id="NewApi"
479 message="Call requires API level R (current min is 25): `android.content.Context#bindServiceAsUser`"
480 errorLine1=" return mContext.bindServiceAsUser(intent, mServiceConnection,"
481 errorLine2=" ~~~~~~~~~~~~~~~~~">
482 <location
483 file="packages/services/Car/service/src/com/android/car/CarExperimentalFeatureServiceController.java"
484 line="167"
485 column="29"/>
486 </issue>
487
488 <issue
489 id="NewApi"
490 message="Call requires API level 26 (current min is 25): `android.telecom.TelecomManager#acceptRingingCall`"
491 errorLine1=" mTelecomManager.acceptRingingCall();"
492 errorLine2=" ~~~~~~~~~~~~~~~~~">
493 <location
494 file="packages/services/Car/service/src/com/android/car/CarInputService.java"
495 line="611"
496 column="29"/>
497 </issue>
498
499 <issue
500 id="NewApi"
501 message="Call requires API level 28 (current min is 25): `android.telecom.TelecomManager#endCall`"
502 errorLine1=" mTelecomManager.endCall();"
503 errorLine2=" ~~~~~~~">
504 <location
505 file="packages/services/Car/service/src/com/android/car/CarInputService.java"
506 line="620"
507 column="29"/>
508 </issue>
509
510 <issue
511 id="NewApi"
512 message="Call requires API level 31 (current min is 25): `android.os.UserManager#isHeadlessSystemUserMode`"
513 errorLine1=" if (UserManager.isHeadlessSystemUserMode()"
514 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
515 <location
516 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
517 line="124"
518 column="37"/>
519 </issue>
520
521 <issue
522 id="NewApi"
523 message="Call requires API level 31 (current min is 25): `android.os.UserManager#isHeadlessSystemUserMode`"
524 errorLine1=" return UserManager.isHeadlessSystemUserMode()"
525 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
526 <location
527 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
528 line="290"
529 column="28"/>
530 </issue>
531
532 <issue
533 id="NewApi"
534 message="Call requires API level 26 (current min is 25): `android.location.Location#hasVerticalAccuracy`"
535 errorLine1=" if (location.hasVerticalAccuracy()) {"
536 errorLine2=" ~~~~~~~~~~~~~~~~~~~">
537 <location
538 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
539 line="336"
540 column="34"/>
541 </issue>
542
543 <issue
544 id="NewApi"
545 message="Call requires API level 26 (current min is 25): `android.location.Location#getVerticalAccuracyMeters`"
546 errorLine1=" location.getVerticalAccuracyMeters());"
547 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
548 <location
549 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
550 line="338"
551 column="42"/>
552 </issue>
553
554 <issue
555 id="NewApi"
556 message="Call requires API level 26 (current min is 25): `android.location.Location#hasSpeedAccuracy`"
557 errorLine1=" if (location.hasSpeedAccuracy()) {"
558 errorLine2=" ~~~~~~~~~~~~~~~~">
559 <location
560 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
561 line="340"
562 column="34"/>
563 </issue>
564
565 <issue
566 id="NewApi"
567 message="Call requires API level 26 (current min is 25): `android.location.Location#getSpeedAccuracyMetersPerSecond`"
568 errorLine1=" location.getSpeedAccuracyMetersPerSecond());"
569 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
570 <location
571 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
572 line="342"
573 column="42"/>
574 </issue>
575
576 <issue
577 id="NewApi"
578 message="Call requires API level 26 (current min is 25): `android.location.Location#hasBearingAccuracy`"
579 errorLine1=" if (location.hasBearingAccuracy()) {"
580 errorLine2=" ~~~~~~~~~~~~~~~~~~">
581 <location
582 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
583 line="344"
584 column="34"/>
585 </issue>
586
587 <issue
588 id="NewApi"
589 message="Call requires API level 26 (current min is 25): `android.location.Location#getBearingAccuracyDegrees`"
590 errorLine1=" location.getBearingAccuracyDegrees());"
591 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
592 <location
593 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
594 line="346"
595 column="42"/>
596 </issue>
597
598 <issue
599 id="NewApi"
600 message="Call requires API level 26 (current min is 25): `android.location.Location#setVerticalAccuracyMeters`"
601 errorLine1=" location.setVerticalAccuracyMeters((float) reader.nextDouble());"
602 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
603 <location
604 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
605 line="417"
606 column="34"/>
607 </issue>
608
609 <issue
610 id="NewApi"
611 message="Call requires API level 26 (current min is 25): `android.location.Location#setSpeedAccuracyMetersPerSecond`"
612 errorLine1=" location.setSpeedAccuracyMetersPerSecond((float) reader.nextDouble());"
613 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
614 <location
615 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
616 line="420"
617 column="34"/>
618 </issue>
619
620 <issue
621 id="NewApi"
622 message="Call requires API level 26 (current min is 25): `android.location.Location#setBearingAccuracyDegrees`"
623 errorLine1=" location.setBearingAccuracyDegrees((float) reader.nextDouble());"
624 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
625 <location
626 file="packages/services/Car/service/src/com/android/car/CarLocationService.java"
627 line="423"
628 column="34"/>
629 </issue>
630
631 <issue
632 id="NewApi"
633 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
634 errorLine1=" if (!mOccupantsConfig.contains(occupantZoneId)) {"
635 errorLine2=" ~~~~~~~~">
636 <location
637 file="packages/services/Car/service/src/com/android/car/CarOccupantZoneService.java"
638 line="520"
639 column="35"/>
640 </issue>
641
642 <issue
643 id="NewApi"
644 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
645 errorLine1=" if (!mOccupantsConfig.contains(occupantZoneId)) {"
646 errorLine2=" ~~~~~~~~">
647 <location
648 file="packages/services/Car/service/src/com/android/car/CarOccupantZoneService.java"
649 line="638"
650 column="35"/>
651 </issue>
652
653 <issue
654 id="NewApi"
655 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
656 errorLine1=" if (mOccupantsConfig.contains(zoneId)) {"
657 errorLine2=" ~~~~~~~~">
658 <location
659 file="packages/services/Car/service/src/com/android/car/CarOccupantZoneService.java"
660 line="944"
661 column="34"/>
662 </issue>
663
664 <issue
665 id="NewApi"
666 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
667 errorLine1=" if (!mOccupantsConfig.contains(zoneId)) {"
668 errorLine2=" ~~~~~~~~">
669 <location
670 file="packages/services/Car/service/src/com/android/car/CarOccupantZoneService.java"
671 line="1026"
672 column="35"/>
673 </issue>
674
675 <issue
676 id="NewApi"
677 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
678 errorLine1=" if (mDisplayConfigs.contains(port)) {"
679 errorLine2=" ~~~~~~~~">
680 <location
681 file="packages/services/Car/service/src/com/android/car/CarOccupantZoneService.java"
682 line="1030"
683 column="33"/>
684 </issue>
685
686 <issue
687 id="NewApi"
688 message="Call requires API level 31 (current min is 25): `com.google.android.collect.Sets#newArraySet`"
689 errorLine1=" private final Set&lt;String> mPackageManagerActions = Sets.newArraySet("
690 errorLine2=" ~~~~~~~~~~~">
691 <location
692 file="packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java"
693 line="157"
694 column="61"/>
695 </issue>
696
697 <issue
698 id="NewApi"
699 message="Call requires API level 26 (current min is 25): `java.lang.String#join`"
700 errorLine1=" writer.println(&quot;Display Restrictions:\n&quot; + String.join(&quot;\n&quot;, restrictions));"
701 errorLine2=" ~~~~">
702 <location
703 file="packages/services/Car/service/src/com/android/car/pm/CarPackageManagerService.java"
704 line="1015"
705 column="63"/>
706 </issue>
707
708 <issue
709 id="NewApi"
710 message="Call requires API level R (current min is 25): `android.content.Context#bindServiceAsUser`"
711 errorLine1=" mContext.bindServiceAsUser(serviceIntent, mConnection, Context.BIND_AUTO_CREATE,"
712 errorLine2=" ~~~~~~~~~~~~~~~~~">
713 <location
714 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
715 line="226"
716 column="18"/>
717 </issue>
718
719 <issue
720 id="NewApi"
721 message="Call requires API level 26 (current min is 25): `android.app.ActivityOptions#setLaunchDisplayId`"
722 errorLine1=" activityOptions.setLaunchDisplayId(displayId);"
723 errorLine2=" ~~~~~~~~~~~~~~~~~~">
724 <location
725 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
726 line="556"
727 column="29"/>
728 </issue>
729
730 <issue
731 id="NewApi"
732 message="Call requires API level R (current min is 25): `android.net.wifi.WifiManager.LocalOnlyHotspotReservation#getSoftApConfiguration`"
733 errorLine1=" sendApStarted(mLocalOnlyHotspotReservation.getSoftApConfiguration());"
734 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
735 <location
736 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
737 line="642"
738 column="56"/>
739 </issue>
740
741 <issue
742 id="NewApi"
743 message="Call requires API level 26 (current min is 25): `android.net.wifi.WifiManager#startLocalOnlyHotspot`"
744 errorLine1=" mWifiManager.startLocalOnlyHotspot(new LocalOnlyHotspotCallback() {"
745 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
746 <location
747 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
748 line="647"
749 column="22"/>
750 </issue>
751
752 <issue
753 id="NewApi"
754 message="Cast to `LocalOnlyHotspotCallback` requires API level 26 (current min is 25)"
755 errorLine1=" mWifiManager.startLocalOnlyHotspot(new LocalOnlyHotspotCallback() {"
756 errorLine2=" ^">
757 <location
758 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
759 line="647"
760 column="44"/>
761 </issue>
762
763 <issue
764 id="NewApi"
765 message="Class requires API level 26 (current min is 25): `android.net.wifi.WifiManager.LocalOnlyHotspotCallback`"
766 errorLine1=" mWifiManager.startLocalOnlyHotspot(new LocalOnlyHotspotCallback() {"
767 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
768 <location
769 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
770 line="647"
771 column="48"/>
772 </issue>
773
774 <issue
775 id="NewApi"
776 message="Call requires API level R (current min is 25): `android.net.wifi.WifiManager.LocalOnlyHotspotReservation#getSoftApConfiguration`"
777 errorLine1=" sendApStarted(reservation.getSoftApConfiguration());"
778 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
779 <location
780 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
781 line="654"
782 column="43"/>
783 </issue>
784
785 <issue
786 id="NewApi"
787 message="Call requires API level 28 (current min is 25): `android.net.MacAddress#fromString`"
788 errorLine1=" .setBssid(MacAddress.fromString(mApBssid))"
789 errorLine2=" ~~~~~~~~~~">
790 <location
791 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
792 line="713"
793 column="38"/>
794 </issue>
795
796 <issue
797 id="NewApi"
798 message="Call requires API level R (current min is 25): `android.net.wifi.SoftApConfiguration#getSsid`"
799 errorLine1=" + localSoftApConfig.getSsid()"
800 errorLine2=" ~~~~~~~">
801 <location
802 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
803 line="719"
804 column="37"/>
805 </issue>
806
807 <issue
808 id="NewApi"
809 message="Call requires API level R (current min is 25): `android.net.wifi.SoftApConfiguration#getBssid`"
810 errorLine1=" + &quot;, bssid: &quot; + localSoftApConfig.getBssid());"
811 errorLine2=" ~~~~~~~~">
812 <location
813 file="packages/services/Car/service/src/com/android/car/CarProjectionService.java"
814 line="722"
815 column="51"/>
816 </issue>
817
818 <issue
819 id="NewApi"
820 message="Call requires API level 26 (current min is 25): `android.app.ActivityOptions#setLaunchDisplayId`"
821 errorLine1=" options.setLaunchDisplayId(displayId);"
822 errorLine2=" ~~~~~~~~~~~~~~~~~~">
823 <location
824 file="packages/services/Car/service/src/com/android/car/CarShellCommand.java"
825 line="867"
826 column="17"/>
827 </issue>
828
829 <issue
830 id="NewApi"
831 message="Call requires API level 26 (current min is 25): `java.io.File#toPath`"
832 errorLine1=" new String(Files.readAllBytes(mLifetimeWriteFile.toPath())));"
833 errorLine2=" ~~~~~~">
834 <location
835 file="packages/services/Car/service/src/com/android/car/CarStorageMonitoringService.java"
836 line="460"
837 column="70"/>
838 </issue>
839
840 <issue
841 id="NewApi"
842 message="Call requires API level 26 (current min is 25): `java.nio.file.Files#readAllBytes`"
843 errorLine1=" new String(Files.readAllBytes(mLifetimeWriteFile.toPath())));"
844 errorLine2=" ~~~~~~~~~~~~">
845 <location
846 file="packages/services/Car/service/src/com/android/car/CarStorageMonitoringService.java"
847 line="460"
848 column="38"/>
849 </issue>
850
851 <issue
852 id="NewApi"
853 message="Call requires API level R (current min is 25): `android.content.Context#bindServiceAsUser`"
854 errorLine1=" boolean bound = mContext.bindServiceAsUser(mServiceIntent, mUiServiceConnection,"
855 errorLine2=" ~~~~~~~~~~~~~~~~~">
856 <location
857 file="packages/services/Car/service/src/com/android/car/user/CarUserNoticeService.java"
858 line="353"
859 column="34"/>
860 </issue>
861
862 <issue
863 id="NewApi"
864 message="Call requires API level 29 (current min is 25): `android.content.pm.PackageManager#isDeviceUpgrading`"
865 errorLine1=" if (mContext.getPackageManager().isDeviceUpgrading()) {"
866 errorLine2=" ~~~~~~~~~~~~~~~~~">
867 <location
868 file="packages/services/Car/service/src/com/android/car/user/CarUserService.java"
869 line="860"
870 column="42"/>
871 </issue>
872
873 <issue
874 id="NewApi"
875 message="Call requires API level 31 (current min is 25): `android.os.UserManager#isHeadlessSystemUserMode`"
876 errorLine1=" if (UserManager.isHeadlessSystemUserMode()) {"
877 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
878 <location
879 file="packages/services/Car/service/src/com/android/car/user/CarUserService.java"
880 line="1757"
881 column="25"/>
882 </issue>
883
884 <issue
885 id="NewApi"
886 message="Call requires API level 26 (current min is 25): `java.io.File#toPath`"
887 errorLine1=" Path stagedConfig = getFile(CONFIG_FILENAME_STAGED).toPath();"
888 errorLine2=" ~~~~~~">
889 <location
890 file="packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java"
891 line="303"
892 column="61"/>
893 </issue>
894
895 <issue
896 id="NewApi"
897 message="Call requires API level 26 (current min is 25): `java.nio.file.Files#exists`"
898 errorLine1=" &amp;&amp; Files.exists(stagedConfig)) {"
899 errorLine2=" ~~~~~~">
900 <location
901 file="packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java"
902 line="310"
903 column="26"/>
904 </issue>
905
906 <issue
907 id="NewApi"
908 message="Call requires API level 26 (current min is 25): `java.io.File#toPath`"
909 errorLine1=" Path prod = getFile(CONFIG_FILENAME_PRODUCTION).toPath();"
910 errorLine2=" ~~~~~~">
911 <location
912 file="packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java"
913 line="312"
914 column="61"/>
915 </issue>
916
917 <issue
918 id="NewApi"
919 message="Call requires API level 26 (current min is 25): `java.nio.file.Files#move`"
920 errorLine1=" Files.move(stagedConfig, prod, REPLACE_EXISTING);"
921 errorLine2=" ~~~~">
922 <location
923 file="packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java"
924 line="315"
925 column="23"/>
926 </issue>
927
928 <issue
929 id="NewApi"
930 message="Field requires API level 26 (current min is 25): `java.nio.file.StandardCopyOption#REPLACE_EXISTING`"
931 errorLine1=" Files.move(stagedConfig, prod, REPLACE_EXISTING);"
932 errorLine2=" ~~~~~~~~~~~~~~~~">
933 <location
934 file="packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java"
935 line="315"
936 column="48"/>
937 </issue>
938
939 <issue
940 id="NewApi"
941 message="Call requires API level 26 (current min is 25): `android.os.RemoteCallbackList#getRegisteredCallbackItem`"
942 errorLine1=" ICarUxRestrictionsChangeListener client = mUxRClients.getRegisteredCallbackItem(i);"
943 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
944 <location
945 file="packages/services/Car/service/src/com/android/car/CarUxRestrictionsManagerService.java"
946 line="359"
947 column="71"/>
948 </issue>
949
950 <issue
951 id="NewApi"
952 message="Call requires API level 26 (current min is 25): `java.lang.String#join`"
953 errorLine1=" + &quot; addresses: &quot; + String.join(&quot;, &quot;, getAddresses());"
954 errorLine2=" ~~~~">
955 <location
956 file="packages/services/Car/service/src/com/android/car/audio/CarVolumeGroup.java"
957 line="314"
958 column="43"/>
959 </issue>
960
961 <issue
962 id="NewApi"
963 message="Call requires API level 29 (current min is 25): `android.graphics.Insets#of`"
964 errorLine1=" insets = Insets.of("
965 errorLine2=" ~~">
966 <location
967 file="packages/services/Car/service/src/com/android/car/hal/ClusterHalService.java"
968 line="194"
969 column="41"/>
970 </issue>
971
972 <issue
973 id="NewApi"
974 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#left`"
975 errorLine1=" request.value.int32Values.add(insets.left);"
976 errorLine2=" ~~~~~~~~~~~">
977 <location
978 file="packages/services/Car/service/src/com/android/car/hal/ClusterHalService.java"
979 line="236"
980 column="39"/>
981 </issue>
982
983 <issue
984 id="NewApi"
985 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#top`"
986 errorLine1=" request.value.int32Values.add(insets.top);"
987 errorLine2=" ~~~~~~~~~~">
988 <location
989 file="packages/services/Car/service/src/com/android/car/hal/ClusterHalService.java"
990 line="237"
991 column="39"/>
992 </issue>
993
994 <issue
995 id="NewApi"
996 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#right`"
997 errorLine1=" request.value.int32Values.add(insets.right);"
998 errorLine2=" ~~~~~~~~~~~~">
999 <location
1000 file="packages/services/Car/service/src/com/android/car/hal/ClusterHalService.java"
1001 line="238"
1002 column="39"/>
1003 </issue>
1004
1005 <issue
1006 id="NewApi"
1007 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#bottom`"
1008 errorLine1=" request.value.int32Values.add(insets.bottom);"
1009 errorLine2=" ~~~~~~~~~~~~~">
1010 <location
1011 file="packages/services/Car/service/src/com/android/car/hal/ClusterHalService.java"
1012 line="239"
1013 column="39"/>
1014 </issue>
1015
1016 <issue
1017 id="NewApi"
1018 message="Field requires API level 29 (current min is 25): `android.graphics.Insets#NONE`"
1019 errorLine1=" private Insets mInsets = Insets.NONE;"
1020 errorLine2=" ~~~~~~~~~~~">
1021 <location
1022 file="packages/services/Car/service/src/com/android/car/cluster/ClusterHomeService.java"
1023 line="82"
1024 column="30"/>
1025 </issue>
1026
1027 <issue
1028 id="NewApi"
1029 message="Call requires API level 26 (current min is 25): `android.app.ActivityOptions#setLaunchDisplayId`"
1030 errorLine1=" .setLaunchDisplayId(mClusterDisplayId);"
1031 errorLine2=" ~~~~~~~~~~~~~~~~~~">
1032 <location
1033 file="packages/services/Car/service/src/com/android/car/cluster/ClusterHomeService.java"
1034 line="137"
1035 column="18"/>
1036 </issue>
1037
1038 <issue
1039 id="NewApi"
1040 message="Call requires API level 26 (current min is 25): `android.app.ActivityOptions#setLaunchDisplayId`"
1041 errorLine1=" activityOptions.setLaunchDisplayId(mClusterDisplayId);"
1042 errorLine2=" ~~~~~~~~~~~~~~~~~~">
1043 <location
1044 file="packages/services/Car/service/src/com/android/car/cluster/ClusterHomeService.java"
1045 line="275"
1046 column="25"/>
1047 </issue>
1048
1049 <issue
1050 id="NewApi"
1051 message="Call requires API level 26 (current min is 25): `new android.bluetooth.le.AdvertisingSetParameters.Builder`"
1052 errorLine1=" mAdvertisingSetParameters = new AdvertisingSetParameters.Builder()"
1053 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1054 <location
1055 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1056 line="85"
1057 column="37"/>
1058 </issue>
1059
1060 <issue
1061 id="NewApi"
1062 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setLegacyMode`"
1063 errorLine1=" .setLegacyMode(true)"
1064 errorLine2=" ~~~~~~~~~~~~~">
1065 <location
1066 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1067 line="86"
1068 column="18"/>
1069 </issue>
1070
1071 <issue
1072 id="NewApi"
1073 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setInterval`"
1074 errorLine1=" .setInterval(AdvertisingSetParameters.INTERVAL_LOW)"
1075 errorLine2=" ~~~~~~~~~~~">
1076 <location
1077 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1078 line="87"
1079 column="18"/>
1080 </issue>
1081
1082 <issue
1083 id="NewApi"
1084 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setScannable`"
1085 errorLine1=" .setScannable(true)"
1086 errorLine2=" ~~~~~~~~~~~~">
1087 <location
1088 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1089 line="88"
1090 column="18"/>
1091 </issue>
1092
1093 <issue
1094 id="NewApi"
1095 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setConnectable`"
1096 errorLine1=" .setConnectable(true)"
1097 errorLine2=" ~~~~~~~~~~~~~~">
1098 <location
1099 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1100 line="89"
1101 column="18"/>
1102 </issue>
1103
1104 <issue
1105 id="NewApi"
1106 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#build`"
1107 errorLine1=" .build();"
1108 errorLine2=" ~~~~~">
1109 <location
1110 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1111 line="90"
1112 column="18"/>
1113 </issue>
1114
1115 <issue
1116 id="NewApi"
1117 message="Call requires API level 26 (current min is 25): `new android.bluetooth.le.AdvertisingSetParameters.Builder`"
1118 errorLine1=" mAdvertisingSetParameters = new AdvertisingSetParameters.Builder()"
1119 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1120 <location
1121 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1122 line="106"
1123 column="37"/>
1124 </issue>
1125
1126 <issue
1127 id="NewApi"
1128 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setLegacyMode`"
1129 errorLine1=" .setLegacyMode(true)"
1130 errorLine2=" ~~~~~~~~~~~~~">
1131 <location
1132 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1133 line="107"
1134 column="18"/>
1135 </issue>
1136
1137 <issue
1138 id="NewApi"
1139 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setInterval`"
1140 errorLine1=" .setInterval(AdvertisingSetParameters.INTERVAL_MEDIUM)"
1141 errorLine2=" ~~~~~~~~~~~">
1142 <location
1143 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1144 line="108"
1145 column="18"/>
1146 </issue>
1147
1148 <issue
1149 id="NewApi"
1150 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setScannable`"
1151 errorLine1=" .setScannable(true)"
1152 errorLine2=" ~~~~~~~~~~~~">
1153 <location
1154 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1155 line="109"
1156 column="18"/>
1157 </issue>
1158
1159 <issue
1160 id="NewApi"
1161 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#setConnectable`"
1162 errorLine1=" .setConnectable(true)"
1163 errorLine2=" ~~~~~~~~~~~~~~">
1164 <location
1165 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1166 line="110"
1167 column="18"/>
1168 </issue>
1169
1170 <issue
1171 id="NewApi"
1172 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetParameters.Builder#build`"
1173 errorLine1=" .build();"
1174 errorLine2=" ~~~~~">
1175 <location
1176 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1177 line="111"
1178 column="18"/>
1179 </issue>
1180
1181 <issue
1182 id="NewApi"
1183 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.BluetoothLeAdvertiser#stopAdvertisingSet`"
1184 errorLine1=" mBluetoothLeAdvertiser.stopAdvertisingSet(mAdvertisingSetCallback);"
1185 errorLine2=" ~~~~~~~~~~~~~~~~~~">
1186 <location
1187 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1188 line="129"
1189 column="32"/>
1190 </issue>
1191
1192 <issue
1193 id="NewApi"
1194 message="Call requires API level 26 (current min is 25): `android.bluetooth.le.BluetoothLeAdvertiser#startAdvertisingSet`"
1195 errorLine1=" mBluetoothLeAdvertiser.startAdvertisingSet(mAdvertisingSetParameters, mData, null, null,"
1196 errorLine2=" ~~~~~~~~~~~~~~~~~~~">
1197 <location
1198 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1199 line="160"
1200 column="36"/>
1201 </issue>
1202
1203 <issue
1204 id="NewApi"
1205 message="Class requires API level 26 (current min is 25): `android.bluetooth.le.AdvertisingSetCallback`"
1206 errorLine1=" private AdvertisingSetCallback mAdvertisingSetCallback = new AdvertisingSetCallback() {"
1207 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
1208 <location
1209 file="packages/services/Car/service/src/com/android/car/FastPairAdvertiser.java"
1210 line="166"
1211 column="66"/>
1212 </issue>
1213
1214 <issue
1215 id="NewApi"
1216 message="Call requires API level 26 (current min is 25): `java.lang.Byte#toUnsignedInt`"
1217 errorLine1=" int passkey = Byte.toUnsignedInt(decryptedRequest[1]) * 65536"
1218 errorLine2=" ~~~~~~~~~~~~~">
1219 <location
1220 file="packages/services/Car/service/src/com/android/car/FastPairGattServer.java"
1221 line="521"
1222 column="28"/>
1223 </issue>
1224
1225 <issue
1226 id="NewApi"
1227 message="Call requires API level 26 (current min is 25): `java.lang.Byte#toUnsignedInt`"
1228 errorLine1=" + Byte.toUnsignedInt(decryptedRequest[2]) * 256"
1229 errorLine2=" ~~~~~~~~~~~~~">
1230 <location
1231 file="packages/services/Car/service/src/com/android/car/FastPairGattServer.java"
1232 line="522"
1233 column="24"/>
1234 </issue>
1235
1236 <issue
1237 id="NewApi"
1238 message="Call requires API level 26 (current min is 25): `java.lang.Byte#toUnsignedInt`"
1239 errorLine1=" + Byte.toUnsignedInt(decryptedRequest[3]);"
1240 errorLine2=" ~~~~~~~~~~~~~">
1241 <location
1242 file="packages/services/Car/service/src/com/android/car/FastPairGattServer.java"
1243 line="523"
1244 column="24"/>
1245 </issue>
1246
1247 <issue
1248 id="NewApi"
1249 message="Call requires API level 26 (current min is 25): `java.lang.Integer#toUnsignedLong`"
1250 errorLine1=" long k = Integer.toUnsignedLong(byteBuffer.getInt()) % (size * 8);"
1251 errorLine2=" ~~~~~~~~~~~~~~">
1252 <location
1253 file="packages/services/Car/service/src/com/android/car/FastPairUtils.java"
1254 line="76"
1255 column="38"/>
1256 </issue>
1257
1258 <issue
1259 id="NewApi"
1260 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
1261 errorLine1=" Preconditions.checkArgument(mHalFocusRequestsByZoneAndUsage.contains(zoneId),"
1262 errorLine2=" ~~~~~~~~">
1263 <location
1264 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1265 line="90"
1266 column="69"/>
1267 </issue>
1268
1269 <issue
1270 id="NewApi"
1271 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
1272 errorLine1=" Preconditions.checkArgument(mHalFocusRequestsByZoneAndUsage.contains(zoneId),"
1273 errorLine2=" ~~~~~~~~">
1274 <location
1275 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1276 line="115"
1277 column="69"/>
1278 </issue>
1279
1280 <issue
1281 id="NewApi"
1282 message="Call requires API level 26 (current min is 25): `android.media.AudioManager#abandonAudioFocusRequest`"
1283 errorLine1=" int result = mAudioManager.abandonAudioFocusRequest(currentRequest.mAudioFocusRequest);"
1284 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
1285 <location
1286 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1287 line="202"
1288 column="36"/>
1289 </issue>
1290
1291 <issue
1292 id="NewApi"
1293 message="Call requires API level 26 (current min is 25): `new android.media.AudioFocusRequest.Builder`"
1294 errorLine1=" return new AudioFocusRequest.Builder(focusGain)"
1295 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1296 <location
1297 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1298 line="232"
1299 column="16"/>
1300 </issue>
1301
1302 <issue
1303 id="NewApi"
1304 message="Call requires API level 26 (current min is 25): `android.media.AudioFocusRequest.Builder#setAudioAttributes`"
1305 errorLine1=" .setAudioAttributes(attributes)"
1306 errorLine2=" ~~~~~~~~~~~~~~~~~~">
1307 <location
1308 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1309 line="233"
1310 column="18"/>
1311 </issue>
1312
1313 <issue
1314 id="NewApi"
1315 message="Call requires API level 26 (current min is 25): `android.media.AudioFocusRequest.Builder#setOnAudioFocusChangeListener`"
1316 errorLine1=" .setOnAudioFocusChangeListener((int focusChange) -> {"
1317 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1318 <location
1319 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1320 line="234"
1321 column="18"/>
1322 </issue>
1323
1324 <issue
1325 id="NewApi"
1326 message="Call requires API level 26 (current min is 25): `android.media.AudioFocusRequest.Builder#build`"
1327 errorLine1=" .build();"
1328 errorLine2=" ~~~~~">
1329 <location
1330 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1331 line="237"
1332 column="18"/>
1333 </issue>
1334
1335 <issue
1336 id="NewApi"
1337 message="Call requires API level 26 (current min is 25): `android.media.AudioManager#requestAudioFocus`"
1338 errorLine1=" int requestResult = mAudioManager.requestAudioFocus(audioFocusRequest);"
1339 errorLine2=" ~~~~~~~~~~~~~~~~~">
1340 <location
1341 file="packages/services/Car/service/src/com/android/car/audio/hal/HalAudioFocus.java"
1342 line="259"
1343 column="43"/>
1344 </issue>
1345
1346 <issue
1347 id="NewApi"
1348 message="Call requires API level 31 (current min is 25): `android.os.UserManager#isHeadlessSystemUserMode`"
1349 errorLine1=" if (UserManager.isHeadlessSystemUserMode()) {"
1350 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
1351 <location
1352 file="packages/services/Car/service/src/com/android/car/user/InitialUserSetter.java"
1353 line="774"
1354 column="25"/>
1355 </issue>
1356
1357 <issue
1358 id="NewApi"
1359 message="Call requires API level R (current min is 25): `java.util.Set#of`"
1360 errorLine1=" private static final Set&lt;Integer> VALID_INPUT_TYPES = Set.of("
1361 errorLine2=" ~~">
1362 <location
1363 file="packages/services/Car/service/src/com/android/car/InputCaptureClientController.java"
1364 line="92"
1365 column="63"/>
1366 </issue>
1367
1368 <issue
1369 id="NewApi"
1370 message="Call requires API level R (current min is 25): `java.util.Set#of`"
1371 errorLine1=" private static final Set&lt;Integer> VALID_ROTARY_TYPES = Set.of("
1372 errorLine2=" ~~">
1373 <location
1374 file="packages/services/Car/service/src/com/android/car/InputCaptureClientController.java"
1375 line="101"
1376 column="64"/>
1377 </issue>
1378
1379 <issue
1380 id="NewApi"
1381 message="Call requires API level R (current min is 25): `java.util.List#of`"
1382 errorLine1=" private static final List&lt;Integer> SUPPORTED_DISPLAY_TYPES = List.of("
1383 errorLine2=" ~~">
1384 <location
1385 file="packages/services/Car/service/src/com/android/car/InputCaptureClientController.java"
1386 line="106"
1387 column="71"/>
1388 </issue>
1389
1390 <issue
1391 id="NewApi"
1392 message="Call requires API level 26 (current min is 25): `android.app.ActivityOptions#getLaunchDisplayId`"
1393 errorLine1=" options.getLaunchDisplayId(), userId);"
1394 errorLine2=" ~~~~~~~~~~~~~~~~~~">
1395 <location
1396 file="packages/services/Car/service/src/com/android/car/cluster/InstrumentClusterService.java"
1397 line="194"
1398 column="37"/>
1399 </issue>
1400
1401 <issue
1402 id="NewApi"
1403 message="Call requires API level R (current min is 25): `android.content.Context#bindServiceAsUser`"
1404 errorLine1=" return mContext.bindServiceAsUser(intent, mRendererServiceConnection,"
1405 errorLine2=" ~~~~~~~~~~~~~~~~~">
1406 <location
1407 file="packages/services/Car/service/src/com/android/car/cluster/InstrumentClusterService.java"
1408 line="348"
1409 column="25"/>
1410 </issue>
1411
1412 <issue
1413 id="NewApi"
1414 message="Call requires API level 28 (current min is 25): `android.location.LocationManager#isLocationEnabled`"
1415 errorLine1=" return mLocationManager.isLocationEnabled();"
1416 errorLine2=" ~~~~~~~~~~~~~~~~~">
1417 <location
1418 file="packages/services/Car/service/src/com/android/car/LocationManagerProxy.java"
1419 line="47"
1420 column="33"/>
1421 </issue>
1422
1423 <issue
1424 id="NewApi"
1425 message="Call requires API level 26 (current min is 25): `android.app.NotificationManager#createNotificationChannel`"
1426 errorLine1=" notificationMgr.createNotificationChannel("
1427 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
1428 <location
1429 file="packages/services/Car/service/src/com/android/car/admin/NotificationHelper.java"
1430 line="65"
1431 column="25"/>
1432 </issue>
1433
1434 <issue
1435 id="NewApi"
1436 message="Call requires API level 26 (current min is 25): `new android.app.NotificationChannel`"
1437 errorLine1=" new NotificationChannel(importanceId, importanceName, importance));"
1438 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~">
1439 <location
1440 file="packages/services/Car/service/src/com/android/car/admin/NotificationHelper.java"
1441 line="66"
1442 column="17"/>
1443 </issue>
1444
1445 <issue
1446 id="NewApi"
1447 message="Call requires API level 26 (current min is 25): `new android.app.Notification.Builder`"
1448 errorLine1=" return new Notification.Builder(context, importanceId).addExtras(extras);"
1449 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~">
1450 <location
1451 file="packages/services/Car/service/src/com/android/car/admin/NotificationHelper.java"
1452 line="72"
1453 column="16"/>
1454 </issue>
1455
1456 <issue
1457 id="NewApi"
1458 message="Call requires API level R (current min is 25): `android.content.Context#bindServiceAsUser`"
1459 errorLine1=" boolean bindSuccess = mContext.bindServiceAsUser(startIntent, mUserServiceConnection,"
1460 errorLine2=" ~~~~~~~~~~~~~~~~~">
1461 <location
1462 file="packages/services/Car/service/src/com/android/car/PerUserCarServiceHelper.java"
1463 line="160"
1464 column="44"/>
1465 </issue>
1466
1467 <issue
1468 id="NewApi"
1469 message="Call requires API level 29 (current min is 25): `new android.util.ArraySet`"
1470 errorLine1=" private static final Set&lt;String> VALID_VERSIONS = new ArraySet&lt;>(Arrays.asList(&quot;1.0&quot;));"
1471 errorLine2=" ~~~~~~~~~~~~~~">
1472 <location
1473 file="packages/services/Car/service/src/com/android/car/power/PolicyReader.java"
1474 line="82"
1475 column="55"/>
1476 </issue>
1477
1478 <issue
1479 id="NewApi"
1480 message="Call requires API level 29 (current min is 25): `new android.util.ArraySet`"
1481 errorLine1=" new ArraySet&lt;>(Arrays.asList(PowerComponent.BLUETOOTH, PowerComponent.NFC,"
1482 errorLine2=" ~~~~~~~~~~~~~~">
1483 <location
1484 file="packages/services/Car/service/src/com/android/car/power/PolicyReader.java"
1485 line="124"
1486 column="13"/>
1487 </issue>
1488
1489 <issue
1490 id="NewApi"
1491 message="Call requires API level 26 (current min is 25): `java.io.File#toPath`"
1492 errorLine1=" private static Path DEFAULT_STATS_FILE = new File(&quot;/proc/uid_io/stats&quot;).toPath();"
1493 errorLine2=" ~~~~~~">
1494 <location
1495 file="packages/services/Car/service/src/com/android/car/storagemonitoring/ProcfsUidIoStatsProvider.java"
1496 line="40"
1497 column="77"/>
1498 </issue>
1499
1500 <issue
1501 id="NewApi"
1502 message="Call requires API level 26 (current min is 25): `java.nio.file.Files#readAllLines`"
1503 errorLine1=" lines = Files.readAllLines(mStatsFile);"
1504 errorLine2=" ~~~~~~~~~~~~">
1505 <location
1506 file="packages/services/Car/service/src/com/android/car/storagemonitoring/ProcfsUidIoStatsProvider.java"
1507 line="59"
1508 column="27"/>
1509 </issue>
1510
1511 <issue
1512 id="NewApi"
1513 message="Call requires API level R (current min is 25): `android.util.SparseArray#contains`"
1514 errorLine1=" return mHalPropIdToVehiclePropConfig.contains(halPropId);"
1515 errorLine2=" ~~~~~~~~">
1516 <location
1517 file="packages/services/Car/service/src/com/android/car/hal/PropertyHalService.java"
1518 line="104"
1519 column="46"/>
1520 </issue>
1521
1522 <issue
1523 id="NewApi"
1524 message="Call requires API level 26 (current min is 25): `java.io.File#toPath`"
1525 errorLine1=" datalines = Files.readAllLines(writefile.toPath());"
1526 errorLine2=" ~~~~~~">
1527 <location
1528 file="packages/services/Car/service/src/com/android/car/storagemonitoring/SysfsLifetimeWriteInfoProvider.java"
1529 line="70"
1530 column="54"/>
1531 </issue>
1532
1533 <issue
1534 id="NewApi"
1535 message="Call requires API level 26 (current min is 25): `java.nio.file.Files#readAllLines`"
1536 errorLine1=" datalines = Files.readAllLines(writefile.toPath());"
1537 errorLine2=" ~~~~~~~~~~~~">
1538 <location
1539 file="packages/services/Car/service/src/com/android/car/storagemonitoring/SysfsLifetimeWriteInfoProvider.java"
1540 line="70"
1541 column="31"/>
1542 </issue>
1543
1544 <issue
1545 id="NewApi"
1546 message="Call requires API level 26 (current min is 25): `android.app.ActivityOptions#setLaunchDisplayId`"
1547 errorLine1=" options.setLaunchDisplayId(displayId);"
1548 errorLine2=" ~~~~~~~~~~~~~~~~~~">
1549 <location
1550 file="packages/services/Car/service/src/com/android/car/SystemActivityMonitoringService.java"
1551 line="408"
1552 column="17"/>
1553 </issue>
1554
1555 <issue
1556 id="NewApi"
1557 message="Call requires API level 26 (current min is 25): `java.io.File#toPath`"
1558 errorLine1=" lifetimeData = java.nio.file.Files.readAllLines(mFile.toPath());"
1559 errorLine2=" ~~~~~~">
1560 <location
1561 file="packages/services/Car/service/src/com/android/car/storagemonitoring/UfsWearInformationProvider.java"
1562 line="65"
1563 column="67"/>
1564 </issue>
1565
1566 <issue
1567 id="NewApi"
1568 message="Call requires API level 26 (current min is 25): `java.nio.file.Files#readAllLines`"
1569 errorLine1=" lifetimeData = java.nio.file.Files.readAllLines(mFile.toPath());"
1570 errorLine2=" ~~~~~~~~~~~~">
1571 <location
1572 file="packages/services/Car/service/src/com/android/car/storagemonitoring/UfsWearInformationProvider.java"
1573 line="65"
1574 column="48"/>
1575 </issue>
1576
1577 <issue
1578 id="NewApi"
1579 message="Call requires API level 31 (current min is 25): `com.google.android.collect.Lists#newArrayList`"
1580 errorLine1=" onPropertyEvent(Lists.newArrayList(v));"
1581 errorLine2=" ~~~~~~~~~~~~">
1582 <location
1583 file="packages/services/Car/service/src/com/android/car/hal/VehicleHal.java"
1584 line="791"
1585 column="31"/>
1586 </issue>
1587
1588 <issue
1589 id="NewApi"
1590 message="Call requires API level 31 (current min is 25): `com.google.android.collect.Lists#newArrayList`"
1591 errorLine1=" onPropertyEvent(Lists.newArrayList(v));"
1592 errorLine2=" ~~~~~~~~~~~~">
1593 <location
1594 file="packages/services/Car/service/src/com/android/car/hal/VehicleHal.java"
1595 line="829"
1596 column="43"/>
1597 </issue>
1598
1599 <issue
1600 id="NewApi"
1601 message="Call requires API level 27 (current min is 25): `android.os.SharedMemory#getSize`"
1602 errorLine1=" deliverToSubscribers(clientToken, providerId, layer, packet.getSize(),"
1603 errorLine2=" ~~~~~~~">
1604 <location
1605 file="packages/services/Car/service/src/com/android/car/vms/VmsBrokerService.java"
1606 line="222"
1607 column="73"/>
1608 </issue>
1609
1610 <issue
1611 id="NewApi"
1612 message="Call requires API level 29 (current min is 25): `new android.util.ArraySet`"
1613 errorLine1=" mOfferings.put(providerId, new ArraySet&lt;>(offerings));"
1614 errorLine2=" ~~~~~~~~~~~~~~">
1615 <location
1616 file="packages/services/Car/service/src/com/android/car/vms/VmsClientInfo.java"
1617 line="117"
1618 column="40"/>
1619 </issue>
1620
1621 <issue
1622 id="NewApi"
1623 message="Call requires API level 29 (current min is 25): `new android.util.ArraySet`"
1624 errorLine1=" result.add(new VmsLayersOffering(new ArraySet&lt;>(providerOfferings), providerId));"
1625 errorLine2=" ~~~~~~~~~~~~~~">
1626 <location
1627 file="packages/services/Car/service/src/com/android/car/vms/VmsClientInfo.java"
1628 line="131"
1629 column="50"/>
1630 </issue>
1631
1632 <issue
1633 id="NewApi"
1634 message="Call requires API level 29 (current min is 25): `new android.util.ArraySet`"
1635 errorLine1=" associatedLayer -> new ArraySet&lt;>(associatedLayer.getProviderIds())));"
1636 errorLine2=" ~~~~~~~~~~~~~~">
1637 <location
1638 file="packages/services/Car/service/src/com/android/car/vms/VmsClientInfo.java"
1639 line="153"
1640 column="48"/>
1641 </issue>
1642
1643 <issue
1644 id="NewApi"
1645 message="Call requires API level 29 (current min is 25): `new android.util.ArraySet`"
1646 errorLine1=" return new ArraySet&lt;>(mLayerSubscriptions);"
1647 errorLine2=" ~~~~~~~~~~~~~~">
1648 <location
1649 file="packages/services/Car/service/src/com/android/car/vms/VmsClientInfo.java"
1650 line="159"
1651 column="20"/>
1652 </issue>
1653
1654 <issue
1655 id="NewApi"
1656 message="Call requires API level 29 (current min is 25): `new android.util.ArraySet`"
1657 errorLine1=" entry -> new ArraySet&lt;>(entry.getValue())));"
1658 errorLine2=" ~~~~~~~~~~~~~~">
1659 <location
1660 file="packages/services/Car/service/src/com/android/car/vms/VmsClientInfo.java"
1661 line="233"
1662 column="26"/>
1663 </issue>
1664
1665 <issue
1666 id="NewApi"
1667 message="Call requires API level 26 (current min is 25): `java.io.File#toPath`"
1668 errorLine1=" JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath())));"
1669 errorLine2=" ~~~~~~">
1670 <location
1671 file="packages/services/Car/service/src/com/android/car/storagemonitoring/WearHistory.java"
1672 line="65"
1673 column="81"/>
1674 </issue>
1675
1676 <issue
1677 id="NewApi"
1678 message="Call requires API level 26 (current min is 25): `java.nio.file.Files#readAllBytes`"
1679 errorLine1=" JSONObject jsonObject = new JSONObject(new String(Files.readAllBytes(in.toPath())));"
1680 errorLine2=" ~~~~~~~~~~~~">
1681 <location
1682 file="packages/services/Car/service/src/com/android/car/storagemonitoring/WearHistory.java"
1683 line="65"
1684 column="65"/>
1685 </issue>
1686
1687 <issue
1688 id="NewApi"
1689 message="`android:paddingHorizontal` requires API level 26 (current min is 25)"
1690 errorLine1=" &lt;item name=&quot;android:paddingHorizontal&quot;>@dimen/action_button_padding_horizontal&lt;/item>"
1691 errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
1692 <location
1693 file="packages/services/Car/service/res/values/styles.xml"
1694 line="42"
1695 column="15"/>
1696 </issue>
1697
1698</issues>