Expand SSIM skipping to all Nexus API 21 devices.

PiperOrigin-RevId: 451371681
This commit is contained in:
hschlueter 2022-05-27 12:31:30 +00:00 committed by Marc Baechinger
parent 14fc3179fb
commit 89e239eed1

View file

@ -27,6 +27,7 @@ import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.util.Log;
import com.google.android.exoplayer2.util.SystemClock;
import com.google.android.exoplayer2.util.Util;
import com.google.common.base.Ascii;
import java.io.File;
import java.io.IOException;
import java.util.List;
@ -340,7 +341,8 @@ public class TransformerAndroidTestRunner {
// TransformationTestResult.
throw interruptedException;
} 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");
} else {
// Catch all (checked and unchecked) failures thrown by the SsimHelper and process them as