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;
// Note: The documentation for Process.THREAD_PRIORITY_AUDIO that states "Applications can
// not normally change to this priority" is incorrect.
internalPlaybackThread
=
new
HandlerThread
(
"ExoPlayerImplInternal:Handler"
,
Process
.
THREAD_PRIORITY_AUDIO
);
internalPlaybackThread
=
new
HandlerThread
(
"ExoPlayer:Playback"
,
Process
.
THREAD_PRIORITY_AUDIO
);
internalPlaybackThread
.
start
();
handler
=
clock
.
createHandler
(
internalPlaybackThread
.
getLooper
(),
this
);
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<
availableOutputBuffers
[
i
]
=
createOutputBuffer
();
}
decodeThread
=
new
Thread
(
"
SimpleDecoder:Decode
"
)
{
new
Thread
(
"
ExoPlayer:SimpleDecoder
"
)
{
@Override
public
void
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 {
@SuppressWarnings
(
"methodref.receiver.bound.invalid"
)
Handler
downloadThreadHandler
=
Util
.
createHandler
(
this
::
handleDownloadHelperCallbackMessage
);
this
.
downloadHelperHandler
=
downloadThreadHandler
;
mediaSourceThread
=
new
HandlerThread
(
"DownloadHelper"
);
mediaSourceThread
=
new
HandlerThread
(
"
ExoPlayer:
DownloadHelper"
);
mediaSourceThread
.
start
();
mediaSourceHandler
=
Util
.
createHandler
(
mediaSourceThread
.
getLooper
(),
/* callback= */
this
);
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 {
// Start cache initialization.
final
ConditionVariable
conditionVariable
=
new
ConditionVariable
();
new
Thread
(
"
SimpleCache.initialize()
"
)
{
new
Thread
(
"
ExoPlayer:SimpleCacheInit
"
)
{
@Override
public
void
run
()
{
synchronized
(
SimpleCache
.
this
)
{
...
...
library/core/src/test/java/com/google/android/exoplayer2/PlayerMessageTest.java
View file @
b6ebd485
...
...
@@ -53,7 +53,7 @@ public class PlayerMessageTest {
initMocks
(
this
);
PlayerMessage
.
Sender
sender
=
(
message
)
->
{};
PlayerMessage
.
Target
target
=
(
messageType
,
payload
)
->
{};
handlerThread
=
new
HandlerThread
(
"TestHandler
Thread
"
);
handlerThread
=
new
HandlerThread
(
"TestHandler"
);
handlerThread
.
start
();
Handler
handler
=
new
Handler
(
handlerThread
.
getLooper
());
message
=
...
...
library/core/src/test/java/com/google/android/exoplayer2/mediacodec/AsynchronousMediaCodecAdapterTest.java
View file @
b6ebd485
...
...
@@ -48,7 +48,7 @@ public class AsynchronousMediaCodecAdapterTest {
@Before
public
void
setUp
()
throws
IOException
{
handlerThread
=
new
HandlerThread
(
"TestHandler
Thread
"
);
handlerThread
=
new
HandlerThread
(
"TestHandler"
);
handlerThread
.
start
();
looper
=
handlerThread
.
getLooper
();
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 {
public
MediaSourceTestRunner
(
MediaSource
mediaSource
,
Allocator
allocator
)
{
this
.
mediaSource
=
mediaSource
;
this
.
allocator
=
allocator
;
playbackThread
=
new
HandlerThread
(
"
PlaybackThread
"
);
playbackThread
=
new
HandlerThread
(
"
TestHandler
"
);
playbackThread
.
start
();
Looper
playbackLooper
=
playbackThread
.
getLooper
();
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 {
@Test
public
void
testPostDelayed
()
{
HandlerThread
handlerThread
=
new
HandlerThread
(
"FakeClockTest
thread
"
);
HandlerThread
handlerThread
=
new
HandlerThread
(
"FakeClockTest"
);
handlerThread
.
start
();
FakeClock
fakeClock
=
new
FakeClock
(
0
);
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