Demote Lint FlaggedApi violations to warnings

Lint FlaggedApi violations were recently promoted to errors. In most cases,
existing violations have been baselined. However, some projects still have
violations that have not been addressed, and baselining these has proven
difficult.

As a step towards a fully baselined (or better, fixed) codebase, demote Lint
FlaggedApi violations to warnings for the remaining projects.

Bug: 303434307
Test: presubmit
Flag: EXEMPT not possible to flag Android.bp changes
Merged-In: I84a309f52c828e72e8bcdc43c7492a451d25b87f
Change-Id: I84a309f52c828e72e8bcdc43c7492a451d25b87f
diff --git a/Android.bp b/Android.bp
index b739c43..5211fe2 100644
--- a/Android.bp
+++ b/Android.bp
@@ -506,6 +506,9 @@
     },
     lint: {
         baseline_filename: "lint-baseline.xml",
+        warning_checks: [
+            "FlaggedApi",
+        ],
     },
     jarjar_prefix: "com.android.internal.hidden_from_bootclasspath",
 }
diff --git a/location/Android.bp b/location/Android.bp
index 5ba35ac..7f3442c 100644
--- a/location/Android.bp
+++ b/location/Android.bp
@@ -39,6 +39,11 @@
             "frameworks/base/core/java",
         ],
     },
+    lint: {
+        warning_checks: [
+            "FlaggedApi",
+        ],
+    },
 }
 
 platform_compat_config {
diff --git a/services/core/Android.bp b/services/core/Android.bp
index 7fb2250..827c7b3 100644
--- a/services/core/Android.bp
+++ b/services/core/Android.bp
@@ -267,6 +267,9 @@
     ],
     lint: {
         baseline_filename: "lint-baseline.xml",
+        warning_checks: [
+            "FlaggedApi",
+        ],
     },
 }