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
0eed19d8
authored
Feb 22, 2021
by
gyumin
Committed by
marcbaechinger
Feb 23, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add @Documented to FieldNumber @IntDef
PiperOrigin-RevId: 358799813
parent
ff269403
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
3 deletions
library/common/src/main/java/com/google/android/exoplayer2/MediaItem.java
library/common/src/main/java/com/google/android/exoplayer2/MediaMetadata.java
library/common/src/main/java/com/google/android/exoplayer2/audio/AudioAttributes.java
library/common/src/main/java/com/google/android/exoplayer2/device/DeviceInfo.java
library/common/src/main/java/com/google/android/exoplayer2/MediaItem.java
View file @
0eed19d8
...
...
@@ -25,6 +25,7 @@ import androidx.annotation.Nullable;
import
com.google.android.exoplayer2.offline.StreamKey
;
import
com.google.android.exoplayer2.util.Assertions
;
import
com.google.android.exoplayer2.util.Util
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.util.ArrayList
;
...
...
@@ -937,6 +938,7 @@ public final class MediaItem implements Bundleable {
// Bundleable implementation.
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@IntDef
({
FIELD_TARGET_OFFSET_MS
,
...
...
@@ -1148,6 +1150,7 @@ public final class MediaItem implements Bundleable {
// Bundleable implementation.
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@IntDef
({
FIELD_START_POSITION_MS
,
...
...
@@ -1254,6 +1257,7 @@ public final class MediaItem implements Bundleable {
// Bundleable implementation.
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@IntDef
({
FIELD_MEDIA_ID
,
...
...
library/common/src/main/java/com/google/android/exoplayer2/MediaMetadata.java
View file @
0eed19d8
...
...
@@ -19,6 +19,7 @@ import android.os.Bundle;
import
androidx.annotation.IntDef
;
import
androidx.annotation.Nullable
;
import
com.google.android.exoplayer2.util.Util
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
...
...
@@ -69,10 +70,9 @@ public final class MediaMetadata implements Bundleable {
// Bundleable implementation.
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@IntDef
({
FIELD_TITLE
,
})
@IntDef
({
FIELD_TITLE
})
private
@interface
FieldNumber
{}
private
static
final
int
FIELD_TITLE
=
0
;
...
...
library/common/src/main/java/com/google/android/exoplayer2/audio/AudioAttributes.java
View file @
0eed19d8
...
...
@@ -22,6 +22,7 @@ import androidx.annotation.RequiresApi;
import
com.google.android.exoplayer2.Bundleable
;
import
com.google.android.exoplayer2.C
;
import
com.google.android.exoplayer2.util.Util
;
import
java.lang.annotation.Documented
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
...
...
@@ -166,6 +167,7 @@ public final class AudioAttributes implements Bundleable {
// Bundleable implementation.
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@IntDef
({
FIELD_CONTENT_TYPE
,
FIELD_FLAGS
,
FIELD_USAGE
,
FIELD_ALLOWED_CAPTURE_POLICY
})
private
@interface
FieldNumber
{}
...
...
library/common/src/main/java/com/google/android/exoplayer2/device/DeviceInfo.java
View file @
0eed19d8
...
...
@@ -85,6 +85,7 @@ public final class DeviceInfo implements Bundleable {
// Bundleable implementation.
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@IntDef
({
FIELD_PLAYBACK_TYPE
,
FIELD_MIN_VOLUME
,
FIELD_MAX_VOLUME
})
private
@interface
FieldNumber
{}
...
...
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