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
b055010c
authored
Dec 20, 2022
by
tofunmi
Committed by
Tianyi Feng
Dec 21, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Create local fallbackDetails to remove checkNotNull.
PiperOrigin-RevId: 496664711
parent
f47ad3c2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/TransformerAndroidTestRunner.java
library/transformer/src/androidTest/java/com/google/android/exoplayer2/transformer/TransformerAndroidTestRunner.java
View file @
b055010c
...
@@ -306,6 +306,7 @@ public class TransformerAndroidTestRunner {
...
@@ -306,6 +306,7 @@ public class TransformerAndroidTestRunner {
boolean
timeoutReached
=
!
countDownLatch
.
await
(
timeoutSeconds
,
SECONDS
);
boolean
timeoutReached
=
!
countDownLatch
.
await
(
timeoutSeconds
,
SECONDS
);
long
elapsedTimeMs
=
SystemClock
.
DEFAULT
.
elapsedRealtime
()
-
startTimeMs
;
long
elapsedTimeMs
=
SystemClock
.
DEFAULT
.
elapsedRealtime
()
-
startTimeMs
;
@Nullable
FallbackDetails
fallbackDetails
=
fallbackDetailsReference
.
get
();
@Nullable
Exception
unexpectedException
=
unexpectedExceptionReference
.
get
();
@Nullable
Exception
unexpectedException
=
unexpectedExceptionReference
.
get
();
@Nullable
@Nullable
TransformationException
transformationException
=
transformationExceptionReference
.
get
();
TransformationException
transformationException
=
transformationExceptionReference
.
get
();
...
@@ -325,7 +326,7 @@ public class TransformerAndroidTestRunner {
...
@@ -325,7 +326,7 @@ public class TransformerAndroidTestRunner {
if
(
testException
!=
null
)
{
if
(
testException
!=
null
)
{
return
new
TransformationTestResult
.
Builder
(
checkNotNull
(
transformationResultReference
.
get
()))
return
new
TransformationTestResult
.
Builder
(
checkNotNull
(
transformationResultReference
.
get
()))
.
setElapsedTimeMs
(
elapsedTimeMs
)
.
setElapsedTimeMs
(
elapsedTimeMs
)
.
setFallbackDetails
(
fallbackDetails
Reference
.
get
()
)
.
setFallbackDetails
(
fallbackDetails
)
.
setTestException
(
testException
)
.
setTestException
(
testException
)
.
build
();
.
build
();
}
}
...
@@ -338,14 +339,13 @@ public class TransformerAndroidTestRunner {
...
@@ -338,14 +339,13 @@ public class TransformerAndroidTestRunner {
.
setFileSizeBytes
(
outputVideoFile
.
length
())
.
setFileSizeBytes
(
outputVideoFile
.
length
())
.
build
())
.
build
())
.
setElapsedTimeMs
(
elapsedTimeMs
)
.
setElapsedTimeMs
(
elapsedTimeMs
)
.
setFallbackDetails
(
fallbackDetails
Reference
.
get
()
)
.
setFallbackDetails
(
fallbackDetails
)
.
setFilePath
(
outputVideoFile
.
getPath
());
.
setFilePath
(
outputVideoFile
.
getPath
());
if
(!
requestCalculateSsim
)
{
if
(!
requestCalculateSsim
)
{
return
testResultBuilder
.
build
();
return
testResultBuilder
.
build
();
}
}
if
(
fallbackDetailsReference
.
get
()
!=
null
if
(
fallbackDetails
!=
null
&&
fallbackDetails
.
fallbackOutputHeight
!=
C
.
LENGTH_UNSET
)
{
&&
checkNotNull
(
fallbackDetailsReference
.
get
()).
fallbackOutputHeight
!=
C
.
LENGTH_UNSET
)
{
Log
.
i
(
Log
.
i
(
TAG
,
TAG
,
testId
testId
...
...
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