FileDocCategorySizeDatePackage
MockResources.javaAPI DocAndroid 1.5 API7699Wed May 06 22:42:02 BST 2009android.test.mock

MockResources

public class MockResources extends android.content.res.Resources
A mock {@link android.content.res.Resources} class. All methods are non-functional and throw {@link java.lang.UnsupportedOperationException}. Override it to provide the operations that you need.

Fields Summary
Constructors Summary
public MockResources()

        super(new AssetManager(), null, null);
    
Methods Summary
public android.content.res.XmlResourceParsergetAnimation(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public intgetColor(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.content.res.ColorStateListgetColorStateList(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.content.res.ConfigurationgetConfiguration()

        throw new UnsupportedOperationException("mock object, not implemented");
    
public floatgetDimension(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public intgetDimensionPixelOffset(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public intgetDimensionPixelSize(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.util.DisplayMetricsgetDisplayMetrics()

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.graphics.drawable.DrawablegetDrawable(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public intgetIdentifier(java.lang.String name, java.lang.String defType, java.lang.String defPackage)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public int[]getIntArray(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public intgetInteger(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.content.res.XmlResourceParsergetLayout(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.graphics.MoviegetMovie(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetQuantityString(int id, int quantity, java.lang.Object formatArgs)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetQuantityString(int id, int quantity)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.CharSequencegetQuantityText(int id, int quantity)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetResourceEntryName(int resid)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetResourceName(int resid)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetResourcePackageName(int resid)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetResourceTypeName(int resid)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetString(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.StringgetString(int id, java.lang.Object formatArgs)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.String[]getStringArray(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.CharSequencegetText(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.CharSequencegetText(int id, java.lang.CharSequence def)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.lang.CharSequence[]getTextArray(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public voidgetValue(int id, android.util.TypedValue outValue, boolean resolveRefs)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public voidgetValue(java.lang.String name, android.util.TypedValue outValue, boolean resolveRefs)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.content.res.XmlResourceParsergetXml(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.content.res.TypedArrayobtainAttributes(android.util.AttributeSet set, int[] attrs)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.content.res.TypedArrayobtainTypedArray(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public java.io.InputStreamopenRawResource(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public android.content.res.AssetFileDescriptoropenRawResourceFd(int id)

        throw new UnsupportedOperationException("mock object, not implemented");
    
public voidupdateConfiguration(android.content.res.Configuration config, android.util.DisplayMetrics metrics)

        // this method is called from the constructor, so we just do nothing