Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
1031dae1
authored
Apr 22, 2020
by
tonihei
Committed by
Ian Baker
Apr 27, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Change some annotations placement Checkerframework now warns about.
PiperOrigin-RevId: 307764457
parent
6f2891e5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
6 deletions
library/core/src/main/java/com/google/android/exoplayer2/DefaultRenderersFactory.java
library/core/src/main/java/com/google/android/exoplayer2/source/ads/AdsMediaSource.java
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/InitializationChunk.java
library/core/src/main/java/com/google/android/exoplayer2/text/ttml/TtmlDecoder.java
library/core/src/main/java/com/google/android/exoplayer2/text/ttml/TtmlNode.java
library/core/src/main/java/com/google/android/exoplayer2/DefaultRenderersFactory.java
View file @
1031dae1
...
@@ -89,7 +89,7 @@ public class DefaultRenderersFactory implements RenderersFactory {
...
@@ -89,7 +89,7 @@ public class DefaultRenderersFactory implements RenderersFactory {
private
long
allowedVideoJoiningTimeMs
;
private
long
allowedVideoJoiningTimeMs
;
private
boolean
enableDecoderFallback
;
private
boolean
enableDecoderFallback
;
private
MediaCodecSelector
mediaCodecSelector
;
private
MediaCodecSelector
mediaCodecSelector
;
@MediaCodecRenderer
.
MediaCodecOperationMode
privat
e
int
mediaCodecOperationMode
;
private
@MediaCodecRenderer
.
MediaCodecOperationMod
e
int
mediaCodecOperationMode
;
/** @param context A {@link Context}. */
/** @param context A {@link Context}. */
public
DefaultRenderersFactory
(
Context
context
)
{
public
DefaultRenderersFactory
(
Context
context
)
{
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/ads/AdsMediaSource.java
View file @
1031dae1
...
@@ -402,7 +402,7 @@ public final class AdsMediaSource extends CompositeMediaSource<MediaPeriodId> {
...
@@ -402,7 +402,7 @@ public final class AdsMediaSource extends CompositeMediaSource<MediaPeriodId> {
private
final
MediaSource
adMediaSource
;
private
final
MediaSource
adMediaSource
;
private
final
List
<
MaskingMediaPeriod
>
activeMediaPeriods
;
private
final
List
<
MaskingMediaPeriod
>
activeMediaPeriods
;
@MonotonicNonNull
private
Timeline
timeline
;
private
@MonotonicNonNull
Timeline
timeline
;
public
AdMediaSourceHolder
(
MediaSource
adMediaSource
)
{
public
AdMediaSourceHolder
(
MediaSource
adMediaSource
)
{
this
.
adMediaSource
=
adMediaSource
;
this
.
adMediaSource
=
adMediaSource
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/InitializationChunk.java
View file @
1031dae1
...
@@ -39,7 +39,7 @@ public final class InitializationChunk extends Chunk {
...
@@ -39,7 +39,7 @@ public final class InitializationChunk extends Chunk {
private
final
ChunkExtractorWrapper
extractorWrapper
;
private
final
ChunkExtractorWrapper
extractorWrapper
;
@MonotonicNonNull
private
TrackOutputProvider
trackOutputProvider
;
private
@MonotonicNonNull
TrackOutputProvider
trackOutputProvider
;
private
long
nextLoadPosition
;
private
long
nextLoadPosition
;
private
volatile
boolean
loadCanceled
;
private
volatile
boolean
loadCanceled
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/text/ttml/TtmlDecoder.java
View file @
1031dae1
...
@@ -461,8 +461,8 @@ public final class TtmlDecoder extends SimpleSubtitleDecoder {
...
@@ -461,8 +461,8 @@ public final class TtmlDecoder extends SimpleSubtitleDecoder {
return
parentStyleIds
.
isEmpty
()
?
new
String
[
0
]
:
Util
.
split
(
parentStyleIds
,
"\\s+"
);
return
parentStyleIds
.
isEmpty
()
?
new
String
[
0
]
:
Util
.
split
(
parentStyleIds
,
"\\s+"
);
}
}
@PolyNull
private
@PolyNull
TtmlStyle
parseStyleAttributes
(
private
TtmlStyle
parseStyleAttributes
(
XmlPullParser
parser
,
@PolyNull
TtmlStyle
style
)
{
XmlPullParser
parser
,
@PolyNull
TtmlStyle
style
)
{
int
attributeCount
=
parser
.
getAttributeCount
();
int
attributeCount
=
parser
.
getAttributeCount
();
for
(
int
i
=
0
;
i
<
attributeCount
;
i
++)
{
for
(
int
i
=
0
;
i
<
attributeCount
;
i
++)
{
String
attributeValue
=
parser
.
getAttributeValue
(
i
);
String
attributeValue
=
parser
.
getAttributeValue
(
i
);
...
...
library/core/src/main/java/com/google/android/exoplayer2/text/ttml/TtmlNode.java
View file @
1031dae1
...
@@ -120,7 +120,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
...
@@ -120,7 +120,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
private
final
HashMap
<
String
,
Integer
>
nodeStartsByRegion
;
private
final
HashMap
<
String
,
Integer
>
nodeStartsByRegion
;
private
final
HashMap
<
String
,
Integer
>
nodeEndsByRegion
;
private
final
HashMap
<
String
,
Integer
>
nodeEndsByRegion
;
@MonotonicNonNull
private
List
<
TtmlNode
>
children
;
private
@MonotonicNonNull
List
<
TtmlNode
>
children
;
public
static
TtmlNode
buildTextNode
(
String
text
)
{
public
static
TtmlNode
buildTextNode
(
String
text
)
{
return
new
TtmlNode
(
return
new
TtmlNode
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment