xref: /aosp_15_r20/development/samples/VoiceInteractionService/lint-baseline.xml (revision 90c8c64db3049935a07c6143d7fd006e26f8ecca)
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 31 (current min is 30): `android.service.voice.HotwordDetector#startRecognition`"
7        errorLine1="                mService.mHotwordDetector.startRecognition();"
8        errorLine2="                                          ~~~~~~~~~~~~~~~~">
9        <location
10            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/MainActivity.java"
11            line="56"
12            column="43"/>
13    </issue>
14
15    <issue
16        id="NewApi"
17        message="Class requires API level 31 (current min is 30): `android.service.voice.HotwordDetectionService`"
18        errorLine1="public class SampleHotwordDetectionService extends HotwordDetectionService {"
19        errorLine2="                                                   ~~~~~~~~~~~~~~~~~~~~~~~">
20        <location
21            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
22            line="41"
23            column="52"/>
24    </issue>
25
26    <issue
27        id="NewApi"
28        message="Call requires API level 31 (current min is 30): `android.media.AudioRecord#getMaxSharedAudioHistoryMillis`"
29        errorLine1="                .setMaxSharedAudioHistoryMillis(AudioRecord.getMaxSharedAudioHistoryMillis())"
30        errorLine2="                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
31        <location
32            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
33            line="65"
34            column="61"/>
35    </issue>
36
37    <issue
38        id="NewApi"
39        message="Call requires API level 31 (current min is 30): `android.media.AudioRecord.Builder#setMaxSharedAudioHistoryMillis`"
40        errorLine1="                .setMaxSharedAudioHistoryMillis(AudioRecord.getMaxSharedAudioHistoryMillis())"
41        errorLine2="                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
42        <location
43            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
44            line="65"
45            column="18"/>
46    </issue>
47
48    <issue
49        id="NewApi"
50        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetectionService.Callback#onRejected`"
51        errorLine1="            callback.onRejected(new HotwordRejectedResult.Builder().build());"
52        errorLine2="                     ~~~~~~~~~~">
53        <location
54            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
55            line="111"
56            column="22"/>
57    </issue>
58
59    <issue
60        id="NewApi"
61        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordRejectedResult.Builder#build`"
62        errorLine1="            callback.onRejected(new HotwordRejectedResult.Builder().build());"
63        errorLine2="                                                                    ~~~~~">
64        <location
65            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
66            line="111"
67            column="69"/>
68    </issue>
69
70    <issue
71        id="NewApi"
72        message="Call requires API level 31 (current min is 30): `new android.service.voice.HotwordRejectedResult.Builder`"
73        errorLine1="            callback.onRejected(new HotwordRejectedResult.Builder().build());"
74        errorLine2="                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
75        <location
76            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
77            line="111"
78            column="33"/>
79    </issue>
80
81    <issue
82        id="NewApi"
83        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetectionService.Callback#onDetected`"
84        errorLine1="        callback.onDetected("
85        errorLine2="                 ~~~~~~~~~~">
86        <location
87            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
88            line="125"
89            column="18"/>
90    </issue>
91
92    <issue
93        id="NewApi"
94        message="Call requires API level 31 (current min is 30): `new android.service.voice.HotwordDetectedResult.Builder`"
95        errorLine1="                new HotwordDetectedResult.Builder()"
96        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
97        <location
98            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
99            line="126"
100            column="17"/>
101    </issue>
102
103    <issue
104        id="NewApi"
105        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetectedResult.Builder#setMediaSyncEvent`"
106        errorLine1="                        .setMediaSyncEvent("
107        errorLine2="                         ~~~~~~~~~~~~~~~~~">
108        <location
109            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
110            line="127"
111            column="26"/>
112    </issue>
113
114    <issue
115        id="NewApi"
116        message="Call requires API level 31 (current min is 30): `android.media.AudioRecord#shareAudioHistory`"
117        errorLine1='                                record.shareAudioHistory("com.example.android.voiceinteractor", 0))'
118        errorLine2="                                       ~~~~~~~~~~~~~~~~~">
119        <location
120            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
121            line="128"
122            column="40"/>
123    </issue>
124
125    <issue
126        id="NewApi"
127        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetectedResult.Builder#setHotwordPhraseId`"
128        errorLine1="                        .setHotwordPhraseId(getKeyphraseId(eventPayload))"
129        errorLine2="                         ~~~~~~~~~~~~~~~~~~">
130        <location
131            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
132            line="129"
133            column="26"/>
134    </issue>
135
136    <issue
137        id="NewApi"
138        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetectedResult.Builder#build`"
139        errorLine1="                        .build());"
140        errorLine2="                         ~~~~~">
141        <location
142            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleHotwordDetectionService.java"
143            line="130"
144            column="26"/>
145    </issue>
146
147    <issue
148        id="NewApi"
149        message="Class requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetectionService`"
150        errorLine1="public class SampleVisualQueryDetectionService extends VisualQueryDetectionService {"
151        errorLine2="                                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
152        <location
153            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVisualQueryDetectionService.java"
154            line="55"
155            column="56"/>
156    </issue>
157
158    <issue
159        id="NewApi"
160        message="Call requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetectionService#gainedAttention`"
161        errorLine1="            gainedAttention();"
162        errorLine2="            ~~~~~~~~~~~~~~~">
163        <location
164            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVisualQueryDetectionService.java"
165            line="124"
166            column="13"/>
167    </issue>
168
169    <issue
170        id="NewApi"
171        message="Call requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetectionService#lostAttention`"
172        errorLine1="        lostAttention();"
173        errorLine2="        ~~~~~~~~~~~~~">
174        <location
175            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVisualQueryDetectionService.java"
176            line="135"
177            column="9"/>
178    </issue>
179
180    <issue
181        id="NewApi"
182        message="Call requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetectionService#streamQuery`"
183        errorLine1="                streamQuery(FAKE_QUERY);"
184        errorLine2="                ~~~~~~~~~~~">
185        <location
186            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVisualQueryDetectionService.java"
187            line="145"
188            column="17"/>
189    </issue>
190
191    <issue
192        id="NewApi"
193        message="Call requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetectionService#finishQuery`"
194        errorLine1="                finishQuery();"
195        errorLine2="                ~~~~~~~~~~~">
196        <location
197            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVisualQueryDetectionService.java"
198            line="146"
199            column="17"/>
200    </issue>
201
202    <issue
203        id="NewApi"
204        message="Call requires API level 31 (current min is 30): `android.media.AudioRecord.Builder#setSharedAudioEvent`"
205        errorLine1="                .setSharedAudioEvent(eventPayload.getHotwordDetectedResult().getMediaSyncEvent())"
206        errorLine2="                 ~~~~~~~~~~~~~~~~~~~">
207        <location
208            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
209            line="82"
210            column="18"/>
211    </issue>
212
213    <issue
214        id="NewApi"
215        message="Call requires API level 31 (current min is 30): `android.service.voice.AlwaysOnHotwordDetector.EventPayload#getHotwordDetectedResult`"
216        errorLine1="                .setSharedAudioEvent(eventPayload.getHotwordDetectedResult().getMediaSyncEvent())"
217        errorLine2="                                                  ~~~~~~~~~~~~~~~~~~~~~~~~">
218        <location
219            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
220            line="82"
221            column="51"/>
222    </issue>
223
224    <issue
225        id="NewApi"
226        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetectedResult#getMediaSyncEvent`"
227        errorLine1="                .setSharedAudioEvent(eventPayload.getHotwordDetectedResult().getMediaSyncEvent())"
228        errorLine2="                                                                             ~~~~~~~~~~~~~~~~~">
229        <location
230            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
231            line="82"
232            column="78"/>
233    </issue>
234
235    <issue
236        id="NewApi"
237        message="Call requires API level 31 (current min is 30): `android.service.voice.VoiceInteractionService#createAlwaysOnHotwordDetector`"
238        errorLine1="        mHotwordDetector = createAlwaysOnHotwordDetector(DSP_MODEL_KEYPHRASE,"
239        errorLine2="                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
240        <location
241            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
242            line="104"
243            column="28"/>
244    </issue>
245
246    <issue
247        id="NewApi"
248        message="Cast from `AlwaysOnHotwordDetector` to `HotwordDetector` requires API level 31 (current min is 30)"
249        errorLine1="        mHotwordDetector = createAlwaysOnHotwordDetector(DSP_MODEL_KEYPHRASE,"
250        errorLine2="                           ^">
251        <location
252            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
253            line="104"
254            column="28"/>
255    </issue>
256
257    <issue
258        id="NewApi"
259        message="Class requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetector.Callback`"
260        errorLine1="    class VisualQueryDetectorCallback implements VisualQueryDetector.Callback {"
261        errorLine2="                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
262        <location
263            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
264            line="122"
265            column="50"/>
266    </issue>
267
268    <issue
269        id="NewApi"
270        message="Call requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetector#startRecognition`"
271        errorLine1="                    mVisualQueryDetector.startRecognition();"
272        errorLine2="                                         ~~~~~~~~~~~~~~~~">
273        <location
274            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
275            line="142"
276            column="42"/>
277    </issue>
278
279    <issue
280        id="NewApi"
281        message="Call requires API level 34 (current min is 30): `android.service.voice.VisualQueryDetector#startRecognition`"
282        errorLine1="                mVisualQueryDetector.startRecognition();"
283        errorLine2="                                     ~~~~~~~~~~~~~~~~">
284        <location
285            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
286            line="149"
287            column="38"/>
288    </issue>
289
290    <issue
291        id="NewApi"
292        message="Cast from `HotwordDetector` to `AlwaysOnHotwordDetector` requires API level 31 (current min is 30)"
293        errorLine1="                enrollIntent = ((AlwaysOnHotwordDetector) mHotwordDetector).createEnrollIntent();"
294        errorLine2="                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
295        <location
296            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
297            line="183"
298            column="33"/>
299    </issue>
300
301    <issue
302        id="NewApi"
303        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetector#startRecognition`"
304        errorLine1="            mHotwordDetector.startRecognition();"
305        errorLine2="                             ~~~~~~~~~~~~~~~~">
306        <location
307            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
308            line="200"
309            column="30"/>
310    </issue>
311
312    <issue
313        id="NewApi"
314        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetector#startRecognition`"
315        errorLine1="                mHotwordDetector.startRecognition();"
316        errorLine2="                                 ~~~~~~~~~~~~~~~~">
317        <location
318            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
319            line="242"
320            column="34"/>
321    </issue>
322
323    <issue
324        id="NewApi"
325        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetector#startRecognition`"
326        errorLine1="            mHotwordDetector.startRecognition();"
327        errorLine2="                             ~~~~~~~~~~~~~~~~">
328        <location
329            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
330            line="270"
331            column="30"/>
332    </issue>
333
334    <issue
335        id="NewApi"
336        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetector#startRecognition`"
337        errorLine1="            mHotwordDetector.startRecognition();"
338        errorLine2="                             ~~~~~~~~~~~~~~~~">
339        <location
340            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
341            line="276"
342            column="30"/>
343    </issue>
344
345    <issue
346        id="NewApi"
347        message="Call requires API level 31 (current min is 30): `android.service.voice.HotwordDetector#startRecognition`"
348        errorLine1="                mHotwordDetector.startRecognition();"
349        errorLine2="                                 ~~~~~~~~~~~~~~~~">
350        <location
351            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
352            line="294"
353            column="34"/>
354    </issue>
355
356    <issue
357        id="NewApi"
358        message="Call requires API level 34 (current min is 30): `android.service.voice.VoiceInteractionService#createVisualQueryDetector`"
359        errorLine1="            mVisualQueryDetector = createVisualQueryDetector(null, null,"
360        errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~">
361        <location
362            file="development/samples/VoiceInteractionService/src/com/example/android/voiceinteractor/SampleVoiceInteractionService.java"
363            line="297"
364            column="36"/>
365    </issue>
366
367</issues>