Merge "Update lint baseline for AutofillKeyboard" am: 62ce42ad0a

Original change: https://android-review.googlesource.com/c/platform/development/+/1827714

Change-Id: I78f516d51a23accdf30dac03e52e2c6f1c28d118
This commit is contained in:
Treehugger Robot
2021-12-03 16:44:30 +00:00
committed by Automerger Merge Worker

View File

@@ -1,246 +1,404 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<issues format="5" by="lint 4.1.0" client="cli" variant="all" version="4.1.0"> <issues format="5" by="lint 7.2.0-dev" client="cli" variant="all" version="4.1.0">
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `setZOrderedOnTop`" message="Call requires API level 30 (current min is 29): `setZOrderedOnTop`">
errorLine1=" mScrollableSuggestionsClip.setZOrderedOnTop(false);"
errorLine2=" ~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="82" line="82"/>
column="36"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `setZOrderedOnTop`" message="Call requires API level 30 (current min is 29): `setZOrderedOnTop`">
errorLine1=" mScrollableSuggestionsClip.setZOrderedOnTop(true);"
errorLine2=" ~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="88" line="88"/>
column="36"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.view.inputmethod.InlineSuggestionsResponse#getInlineSuggestions`" message="Call requires API level 30 (current min is 29): `android.view.inputmethod.InlineSuggestionsResponse#getInlineSuggestions`">
errorLine1=" final List&lt;InlineSuggestion> inlineSuggestions = response.getInlineSuggestions();"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="151" line="151"/>
column="67"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `newStylesBuilder`" message="Call requires API level 30 (current min is 29): `newStylesBuilder`">
errorLine1=" StylesBuilder stylesBuilder = UiVersions.newStylesBuilder();"
errorLine2=" ~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="229" line="229"/>
column="50"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `newStyleBuilder`" message="Call requires API level 30 (current min is 29): `newStyleBuilder`">
errorLine1=" Style style = InlineSuggestionUi.newStyleBuilder()"
errorLine2=" ~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="230" line="230"/>
column="42"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `new android.widget.inline.InlinePresentationSpec.Builder`" message="Call requires API level 30 (current min is 29): `Builder`">
errorLine1=" presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, getHeight()),"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="262" line="232"/>
column="31"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#build`" message="Call requires API level 30 (current min is 29): `setBackground`">
errorLine1=" new Size(740, getHeight())).setStyle(stylesBundle).build());"
errorLine2=" ~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="263" line="233"/>
column="68"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#setStyle`" message="Call requires API level 30 (current min is 29): `setPadding`">
errorLine1=" new Size(740, getHeight())).setStyle(stylesBundle).build());"
errorLine2=" ~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="263" line="235"/>
column="45"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `new android.widget.inline.InlinePresentationSpec.Builder`" message="Call requires API level 30 (current min is 29): `build`">
errorLine1=" presentationSpecs.add(new InlinePresentationSpec.Builder(new Size(100, getHeight()),"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="264" line="236"/>
column="31"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#build`" message="Call requires API level 30 (current min is 29): `Builder`">
errorLine1=" new Size(740, getHeight())).setStyle(stylesBundle).build());"
errorLine2=" ~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="265" line="238"/>
column="68"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#setStyle`" message="Call requires API level 30 (current min is 29): `setBackground`">
errorLine1=" new Size(740, getHeight())).setStyle(stylesBundle).build());"
errorLine2=" ~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="265" line="239"/>
column="45"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `new android.view.inputmethod.InlineSuggestionsRequest.Builder`" message="Call requires API level 30 (current min is 29): `setPadding`">
errorLine1=" return new InlineSuggestionsRequest.Builder(presentationSpecs)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="267" line="241"/>
column="16"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.view.inputmethod.InlineSuggestionsRequest.Builder#setMaxSuggestionCount`" message="Call requires API level 30 (current min is 29): `build`">
errorLine1=" .setMaxSuggestionCount(6)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="268" line="242"/>
column="18"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.view.inputmethod.InlineSuggestionsRequest.Builder#build`" message="Call requires API level 30 (current min is 29): `Builder`">
errorLine1=" .build();"
errorLine2=" ~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="269" line="243"/>
column="18"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.view.inputmethod.InlineSuggestionsResponse#getInlineSuggestions`" message="Call requires API level 30 (current min is 29): `build`">
errorLine1=" &quot;onInlineSuggestionsResponse() called: &quot; + response.getInlineSuggestions().size());"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="284" line="243"/>
column="69"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `setBackgroundColor`" message="Call requires API level 30 (current min is 29): `setLayoutMargin`">
errorLine1=" mScrollableSuggestionsClip.setBackgroundColor("
errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="301" line="243"/>
column="36"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Cast from `InlineContentView` to `View` requires API level 30 (current min is 29)" message="Call requires API level 30 (current min is 29): `Builder`">
errorLine1=" mPinnedSuggestionsStart.addView(suggestionView);"
errorLine2=" ~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="312" line="245"/>
column="53"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Cast from `InlineContentView` to `View` requires API level 30 (current min is 29)" message="Call requires API level 30 (current min is 29): `setLayoutMargin`">
errorLine1=" mPinnedSuggestionsEnd.addView(suggestionView);"
errorLine2=" ~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="314" line="246"/>
column="51"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Cast from `InlineContentView` to `View` requires API level 30 (current min is 29)" message="Call requires API level 30 (current min is 29): `setTextColor`">
errorLine1=" mScrollableSuggestions.addView(suggestionView);"
errorLine2=" ~~~~~~~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="317" line="247"/>
column="48"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.view.inputmethod.InlineSuggestion#inflate`" message="Call requires API level 30 (current min is 29): `setTextColor`">
errorLine1=" inlineSuggestion.inflate(this, size, executor, suggestionView -> {"
errorLine2=" ~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="363" line="247"/>
column="30"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.view.inputmethod.InlineSuggestion#getInfo`" message="Call requires API level 30 (current min is 29): `setTextSize`">
errorLine1=" suggestionView, /*isAction*/ inlineSuggestion.getInfo().isPinned());"
errorLine2=" ~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="374" line="248"/>
column="75"/>
</issue> </issue>
<issue <issue
id="NewApi" id="NewApi"
message="Call requires API level R (current min is 29): `android.view.inputmethod.InlineSuggestionInfo#isPinned`" message="Call requires API level 30 (current min is 29): `build`">
errorLine1=" suggestionView, /*isAction*/ inlineSuggestion.getInfo().isPinned());"
errorLine2=" ~~~~~~~~">
<location <location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java" file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="374" line="249"/>
column="85"/> </issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `Builder`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="251"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `setLayoutMargin`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="252"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `setTextColor`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="253"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `setTextColor`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="253"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `setTextSize`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="254"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `build`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="255"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `Builder`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="256"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `build`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="256"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `setLayoutMargin`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="256"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `addStyle`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="258"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `build`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="259"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `new android.widget.inline.InlinePresentationSpec.Builder`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="262"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#build`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="263"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#setStyle`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="263"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `new android.widget.inline.InlinePresentationSpec.Builder`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="264"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#build`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="265"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.widget.inline.InlinePresentationSpec.Builder#setStyle`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="265"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `new android.view.inputmethod.InlineSuggestionsRequest.Builder`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="267"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.view.inputmethod.InlineSuggestionsRequest.Builder#setMaxSuggestionCount`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="268"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.view.inputmethod.InlineSuggestionsRequest.Builder#build`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="269"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.view.inputmethod.InlineSuggestionsResponse#getInlineSuggestions`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="284"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `setBackgroundColor`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="301"/>
</issue>
<issue
id="NewApi"
message="Cast from `InlineContentView` to `View` requires API level 30 (current min is 29)">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="312"/>
</issue>
<issue
id="NewApi"
message="Cast from `InlineContentView` to `View` requires API level 30 (current min is 29)">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="314"/>
</issue>
<issue
id="NewApi"
message="Cast from `InlineContentView` to `View` requires API level 30 (current min is 29)">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="317"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.view.inputmethod.InlineSuggestion#inflate`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="363"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.view.inputmethod.InlineSuggestion#getInfo`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="374"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 30 (current min is 29): `android.view.inputmethod.InlineSuggestionInfo#isPinned`">
<location
file="development/samples/AutofillKeyboard/src/com/example/android/autofillkeyboard/AutofillImeService.java"
line="374"/>
</issue> </issue>
</issues> </issues>