xref: /aosp_15_r20/frameworks/base/location/lint-baseline.xml (revision d57664e9bc4670b3ecf6748a746a57c557b6bc9e)
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="FlaggedApi"
6        message="Method `Builder()` is a flagged API and should be inside an `if (Flags.newGeocoder())` check (or annotate the surrounding method `getFromLocation` with `@FlaggedApi(Flags.FLAG_NEW_GEOCODER) to transfer requirement to caller`)"
7        errorLine1="                new ReverseGeocodeRequest.Builder("
8        errorLine2="                ^">
9        <location
10            file="frameworks/base/location/java/android/location/Geocoder.java"
11            line="170"
12            column="17"/>
13    </issue>
14
15    <issue
16        id="FlaggedApi"
17        message="Method `setCallingAttributionTag()` is a flagged API and should be inside an `if (Flags.newGeocoder())` check (or annotate the surrounding method `getFromLocation` with `@FlaggedApi(Flags.FLAG_NEW_GEOCODER) to transfer requirement to caller`)"
18        errorLine1="            b.setCallingAttributionTag(mContext.getAttributionTag());"
19        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
20        <location
21            file="frameworks/base/location/java/android/location/Geocoder.java"
22            line="178"
23            column="13"/>
24    </issue>
25
26    <issue
27        id="FlaggedApi"
28        message="Method `build()` is a flagged API and should be inside an `if (Flags.newGeocoder())` check (or annotate the surrounding method `getFromLocation` with `@FlaggedApi(Flags.FLAG_NEW_GEOCODER) to transfer requirement to caller`)"
29        errorLine1="            mService.reverseGeocode(b.build(), new GeocodeCallbackImpl(listener));"
30        errorLine2="                                    ~~~~~~~~~">
31        <location
32            file="frameworks/base/location/java/android/location/Geocoder.java"
33            line="181"
34            column="37"/>
35    </issue>
36
37    <issue
38        id="FlaggedApi"
39        message="Method `Builder()` is a flagged API and should be inside an `if (Flags.newGeocoder())` check (or annotate the surrounding method `getFromLocationName` with `@FlaggedApi(Flags.FLAG_NEW_GEOCODER) to transfer requirement to caller`)"
40        errorLine1="                new ForwardGeocodeRequest.Builder("
41        errorLine2="                ^">
42        <location
43            file="frameworks/base/location/java/android/location/Geocoder.java"
44            line="322"
45            column="17"/>
46    </issue>
47
48    <issue
49        id="FlaggedApi"
50        message="Method `setCallingAttributionTag()` is a flagged API and should be inside an `if (Flags.newGeocoder())` check (or annotate the surrounding method `getFromLocationName` with `@FlaggedApi(Flags.FLAG_NEW_GEOCODER) to transfer requirement to caller`)"
51        errorLine1="            b.setCallingAttributionTag(mContext.getAttributionTag());"
52        errorLine2="            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
53        <location
54            file="frameworks/base/location/java/android/location/Geocoder.java"
55            line="333"
56            column="13"/>
57    </issue>
58
59    <issue
60        id="FlaggedApi"
61        message="Method `build()` is a flagged API and should be inside an `if (Flags.newGeocoder())` check (or annotate the surrounding method `getFromLocationName` with `@FlaggedApi(Flags.FLAG_NEW_GEOCODER) to transfer requirement to caller`)"
62        errorLine1="            mService.forwardGeocode(b.build(), new GeocodeCallbackImpl(listener));"
63        errorLine2="                                    ~~~~~~~~~">
64        <location
65            file="frameworks/base/location/java/android/location/Geocoder.java"
66            line="336"
67            column="37"/>
68    </issue>
69
70    <issue
71        id="FlaggedApi"
72        message="Method `getWorkSource()` is a flagged API and should be inside an `if (Flags.gnssApiMeasurementRequestWorkSource())` check (or annotate the surrounding method `Builder` with `@FlaggedApi(Flags.FLAG_GNSS_API_MEASUREMENT_REQUEST_WORK_SOURCE) to transfer requirement to caller`)"
73        errorLine1="            mWorkSource = request.getWorkSource();"
74        errorLine2="                          ~~~~~~~~~~~~~~~~~~~~~~~">
75        <location
76            file="frameworks/base/location/java/android/location/GnssMeasurementRequest.java"
77            line="234"
78            column="27"/>
79    </issue>
80
81</issues>
82