blob: 049cfa41710d38aefa6cee311184017da7df2700 [file] [log] [blame]
<?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=&quot;uniform&quot;"
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=&quot;5dp&quot;"
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 &quot;`sp`&quot; instead of &quot;`dp`&quot; for text sizes"
errorLine1=" android:textSize=&quot;8dp&quot;"
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=" &lt;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=&quot;@color/cameraPipeThemeBgDark100&quot;"
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=" &lt;color name=&quot;colorPrimary&quot;>#6200EE&lt;/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=" &lt;color name=&quot;colorPrimaryDark&quot;>#3700B3&lt;/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=" &lt;color name=&quot;colorAccent&quot;>#03DAC5&lt;/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=" &lt;color name=&quot;blackTransparent&quot;>#C0000000&lt;/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=" &lt;color name=&quot;transparent&quot;>#00000000&lt;/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=" &lt;color name=&quot;gray&quot;>#978082&lt;/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=" &lt;color name=&quot;cameraPipeThemeBgOverlayDark50&quot;>#DD080808&lt;/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=" &lt;color name=&quot;cameraPipeThemeFgLight700&quot;>#FFD0D0D0&lt;/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=" &lt;color name=&quot;cameraPipeThemeFgLight900&quot;>#FFFCFCFC&lt;/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=" &lt;color name=&quot;cameraPipeThemeFgAccent&quot;>#FF0090D0&lt;/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=" &lt;color name=&quot;cameraPipeThemeFgError800&quot;>#FFD00000&lt;/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=" &lt;color name=&quot;cameraPipeThemeFgError900&quot;>#FFE00000&lt;/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=" &lt;item xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;>"
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=&quot;10sp&quot;"
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=" &lt;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=" &lt;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=" &lt;ImageButton"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/res/layout/activity_main.xml"
line="99"
column="10"/>
</issue>
<issue
id="RtlHardcoded"
message="Use &quot;`start`&quot; instead of &quot;`left`&quot; to ensure correct behavior in right-to-left locales"
errorLine1=" android:layout_gravity=&quot;left&quot;"
errorLine2=" ~~~~">
<location
file="src/main/res/layout/key_value_layout.xml"
line="38"
column="37"/>
</issue>
<issue
id="RtlHardcoded"
message="Use &quot;`end`&quot; instead of &quot;`right`&quot; to ensure correct behavior in right-to-left locales"
errorLine1=" android:layout_gravity=&quot;top|right&quot;"
errorLine2=" ~~~~~~~~~">
<location
file="src/main/res/layout/key_value_layout.xml"
line="50"
column="37"/>
</issue>
</issues>