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
468296c2
authored
May 21, 2019
by
andrewlewis
Committed by
Toni
May 21, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Suppress remaining ConstantCaseForConstant warnings
PiperOrigin-RevId: 249217126
parent
f3f885c6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.java
library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/Mp4WebvttDecoder.java
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/AtomParsers.java
View file @
468296c2
...
...
@@ -42,18 +42,33 @@ import java.util.Collections;
import
java.util.List
;
/** Utility methods for parsing MP4 format atom payloads according to ISO 14496-12. */
@SuppressWarnings
({
"ConstantField"
,
"ConstantCaseForConstants"
})
@SuppressWarnings
({
"ConstantField"
})
/* package */
final
class
AtomParsers
{
private
static
final
String
TAG
=
"AtomParsers"
;
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_vide
=
Util
.
getIntegerCodeForString
(
"vide"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_soun
=
Util
.
getIntegerCodeForString
(
"soun"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_text
=
Util
.
getIntegerCodeForString
(
"text"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_sbtl
=
Util
.
getIntegerCodeForString
(
"sbtl"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_subt
=
Util
.
getIntegerCodeForString
(
"subt"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_clcp
=
Util
.
getIntegerCodeForString
(
"clcp"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_meta
=
Util
.
getIntegerCodeForString
(
"meta"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_mdta
=
Util
.
getIntegerCodeForString
(
"mdta"
);
/**
...
...
library/core/src/main/java/com/google/android/exoplayer2/extractor/mp4/FragmentedMp4Extractor.java
View file @
468296c2
...
...
@@ -55,6 +55,7 @@ import java.util.List;
import
java.util.UUID
;
/** Extracts data from the FMP4 container format. */
@SuppressWarnings
(
"ConstantField"
)
public
class
FragmentedMp4Extractor
implements
Extractor
{
/** Factory for {@link FragmentedMp4Extractor} instances. */
...
...
@@ -104,7 +105,7 @@ public class FragmentedMp4Extractor implements Extractor {
private
static
final
String
TAG
=
"FragmentedMp4Extractor"
;
@SuppressWarnings
(
"Constant
Field
"
)
@SuppressWarnings
(
"Constant
CaseForConstants
"
)
private
static
final
int
SAMPLE_GROUP_TYPE_seig
=
Util
.
getIntegerCodeForString
(
"seig"
);
private
static
final
byte
[]
PIFF_SAMPLE_ENCRYPTION_BOX_EXTENDED_TYPE
=
...
...
library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/Mp4WebvttDecoder.java
View file @
468296c2
...
...
@@ -24,15 +24,19 @@ import java.util.ArrayList;
import
java.util.Collections
;
import
java.util.List
;
/**
* A {@link SimpleSubtitleDecoder} for Webvtt embedded in a Mp4 container file.
*/
/** A {@link SimpleSubtitleDecoder} for Webvtt embedded in a Mp4 container file. */
@SuppressWarnings
(
"ConstantField"
)
public
final
class
Mp4WebvttDecoder
extends
SimpleSubtitleDecoder
{
private
static
final
int
BOX_HEADER_SIZE
=
8
;
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_payl
=
Util
.
getIntegerCodeForString
(
"payl"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_sttg
=
Util
.
getIntegerCodeForString
(
"sttg"
);
@SuppressWarnings
(
"ConstantCaseForConstants"
)
private
static
final
int
TYPE_vttc
=
Util
.
getIntegerCodeForString
(
"vttc"
);
private
final
ParsableByteArray
sampleData
;
...
...
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