aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorPedro Loureiro <pedroql@google.com>2021-04-15 11:49:52 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-04-15 11:49:52 +0000
commit0605aae4de600edd7aa08d32568ea67a7dac4d3e (patch)
tree1a3a3661ebe2f73c656c121c740bf31e201bfb7a /java
parentb7027a66148bcc0b0957d63e6ea1b6a14a59d8cc (diff)
parent685abcb913a626bce9cac9e4cab61eb51d86660f (diff)
downloadlatinime-0605aae4de600edd7aa08d32568ea67a7dac4d3e.tar.gz
latinime-0605aae4de600edd7aa08d32568ea67a7dac4d3e.tar.xz
latinime-0605aae4de600edd7aa08d32568ea67a7dac4d3e.zip
Merge "Add lint baseline to address NewApi errors" am: 685abcb913
Original change: https://android-review.googlesource.com/c/platform/packages/inputmethods/LatinIME/+/1675572 Change-Id: I7d81740175550e0be44ac9069bfa6e2f1fb8716d
Diffstat (limited to 'java')
-rw-r--r--java/lint-baseline.xml81
1 files changed, 81 insertions, 0 deletions
diff --git a/java/lint-baseline.xml b/java/lint-baseline.xml
new file mode 100644
index 000000000..02f41f4e4
--- /dev/null
+++ b/java/lint-baseline.xml
@@ -0,0 +1,81 @@
+<?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 23 (current min is 21): `android.graphics.Paint#hasGlyph`"
+ errorLine1=" return paint.hasGlyph(switzerland);"
+ errorLine2=" ~~~~~~~~">
+ <location
+ file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java"
+ line="445"
+ column="26"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 23 (current min is 21): `android.graphics.Paint#hasGlyph`"
+ errorLine1=" return paint.hasGlyph(cheese);"
+ errorLine2=" ~~~~~~~~">
+ <location
+ file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/emoji/EmojiCategory.java"
+ line="461"
+ column="26"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
+ errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);"
+ errorLine2=" ~~~~~~~~~~~~~~~~">
+ <location
+ file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
+ line="606"
+ column="34"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
+ errorLine1=" final WindowManager wm = getSystemService(WindowManager.class);"
+ errorLine2=" ~~~~~~~~~~~~~~~~">
+ <location
+ file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
+ line="804"
+ column="34"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 23 (current min is 21): `android.app.ActivityOptions#makeBasic`"
+ errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
+ errorLine2=" ~~~~~~~~~">
+ <location
+ file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
+ line="1823"
+ column="33"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 26 (current min is 21): `android.app.ActivityOptions#setLaunchDisplayId`"
+ errorLine1=" ActivityOptions.makeBasic().setLaunchDisplayId(currentDisplayId).toBundle());"
+ errorLine2=" ~~~~~~~~~~~~~~~~~~">
+ <location
+ file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/LatinIME.java"
+ line="1823"
+ column="45"/>
+ </issue>
+
+ <issue
+ id="NewApi"
+ message="Call requires API level 23 (current min is 21): `android.content.Context#getSystemService`"
+ errorLine1=" final UserManager userManager = context.getSystemService(UserManager.class);"
+ errorLine2=" ~~~~~~~~~~~~~~~~">
+ <location
+ file="packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/UserManagerCompatUtils.java"
+ line="69"
+ column="49"/>
+ </issue>
+
+</issues>