205 lines
7.0 KiB
Java
205 lines
7.0 KiB
Java
package o;
|
|
|
|
import java.nio.ByteBuffer;
|
|
import java.text.DecimalFormat;
|
|
import org.bouncycastle.crypto.tls.CipherSuite;
|
|
import org.jmrtd.cbeff.ISO781611;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class tpG extends C0743NnU<C0457HOd> {
|
|
public tpG(C0457HOd c0457HOd) {
|
|
super(c0457HOd);
|
|
}
|
|
|
|
@Override // o.C0743NnU
|
|
public final String d(int i) {
|
|
if (i == 1) {
|
|
return e(1, 2);
|
|
}
|
|
if (i == 2) {
|
|
int[] i2 = ((C0457HOd) this.a).i(2);
|
|
if (i2 == null) {
|
|
return null;
|
|
}
|
|
if (i2[0] != 0 || i2[1] == 0) {
|
|
StringBuilder sb = new StringBuilder("Unknown (");
|
|
sb.append(((C0457HOd) this.a).o(2));
|
|
sb.append(")");
|
|
return sb.toString();
|
|
}
|
|
StringBuilder sb2 = new StringBuilder("ISO ");
|
|
sb2.append(i2[1]);
|
|
return sb2.toString();
|
|
}
|
|
if (i == 13) {
|
|
return g(13);
|
|
}
|
|
if (i == 14) {
|
|
return g(14);
|
|
}
|
|
if (i == 18) {
|
|
return g(18);
|
|
}
|
|
if (i == 28) {
|
|
return g(28);
|
|
}
|
|
if (i == 30) {
|
|
return d(30, 1, "sRGB", "Adobe RGB");
|
|
}
|
|
if (i == 34) {
|
|
Integer j = ((C0457HOd) this.a).j(34);
|
|
if (j == null) {
|
|
return null;
|
|
}
|
|
int intValue = j.intValue();
|
|
if (intValue == 0) {
|
|
return "Off";
|
|
}
|
|
if (intValue == 1) {
|
|
return "Light";
|
|
}
|
|
if (intValue == 3) {
|
|
return "Normal";
|
|
}
|
|
if (intValue == 5) {
|
|
return "High";
|
|
}
|
|
if (intValue == 7) {
|
|
return "Extra High";
|
|
}
|
|
if (intValue == 65535) {
|
|
return "Auto";
|
|
}
|
|
StringBuilder sb3 = new StringBuilder("Unknown (");
|
|
sb3.append(j);
|
|
sb3.append(")");
|
|
return sb3.toString();
|
|
}
|
|
if (i == 42) {
|
|
Integer j2 = ((C0457HOd) this.a).j(42);
|
|
if (j2 == null) {
|
|
return null;
|
|
}
|
|
int intValue2 = j2.intValue();
|
|
if (intValue2 == 0) {
|
|
return "Off";
|
|
}
|
|
if (intValue2 == 1) {
|
|
return "Low";
|
|
}
|
|
if (intValue2 == 3) {
|
|
return "Normal";
|
|
}
|
|
if (intValue2 == 5) {
|
|
return "High";
|
|
}
|
|
StringBuilder sb4 = new StringBuilder("Unknown (");
|
|
sb4.append(j2);
|
|
sb4.append(")");
|
|
return sb4.toString();
|
|
}
|
|
if (i == 139) {
|
|
return g(CipherSuite.TLS_PSK_WITH_3DES_EDE_CBC_SHA);
|
|
}
|
|
if (i == 141) {
|
|
String o2 = ((C0457HOd) this.a).o(CipherSuite.TLS_PSK_WITH_AES_256_CBC_SHA);
|
|
if (o2 == null) {
|
|
return null;
|
|
}
|
|
return o2.startsWith("MODE1") ? "Mode I (sRGB)" : o2;
|
|
}
|
|
if (i == 177) {
|
|
return a(CipherSuite.TLS_PSK_WITH_NULL_SHA384, "Off", "Minimal", "Low", null, "Normal", null, "High");
|
|
}
|
|
if (i == 182) {
|
|
byte[] b = ((C0457HOd) this.a).b(CipherSuite.TLS_RSA_PSK_WITH_AES_128_CBC_SHA256);
|
|
if (b == null) {
|
|
return null;
|
|
}
|
|
return String.format("%04d:%02d:%02d %02d:%02d:%02d", Short.valueOf(ByteBuffer.wrap(new byte[]{b[0], b[1]}).getShort()), Byte.valueOf(b[2]), Byte.valueOf(b[3]), Byte.valueOf(b[4]), Byte.valueOf(b[5]), Byte.valueOf(b[6]));
|
|
}
|
|
if (i == 23) {
|
|
return g(23);
|
|
}
|
|
if (i == 24) {
|
|
return g(24);
|
|
}
|
|
if (i == 131) {
|
|
return a(ISO781611.CREATION_DATE_AND_TIME_TAG, new String[]{"AF", "MF"}, "D", "G", "VR");
|
|
}
|
|
if (i == 132) {
|
|
return b(CipherSuite.TLS_RSA_WITH_CAMELLIA_256_CBC_SHA);
|
|
}
|
|
if (i == 146) {
|
|
return d("%s degrees");
|
|
}
|
|
if (i != 147) {
|
|
switch (i) {
|
|
case 134:
|
|
Axo l = ((C0457HOd) this.a).l(134);
|
|
if (l == null) {
|
|
return null;
|
|
}
|
|
if (l.intValue() == 1) {
|
|
return "No digital zoom";
|
|
}
|
|
StringBuilder sb5 = new StringBuilder();
|
|
sb5.append(l.d(true));
|
|
sb5.append("x digital zoom");
|
|
return sb5.toString();
|
|
case 135:
|
|
return a(135, "Flash Not Used", "Manual Flash", null, "Flash Not Ready", null, null, null, "External Flash", "Fired, Commander Mode", "Fired, TTL Mode");
|
|
case 136:
|
|
int[] i3 = ((C0457HOd) this.a).i(136);
|
|
if (i3 == null) {
|
|
return null;
|
|
}
|
|
if (i3.length != 4 || i3[0] != 0 || i3[2] != 0 || i3[3] != 0) {
|
|
StringBuilder sb6 = new StringBuilder("Unknown (");
|
|
sb6.append(((C0457HOd) this.a).o(136));
|
|
sb6.append(")");
|
|
return sb6.toString();
|
|
}
|
|
int i4 = i3[1];
|
|
if (i4 == 0) {
|
|
return "Centre";
|
|
}
|
|
if (i4 == 1) {
|
|
return "Top";
|
|
}
|
|
if (i4 == 2) {
|
|
return "Bottom";
|
|
}
|
|
if (i4 == 3) {
|
|
return "Left";
|
|
}
|
|
if (i4 == 4) {
|
|
return "Right";
|
|
}
|
|
StringBuilder sb7 = new StringBuilder("Unknown (");
|
|
sb7.append(i3[1]);
|
|
sb7.append(")");
|
|
return sb7.toString();
|
|
case CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA /* 137 */:
|
|
return a(CipherSuite.TLS_DH_anon_WITH_CAMELLIA_256_CBC_SHA, new String[]{"Single Frame", "Continuous"}, "Delay", null, "PC Control", "Exposure Bracketing", "Auto ISO", "White-Balance Bracketing", "IR Control");
|
|
default:
|
|
return super.d(i);
|
|
}
|
|
}
|
|
return d(CipherSuite.TLS_RSA_PSK_WITH_3DES_EDE_CBC_SHA, 1, "Lossy (Type 1)", null, "Uncompressed", null, null, null, "Lossless", "Lossy (Type 2)");
|
|
}
|
|
|
|
private String g(int i) {
|
|
int[] i2 = ((C0457HOd) this.a).i(i);
|
|
if (i2 == null || i2.length < 2 || i2.length < 3 || i2[2] == 0) {
|
|
return null;
|
|
}
|
|
DecimalFormat decimalFormat = new DecimalFormat("0.##");
|
|
double d = (i2[0] * i2[1]) / i2[2];
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append(decimalFormat.format(d));
|
|
sb.append(" EV");
|
|
return sb.toString();
|
|
}
|
|
}
|