Add lint baseline to address NewApi errors
We are enabling a new lint check where the min sdk != compile sdk.
It has produced a lot of errors and adding the baseline file(s)
allows us to continue work without introducing more problems.
Bug: 150847901
Test: m lint-check
Change-Id: I2c38dac481685470af8be115d867953325e75d94
Merged-In: I2c38dac481685470af8be115d867953325e75d94
diff --git a/staticlibs/client-libs/tests/unit/lint-baseline.xml b/staticlibs/client-libs/tests/unit/lint-baseline.xml
new file mode 100644
index 0000000..713e300
--- /dev/null
+++ b/staticlibs/client-libs/tests/unit/lint-baseline.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0">
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `com.android.net.module.util.CollectionUtils#all`"
+ errorLine1=" CollectionUtils.all(Arrays.asList(expectedFinalFlags),"
+ errorLine2=" ~~~">
+ <location
+ file="frameworks/libs/net/client-libs/tests/unit/src/com/android/net/module/util/NetdUtilsTest.java"
+ line="79"
+ column="41"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `com.android.net.module.util.CollectionUtils#all`"
+ errorLine1=" && CollectionUtils.all(Arrays.asList(config.flags),"
+ errorLine2=" ~~~">
+ <location
+ file="frameworks/libs/net/client-libs/tests/unit/src/com/android/net/module/util/NetdUtilsTest.java"
+ line="81"
+ column="44"/>
+ </issue>
+
+</issues>