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
cc337a3e
authored
Jun 07, 2019
by
olly
Committed by
Toni
Jun 14, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Update nullness annotations.
PiperOrigin-RevId: 252127811
parent
3bff79f5
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
12 deletions
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/BaseMediaChunk.java
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/ChunkHolder.java
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.java
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/MediaChunk.java
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/BaseMediaChunk.java
View file @
cc337a3e
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
chunk
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
chunk
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.upstream.DataSource
;
import
com.google.android.exoplayer2.upstream.DataSource
;
...
@@ -58,7 +59,7 @@ public abstract class BaseMediaChunk extends MediaChunk {
...
@@ -58,7 +59,7 @@ public abstract class BaseMediaChunk extends MediaChunk {
DataSpec
dataSpec
,
DataSpec
dataSpec
,
Format
trackFormat
,
Format
trackFormat
,
int
trackSelectionReason
,
int
trackSelectionReason
,
Object
trackSelectionData
,
@Nullable
Object
trackSelectionData
,
long
startTimeUs
,
long
startTimeUs
,
long
endTimeUs
,
long
endTimeUs
,
long
clippedStartTimeUs
,
long
clippedStartTimeUs
,
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/ChunkHolder.java
View file @
cc337a3e
...
@@ -15,15 +15,15 @@
...
@@ -15,15 +15,15 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
chunk
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
chunk
;
import
androidx.annotation.Nullable
;
/**
/**
* Holds a chunk or an indication that the end of the stream has been reached.
* Holds a chunk or an indication that the end of the stream has been reached.
*/
*/
public
final
class
ChunkHolder
{
public
final
class
ChunkHolder
{
/**
/** The chunk. */
* The chunk.
@Nullable
public
Chunk
chunk
;
*/
public
Chunk
chunk
;
/**
/**
* Indicates that the end of the stream has been reached.
* Indicates that the end of the stream has been reached.
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.java
View file @
cc337a3e
...
@@ -60,8 +60,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
...
@@ -60,8 +60,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
public
final
int
primaryTrackType
;
public
final
int
primaryTrackType
;
private
final
int
[]
embeddedTrackTypes
;
@Nullable
private
final
int
[]
embeddedTrackTypes
;
private
final
Format
[]
embeddedTrackFormats
;
@Nullable
private
final
Format
[]
embeddedTrackFormats
;
private
final
boolean
[]
embeddedTracksSelected
;
private
final
boolean
[]
embeddedTracksSelected
;
private
final
T
chunkSource
;
private
final
T
chunkSource
;
private
final
SequenceableLoader
.
Callback
<
ChunkSampleStream
<
T
>>
callback
;
private
final
SequenceableLoader
.
Callback
<
ChunkSampleStream
<
T
>>
callback
;
...
@@ -104,8 +104,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
...
@@ -104,8 +104,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
@Deprecated
@Deprecated
public
ChunkSampleStream
(
public
ChunkSampleStream
(
int
primaryTrackType
,
int
primaryTrackType
,
int
[]
embeddedTrackTypes
,
@Nullable
int
[]
embeddedTrackTypes
,
Format
[]
embeddedTrackFormats
,
@Nullable
Format
[]
embeddedTrackFormats
,
T
chunkSource
,
T
chunkSource
,
Callback
<
ChunkSampleStream
<
T
>>
callback
,
Callback
<
ChunkSampleStream
<
T
>>
callback
,
Allocator
allocator
,
Allocator
allocator
,
...
@@ -140,8 +140,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
...
@@ -140,8 +140,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
*/
*/
public
ChunkSampleStream
(
public
ChunkSampleStream
(
int
primaryTrackType
,
int
primaryTrackType
,
int
[]
embeddedTrackTypes
,
@Nullable
int
[]
embeddedTrackTypes
,
Format
[]
embeddedTrackFormats
,
@Nullable
Format
[]
embeddedTrackFormats
,
T
chunkSource
,
T
chunkSource
,
Callback
<
ChunkSampleStream
<
T
>>
callback
,
Callback
<
ChunkSampleStream
<
T
>>
callback
,
Allocator
allocator
,
Allocator
allocator
,
...
...
library/core/src/main/java/com/google/android/exoplayer2/source/chunk/MediaChunk.java
View file @
cc337a3e
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
*/
*/
package
com
.
google
.
android
.
exoplayer2
.
source
.
chunk
;
package
com
.
google
.
android
.
exoplayer2
.
source
.
chunk
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.Format
;
import
com.google.android.exoplayer2.upstream.DataSource
;
import
com.google.android.exoplayer2.upstream.DataSource
;
...
@@ -44,7 +45,7 @@ public abstract class MediaChunk extends Chunk {
...
@@ -44,7 +45,7 @@ public abstract class MediaChunk extends Chunk {
DataSpec
dataSpec
,
DataSpec
dataSpec
,
Format
trackFormat
,
Format
trackFormat
,
int
trackSelectionReason
,
int
trackSelectionReason
,
Object
trackSelectionData
,
@Nullable
Object
trackSelectionData
,
long
startTimeUs
,
long
startTimeUs
,
long
endTimeUs
,
long
endTimeUs
,
long
chunkIndex
)
{
long
chunkIndex
)
{
...
...
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