50 lines
1.3 KiB
Java
50 lines
1.3 KiB
Java
package c.o.a.n.q;
|
|
|
|
import androidx.annotation.NonNull;
|
|
import androidx.annotation.Nullable;
|
|
import androidx.annotation.RequiresApi;
|
|
import c.o.a.m.c;
|
|
import c.o.a.m.e;
|
|
import c.o.a.m.h;
|
|
import c.o.a.m.m;
|
|
import java.util.HashMap;
|
|
import java.util.Map;
|
|
/* compiled from: Camera2Mapper */
|
|
@RequiresApi(21)
|
|
public class b {
|
|
public static b a;
|
|
public static final Map<e, Integer> b;
|
|
|
|
/* renamed from: c reason: collision with root package name */
|
|
public static final Map<m, Integer> f1493c;
|
|
public static final Map<h, Integer> d;
|
|
|
|
static {
|
|
HashMap hashMap = new HashMap();
|
|
b = hashMap;
|
|
HashMap hashMap2 = new HashMap();
|
|
f1493c = hashMap2;
|
|
HashMap hashMap3 = new HashMap();
|
|
d = hashMap3;
|
|
hashMap.put(e.BACK, 1);
|
|
hashMap.put(e.FRONT, 0);
|
|
hashMap2.put(m.AUTO, 1);
|
|
hashMap2.put(m.CLOUDY, 6);
|
|
hashMap2.put(m.DAYLIGHT, 5);
|
|
hashMap2.put(m.FLUORESCENT, 3);
|
|
hashMap2.put(m.INCANDESCENT, 2);
|
|
hashMap3.put(h.OFF, 0);
|
|
hashMap3.put(h.ON, 18);
|
|
}
|
|
|
|
@Nullable
|
|
public final <C extends c, T> C a(@NonNull Map<C, T> map, @NonNull T t) {
|
|
for (C c2 : map.keySet()) {
|
|
if (t.equals(map.get(c2))) {
|
|
return c2;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
}
|