| <?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="FlaggedApi" |
| message="Method `requestPermissions()` is a flagged API and should be inside an `if (flags.deviceAwarePermissionApisEnabled())` check (or annotate the surrounding method `onRequestPermissions` with `@FlaggedApi(flags.device_aware_permission_apis_enabled) to transfer requirement to caller`)" |
| errorLine1=" requestPermissions(DEVICE_AWARE_PERMISSIONS, REQUEST_CODE_PERMISSIONS," |
| errorLine2=" ^"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/PermissionsDemoActivity.java" |
| line="92" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="FlaggedApi" |
| message="Method `requestPermissions()` is a flagged API and should be inside an `if (flags.deviceAwarePermissionApisEnabled())` check (or annotate the surrounding method `onRequestPermissions` with `@FlaggedApi(flags.device_aware_permission_apis_enabled) to transfer requirement to caller`)" |
| errorLine1=" requestPermissions(NON_DEVICE_AWARE_PERMISSIONS, REQUEST_CODE_PERMISSIONS," |
| errorLine2=" ^"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/PermissionsDemoActivity.java" |
| line="95" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="FlaggedApi" |
| message="Method `getScrollFrictionAmount()` is a flagged API and should be inside an `if (flags.viewconfigurationApis())` check (or annotate the surrounding method `onCreate` with `@FlaggedApi(flags.viewconfiguration_apis) to transfer requirement to caller`)" |
| errorLine1=" "Scroll Friction: " + vc.getScrollFrictionAmount());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="46" |
| column="43"/> |
| </issue> |
| |
| <issue |
| id="FlaggedApi" |
| message="Method `getDoubleTapTimeoutMillis()` is a flagged API and should be inside an `if (flags.viewconfigurationApis())` check (or annotate the surrounding method `onCreate` with `@FlaggedApi(flags.viewconfiguration_apis) to transfer requirement to caller`)" |
| errorLine1=" "Double Tap Timeout (millis): " + vc.getDoubleTapTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="48" |
| column="55"/> |
| </issue> |
| |
| <issue |
| id="FlaggedApi" |
| message="Method `getTapTimeoutMillis()` is a flagged API and should be inside an `if (flags.viewconfigurationApis())` check (or annotate the surrounding method `onCreate` with `@FlaggedApi(flags.viewconfiguration_apis) to transfer requirement to caller`)" |
| errorLine1=" "Tap Timeout (millis): " + vc.getTapTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="50" |
| column="48"/> |
| </issue> |
| |
| <issue |
| id="FlaggedApi" |
| message="Method `getLongPressTimeoutMillis()` is a flagged API and should be inside an `if (flags.viewconfigurationApis())` check (or annotate the surrounding method `onCreate` with `@FlaggedApi(flags.viewconfiguration_apis) to transfer requirement to caller`)" |
| errorLine1=" "Long Press Timeout (millis): " + vc.getLongPressTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="52" |
| column="55"/> |
| </issue> |
| |
| <issue |
| id="FlaggedApi" |
| message="Method `getMultiPressTimeoutMillis()` is a flagged API and should be inside an `if (flags.viewconfigurationApis())` check (or annotate the surrounding method `onCreate` with `@FlaggedApi(flags.viewconfiguration_apis) to transfer requirement to caller`)" |
| errorLine1=" "Multi Press Timeout (millis): " + vc.getMultiPressTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="54" |
| column="56"/> |
| </issue> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 35 (current min is 34): `android.app.Activity#requestPermissions`" |
| errorLine1=" requestPermissions(DEVICE_AWARE_PERMISSIONS, REQUEST_CODE_PERMISSIONS," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/PermissionsDemoActivity.java" |
| line="92" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="NewApi" |
| message="Call requires API level 35 (current min is 34): `android.app.Activity#requestPermissions`" |
| errorLine1=" requestPermissions(NON_DEVICE_AWARE_PERMISSIONS, REQUEST_CODE_PERMISSIONS," |
| errorLine2=" ~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/PermissionsDemoActivity.java" |
| line="95" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="PictureInPictureIssue" |
| message="An activity in this app supports picture-in-picture and the targetSdkVersion is 31 or above; it is therefore strongly recommended to call both `setAutoEnterEnabled(true)` and `setSourceRectHint(...)`" |
| errorLine1=" <application" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="./out/soong/.intermediates/development/samples/VirtualDeviceManager/VdmDemos/android_common/manifest_merger/AndroidManifest.xml" |
| line="33" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="SelectedPhotoAccess" |
| message="Your app is currently not handling Selected Photos Access introduced in Android 14+" |
| errorLine1=" <uses-permission android:name="android.permission.READ_MEDIA_IMAGES" />" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="./out/soong/.intermediates/development/samples/VirtualDeviceManager/VdmDemos/android_common/manifest_merger/AndroidManifest.xml" |
| line="19" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="DiscouragedApi" |
| message="Use of `scheduleAtFixedRate` is strongly discouraged because it can lead to unexpected behavior when Android processes become cached (tasks may unexpectedly execute hundreds or thousands of times in quick succession when a process changes from cached to uncached); prefer using `scheduleWithFixedDelay`" |
| errorLine1=" mExecutor.scheduleAtFixedRate(" |
| errorLine2=" ^"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/LatencyDemoActivity.java" |
| line="48" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="DiscouragedApi" |
| message="Use of `scheduleAtFixedRate` is strongly discouraged because it can lead to unexpected behavior when Android processes become cached (tasks may unexpectedly execute hundreds or thousands of times in quick succession when a process changes from cached to uncached); prefer using `scheduleWithFixedDelay`" |
| errorLine1=" mExecutor.scheduleAtFixedRate(" |
| errorLine2=" ^"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/LatencyDemoActivity.java" |
| line="48" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="SystemPermissionTypo" |
| message="Did you mean `android.permission.POST_NOTIFICATIONS`?" |
| errorLine1=" <uses-permission android:name="android.permission.POST_NOTIFICATION" />" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="./out/soong/.intermediates/development/samples/VirtualDeviceManager/VdmDemos/android_common/manifest_merger/AndroidManifest.xml" |
| line="23" |
| column="36"/> |
| </issue> |
| |
| <issue |
| id="Wakelock" |
| message="Wakelocks should be released in `onPause`, not `onDestroy`" |
| errorLine1=" mProximityWakeLock.release();" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/DisplayPowerDemoActivity.java" |
| line="87" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="WakelockTimeout" |
| message="Provide a timeout when requesting a wakelock with `PowerManager.Wakelock.acquire(long timeout)`. This will ensure the OS will cleanup any wakelocks that last longer than you intend, and will save your user's battery." |
| errorLine1=" mProximityWakeLock.acquire();" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/DisplayPowerDemoActivity.java" |
| line="58" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="MissingApplicationIcon" |
| message="Should explicitly set `android:icon`, there is no default" |
| errorLine1=" <application" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="./out/soong/.intermediates/development/samples/VirtualDeviceManager/VdmDemos/android_common/manifest_merger/AndroidManifest.xml" |
| line="33" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="ClickableViewAccessibility" |
| message="Custom view `StylusDrawingView` overrides `onTouchEvent` but not `performClick`" |
| errorLine1=" public boolean onTouchEvent(MotionEvent event) {" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/StylusDrawingView.java" |
| line="103" |
| column="20"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Number formatting does not take into account locale settings. Consider using `String.format` instead." |
| errorLine1=" mTemperature.setText(Float.toString(info.floatValues[0]));" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/SensorDemoActivity.java" |
| line="71" |
| column="38"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Touch Slop (pixels): " + vc.getScaledTouchSlop());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="38" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Touch Slop (pixels): " + vc.getScaledTouchSlop());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="38" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Min Fling Velocity (pixels per second): " + vc.getScaledMinimumFlingVelocity());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="40" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Min Fling Velocity (pixels per second): " + vc.getScaledMinimumFlingVelocity());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="40" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Max Fling Velocity (pixels per second): " + vc.getScaledMaximumFlingVelocity());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="42" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Max Fling Velocity (pixels per second): " + vc.getScaledMaximumFlingVelocity());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="42" |
| column="17"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Scroll Friction: " + vc.getScrollFrictionAmount());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="46" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Scroll Friction: " + vc.getScrollFrictionAmount());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="46" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Double Tap Timeout (millis): " + vc.getDoubleTapTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="48" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Double Tap Timeout (millis): " + vc.getDoubleTapTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="48" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Tap Timeout (millis): " + vc.getTapTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="50" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Tap Timeout (millis): " + vc.getTapTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="50" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Long Press Timeout (millis): " + vc.getLongPressTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="52" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Long Press Timeout (millis): " + vc.getLongPressTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="52" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="Do not concatenate text displayed with `setText`. Use resource string with placeholders." |
| errorLine1=" "Multi Press Timeout (millis): " + vc.getMultiPressTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="54" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="SetTextI18n" |
| message="String literal in `setText` can not be translated. Use Android resources instead." |
| errorLine1=" "Multi Press Timeout (millis): " + vc.getMultiPressTimeoutMillis());" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/src/com/example/android/vdmdemo/demos/ViewConfigurationDemoActivity.java" |
| line="54" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Proximity Lock", should use `@string` resource" |
| errorLine1=" android:text="Proximity Lock" />" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/res/layout/display_power_demo_activity.xml" |
| line="13" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Keep Screen On", should use `@string` resource" |
| errorLine1=" android:text="Keep Screen On" />" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/res/layout/display_power_demo_activity.xml" |
| line="20" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Override Screen Brightness", should use `@string` resource" |
| errorLine1=" android:text="Override Screen Brightness" />" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/res/layout/display_power_demo_activity.xml" |
| line="27" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Launch Turn Screen On Activity", should use `@string` resource" |
| errorLine1=" android:text="Launch Turn Screen On Activity" />" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/res/layout/display_power_demo_activity.xml" |
| line="43" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Launch Turn Screen On Show When Locked Activity", should use `@string` resource" |
| errorLine1=" android:text="Launch Turn Screen On Show When Locked Activity" />" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/res/layout/display_power_demo_activity.xml" |
| line="49" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="HardcodedText" |
| message="Hardcoded string "Internal Sensor Temperature", should use `@string` resource" |
| errorLine1=" android:text="Internal Sensor Temperature"/>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="development/samples/VirtualDeviceManager/demos/res/layout/sensor_demo_activity.xml" |
| line="49" |
| column="13"/> |
| </issue> |
| |
| </issues> |