blob: a10b302fb6075a2b8d10c2d0d76bd05dc6d7d60b [file]
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.13.0-alpha04" type="baseline" client="" dependencies="true" name="" variant="all" version="8.13.0-alpha04">
<issue
id="OnClick"
message="Corresponding method handler &apos;`public void onCreateHomeDisplay(android.view.View)`&apos; not found"
errorLine1=" android:onClick=&quot;onCreateHomeDisplay&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/activity_main.xml"
line="39"
column="17"/>
</issue>
<issue
id="OnClick"
message="Corresponding method handler &apos;`public void onCreateMirrorDisplay(android.view.View)`&apos; not found"
errorLine1=" android:onClick=&quot;onCreateMirrorDisplay&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/activity_main.xml"
line="47"
column="17"/>
</issue>
<issue
id="OnClick"
message="Corresponding method handler &apos;`public void onCreateDesktopDisplay(android.view.View)`&apos; not found"
errorLine1=" android:onClick=&quot;onCreateDesktopDisplay&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/activity_main.xml"
line="62"
column="17"/>
</issue>
<issue
id="OnClick"
message="Corresponding method handler &apos;`public void onCanceled(android.view.View)`&apos; not found"
errorLine1=" android:onClick=&quot;onCanceled&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/unlock_keyguard_dialog.xml"
line="19"
column="9"/>
</issue>
<issue
id="ApplySharedPref"
message="Consider using `apply()` instead; `commit` writes its data to persistent storage immediately, whereas `apply` will handle it in the background"
errorLine1=" .commit();"
errorLine2=" ~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/InputActivity.java"
line="128"
column="18"/>
</issue>
<issue
id="ApplySharedPref"
message="Consider using `apply()` instead; `commit` writes its data to persistent storage immediately, whereas `apply` will handle it in the background"
errorLine1=" editor.commit();"
errorLine2=" ~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/PreferenceController.java"
line="213"
column="16"/>
</issue>
<issue
id="FlaggedApi"
message="Method `InsetsParams()` is a flagged API and should be inside an `if (Flags.statusBarAndInsets())` check (or annotate the surrounding method `create` with `@FlaggedApi(Flags.FLAG_STATUS_BAR_AND_INSETS) to transfer requirement to caller`)"
errorLine1=" lp.setInsetsParams(List.of(new WindowManager.InsetsParams(WindowInsets.Type.statusBars())"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/StatusBar.java"
line="121"
column="36"/>
</issue>
<issue
id="FlaggedApi"
message="Method `setInsetsParams()` is a flagged API and should be inside an `if (Flags.statusBarAndInsets())` check (or annotate the surrounding method `create` with `@FlaggedApi(Flags.FLAG_STATUS_BAR_AND_INSETS) to transfer requirement to caller`)"
errorLine1=" lp.setInsetsParams(List.of(new WindowManager.InsetsParams(WindowInsets.Type.statusBars())"
errorLine2=" ^">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/StatusBar.java"
line="121"
column="9"/>
</issue>
<issue
id="FlaggedApi"
message="Method `setInsetsSize()` is a flagged API and should be inside an `if (Flags.statusBarAndInsets())` check (or annotate the surrounding method `create` with `@FlaggedApi(Flags.FLAG_STATUS_BAR_AND_INSETS) to transfer requirement to caller`)"
errorLine1=" lp.setInsetsParams(List.of(new WindowManager.InsetsParams(WindowInsets.Type.statusBars())"
errorLine2=" ^">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/StatusBar.java"
line="121"
column="36"/>
</issue>
<issue
id="FlaggedApi"
message="Field `DEVICE_PROFILE_VIRTUAL_DEVICE` is a flagged API and should be inside an `if (Flags.enableLimitedVdmRole())` check (or annotate the surrounding method `associateAndCreateVirtualDevice` with `@FlaggedApi(Flags.FLAG_ENABLE_LIMITED_VDM_ROLE) to transfer requirement to caller`)"
errorLine1=" if (deviceProfile.equals(AssociationRequest.DEVICE_PROFILE_VIRTUAL_DEVICE)) {"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/VdmService.java"
line="495"
column="53"/>
</issue>
<issue
id="FlaggedApi"
message="Method `setDimDuration()` is a flagged API and should be inside an `if (Flags.deviceAwareDisplayPower())` check (or annotate the surrounding method `createVirtualDevice` with `@FlaggedApi(Flags.FLAG_DEVICE_AWARE_DISPLAY_POWER) to transfer requirement to caller`)"
errorLine1=" virtualDeviceBuilder"
errorLine2=" ^">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/VdmService.java"
line="582"
column="13"/>
</issue>
<issue
id="FlaggedApi"
message="Method `setScreenOffTimeout()` is a flagged API and should be inside an `if (Flags.deviceAwareDisplayPower())` check (or annotate the surrounding method `createVirtualDevice` with `@FlaggedApi(Flags.FLAG_DEVICE_AWARE_DISPLAY_POWER) to transfer requirement to caller`)"
errorLine1=" virtualDeviceBuilder"
errorLine2=" ^">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/VdmService.java"
line="582"
column="13"/>
</issue>
<issue
id="FlaggedApi"
message="Method `setDisplayUiMode()` is a flagged API and should be inside an `if (Flags.deviceAwareUiMode())` check (or annotate the surrounding method `updateUiMode` with `@FlaggedApi(Flags.FLAG_DEVICE_AWARE_UI_MODE) to transfer requirement to caller`)"
errorLine1=" displayId -> mVirtualDevice.setDisplayUiMode(displayId, finalUiMode));"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/VdmService.java"
line="818"
column="34"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 36.1 (current min is 34): `android.companion.virtual.sensor.VirtualSensor#sendAdditionalInfo`"
errorLine1=" sensor.sendAdditionalInfo("
errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/RemoteSensorManager.java"
line="104"
column="24"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 36.1 (current min is 34): `new android.companion.virtual.sensor.VirtualSensorAdditionalInfo.Builder`"
errorLine1=" new VirtualSensorAdditionalInfo.Builder(TYPE_INTERNAL_TEMPERATURE)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/RemoteSensorManager.java"
line="105"
column="25"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 36.1 (current min is 34): `android.companion.virtual.sensor.VirtualSensorAdditionalInfo.Builder#addValues`"
errorLine1=" .addValues(Floats.toArray(sensorEvent.getValuesList()))"
errorLine2=" ~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/RemoteSensorManager.java"
line="106"
column="34"/>
</issue>
<issue
id="NewApi"
message="Call requires API level 36.1 (current min is 34): `android.companion.virtual.sensor.VirtualSensorAdditionalInfo.Builder#build`"
errorLine1=" .build());"
errorLine2=" ~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/RemoteSensorManager.java"
line="107"
column="34"/>
</issue>
<issue
id="UnusedAttribute"
message="Attribute `isVirtualDeviceOnly` is only used in API level 35 and higher (current min is 34)"
errorLine1=" android:isVirtualDeviceOnly=&quot;true&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/xml/proxy_ime.xml"
line="4"
column="5"/>
</issue>
<issue
id="AppCompatResource"
message="Should use `android:showAsAction` when not using the appcompat library"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="8"
column="9"/>
</issue>
<issue
id="AppCompatResource"
message="Should use `android:showAsAction` when not using the appcompat library"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="13"
column="9"/>
</issue>
<issue
id="AppCompatResource"
message="Should use `android:showAsAction` when not using the appcompat library"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="18"
column="9"/>
</issue>
<issue
id="AppCompatResource"
message="Should use `android:showAsAction` when not using the appcompat library"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="23"
column="9"/>
</issue>
<issue
id="AppCompatResource"
message="Should use `android:showAsAction` when not using the appcompat library"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="28"
column="9"/>
</issue>
<issue
id="AppCompatResource"
message="Should use `android:showAsAction` when not using the appcompat library"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/options.xml"
line="9"
column="9"/>
</issue>
<issue
id="AppCompatResource"
message="Should use `android:showAsAction` when not using the appcompat library"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/options.xml"
line="14"
column="9"/>
</issue>
<issue
id="InflateParams"
message="Avoid passing `null` as the view root (needed to resolve layout parameters on the inflated layout&apos;s root element)"
errorLine1=" StatusBar statusBar = (StatusBar) inflater.inflate(R.layout.status_bar, null);"
errorLine2=" ~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/StatusBar.java"
line="125"
column="81"/>
</issue>
<issue
id="Overdraw"
message="Possible overdraw: Root element paints background `?attr/colorButtonNormal` with a theme that also paints a background (inferred theme is `@style/AppTheme`)"
errorLine1=" android:background=&quot;?attr/colorButtonNormal&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/fragment_input_mouse.xml"
line="7"
column="5"/>
</issue>
<issue
id="MissingApplicationIcon"
message="Should explicitly set `android:icon`, there is no default"
errorLine1=" &lt;application"
errorLine2=" ~~~~~~~~~~~">
<location
file="./out/soong/.intermediates/development/samples/VirtualDeviceManager/VdmHost/android_common/manifest_merger/AndroidManifest.xml"
line="54"
column="6"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" &lt;Button"
errorLine2=" ~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/activity_main.xml"
line="34"
column="14"/>
</issue>
<issue
id="ButtonStyle"
message="Buttons in button bars should be borderless; use `style=&quot;?android:attr/buttonBarButtonStyle&quot;` (and `?android:attr/buttonBarStyle` on the parent)"
errorLine1=" &lt;Button"
errorLine2=" ~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/activity_main.xml"
line="42"
column="14"/>
</issue>
<issue
id="AlwaysShowAction"
message="Prefer &quot;`ifRoom`&quot; instead of &quot;`always`&quot;"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="8"
column="9"/>
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="13"
column="9"/>
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="18"
column="9"/>
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="23"
column="9"/>
<location
file="development/samples/VirtualDeviceManager/host/res/menu/display.xml"
line="28"
column="9"/>
</issue>
<issue
id="AlwaysShowAction"
message="Prefer &quot;`ifRoom`&quot; instead of &quot;`always`&quot;"
errorLine1=" app:showAsAction=&quot;always&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/menu/options.xml"
line="9"
column="9"/>
<location
file="development/samples/VirtualDeviceManager/host/res/menu/options.xml"
line="14"
column="9"/>
</issue>
<issue
id="ClickableViewAccessibility"
message="`onTouch` lambda should call `View#performClick` when a click is detected"
errorLine1=" textureView.setOnTouchListener((v, event) -> {"
errorLine2=" ^">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/DisplayActivity.java"
line="201"
column="40"/>
</issue>
<issue
id="ClickableViewAccessibility"
message="Custom view ``TextView`` has `setOnTouchListener` called on it but does not override `performClick`"
errorLine1=" touchpad.setOnTouchListener((v, e) -> {"
errorLine2=" ^">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/MouseFragment.java"
line="61"
column="9"/>
</issue>
<issue
id="ClickableViewAccessibility"
message="`onTouch` lambda should call `View#performClick` when a click is detected"
errorLine1=" touchpad.setOnTouchListener((v, e) -> {"
errorLine2=" ^">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/MouseFragment.java"
line="61"
column="37"/>
</issue>
<issue
id="ClickableViewAccessibility"
message="Custom view ``TextView`` has `setOnTouchListener` called on it but does not override `performClick`"
errorLine1=" touchpad.setOnTouchListener(this::sendMotionEvent);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/src/com/example/android/vdmdemo/host/StylusFragment.java"
line="91"
column="9"/>
</issue>
<issue
id="HardcodedText"
message="Hardcoded string &quot;Cancel&quot;, should use `@string` resource"
errorLine1=" android:text=&quot;Cancel&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~">
<location
file="development/samples/VirtualDeviceManager/host/res/layout/unlock_keyguard_dialog.xml"
line="15"
column="9"/>
</issue>
<issue
id="RtlEnabled"
message="The project references RTL attributes, but does not explicitly enable or disable RTL support with `android:supportsRtl` in the manifest">
<location
file="./out/soong/.intermediates/development/samples/VirtualDeviceManager/VdmHost/android_common/manifest_merger/AndroidManifest.xml"/>
</issue>
<issue
id="RtlEnabled"
message="The project references RTL attributes, but does not explicitly enable or disable RTL support with `android:supportsRtl` in the manifest">
<location
file="./out/soong/.intermediates/development/samples/VirtualDeviceManager/VdmHost/android_common/manifest_merger/AndroidManifest.xml"/>
</issue>
</issues>