| <?xml version="1.0" encoding="UTF-8"?> |
| <issues format="5" by="lint 4.2.0-alpha15" client="gradle" variant="debug" version="4.2.0-alpha15"> |
| |
| <issue |
| id="DefaultLocale" |
| message="Implicitly using the default locale is a common source of bugs: Use `toUpperCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`." |
| errorLine1=" is Boolean -> keyData.toString().toUpperCase()" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/transformations/DataTransformationsKeyValue.kt" |
| line="72" |
| column="46"/> |
| </issue> |
| |
| <issue |
| id="UnusedAttribute" |
| message="Attribute `autoSizeTextType` is only used in API level 26 and higher (current min is 21)" |
| errorLine1=" android:autoSizeTextType="uniform"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/key_value_layout.xml" |
| line="42" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="UnusedAttribute" |
| message="Attribute `autoSizeMinTextSize` is only used in API level 26 and higher (current min is 21)" |
| errorLine1=" android:autoSizeMinTextSize="5dp"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/key_value_layout.xml" |
| line="43" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="BanSynchronizedMethods" |
| message="Use of synchronized methods is not recommended" |
| errorLine1=" /** Tell this object to configure the surface to match the desired size and pixel format. */" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/Viewfinder.kt" |
| line="314" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="BanSynchronizedMethods" |
| message="Use of synchronized methods is not recommended" |
| errorLine1=" @Synchronized" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/Viewfinder.kt" |
| line="382" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="BanSynchronizedMethods" |
| message="Use of synchronized methods is not recommended" |
| errorLine1=" @Synchronized" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/Viewfinder.kt" |
| line="408" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="MissingTestSizeAnnotation" |
| message="Missing test size annotation" |
| errorLine1=" fun useAppContext() {" |
| errorLine2=" ~~~~~~~~~~~~~"> |
| <location |
| file="src/androidTest/java/androidx/camera/integration/camera2/pipe/BasicInstrumentedTest.kt" |
| line="35" |
| column="9"/> |
| </issue> |
| |
| <issue |
| id="UnsafeNewApiCall" |
| message="This call is to a method from API 24, the call containing class androidx.camera.integration.camera2.pipe.CameraPipeApplication is not annotated with @RequiresApi(x) where x is at least 24. Either annotate the containing class with at least @RequiresApi(24) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(24)." |
| errorLine1=" val elapsedRealtime = Process.getStartElapsedRealtime()" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/CameraPipeApplication.kt" |
| line="47" |
| column="43"/> |
| </issue> |
| |
| <issue |
| id="SpUsage" |
| message="Should use "`sp`" instead of "`dp`" for text sizes" |
| errorLine1=" android:textSize="8dp"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/key_value_layout.xml" |
| line="41" |
| column="13"/> |
| </issue> |
| |
| <issue |
| id="UseCompatLoadingForDrawables" |
| message="Use `ResourcesCompat.getDrawable()`" |
| errorLine1=" private val recordBackground: Drawable = activity.resources.getDrawable(" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/CameraPipeUi.kt" |
| line="47" |
| column="46"/> |
| </issue> |
| |
| <issue |
| id="UseCompatLoadingForDrawables" |
| message="Use `ResourcesCompat.getDrawable()`" |
| errorLine1=" private val defaultBackground: Drawable = activity.resources.getDrawable(" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/CameraPipeUi.kt" |
| line="52" |
| column="47"/> |
| </issue> |
| |
| <issue |
| id="AllowBackup" |
| message="On SDK version 23 and up, your app data will be automatically backed up and restored on app install. Consider adding the attribute `android:fullBackupContent` to specify an `@xml` resource which configures which files to backup. More info: https://developer.android.com/training/backup/autosyncapi.html" |
| errorLine1=" <application" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/AndroidManifest.xml" |
| line="22" |
| column="6"/> |
| </issue> |
| |
| <issue |
| id="DrawAllocation" |
| message="Avoid object allocations during draw/layout operations (preallocate and reuse instead)" |
| errorLine1=" layoutState = LayoutState(" |
| errorLine2=" ^"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/visualizations/GraphView.kt" |
| line="64" |
| column="23"/> |
| </issue> |
| |
| <issue |
| id="DrawAllocation" |
| message="Avoid object allocations during draw/layout operations (preallocate and reuse instead)" |
| errorLine1=" val bounds = Rect()" |
| errorLine2=" ~~~~~~"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/visualizations/KeyValueView.kt" |
| line="52" |
| column="22"/> |
| </issue> |
| |
| <issue |
| id="Overdraw" |
| message="Possible overdraw: Root element paints background `@color/cameraPipeThemeBgDark100` with a theme that also paints a background (inferred theme is `@android:style/Theme.NoTitleBar.Fullscreen`)" |
| errorLine1=" android:background="@color/cameraPipeThemeBgDark100"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="21" |
| column="5"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.colorPrimary` appears to be unused" |
| errorLine1=" <color name="colorPrimary">#6200EE</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="17" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.colorPrimaryDark` appears to be unused" |
| errorLine1=" <color name="colorPrimaryDark">#3700B3</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="18" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.colorAccent` appears to be unused" |
| errorLine1=" <color name="colorAccent">#03DAC5</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="19" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.blackTransparent` appears to be unused" |
| errorLine1=" <color name="blackTransparent">#C0000000</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="20" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.transparent` appears to be unused" |
| errorLine1=" <color name="transparent">#00000000</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="23" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.gray` appears to be unused" |
| errorLine1=" <color name="gray">#978082</color>" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="26" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.cameraPipeThemeBgOverlayDark50` appears to be unused" |
| errorLine1=" <color name="cameraPipeThemeBgOverlayDark50">#DD080808</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="33" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.cameraPipeThemeFgLight700` appears to be unused" |
| errorLine1=" <color name="cameraPipeThemeFgLight700">#FFD0D0D0</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="42" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.cameraPipeThemeFgLight900` appears to be unused" |
| errorLine1=" <color name="cameraPipeThemeFgLight900">#FFFCFCFC</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="44" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.cameraPipeThemeFgAccent` appears to be unused" |
| errorLine1=" <color name="cameraPipeThemeFgAccent">#FF0090D0</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="47" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.cameraPipeThemeFgError800` appears to be unused" |
| errorLine1=" <color name="cameraPipeThemeFgError800">#FFD00000</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="48" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="UnusedResources" |
| message="The resource `R.color.cameraPipeThemeFgError900` appears to be unused" |
| errorLine1=" <color name="cameraPipeThemeFgError900">#FFE00000</color>" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/values/colors.xml" |
| line="49" |
| column="12"/> |
| </issue> |
| |
| <issue |
| id="RedundantNamespace" |
| message="This namespace declaration is redundant" |
| errorLine1=" <item xmlns:android="http://schemas.android.com/apk/res/android">" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/drawable/theme_info_panel.xml" |
| line="21" |
| column="11"/> |
| </issue> |
| |
| <issue |
| id="SmallSp" |
| message="Avoid using sizes smaller than `12sp`: `10sp`" |
| errorLine1=" android:textSize="10sp"" |
| errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="142" |
| column="21"/> |
| </issue> |
| |
| <issue |
| id="ViewConstructor" |
| message="Custom view `KeyValueView` is missing constructor used by tools: `(Context)` or `(Context,AttributeSet)` or `(Context,AttributeSet,int)`" |
| errorLine1="class KeyValueView(" |
| errorLine2=" ~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/visualizations/KeyValueView.kt" |
| line="27" |
| column="7"/> |
| </issue> |
| |
| <issue |
| id="ViewConstructor" |
| message="Custom view `StateGraphView` is missing constructor used by tools: `(Context)` or `(Context,AttributeSet)` or `(Context,AttributeSet,int)`" |
| errorLine1="class StateGraphView(" |
| errorLine2=" ~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/visualizations/StateGraphView.kt" |
| line="26" |
| column="7"/> |
| </issue> |
| |
| <issue |
| id="ViewConstructor" |
| message="Custom view `ValueGraphView` is missing constructor used by tools: `(Context)` or `(Context,AttributeSet)` or `(Context,AttributeSet,int)`" |
| errorLine1="class ValueGraphView(" |
| errorLine2=" ~~~~~~~~~~~~~~"> |
| <location |
| file="src/main/java/androidx/camera/integration/camera2/pipe/visualizations/ValueGraphView.kt" |
| line="26" |
| column="7"/> |
| </issue> |
| |
| <issue |
| id="ContentDescription" |
| message="Missing `contentDescription` attribute on image" |
| errorLine1=" <ImageButton" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="73" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="ContentDescription" |
| message="Missing `contentDescription` attribute on image" |
| errorLine1=" <ImageButton" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="89" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="ContentDescription" |
| message="Missing `contentDescription` attribute on image" |
| errorLine1=" <ImageButton" |
| errorLine2=" ~~~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/activity_main.xml" |
| line="99" |
| column="10"/> |
| </issue> |
| |
| <issue |
| id="RtlHardcoded" |
| message="Use "`start`" instead of "`left`" to ensure correct behavior in right-to-left locales" |
| errorLine1=" android:layout_gravity="left"" |
| errorLine2=" ~~~~"> |
| <location |
| file="src/main/res/layout/key_value_layout.xml" |
| line="38" |
| column="37"/> |
| </issue> |
| |
| <issue |
| id="RtlHardcoded" |
| message="Use "`end`" instead of "`right`" to ensure correct behavior in right-to-left locales" |
| errorLine1=" android:layout_gravity="top|right"" |
| errorLine2=" ~~~~~~~~~"> |
| <location |
| file="src/main/res/layout/key_value_layout.xml" |
| line="50" |
| column="37"/> |
| </issue> |
| |
| </issues> |