what-the-bank/sources/o/EjU.java

318 lines
11 KiB
Java

package o;
import android.content.res.AssetFileDescriptor;
import android.content.res.ColorStateList;
import android.content.res.Configuration;
import android.content.res.Resources;
import android.content.res.TypedArray;
import android.content.res.XmlResourceParser;
import android.graphics.Movie;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.text.SpannableString;
import android.text.Spanned;
import android.text.SpannedString;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Base64;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;
import o.C5985cFB;
import org.xmlpull.v1.XmlPullParserException;
/* loaded from: classes.dex */
class EjU extends Resources {
private static int a = 1;
private static byte b = 6;
private static int c;
private final Resources e;
private void d(String str, Object[] objArr) {
byte[] decode = Base64.decode(str, 0);
byte[] bArr = new byte[decode.length];
for (int i = 0; i < decode.length; i++) {
bArr[i] = (byte) (decode[(decode.length - i) - 1] ^ b);
}
objArr[0] = new String(bArr, StandardCharsets.UTF_8);
}
@Override // android.content.res.Resources
public CharSequence getText(int i) throws Resources.NotFoundException {
int i2 = 2 % 2;
int i3 = a + 41;
c = i3 % 128;
int i4 = i3 % 2;
Resources resources = this.e;
String string = resources.getString(i);
if (!(!string.startsWith(",*,)"))) {
int i5 = c + 115;
a = i5 % 128;
int i6 = i5 % 2;
Object[] objArr = new Object[1];
d(string.substring(4), objArr);
string = ((String) objArr[0]).intern();
CharSequence text = resources.getText(i);
if (text instanceof Spanned) {
SpannableString spannableString = new SpannableString(string);
TextUtils.copySpansFrom((SpannedString) text, 0, string.length(), Object.class, spannableString, 0);
return spannableString;
}
int i7 = c + 65;
a = i7 % 128;
if (i7 % 2 == 0) {
int i8 = 5 / 4;
}
}
return string;
}
@Override // android.content.res.Resources
public CharSequence getQuantityText(int i, int i2) throws Resources.NotFoundException {
return this.e.getQuantityText(i, i2);
}
@Override // android.content.res.Resources
public String getString(int i) throws Resources.NotFoundException {
String string;
int i2 = 2 % 2;
int i3 = a + 81;
c = i3 % 128;
if (i3 % 2 != 0) {
string = this.e.getString(i);
int i4 = 49 / 0;
if (!string.startsWith(",*,)")) {
return string;
}
} else {
string = this.e.getString(i);
if (!string.startsWith(",*,)")) {
return string;
}
}
Object[] objArr = new Object[1];
d(string.substring(4), objArr);
String intern = ((String) objArr[0]).intern();
int i5 = c + 25;
a = i5 % 128;
int i6 = i5 % 2;
return intern;
}
@Override // android.content.res.Resources
public String getString(int i, Object... objArr) throws Resources.NotFoundException {
return this.e.getString(i, objArr);
}
@Override // android.content.res.Resources
public String getQuantityString(int i, int i2, Object... objArr) throws Resources.NotFoundException {
return this.e.getQuantityString(i, i2, objArr);
}
@Override // android.content.res.Resources
public String getQuantityString(int i, int i2) throws Resources.NotFoundException {
return this.e.getQuantityString(i, i2);
}
@Override // android.content.res.Resources
public CharSequence getText(int i, CharSequence charSequence) {
return this.e.getText(i, charSequence);
}
@Override // android.content.res.Resources
public CharSequence[] getTextArray(int i) throws Resources.NotFoundException {
return this.e.getTextArray(i);
}
@Override // android.content.res.Resources
public String[] getStringArray(int i) throws Resources.NotFoundException {
return this.e.getStringArray(i);
}
@Override // android.content.res.Resources
public int[] getIntArray(int i) throws Resources.NotFoundException {
return this.e.getIntArray(i);
}
@Override // android.content.res.Resources
public TypedArray obtainTypedArray(int i) throws Resources.NotFoundException {
return this.e.obtainTypedArray(i);
}
@Override // android.content.res.Resources
public float getDimension(int i) throws Resources.NotFoundException {
return this.e.getDimension(i);
}
@Override // android.content.res.Resources
public int getDimensionPixelOffset(int i) throws Resources.NotFoundException {
return this.e.getDimensionPixelOffset(i);
}
@Override // android.content.res.Resources
public int getDimensionPixelSize(int i) throws Resources.NotFoundException {
return this.e.getDimensionPixelSize(i);
}
@Override // android.content.res.Resources
public float getFraction(int i, int i2, int i3) {
return this.e.getFraction(i, i2, i3);
}
@Override // android.content.res.Resources
public Drawable getDrawable(int i) throws Resources.NotFoundException {
return this.e.getDrawable(i);
}
/* JADX INFO: Access modifiers changed from: package-private */
public final Drawable jd_(int i) throws Resources.NotFoundException {
return super.getDrawable(i);
}
@Override // android.content.res.Resources
public Drawable getDrawable(int i, Resources.Theme theme) throws Resources.NotFoundException {
return kVs.nZ_(this.e, i, theme);
}
@Override // android.content.res.Resources
public Drawable getDrawableForDensity(int i, int i2) throws Resources.NotFoundException {
return kVs.oa_(this.e, i, i2, null);
}
@Override // android.content.res.Resources
public Drawable getDrawableForDensity(int i, int i2, Resources.Theme theme) {
return kVs.oa_(this.e, i, i2, theme);
}
@Override // android.content.res.Resources
public Movie getMovie(int i) throws Resources.NotFoundException {
return this.e.getMovie(i);
}
@Override // android.content.res.Resources
public int getColor(int i) throws Resources.NotFoundException {
return this.e.getColor(i);
}
@Override // android.content.res.Resources
public ColorStateList getColorStateList(int i) throws Resources.NotFoundException {
return this.e.getColorStateList(i);
}
@Override // android.content.res.Resources
public boolean getBoolean(int i) throws Resources.NotFoundException {
return this.e.getBoolean(i);
}
@Override // android.content.res.Resources
public int getInteger(int i) throws Resources.NotFoundException {
return this.e.getInteger(i);
}
@Override // android.content.res.Resources
public XmlResourceParser getLayout(int i) throws Resources.NotFoundException {
return this.e.getLayout(i);
}
@Override // android.content.res.Resources
public XmlResourceParser getAnimation(int i) throws Resources.NotFoundException {
return this.e.getAnimation(i);
}
@Override // android.content.res.Resources
public XmlResourceParser getXml(int i) throws Resources.NotFoundException {
return this.e.getXml(i);
}
@Override // android.content.res.Resources
public InputStream openRawResource(int i) throws Resources.NotFoundException {
return this.e.openRawResource(i);
}
@Override // android.content.res.Resources
public InputStream openRawResource(int i, TypedValue typedValue) throws Resources.NotFoundException {
return this.e.openRawResource(i, typedValue);
}
@Override // android.content.res.Resources
public AssetFileDescriptor openRawResourceFd(int i) throws Resources.NotFoundException {
return this.e.openRawResourceFd(i);
}
@Override // android.content.res.Resources
public void getValue(int i, TypedValue typedValue, boolean z) throws Resources.NotFoundException {
this.e.getValue(i, typedValue, z);
}
@Override // android.content.res.Resources
public void getValueForDensity(int i, int i2, TypedValue typedValue, boolean z) throws Resources.NotFoundException {
C5985cFB.LWm.dV_(this.e, i, i2, typedValue, z);
}
@Override // android.content.res.Resources
public void getValue(String str, TypedValue typedValue, boolean z) throws Resources.NotFoundException {
this.e.getValue(str, typedValue, z);
}
@Override // android.content.res.Resources
public TypedArray obtainAttributes(AttributeSet attributeSet, int[] iArr) {
return this.e.obtainAttributes(attributeSet, iArr);
}
@Override // android.content.res.Resources
public void updateConfiguration(Configuration configuration, DisplayMetrics displayMetrics) {
super.updateConfiguration(configuration, displayMetrics);
Resources resources = this.e;
if (resources != null) {
resources.updateConfiguration(configuration, displayMetrics);
}
}
@Override // android.content.res.Resources
public DisplayMetrics getDisplayMetrics() {
return this.e.getDisplayMetrics();
}
@Override // android.content.res.Resources
public Configuration getConfiguration() {
return this.e.getConfiguration();
}
@Override // android.content.res.Resources
public int getIdentifier(String str, String str2, String str3) {
return this.e.getIdentifier(str, str2, str3);
}
@Override // android.content.res.Resources
public String getResourceName(int i) throws Resources.NotFoundException {
return this.e.getResourceName(i);
}
@Override // android.content.res.Resources
public String getResourcePackageName(int i) throws Resources.NotFoundException {
return this.e.getResourcePackageName(i);
}
@Override // android.content.res.Resources
public String getResourceTypeName(int i) throws Resources.NotFoundException {
return this.e.getResourceTypeName(i);
}
@Override // android.content.res.Resources
public String getResourceEntryName(int i) throws Resources.NotFoundException {
return this.e.getResourceEntryName(i);
}
@Override // android.content.res.Resources
public void parseBundleExtras(XmlResourceParser xmlResourceParser, Bundle bundle) throws XmlPullParserException, IOException {
this.e.parseBundleExtras(xmlResourceParser, bundle);
}
@Override // android.content.res.Resources
public void parseBundleExtra(String str, AttributeSet attributeSet, Bundle bundle) throws XmlPullParserException {
this.e.parseBundleExtra(str, attributeSet, bundle);
}
}