Baseline NewApi issues
NewApi was recently updated to support linting methods in
the system, module_lib, and system_server sdks, and was
demoted to a warning due to the new issues it finds.
Baseline all the new issues that NewApi can be made an error
again.
These cls were generated automatically by a script that
copied the NewApi issues from the reference baselines.
Bug: 268261262
Test: m lint-check
Change-Id: Ib3019d3fff5476952db0a19b7d978fc31e6c8c0d
diff --git a/java/com/android/modules/utils/lint-baseline.xml b/java/com/android/modules/utils/lint-baseline.xml
new file mode 100644
index 0000000..65f18c6
--- /dev/null
+++ b/java/com/android/modules/utils/lint-baseline.xml
@@ -0,0 +1,103 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<issues format="6" by="lint 8.0.0-dev" type="baseline" dependencies="true" variant="all" version="8.0.0-dev">
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `dalvik.system.VMRuntime#newNonMovableArray`"
+ errorLine1=" final byte[] tmp = (byte[]) mRuntime.newNonMovableArray(byte.class, len + 1);"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/FastDataInput.java"
+ line="176"
+ column="50"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `dalvik.system.VMRuntime#newNonMovableArray`"
+ errorLine1=" final byte[] tmp = (byte[]) mRuntime.newNonMovableArray(byte.class, len + 1);"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/FastDataOutput.java"
+ line="166"
+ column="50"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `dalvik.system.VMRuntime#newNonMovableArray`"
+ errorLine1=" mBuffer = (byte[]) mRuntime.newNonMovableArray(byte.class, bufferSize);"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/FastDataInput.java"
+ line="67"
+ column="37"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `dalvik.system.VMRuntime#newNonMovableArray`"
+ errorLine1=" mBuffer = (byte[]) mRuntime.newNonMovableArray(byte.class, bufferSize);"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/FastDataOutput.java"
+ line="64"
+ column="37"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `libcore.util.HexEncoding#decode`"
+ errorLine1=" ruleMask = HexEncoding.decode(value.substring(nextMask + 1, nextRule));"
+ errorLine2=" ~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/BytesMatcher.java"
+ line="268"
+ column="40"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `libcore.util.HexEncoding#decode`"
+ errorLine1=" ruleValue = HexEncoding.decode(value.substring(i + 1, nextMask));"
+ errorLine2=" ~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/BytesMatcher.java"
+ line="267"
+ column="41"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `libcore.util.HexEncoding#decode`"
+ errorLine1=" ruleValue = HexEncoding.decode(value.substring(i + 1, nextRule));"
+ errorLine2=" ~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/BytesMatcher.java"
+ line="270"
+ column="41"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `libcore.util.HexEncoding#encodeToString`"
+ errorLine1=" builder.append(HexEncoding.encodeToString(this.mask));"
+ errorLine2=" ~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/BytesMatcher.java"
+ line="79"
+ column="44"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 31 (current min is 29): `libcore.util.HexEncoding#encodeToString`"
+ errorLine1=" builder.append(HexEncoding.encodeToString(this.value));"
+ errorLine2=" ~~~~~~~~~~~~~~">
+ <location
+ file="frameworks/libs/modules-utils/java/com/android/modules/utils/BytesMatcher.java"
+ line="76"
+ column="40"/>
+ </issue>
+
+</issues>
\ No newline at end of file