Commit 20c66e6a by olly Committed by Oliver Woodman

Use Util.toLowerInvariant instead of String.toLowerCase

PiperOrigin-RevId: 268880519
parent 65748fa8
......@@ -602,7 +602,7 @@ public final class MediaCodecUtil {
if (Util.SDK_INT >= 29) {
return isSoftwareOnlyV29(codecInfo);
}
String codecName = codecInfo.getName().toLowerCase();
String codecName = Util.toLowerInvariant(codecInfo.getName());
if (codecName.startsWith("arc.")) { // App Runtime for Chrome (ARC) codecs
return false;
}
......@@ -628,7 +628,7 @@ public final class MediaCodecUtil {
if (Util.SDK_INT >= 29) {
return isVendorV29(codecInfo);
}
String codecName = codecInfo.getName().toLowerCase();
String codecName = Util.toLowerInvariant(codecInfo.getName());
return !codecName.startsWith("omx.google.")
&& !codecName.startsWith("c2.android.")
&& !codecName.startsWith("c2.google.");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment