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
Change-Id: I84a309f52c828e72e8bcdc43c7492a451d25b87f
diff --git a/Android.bp b/Android.bp
index fb1fa3b..f0aa62c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -511,6 +511,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 e864689..c0e102a 100644
--- a/location/Android.bp
+++ b/location/Android.bp
@@ -41,6 +41,9 @@
     },
     lint: {
         baseline_filename: "lint-baseline.xml",
+        warning_checks: [
+            "FlaggedApi",
+        ],
     },
 }
 
diff --git a/services/core/Android.bp b/services/core/Android.bp
index 53730e3..d9962c7 100644
--- a/services/core/Android.bp
+++ b/services/core/Android.bp
@@ -239,6 +239,9 @@
     ],
     lint: {
         baseline_filename: "lint-baseline.xml",
+        warning_checks: [
+            "FlaggedApi",
+        ],
     },
 }