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
b6ebd485
authored
Mar 30, 2020
by
olly
Committed by
Oliver Woodman
Mar 31, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remaining thread name cleanup
PiperOrigin-RevId: 303829900
parent
151b75d8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
9 deletions
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
library/core/src/main/java/com/google/android/exoplayer2/decoder/SimpleDecoder.java
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadHelper.java
library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/SimpleCache.java
library/core/src/test/java/com/google/android/exoplayer2/PlayerMessageTest.java
library/core/src/test/java/com/google/android/exoplayer2/mediacodec/AsynchronousMediaCodecAdapterTest.java
testutils/src/main/java/com/google/android/exoplayer2/testutil/MediaSourceTestRunner.java
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeClockTest.java
library/core/src/main/java/com/google/android/exoplayer2/ExoPlayerImplInternal.java
View file @
b6ebd485
...
@@ -178,8 +178,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
...
@@ -178,8 +178,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
// Note: The documentation for Process.THREAD_PRIORITY_AUDIO that states "Applications can
// Note: The documentation for Process.THREAD_PRIORITY_AUDIO that states "Applications can
// not normally change to this priority" is incorrect.
// not normally change to this priority" is incorrect.
internalPlaybackThread
=
internalPlaybackThread
=
new
HandlerThread
(
"ExoPlayer:Playback"
,
Process
.
THREAD_PRIORITY_AUDIO
);
new
HandlerThread
(
"ExoPlayerImplInternal:Handler"
,
Process
.
THREAD_PRIORITY_AUDIO
);
internalPlaybackThread
.
start
();
internalPlaybackThread
.
start
();
handler
=
clock
.
createHandler
(
internalPlaybackThread
.
getLooper
(),
this
);
handler
=
clock
.
createHandler
(
internalPlaybackThread
.
getLooper
(),
this
);
deliverPendingMessageAtStartPositionRequired
=
true
;
deliverPendingMessageAtStartPositionRequired
=
true
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/decoder/SimpleDecoder.java
View file @
b6ebd485
...
@@ -66,7 +66,7 @@ public abstract class SimpleDecoder<
...
@@ -66,7 +66,7 @@ public abstract class SimpleDecoder<
availableOutputBuffers
[
i
]
=
createOutputBuffer
();
availableOutputBuffers
[
i
]
=
createOutputBuffer
();
}
}
decodeThread
=
decodeThread
=
new
Thread
(
"
SimpleDecoder:Decode
"
)
{
new
Thread
(
"
ExoPlayer:SimpleDecoder
"
)
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
SimpleDecoder
.
this
.
run
();
SimpleDecoder
.
this
.
run
();
...
...
library/core/src/main/java/com/google/android/exoplayer2/offline/DownloadHelper.java
View file @
b6ebd485
...
@@ -993,7 +993,7 @@ public final class DownloadHelper {
...
@@ -993,7 +993,7 @@ public final class DownloadHelper {
@SuppressWarnings
(
"methodref.receiver.bound.invalid"
)
@SuppressWarnings
(
"methodref.receiver.bound.invalid"
)
Handler
downloadThreadHandler
=
Util
.
createHandler
(
this
::
handleDownloadHelperCallbackMessage
);
Handler
downloadThreadHandler
=
Util
.
createHandler
(
this
::
handleDownloadHelperCallbackMessage
);
this
.
downloadHelperHandler
=
downloadThreadHandler
;
this
.
downloadHelperHandler
=
downloadThreadHandler
;
mediaSourceThread
=
new
HandlerThread
(
"DownloadHelper"
);
mediaSourceThread
=
new
HandlerThread
(
"
ExoPlayer:
DownloadHelper"
);
mediaSourceThread
.
start
();
mediaSourceThread
.
start
();
mediaSourceHandler
=
Util
.
createHandler
(
mediaSourceThread
.
getLooper
(),
/* callback= */
this
);
mediaSourceHandler
=
Util
.
createHandler
(
mediaSourceThread
.
getLooper
(),
/* callback= */
this
);
mediaSourceHandler
.
sendEmptyMessage
(
MESSAGE_PREPARE_SOURCE
);
mediaSourceHandler
.
sendEmptyMessage
(
MESSAGE_PREPARE_SOURCE
);
...
...
library/core/src/main/java/com/google/android/exoplayer2/upstream/cache/SimpleCache.java
View file @
b6ebd485
...
@@ -259,7 +259,7 @@ public final class SimpleCache implements Cache {
...
@@ -259,7 +259,7 @@ public final class SimpleCache implements Cache {
// Start cache initialization.
// Start cache initialization.
final
ConditionVariable
conditionVariable
=
new
ConditionVariable
();
final
ConditionVariable
conditionVariable
=
new
ConditionVariable
();
new
Thread
(
"
SimpleCache.initialize()
"
)
{
new
Thread
(
"
ExoPlayer:SimpleCacheInit
"
)
{
@Override
@Override
public
void
run
()
{
public
void
run
()
{
synchronized
(
SimpleCache
.
this
)
{
synchronized
(
SimpleCache
.
this
)
{
...
...
library/core/src/test/java/com/google/android/exoplayer2/PlayerMessageTest.java
View file @
b6ebd485
...
@@ -53,7 +53,7 @@ public class PlayerMessageTest {
...
@@ -53,7 +53,7 @@ public class PlayerMessageTest {
initMocks
(
this
);
initMocks
(
this
);
PlayerMessage
.
Sender
sender
=
(
message
)
->
{};
PlayerMessage
.
Sender
sender
=
(
message
)
->
{};
PlayerMessage
.
Target
target
=
(
messageType
,
payload
)
->
{};
PlayerMessage
.
Target
target
=
(
messageType
,
payload
)
->
{};
handlerThread
=
new
HandlerThread
(
"TestHandler
Thread
"
);
handlerThread
=
new
HandlerThread
(
"TestHandler"
);
handlerThread
.
start
();
handlerThread
.
start
();
Handler
handler
=
new
Handler
(
handlerThread
.
getLooper
());
Handler
handler
=
new
Handler
(
handlerThread
.
getLooper
());
message
=
message
=
...
...
library/core/src/test/java/com/google/android/exoplayer2/mediacodec/AsynchronousMediaCodecAdapterTest.java
View file @
b6ebd485
...
@@ -48,7 +48,7 @@ public class AsynchronousMediaCodecAdapterTest {
...
@@ -48,7 +48,7 @@ public class AsynchronousMediaCodecAdapterTest {
@Before
@Before
public
void
setUp
()
throws
IOException
{
public
void
setUp
()
throws
IOException
{
handlerThread
=
new
HandlerThread
(
"TestHandler
Thread
"
);
handlerThread
=
new
HandlerThread
(
"TestHandler"
);
handlerThread
.
start
();
handlerThread
.
start
();
looper
=
handlerThread
.
getLooper
();
looper
=
handlerThread
.
getLooper
();
codec
=
MediaCodec
.
createByCodecName
(
"h264"
);
codec
=
MediaCodec
.
createByCodecName
(
"h264"
);
...
...
testutils/src/main/java/com/google/android/exoplayer2/testutil/MediaSourceTestRunner.java
View file @
b6ebd485
...
@@ -71,7 +71,7 @@ public class MediaSourceTestRunner {
...
@@ -71,7 +71,7 @@ public class MediaSourceTestRunner {
public
MediaSourceTestRunner
(
MediaSource
mediaSource
,
Allocator
allocator
)
{
public
MediaSourceTestRunner
(
MediaSource
mediaSource
,
Allocator
allocator
)
{
this
.
mediaSource
=
mediaSource
;
this
.
mediaSource
=
mediaSource
;
this
.
allocator
=
allocator
;
this
.
allocator
=
allocator
;
playbackThread
=
new
HandlerThread
(
"
PlaybackThread
"
);
playbackThread
=
new
HandlerThread
(
"
TestHandler
"
);
playbackThread
.
start
();
playbackThread
.
start
();
Looper
playbackLooper
=
playbackThread
.
getLooper
();
Looper
playbackLooper
=
playbackThread
.
getLooper
();
playbackHandler
=
new
Handler
(
playbackLooper
);
playbackHandler
=
new
Handler
(
playbackLooper
);
...
...
testutils/src/test/java/com/google/android/exoplayer2/testutil/FakeClockTest.java
View file @
b6ebd485
...
@@ -89,7 +89,7 @@ public final class FakeClockTest {
...
@@ -89,7 +89,7 @@ public final class FakeClockTest {
@Test
@Test
public
void
testPostDelayed
()
{
public
void
testPostDelayed
()
{
HandlerThread
handlerThread
=
new
HandlerThread
(
"FakeClockTest
thread
"
);
HandlerThread
handlerThread
=
new
HandlerThread
(
"FakeClockTest"
);
handlerThread
.
start
();
handlerThread
.
start
();
FakeClock
fakeClock
=
new
FakeClock
(
0
);
FakeClock
fakeClock
=
new
FakeClock
(
0
);
HandlerWrapper
handler
=
HandlerWrapper
handler
=
...
...
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