mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Expand SSIM skipping to all Nexus API 21 devices.
PiperOrigin-RevId: 451371681
This commit is contained in:
parent
099a542dac
commit
3e8a2f104c
1 changed files with 3 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ import androidx.media3.common.util.Log;
|
||||||
import androidx.media3.common.util.SystemClock;
|
import androidx.media3.common.util.SystemClock;
|
||||||
import androidx.media3.common.util.Util;
|
import androidx.media3.common.util.Util;
|
||||||
import androidx.test.platform.app.InstrumentationRegistry;
|
import androidx.test.platform.app.InstrumentationRegistry;
|
||||||
|
import com.google.common.base.Ascii;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
@ -340,7 +341,8 @@ public class TransformerAndroidTestRunner {
|
||||||
// TransformationTestResult.
|
// TransformationTestResult.
|
||||||
throw interruptedException;
|
throw interruptedException;
|
||||||
} catch (Throwable analysisFailure) {
|
} catch (Throwable analysisFailure) {
|
||||||
if (Util.SDK_INT == 21 && "Nexus 5".equals(Util.MODEL)) { // b/233584640
|
if (Util.SDK_INT == 21 && Ascii.toLowerCase(Util.MODEL).contains("nexus")) {
|
||||||
|
// b/233584640, b/230093713
|
||||||
Log.i(TAG, testId + ": Skipping SSIM calculation due to known device-specific issue");
|
Log.i(TAG, testId + ": Skipping SSIM calculation due to known device-specific issue");
|
||||||
} else {
|
} else {
|
||||||
// Catch all (checked and unchecked) failures thrown by the SsimHelper and process them as
|
// Catch all (checked and unchecked) failures thrown by the SsimHelper and process them as
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue