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
513b301e
authored
Aug 17, 2020
by
olly
Committed by
kim-vde
Aug 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ExoPlaybackException: Align some method naming
PiperOrigin-RevId: 327003695
parent
7ef31e22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlaybackException.java
View file @
513b301e
...
...
@@ -204,7 +204,7 @@ public final class ExoPlaybackException extends Exception {
* @param cause The cause of the failure.
* @return The created instance.
*/
public
static
ExoPlaybackException
createForOutOfMemory
Error
(
OutOfMemoryError
cause
)
{
public
static
ExoPlaybackException
createForOutOfMemory
(
OutOfMemoryError
cause
)
{
return
new
ExoPlaybackException
(
TYPE_OUT_OF_MEMORY
,
cause
);
}
...
...
@@ -215,7 +215,7 @@ public final class ExoPlaybackException extends Exception {
* @param timeoutOperation The operation that caused this timeout.
* @return The created instance.
*/
public
static
ExoPlaybackException
createForTimeout
Error
(
public
static
ExoPlaybackException
createForTimeout
(
TimeoutException
cause
,
@TimeoutOperation
int
timeoutOperation
)
{
return
new
ExoPlaybackException
(
TYPE_OUT_OF_MEMORY
,
...
...
@@ -348,7 +348,7 @@ public final class ExoPlaybackException extends Exception {
*
* @throws IllegalStateException If {@link #type} is not {@link #TYPE_TIMEOUT}.
*/
public
TimeoutException
getTimeoutE
rror
()
{
public
TimeoutException
getTimeoutE
xception
()
{
Assertions
.
checkState
(
type
==
TYPE_TIMEOUT
);
return
(
TimeoutException
)
Assertions
.
checkNotNull
(
cause
);
}
...
...
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImpl.java
View file @
513b301e
...
...
@@ -683,7 +683,7 @@ import java.util.concurrent.TimeoutException;
notifyListeners
(
listener
->
listener
.
onPlayerError
(
ExoPlaybackException
.
createForTimeout
Error
(
ExoPlaybackException
.
createForTimeout
(
new
TimeoutException
(
"Setting foreground mode timed out."
),
ExoPlaybackException
.
TIMEOUT_OPERATION_SET_FOREGROUND_MODE
)));
}
...
...
@@ -724,7 +724,7 @@ import java.util.concurrent.TimeoutException;
notifyListeners
(
listener
->
listener
.
onPlayerError
(
ExoPlaybackException
.
createForTimeout
Error
(
ExoPlaybackException
.
createForTimeout
(
new
TimeoutException
(
"Player release timed out."
),
ExoPlaybackException
.
TIMEOUT_OPERATION_RELEASE
)));
}
...
...
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
View file @
513b301e
...
...
@@ -557,7 +557,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
}
catch
(
RuntimeException
|
OutOfMemoryError
e
)
{
ExoPlaybackException
error
=
e
instanceof
OutOfMemoryError
?
ExoPlaybackException
.
createForOutOfMemory
Error
((
OutOfMemoryError
)
e
)
?
ExoPlaybackException
.
createForOutOfMemory
((
OutOfMemoryError
)
e
)
:
ExoPlaybackException
.
createForUnexpected
((
RuntimeException
)
e
);
Log
.
e
(
TAG
,
"Playback error"
,
error
);
stopInternal
(
/* forceResetRenderers= */
true
,
/* acknowledgeStop= */
false
);
...
...
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