Perform case insensitive comparison in tests
The model is "Redmi 6A" on the device PiperOrigin-RevId: 574103629
This commit is contained in:
parent
df19097e22
commit
dc0bee9307
@ -45,6 +45,7 @@ import androidx.media3.effect.RgbFilter;
|
|||||||
import androidx.media3.effect.ScaleAndRotateTransformation;
|
import androidx.media3.effect.ScaleAndRotateTransformation;
|
||||||
import androidx.test.core.app.ApplicationProvider;
|
import androidx.test.core.app.ApplicationProvider;
|
||||||
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
import androidx.test.ext.junit.runners.AndroidJUnit4;
|
||||||
|
import com.google.common.base.Ascii;
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
@ -118,7 +119,9 @@ public final class TransformerSequenceEffectTest {
|
|||||||
assumeFalse(
|
assumeFalse(
|
||||||
"Some older MediaTek encoders have a pixel alignment of 16, which results in a 360 pixel"
|
"Some older MediaTek encoders have a pixel alignment of 16, which results in a 360 pixel"
|
||||||
+ " width being re-scaled to 368.",
|
+ " width being re-scaled to 368.",
|
||||||
SDK_INT == 27 && (Util.MODEL.equals("redmi 6a") || Util.MODEL.equals("vivo 1820")));
|
SDK_INT == 27
|
||||||
|
&& (Ascii.equalsIgnoreCase(Util.MODEL, "redmi 6a")
|
||||||
|
|| Ascii.equalsIgnoreCase(Util.MODEL, "vivo 1820")));
|
||||||
|
|
||||||
if (AndroidTestUtil.skipAndLogIfFormatsUnsupported(
|
if (AndroidTestUtil.skipAndLogIfFormatsUnsupported(
|
||||||
context,
|
context,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user