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 099a542dac
commit 3e8a2f104c

View File

@ -27,6 +27,7 @@ import androidx.media3.common.util.Log;
import androidx.media3.common.util.SystemClock;
import androidx.media3.common.util.Util;
import androidx.test.platform.app.InstrumentationRegistry;
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