blob: ef4caaa6a7d97aea95471ce15a855db3365f0d53 [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="ScopedStorage"
message="WRITE_EXTERNAL_STORAGE no longer provides write access when targeting Android 10+"
errorLine1=" &lt;uses-permission android:name=&quot;android.permission.WRITE_EXTERNAL_STORAGE&quot; />"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/AndroidManifest.xml"
line="23"
column="36"/>
</issue>
<issue
id="DefaultLocale"
message="Implicitly using the default locale is a common source of bugs: Use `toLowerCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`."
errorLine1=" .mapKeys { it.key.toLowerCase() }[name.toLowerCase()]"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/Profiler.kt"
line="85"
column="31"/>
</issue>
<issue
id="DefaultLocale"
message="Implicitly using the default locale is a common source of bugs: Use `toLowerCase(Locale)` instead. For strings meant to be internal use `Locale.ROOT`, otherwise `Locale.getDefault()`."
errorLine1=" .mapKeys { it.key.toLowerCase() }[name.toLowerCase()]"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/Profiler.kt"
line="85"
column="52"/>
</issue>
<issue
id="SdCardPath"
message="Do not hardcode &quot;`/data/`&quot;; use `Context.getFilesDir().getPath()` instead"
errorLine1=" mAppDataDir = &quot;/data/data/&quot; + packageName;"
errorLine2=" ~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/simpleperf/ProfileSession.java"
line="116"
column="23"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" /**"
errorLine2=" ^">
<location
file="src/main/java/androidx/benchmark/simpleperf/ProfileSession.java"
line="128"
column="5"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" /**"
errorLine2=" ^">
<location
file="src/main/java/androidx/benchmark/simpleperf/ProfileSession.java"
line="148"
column="5"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" /**"
errorLine2=" ^">
<location
file="src/main/java/androidx/benchmark/simpleperf/ProfileSession.java"
line="163"
column="5"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" /**"
errorLine2=" ^">
<location
file="src/main/java/androidx/benchmark/simpleperf/ProfileSession.java"
line="174"
column="5"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 29, the call containing class androidx.benchmark.Errors is not annotated with @RequiresApi(x) where x is at least 29. Either annotate the containing class with at least @RequiresApi(29) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(29)."
errorLine1=" Build.VERSION.SDK_INT >= 29 &amp;&amp; !context.applicationInfo.isProfileableByShell"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/Errors.kt"
line="199"
column="73"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 24, the call containing class androidx.benchmark.IsolationActivity.Companion 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=" powerManager.isSustainedPerformanceModeSupported"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/IsolationActivity.kt"
line="165"
column="30"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 24, the call containing class null 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=" activity.window.setSustainedPerformanceMode(true)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/IsolationActivity.kt"
line="174"
column="37"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 26, the call containing class null is not annotated with @RequiresApi(x) where x is at least 26. Either annotate the containing class with at least @RequiresApi(26) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(26)."
errorLine1=" keyguardManager.requestDismissKeyguard(activity, null)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/IsolationActivity.kt"
line="181"
column="37"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 27, the call containing class null is not annotated with @RequiresApi(x) where x is at least 27. Either annotate the containing class with at least @RequiresApi(27) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(27)."
errorLine1=" activity.setShowWhenLocked(true)"
errorLine2=" ~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/IsolationActivity.kt"
line="182"
column="30"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 27, the call containing class null is not annotated with @RequiresApi(x) where x is at least 27. Either annotate the containing class with at least @RequiresApi(27) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(27)."
errorLine1=" activity.setTurnScreenOn(true)"
errorLine2=" ~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/IsolationActivity.kt"
line="183"
column="30"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 21, the call containing class androidx.benchmark.ProfilerKt is not annotated with @RequiresApi(x) where x is at least 21. Either annotate the containing class with at least @RequiresApi(21) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(21)."
errorLine1=" Debug.startMethodTracingSampling(path, bufferSize, Arguments.profilerSampleFrequency)"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/benchmark/Profiler.kt"
line="99"
column="15"/>
</issue>
<issue
id="ContentDescription"
message="Missing `contentDescription` attribute on image"
errorLine1=" &lt;ImageView"
errorLine2=" ~~~~~~~~~">
<location
file="src/main/res/layout/isolation_activity.xml"
line="25"
column="6"/>
</issue>
<issue
id="HardcodedText"
message="Hardcoded string &quot;AndroidBenchmarkRunner&quot;, should use `@string` resource"
errorLine1=" android:text=&quot;AndroidBenchmarkRunner&quot;"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/res/layout/isolation_activity.xml"
line="31"
column="9"/>
</issue>
</issues>