package o; import java.io.IOException; import java.text.DecimalFormat; import org.bouncycastle.crypto.tls.CipherSuite; /* renamed from: o.ewq, reason: case insensitive filesystem */ /* loaded from: classes.dex */ public final class C12367ewq extends C0743NnU { private static final String[] c = {"Normal", "Portrait", "Scenery", "Sports", "Night Portrait", "Program", "Aperture Priority", "Shutter Priority", "Macro", "Spot", "Manual", "Movie Preview", "Panning", "Simple", "Color Effects", "Self Portrait", "Economy", "Fireworks", "Party", "Snow", "Night Scenery", "Food", "Baby", "Soft Skin", "Candlelight", "Starry Night", "High Sensitivity", "Panorama Assist", "Underwater", "Beach", "Aerial Photo", "Sunset", "Pet", "Intelligent ISO", "Clipboard", "High Speed Continuous Shooting", "Intelligent Auto", null, "Multi-aspect", null, "Transform", "Flash Burst", "Pin Hole", "Film Grain", "My Color", "Photo Frame", null, null, null, null, "HDR"}; public C12367ewq(wIU wiu) { super(wiu); } @Override // o.C0743NnU public final String d(int i) { switch (i) { case 1: return d(1, 2, "High", "Normal", null, null, "Very High", "Raw", null, "Motion Picture"); case 2: return e(2, 2); case 3: return d(3, 1, "Auto", "Daylight", "Cloudy", "Incandescent", "Manual", null, null, "Flash", null, "Black & White", "Manual", "Shade"); case 7: return d(7, 1, "Auto", "Manual", null, "Auto, Focus Button", "Auto, Continuous"); case 15: int[] i2 = ((wIU) this.a).i(15); if (i2 == null || i2.length < 2) { return null; } int i3 = i2[0]; if (i3 == 0) { int i4 = i2[1]; if (i4 == 1) { return "Spot Mode On"; } if (i4 == 16) { return "Spot Mode Off"; } StringBuilder sb = new StringBuilder("Unknown ("); sb.append(i2[0]); sb.append(" "); sb.append(i2[1]); sb.append(")"); return sb.toString(); } if (i3 == 1) { int i5 = i2[1]; if (i5 == 0) { return "Spot Focusing"; } if (i5 == 1) { return "5-area"; } StringBuilder sb2 = new StringBuilder("Unknown ("); sb2.append(i2[0]); sb2.append(" "); sb2.append(i2[1]); sb2.append(")"); return sb2.toString(); } if (i3 == 16) { int i6 = i2[1]; if (i6 == 0) { return "1-area"; } if (i6 == 16) { return "1-area (high speed)"; } StringBuilder sb3 = new StringBuilder("Unknown ("); sb3.append(i2[0]); sb3.append(" "); sb3.append(i2[1]); sb3.append(")"); return sb3.toString(); } if (i3 != 32) { if (i3 == 64) { return "Face Detect"; } StringBuilder sb4 = new StringBuilder("Unknown ("); sb4.append(i2[0]); sb4.append(" "); sb4.append(i2[1]); sb4.append(")"); return sb4.toString(); } int i7 = i2[1]; if (i7 == 0) { return "Auto or Face Detect"; } if (i7 == 1) { return "3-area (left)"; } if (i7 == 2) { return "3-area (center)"; } if (i7 == 3) { return "3-area (right)"; } StringBuilder sb5 = new StringBuilder("Unknown ("); sb5.append(i2[0]); sb5.append(" "); sb5.append(i2[1]); sb5.append(")"); return sb5.toString(); case 26: return d(26, 2, "On, Mode 1", "Off", "On, Mode 2"); case 28: return d(28, 1, "Off", "On"); case 31: return d(31, 1, c); case 32: return d(32, 1, "Off", "On"); case 33: return c(33); case 37: return c(); case 38: return e(38, 2); case 40: return d(40, 1, "Off", "Warm", "Cool", "Black & White", "Sepia"); case 41: if (((wIU) this.a).j(41) == null) { return null; } StringBuilder sb6 = new StringBuilder(); sb6.append(r2.intValue() / 100.0f); sb6.append(" s"); return sb6.toString(); case 42: return a(42, "Off", null, "On", "Indefinite", "Unlimited"); case 44: Integer j = ((wIU) this.a).j(44); if (j == null) { return null; } int intValue = j.intValue(); if (intValue == 0) { return "Normal"; } if (intValue == 1) { return "Low"; } if (intValue == 2) { return "High"; } if (intValue == 6) { return "Medium Low"; } if (intValue == 7) { return "Medium High"; } if (intValue == 256) { return "Low"; } if (intValue == 272) { return "Normal"; } if (intValue == 288) { return "High"; } StringBuilder sb7 = new StringBuilder("Unknown ("); sb7.append(j); sb7.append(")"); return sb7.toString(); case 45: return a(45, "Standard (0)", "Low (-1)", "High (+1)", "Lowest (-2)", "Highest (+2)"); case 46: return d(46, 1, "Off", "10 s", "2 s"); case 48: Integer j2 = ((wIU) this.a).j(48); if (j2 == null) { return null; } int intValue2 = j2.intValue(); if (intValue2 == 1) { return "Horizontal"; } if (intValue2 == 3) { return "Rotate 180"; } if (intValue2 == 6) { return "Rotate 90 CW"; } if (intValue2 == 8) { return "Rotate 270 CW"; } StringBuilder sb8 = new StringBuilder("Unknown ("); sb8.append(j2); sb8.append(")"); return sb8.toString(); case 49: return d(49, 1, "Fired", "Enabled but not used", "Disabled but required", "Disabled and not required"); case 50: return a(50, "Normal", "Natural", "Vivid"); case 51: String o2 = ((wIU) this.a).o(51); C0535Ixo a = o2 == null ? null : C0535Ixo.a(o2); if (a == null) { return null; } return a.a(); case 52: return d(52, 1, "Standard", "Extended"); case 53: return d(53, 1, "Off", "Wide", "Telephoto", "Macro"); case 57: return a(57, "Normal"); case 58: return d(58, 1, "Home", "Destination"); case 59: return d(59, 1, "Off", "On"); case 61: return d(61, 1, "Normal", "Outdoor/Illuminations/Flower/HDR Art", "Indoor/Architecture/Objects/HDR B&W", "Creative", "Auto", null, "Expressive", "Retro", "Pure", "Elegant", null, "Monochrome", "Dynamic Art", "Silhouette"); case 62: return d(62, 1, "Off", "On"); case 69: return a(69, "No Bracket", "3 Images, Sequence 0/-/+", "3 Images, Sequence -/0/+", "5 Images, Sequence 0/-/+", "5 Images, Sequence -/0/+", "7 Images, Sequence 0/-/+", "7 Images, Sequence -/0/+"); case 72: return a(72, "n/a", "1st", "2nd"); case 73: return d(73, 1, "Off", "On"); case 78: return e(((wIU) this.a).j()); case 89: return h(89); case 93: return a(93, "Off", "Low", "Standard", "High"); case 96: byte[] b = ((wIU) this.a).b(96); if (b == null) { return null; } StringBuilder sb9 = new StringBuilder(); for (int i8 = 0; i8 < b.length; i8++) { sb9.append((int) b[i8]); if (i8 < b.length - 1) { sb9.append("."); } } return sb9.toString(); case 97: return e(((wIU) this.a).f()); case 98: return a(98, "No", "Yes (Flash required but disabled)"); case 101: String b2 = b(101, UeM.d); if (b2 == null) { return null; } return b2.trim(); case 102: String b3 = b(102, UeM.d); if (b3 == null) { return null; } return b3.trim(); case 103: String b4 = b(103, UeM.d); if (b4 == null) { return null; } return b4.trim(); case 105: String b5 = b(105, UeM.d); if (b5 == null) { return null; } return b5.trim(); case 107: String b6 = b(107, UeM.d); if (b6 == null) { return null; } return b6.trim(); case 109: String b7 = b(109, UeM.d); if (b7 == null) { return null; } return b7.trim(); case 111: String b8 = b(111, UeM.d); if (b8 == null) { return null; } return b8.trim(); case 112: return a(112, "Off", null, "Auto", "On"); case 121: return a(121, "Off", "Low", "Standard", "High"); case 124: return a(124, "Off", "On"); case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA /* 137 */: return a(CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA, "Auto", "Standard or Custom", "Vivid", "Natural", "Monochrome", "Scenery", "Portrait"); case CipherSuite.TLS_PSK_WITH_RC4_128_SHA /* 138 */: return a(CipherSuite.TLS_PSK_WITH_RC4_128_SHA, "Off", "On"); case CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA /* 140 */: Integer j3 = ((wIU) this.a).j(CipherSuite.TLS_PSK_WITH_AES_128_CBC_SHA); if (j3 == null) { return null; } return String.valueOf((int) j3.shortValue()); case CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA /* 141 */: Integer j4 = ((wIU) this.a).j(CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA); if (j4 == null) { return null; } return String.valueOf((int) j4.shortValue()); case 142: Integer j5 = ((wIU) this.a).j(142); if (j5 == null) { return null; } return String.valueOf((int) j5.shortValue()); case CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA /* 143 */: return a(CipherSuite.TLS_DHE_PSK_WITH_3DES_EDE_CBC_SHA, "Normal", "Rotate CW", "Rotate 180", "Rotate CCW", "Tilt Upwards", "Tile Downwards"); case CipherSuite.TLS_DHE_PSK_WITH_AES_128_CBC_SHA /* 144 */: if (((wIU) this.a).j(CipherSuite.TLS_DHE_PSK_WITH_AES_128_CBC_SHA) == null) { return null; } return new DecimalFormat("0.#").format(r5.shortValue() / 10.0d); case CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA /* 145 */: if (((wIU) this.a).j(CipherSuite.TLS_DHE_PSK_WITH_AES_256_CBC_SHA) == null) { return null; } return new DecimalFormat("0.#").format((-r5.shortValue()) / 10.0d); case CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA /* 147 */: return a(CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA, "Off", "Left to Right", "Right to Left", "Top to Bottom", "Bottom to Top"); case CipherSuite.TLS_RSA_WITH_SEED_CBC_SHA /* 150 */: return a(CipherSuite.TLS_RSA_WITH_SEED_CBC_SHA, "Off", "Time Lapse", "Stop-motion Animation"); case 158: Integer j6 = ((wIU) this.a).j(158); if (j6 == null) { return null; } int intValue3 = j6.intValue(); return intValue3 != 0 ? intValue3 != 100 ? intValue3 != 200 ? intValue3 != 300 ? intValue3 != 32868 ? intValue3 != 32968 ? intValue3 != 33068 ? String.format("Unknown (%d)", j6) : "3 EV (Auto)" : "2 EV (Auto)" : "1 EV (Auto)" : "3 EV" : "2 EV" : "1 EV" : "Off"; case CipherSuite.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 /* 159 */: return a(CipherSuite.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384, "Mechanical", "Electronic", "Hybrid"); case CipherSuite.TLS_DHE_PSK_WITH_AES_256_GCM_SHA384 /* 171 */: return a(CipherSuite.TLS_DHE_PSK_WITH_AES_256_GCM_SHA384, "Off", "On"); case 32768: return e(32768, 2); case 32769: return d(32769, 1, c); case 32775: return d(32775, 1, "Off", "On"); case 32776: return d(32776, 1, "Off", "On"); case 32777: return d(32777, 1, "Off", "On"); case 32784: String o3 = ((wIU) this.a).o(32784); C0535Ixo a2 = o3 == null ? null : C0535Ixo.a(o3); if (a2 == null) { return null; } return a2.a(); case 32786: return h(32786); default: return super.d(i); } } private String h(int i) { byte[] b = ((wIU) this.a).b(i); if (b == null) { return null; } C0925RrQ c0925RrQ = new C0925RrQ(b); try { int l = c0925RrQ.l(0); int l2 = c0925RrQ.l(2); if (l == -1 && l2 == 1) { return "Slim Low"; } if (l == -3 && l2 == 2) { return "Slim High"; } if (l == 0 && l2 == 0) { return "Off"; } if (l == 1 && l2 == 1) { return "Stretch Low"; } if (l == 3 && l2 == 2) { return "Stretch High"; } StringBuilder sb = new StringBuilder("Unknown ("); sb.append(l); sb.append(" "); sb.append(l2); sb.append(")"); return sb.toString(); } catch (IOException unused) { return null; } } private static String e(xZA[] xzaArr) { if (xzaArr == null) { return null; } StringBuilder sb = new StringBuilder(); int i = 0; while (i < xzaArr.length) { sb.append("Face "); int i2 = i + 1; sb.append(i2); sb.append(": "); sb.append(xzaArr[i].toString()); sb.append("\n"); i = i2; } if (sb.length() > 0) { return sb.substring(0, sb.length() - 1); } return null; } }