1<?xml version="1.0" encoding="UTF-8"?>
2<issues format="6" by="lint 8.4.0-alpha08" type="baseline" client="" dependencies="true" name="" variant="all" version="8.4.0-alpha08">
3
4    <issue
5        id="DefaultLocale"
6        message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead"
7        errorLine1="                String.format("
8        errorLine2="                ^">
9        <location
10            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/KeyedFrequencyCapTest.java"
11            line="157"
12            column="17"/>
13    </issue>
14
15    <issue
16        id="DefaultLocale"
17        message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead"
18        errorLine1="                                String.format("
19        errorLine2="                                ^">
20        <location
21            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/MockWebServerRule.java"
22            line="168"
23            column="33"/>
24    </issue>
25
26    <issue
27        id="DefaultLocale"
28        message="Implicitly using the default locale is a common source of bugs: Use `String.format(Locale, ...)` instead"
29        errorLine1="        return String.format(&quot;%s://localhost:%d&quot;, useHttps() ? &quot;https&quot; : &quot;http&quot;, mPort);"
30        errorLine2="               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
31        <location
32            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/MockWebServerRule.java"
33            line="210"
34            column="16"/>
35    </issue>
36
37    <issue
38        id="InlinedApi"
39        message="Field requires API level 33 (current min is 30): `android.content.Context#RECEIVER_EXPORTED`"
40        errorLine1="            mContext.registerReceiver(mReceiver, filter, Context.RECEIVER_EXPORTED);"
41        errorLine2="                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~">
42        <location
43            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/SimpleActivityBase.java"
44            line="134"
45            column="58"/>
46    </issue>
47
48    <issue
49        id="NewApi"
50        message="Call requires API level 31 (current min is 30): `isAdServicesEnabled`"
51        errorLine1="        mCommonManager.isAdServicesEnabled(CALLBACK_EXECUTOR, receiver);"
52        errorLine2="                       ~~~~~~~~~~~~~~~~~~~">
53        <location
54            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/AdServicesCommonManagerTest.java"
55            line="72"
56            column="24"/>
57    </issue>
58
59    <issue
60        id="NewApi"
61        message="Call requires API level 31 (current min is 30): `isAdServicesEnabled`"
62        errorLine1="        mCommonManager.isAdServicesEnabled(CALLBACK_EXECUTOR, receiver);"
63        errorLine2="                       ~~~~~~~~~~~~~~~~~~~">
64        <location
65            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/AdServicesCommonManagerTest.java"
66            line="83"
67            column="24"/>
68    </issue>
69
70    <issue
71        id="NewApi"
72        message="Call requires API level 31 (current min is 30): `updateAdId`"
73        errorLine1="        mCommonManager.updateAdId(request, CALLBACK_EXECUTOR, receiver);"
74        errorLine2="                       ~~~~~~~~~~">
75        <location
76            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/AdServicesCommonManagerTest.java"
77            line="118"
78            column="24"/>
79    </issue>
80
81    <issue
82        id="NewApi"
83        message="Call requires API level 31 (current min is 30): `updateAdId`"
84        errorLine1="        mCommonManager.updateAdId(request, CALLBACK_EXECUTOR, receiver);"
85        errorLine2="                       ~~~~~~~~~~">
86        <location
87            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/AdServicesCommonManagerTest.java"
88            line="130"
89            column="24"/>
90    </issue>
91
92    <issue
93        id="NewApi"
94        message="Call requires API level 31 (current min is 30): `registerServiceWrappers`"
95        errorLine1="                AdServicesFrameworkInitializer::registerServiceWrappers);"
96        errorLine2="                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
97        <location
98            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/AdServicesFrameworkInitializerTest.java"
99            line="39"
100            column="17"/>
101    </issue>
102
103    <issue
104        id="NewApi"
105        message="Call requires API level 31 (current min is 30): `java.lang.Class#getPackageName`"
106        errorLine1="    private static final String TAG = CustomAudienceTestFixture.class.getPackageName();"
107        errorLine2="                                                                      ~~~~~~~~~~~~~~">
108        <location
109            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/CustomAudienceTestFixture.java"
110            line="39"
111            column="71"/>
112    </issue>
113
114    <issue
115        id="NewApi"
116        message="Call requires API level 31 (current min is 30): `get`"
117        errorLine1="        expect.that(ProtectedSignalsManager.get(context)).isNotNull();"
118        errorLine2="                                            ~~~">
119        <location
120            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ProtectedSignalsManagerTest.java"
121            line="50"
122            column="45"/>
123    </issue>
124
125    <issue
126        id="NewApi"
127        message="Call requires API level 31 (current min is 30): `get`"
128        errorLine1="        expect.that(ProtectedSignalsManager.get(context)).isNotNull();"
129        errorLine2="                                            ~~~">
130        <location
131            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/ProtectedSignalsManagerTest.java"
132            line="58"
133            column="45"/>
134    </issue>
135
136    <issue
137        id="NewApi"
138        message="Call requires API level 31 (current min is 30): `org.json.JSONObject#keySet`"
139        errorLine1="        for (String key : substitutions.keySet()) {"
140        errorLine2="                                        ~~~~~~">
141        <location
142            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/ScenarioLoader.java"
143            line="175"
144            column="41"/>
145    </issue>
146
147    <issue
148        id="NewApi"
149        message="Call requires API level 31 (current min is 30): `org.json.JSONObject#keySet`"
150        errorLine1="        for (String key : json.keySet()) {"
151        errorLine2="                               ~~~~~~">
152        <location
153            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/ScenarioLoader.java"
154            line="206"
155            column="32"/>
156    </issue>
157
158    <issue
159        id="NewApi"
160        message="Call requires API level 31 (current min is 30): `java.lang.Class#getPackageName`"
161        errorLine1="                .setClassName(activityClass.getPackageName(), activityClass.getName())"
162        errorLine2="                                            ~~~~~~~~~~~~~~">
163        <location
164            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/SimpleActivityBase.java"
165            line="68"
166            column="45"/>
167    </issue>
168
169    <issue
170        id="VisibleForTests"
171        message="This method should only be accessed from tests or within private scope"
172        errorLine1="                        .setUseGetMethodToCreateManagerInstance(true)"
173        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
174        <location
175            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/AdSelectionTest.java"
176            line="67"
177            column="26"/>
178    </issue>
179
180    <issue
181        id="VisibleForTests"
182        message="This method should only be accessed from tests or within private scope"
183        errorLine1="        DevContext devContext = DevContextFilter.create(sContext).createDevContext(Process.myUid());"
184        errorLine2="                                                                  ~~~~~~~~~~~~~~~~">
185        <location
186            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/CustomAudienceApiCtsTest.java"
187            line="135"
188            column="67"/>
189    </issue>
190
191    <issue
192        id="VisibleForTests"
193        message="This method should only be accessed from tests or within private scope"
194        errorLine1="                        .setUseGetMethodToCreateManagerInstance(true)"
195        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
196        <location
197            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/CustomAudienceApiCtsTest.java"
198            line="833"
199            column="26"/>
200    </issue>
201
202    <issue
203        id="VisibleForTests"
204        message="This method should only be accessed from tests or within private scope"
205        errorLine1="                        .setUseGetMethodToCreateManagerInstance(true)"
206        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
207        <location
208            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/CustomAudienceTest.java"
209            line="336"
210            column="26"/>
211    </issue>
212
213    <issue
214        id="VisibleForTests"
215        message="This method should only be accessed from tests or within private scope"
216        errorLine1="        DevContext mDevContext = DevContextFilter.create(context).createDevContext(Process.myUid());"
217        errorLine2="                                                                  ~~~~~~~~~~~~~~~~">
218        <location
219            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/DevContextUtils.java"
220            line="41"
221            column="67"/>
222    </issue>
223
224    <issue
225        id="VisibleForTests"
226        message="This method should only be accessed from tests or within private scope"
227        errorLine1="                devContextFilter.isDebuggable(mDevContext.getCallingAppPackageName());"
228        errorLine2="                                 ~~~~~~~~~~~~">
229        <location
230            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/DevContextUtils.java"
231            line="43"
232            column="34"/>
233    </issue>
234
235    <issue
236        id="VisibleForTests"
237        message="This method should only be accessed from tests or within private scope"
238        errorLine1="        boolean isDeveloperMode = devContextFilter.isDeveloperMode();"
239        errorLine2="                                                   ~~~~~~~~~~~~~~~">
240        <location
241            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/DevContextUtils.java"
242            line="44"
243            column="52"/>
244    </issue>
245
246    <issue
247        id="VisibleForTests"
248        message="This method should only be accessed from tests or within private scope"
249        errorLine1="        json.put(KeyedFrequencyCap.AD_COUNTER_KEY_FIELD_NAME, new Object());"
250        errorLine2="                                   ~~~~~~~~~~~~~~~~~~~~~~~~~">
251        <location
252            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/KeyedFrequencyCapTest.java"
253            line="349"
254            column="36"/>
255    </issue>
256
257    <issue
258        id="VisibleForTests"
259        message="This method should only be accessed from tests or within private scope"
260        errorLine1="        json.remove(KeyedFrequencyCap.AD_COUNTER_KEY_FIELD_NAME);"
261        errorLine2="                                      ~~~~~~~~~~~~~~~~~~~~~~~~~">
262        <location
263            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/KeyedFrequencyCapTest.java"
264            line="362"
265            column="39"/>
266    </issue>
267
268    <issue
269        id="VisibleForTests"
270        message="This method should only be accessed from tests or within private scope"
271        errorLine1="        json.remove(KeyedFrequencyCap.MAX_COUNT_FIELD_NAME);"
272        errorLine2="                                      ~~~~~~~~~~~~~~~~~~~~">
273        <location
274            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/KeyedFrequencyCapTest.java"
275            line="373"
276            column="39"/>
277    </issue>
278
279    <issue
280        id="VisibleForTests"
281        message="This method should only be accessed from tests or within private scope"
282        errorLine1="        json.remove(KeyedFrequencyCap.INTERVAL_FIELD_NAME);"
283        errorLine2="                                      ~~~~~~~~~~~~~~~~~~~">
284        <location
285            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/KeyedFrequencyCapTest.java"
286            line="384"
287            column="39"/>
288    </issue>
289
290    <issue
291        id="VisibleForTests"
292        message="This method should only be accessed from tests or within private scope"
293        errorLine1="        DevContext devContext = DevContextFilter.create(sContext).createDevContext(Process.myUid());"
294        errorLine2="                                                                  ~~~~~~~~~~~~~~~~">
295        <location
296            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/TestAdSelectionManagerTest.java"
297            line="131"
298            column="67"/>
299    </issue>
300
301    <issue
302        id="VisibleForTests"
303        message="This method should only be accessed from tests or within private scope"
304        errorLine1="                        .setUseGetMethodToCreateManagerInstance(true)"
305        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
306        <location
307            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/TestAdSelectionManagerTest.java"
308            line="164"
309            column="26"/>
310    </issue>
311
312    <issue
313        id="VisibleForTests"
314        message="This method should only be accessed from tests or within private scope"
315        errorLine1="                        .setUseGetMethodToCreateManagerInstance(true)"
316        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
317        <location
318            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/TestAdSelectionManagerTest.java"
319            line="260"
320            column="26"/>
321    </issue>
322
323    <issue
324        id="VisibleForTests"
325        message="This method should only be accessed from tests or within private scope"
326        errorLine1="                        .setUseGetMethodToCreateManagerInstance(true)"
327        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
328        <location
329            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/TestAdSelectionManagerTest.java"
330            line="297"
331            column="26"/>
332    </issue>
333
334    <issue
335        id="VisibleForTests"
336        message="This method should only be accessed from tests or within private scope"
337        errorLine1="                        .setUseGetMethodToCreateManagerInstance(true)"
338        errorLine2="                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
339        <location
340            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/TestAdSelectionManagerTest.java"
341            line="329"
342            column="26"/>
343    </issue>
344
345    <issue
346        id="MissingVersion"
347        message="Should set `android:versionCode` to specify the application version"
348        errorLine1="&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;"
349        errorLine2=" ~~~~~~~~">
350        <location
351            file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/cts/CtsAdExtServicesDeviceTestCases/android_common/737f09fcc0b17bc4650c68e8a26b3dd4/manifest_merger/AndroidManifest.xml"
352            line="17"
353            column="2"/>
354    </issue>
355
356    <issue
357        id="MissingVersion"
358        message="Should set `android:versionName` to specify the application version"
359        errorLine1="&lt;manifest xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;"
360        errorLine2=" ~~~~~~~~">
361        <location
362            file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/cts/CtsAdExtServicesDeviceTestCases/android_common/737f09fcc0b17bc4650c68e8a26b3dd4/manifest_merger/AndroidManifest.xml"
363            line="17"
364            column="2"/>
365    </issue>
366
367    <issue
368        id="StaticFieldLeak"
369        message="Do not place Android context classes in static fields; this is a memory leak"
370        errorLine1="    private static final Context sContext = ApplicationProvider.getApplicationContext();"
371        errorLine2="            ~~~~~~">
372        <location
373            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/AdSelectionTest.java"
374            line="48"
375            column="13"/>
376    </issue>
377
378    <issue
379        id="StaticFieldLeak"
380        message="Do not place Android context classes in static fields; this is a memory leak"
381        errorLine1="    private static final Context sContext = ApplicationProvider.getApplicationContext();"
382        errorLine2="            ~~~~~~">
383        <location
384            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/CustomAudienceTest.java"
385            line="62"
386            column="13"/>
387    </issue>
388
389    <issue
390        id="StaticFieldLeak"
391        message="Do not place Android context classes in static fields; this is a memory leak"
392        errorLine1="    protected static final Context sContext = ApplicationProvider.getApplicationContext();"
393        errorLine2="              ~~~~~~">
394        <location
395            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/FledgeScenarioTest.java"
396            line="78"
397            column="15"/>
398    </issue>
399
400    <issue
401        id="StaticFieldLeak"
402        message="Do not place Android context classes in static fields; this is a memory leak"
403        errorLine1="    private static final Context CONTEXT = ApplicationProvider.getApplicationContext();"
404        errorLine2="            ~~~~~~">
405        <location
406            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/utils/FledgeScenarioTest.java"
407            line="84"
408            column="13"/>
409    </issue>
410
411    <issue
412        id="MissingApplicationIcon"
413        message="Should explicitly set `android:icon`, there is no default"
414        errorLine1="    &lt;application"
415        errorLine2="     ~~~~~~~~~~~">
416        <location
417            file="./out/soong/.intermediates/packages/modules/AdServices/adservices/tests/cts/CtsAdExtServicesDeviceTestCases/android_common/737f09fcc0b17bc4650c68e8a26b3dd4/manifest_merger/AndroidManifest.xml"
418            line="54"
419            column="6"/>
420    </issue>
421
422    <issue
423        id="IgnoreWithoutReason"
424        message="Test is ignored without giving any explanation"
425        errorLine1="    @Ignore"
426        errorLine2="    ~~~~~~~">
427        <location
428            file="packages/modules/AdServices/adservices/tests/cts/src/android/adservices/cts/SetAppInstallAdvertisersRequestTest.java"
429            line="43"
430            column="5"/>
431    </issue>
432
433</issues>
434