mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
259 lines
9.8 KiB
Java
259 lines
9.8 KiB
Java
package androidx.appcompat.widget;
|
|
|
|
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.util.AttributeSet;
|
|
import android.util.DisplayMetrics;
|
|
import android.util.TypedValue;
|
|
import androidx.appcompat.resources.Compatibility;
|
|
import androidx.core.content.res.ResourcesCompat;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import org.xmlpull.v1.XmlPullParserException;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public class ResourcesWrapper extends Resources {
|
|
private final Resources mResources;
|
|
|
|
public ResourcesWrapper(Resources resources) {
|
|
super(resources.getAssets(), resources.getDisplayMetrics(), resources.getConfiguration());
|
|
this.mResources = resources;
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public CharSequence getText(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getText(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public CharSequence getQuantityText(int i, int i2) throws Resources.NotFoundException {
|
|
return this.mResources.getQuantityText(i, i2);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getString(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getString(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getString(int i, Object... objArr) throws Resources.NotFoundException {
|
|
return this.mResources.getString(i, objArr);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getQuantityString(int i, int i2, Object... objArr) throws Resources.NotFoundException {
|
|
return this.mResources.getQuantityString(i, i2, objArr);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getQuantityString(int i, int i2) throws Resources.NotFoundException {
|
|
return this.mResources.getQuantityString(i, i2);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public CharSequence getText(int i, CharSequence charSequence) {
|
|
return this.mResources.getText(i, charSequence);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public CharSequence[] getTextArray(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getTextArray(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String[] getStringArray(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getStringArray(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public int[] getIntArray(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getIntArray(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public TypedArray obtainTypedArray(int i) throws Resources.NotFoundException {
|
|
return this.mResources.obtainTypedArray(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public float getDimension(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getDimension(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public int getDimensionPixelOffset(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getDimensionPixelOffset(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public int getDimensionPixelSize(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getDimensionPixelSize(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public float getFraction(int i, int i2, int i3) {
|
|
return this.mResources.getFraction(i, i2, i3);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public Drawable getDrawable(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getDrawable(i);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public final Drawable getDrawableCanonical(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 ResourcesCompat.getDrawable(this.mResources, i, theme);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public Drawable getDrawableForDensity(int i, int i2) throws Resources.NotFoundException {
|
|
return ResourcesCompat.getDrawableForDensity(this.mResources, i, i2, null);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public Drawable getDrawableForDensity(int i, int i2, Resources.Theme theme) {
|
|
return ResourcesCompat.getDrawableForDensity(this.mResources, i, i2, theme);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public Movie getMovie(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getMovie(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public int getColor(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getColor(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public ColorStateList getColorStateList(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getColorStateList(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public boolean getBoolean(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getBoolean(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public int getInteger(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getInteger(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public XmlResourceParser getLayout(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getLayout(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public XmlResourceParser getAnimation(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getAnimation(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public XmlResourceParser getXml(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getXml(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public InputStream openRawResource(int i) throws Resources.NotFoundException {
|
|
return this.mResources.openRawResource(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public InputStream openRawResource(int i, TypedValue typedValue) throws Resources.NotFoundException {
|
|
return this.mResources.openRawResource(i, typedValue);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public AssetFileDescriptor openRawResourceFd(int i) throws Resources.NotFoundException {
|
|
return this.mResources.openRawResourceFd(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public void getValue(int i, TypedValue typedValue, boolean z) throws Resources.NotFoundException {
|
|
this.mResources.getValue(i, typedValue, z);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public void getValueForDensity(int i, int i2, TypedValue typedValue, boolean z) throws Resources.NotFoundException {
|
|
Compatibility.Api15Impl.getValueForDensity(this.mResources, i, i2, typedValue, z);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public void getValue(String str, TypedValue typedValue, boolean z) throws Resources.NotFoundException {
|
|
this.mResources.getValue(str, typedValue, z);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public TypedArray obtainAttributes(AttributeSet attributeSet, int[] iArr) {
|
|
return this.mResources.obtainAttributes(attributeSet, iArr);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public void updateConfiguration(Configuration configuration, DisplayMetrics displayMetrics) {
|
|
super.updateConfiguration(configuration, displayMetrics);
|
|
Resources resources = this.mResources;
|
|
if (resources != null) {
|
|
resources.updateConfiguration(configuration, displayMetrics);
|
|
}
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public DisplayMetrics getDisplayMetrics() {
|
|
return this.mResources.getDisplayMetrics();
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public Configuration getConfiguration() {
|
|
return this.mResources.getConfiguration();
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public int getIdentifier(String str, String str2, String str3) {
|
|
return this.mResources.getIdentifier(str, str2, str3);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getResourceName(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getResourceName(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getResourcePackageName(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getResourcePackageName(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getResourceTypeName(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getResourceTypeName(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public String getResourceEntryName(int i) throws Resources.NotFoundException {
|
|
return this.mResources.getResourceEntryName(i);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public void parseBundleExtras(XmlResourceParser xmlResourceParser, Bundle bundle) throws XmlPullParserException, IOException {
|
|
this.mResources.parseBundleExtras(xmlResourceParser, bundle);
|
|
}
|
|
|
|
@Override // android.content.res.Resources
|
|
public void parseBundleExtra(String str, AttributeSet attributeSet, Bundle bundle) throws XmlPullParserException {
|
|
this.mResources.parseBundleExtra(str, attributeSet, bundle);
|
|
}
|
|
}
|