blob: a844da657c54a9f3dba2015c1f2e287331519b6b [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<issues format="5" by="lint 4.2.0-alpha06" client="gradle" variant="debug" version="4.2.0-alpha06">
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" protected synchronized void updateActiveCues(boolean rebuild, long timeMs) {"
errorLine2=" ^">
<location
file="src/main/java/androidx/media2/widget/SubtitleTrack.java"
line="127"
column="5"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" private synchronized void takeTime(long timeMs) {"
errorLine2=" ^">
<location
file="src/main/java/androidx/media2/widget/SubtitleTrack.java"
line="197"
column="5"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" protected synchronized void clearActiveCues() {"
errorLine2=" ^">
<location
file="src/main/java/androidx/media2/widget/SubtitleTrack.java"
line="201"
column="5"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" protected synchronized boolean addCue(Cue cue) {"
errorLine2=" ^">
<location
file="src/main/java/androidx/media2/widget/SubtitleTrack.java"
line="291"
column="5"/>
</issue>
<issue
id="BanSynchronizedMethods"
message="Use of synchronized methods is not recommended"
errorLine1=" /**"
errorLine2=" ^">
<location
file="src/main/java/androidx/media2/widget/SubtitleTrack.java"
line="364"
column="5"/>
</issue>
<issue
id="PrivateConstructorForUtilityClass"
message="Utility class with non private constructor"
errorLine1=" static class MediaFormatUtil {"
errorLine2=" ~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleController.java"
line="275"
column="18"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.CaptionStyle is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" captionStyle.getTypeface());"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/CaptionStyle.java"
line="109"
column="30"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.Cea708CaptionRenderer.Cea708CCWidget.CCWindowLayout is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" mFontScale = captioningManager.getFontScale();"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/Cea708CaptionRenderer.java"
line="794"
column="52"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.Cea708CaptionRenderer.Cea708CCWidget.CCWindowLayout is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" setCaptionStyle(new CaptionStyle(captioningManager.getUserStyle()));"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/Cea708CaptionRenderer.java"
line="795"
column="72"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.ClosedCaptionWidget is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" mCaptionStyle = new CaptionStyle(mManager.getUserStyle());"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/ClosedCaptionWidget.java"
line="86"
column="55"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.ClosedCaptionWidget is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" fontScale = mManager.getFontScale();"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/ClosedCaptionWidget.java"
line="87"
column="34"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.ClosedCaptionWidget is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" final boolean needsListener = isAttachedToWindow() &amp;&amp; getVisibility() == View.VISIBLE;"
errorLine2=" ~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/ClosedCaptionWidget.java"
line="160"
column="39"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.ClosedCaptionWidget is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" mManager.addCaptioningChangeListener(mCaptioningListener);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/ClosedCaptionWidget.java"
line="165"
column="26"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.ClosedCaptionWidget is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" mManager.removeCaptioningChangeListener(mCaptioningListener);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/ClosedCaptionWidget.java"
line="167"
column="26"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 23, the call containing class androidx.media2.widget.SelectiveLayout is not annotated with @RequiresApi(x) where x is at least 23. Either annotate the containing class with at least @RequiresApi(23) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(23)."
errorLine1=" final Drawable drawable = getForeground();"
errorLine2=" ~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SelectiveLayout.java"
line="97"
column="39"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.SubtitleController is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" mCaptioningManager.removeCaptioningChangeListener("
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleController.java"
line="124"
column="32"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.SubtitleController is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" Locale selectedLocale = VERSION.SDK_INT >= 19 ? mCaptioningManager.getLocale() : null;"
errorLine2=" ~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleController.java"
line="231"
column="76"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.SubtitleController is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" boolean selectForced = VERSION.SDK_INT >= 19 ? !mCaptioningManager.isEnabled() : true;"
errorLine2=" ~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleController.java"
line="236"
column="76"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.SubtitleController is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" VERSION.SDK_INT >= 19 ? mCaptioningManager.isEnabled() : false;"
errorLine2=" ~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleController.java"
line="304"
column="64"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.SubtitleController is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" mCaptioningManager.removeCaptioningChangeListener("
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleController.java"
line="339"
column="32"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 19, the call containing class androidx.media2.widget.SubtitleController is not annotated with @RequiresApi(x) where x is at least 19. Either annotate the containing class with at least @RequiresApi(19) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(19)."
errorLine1=" mCaptioningManager.addCaptioningChangeListener("
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleController.java"
line="359"
column="52"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 23, the call containing class androidx.media2.widget.SubtitleView is not annotated with @RequiresApi(x) where x is at least 23. Either annotate the containing class with at least @RequiresApi(23) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(23)."
errorLine1=" StaticLayout.Builder.obtain(mText, 0, mText.length(), mTextPaint, maxWidth)"
errorLine2=" ~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleView.java"
line="227"
column="42"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 23, the call containing class androidx.media2.widget.SubtitleView is not annotated with @RequiresApi(x) where x is at least 23. Either annotate the containing class with at least @RequiresApi(23) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(23)."
errorLine1=" .setAlignment(mAlignment)"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleView.java"
line="228"
column="30"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 23, the call containing class androidx.media2.widget.SubtitleView is not annotated with @RequiresApi(x) where x is at least 23. Either annotate the containing class with at least @RequiresApi(23) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(23)."
errorLine1=" .setLineSpacing(mSpacingAdd, mSpacingMult);"
errorLine2=" ~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleView.java"
line="229"
column="30"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 28, the call containing class androidx.media2.widget.SubtitleView is not annotated with @RequiresApi(x) where x is at least 28. Either annotate the containing class with at least @RequiresApi(28) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(28)."
errorLine1=" builder.setUseLineSpacingFromFallbacks(true);"
errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleView.java"
line="231"
column="25"/>
</issue>
<issue
id="UnsafeNewApiCall"
message="This call is to a method from API 23, the call containing class androidx.media2.widget.SubtitleView is not annotated with @RequiresApi(x) where x is at least 23. Either annotate the containing class with at least @RequiresApi(23) or move the call to a static method in a wrapper class annotated with at least @RequiresApi(23)."
errorLine1=" mLayout = builder.build();"
errorLine2=" ~~~~~">
<location
file="src/main/java/androidx/media2/widget/SubtitleView.java"
line="233"
column="31"/>
</issue>
<issue
id="UnknownNullness"
message="Unknown nullability; explicitly declare as `@Nullable` or `@NonNull` to improve Kotlin interoperability; see https://android.github.io/kotlin-guides/interop.html#nullability-annotations"
errorLine1=" public CharSequence getAccessibilityClassName() {"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/MediaControlView.java"
line="430"
column="12"/>
</issue>
<issue
id="UnknownNullness"
message="Unknown nullability; explicitly declare as `@Nullable` or `@NonNull` to improve Kotlin interoperability; see https://android.github.io/kotlin-guides/interop.html#nullability-annotations"
errorLine1=" public boolean onTouchEvent(MotionEvent ev) {"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/MediaControlView.java"
line="436"
column="33"/>
</issue>
<issue
id="UnknownNullness"
message="Unknown nullability; explicitly declare as `@Nullable` or `@NonNull` to improve Kotlin interoperability; see https://android.github.io/kotlin-guides/interop.html#nullability-annotations"
errorLine1=" public boolean onTrackballEvent(MotionEvent ev) {"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/MediaControlView.java"
line="453"
column="37"/>
</issue>
<issue
id="UnknownNullness"
message="Unknown nullability; explicitly declare as `@Nullable` or `@NonNull` to improve Kotlin interoperability; see https://android.github.io/kotlin-guides/interop.html#nullability-annotations"
errorLine1=" public CharSequence getAccessibilityClassName() {"
errorLine2=" ~~~~~~~~~~~~">
<location
file="src/main/java/androidx/media2/widget/VideoView.java"
line="572"
column="12"/>
</issue>
</issues>