Package org.robolectric.res.android
Class ResTable
- java.lang.Object
-
- org.robolectric.res.android.ResTable
-
public class ResTable extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ResTable.bag_entry
static class
ResTable.Entry
static class
ResTable.Header
static class
ResTable.Package
static class
ResTable.PackageGroup
static class
ResTable.ResourceName
static class
ResTable.Type
-
Field Summary
Fields Modifier and Type Field Description static org.robolectric.res.android.ResTable.bag_set
SENTINEL_BAG_SET
-
Constructor Summary
Constructors Constructor Description ResTable()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBagLocked(int resID, Ref<ResTable.bag_entry[]> outBag, Ref<Integer> outTypeSpecFlags)
int
getBasePackageCount()
int
getBasePackageId(int idx)
String
getBasePackageName(int idx)
DynamicRefTable
getDynamicRefTableForCookie(int cookie)
int
getResource(int resID, Ref<ResourceTypes.Res_value> outValue, boolean mayBeBag, int density, Ref<Integer> outSpecFlags, Ref<ResTable_config> outConfig)
boolean
getResourceName(int resID, boolean allowUtf8, ResTable.ResourceName outName)
int
getTableCookie(int index)
int
getTableCount()
ResStringPool
getTableStringBlock(int index)
int
identifierForName(String name, String type, String packageName)
int
identifierForName(String nameString, String type, String packageName, Ref<Integer> outTypeSpecFlags)
void
lock()
int
lockBag(int resID, Ref<ResTable.bag_entry[]> outBag)
static int
Res_GETTYPE(int id)
int
resolveReference(Ref<ResourceTypes.Res_value> value, int blockIndex, Ref<Integer> outLastRef)
int
resolveReference(Ref<ResourceTypes.Res_value> value, int blockIndex, Ref<Integer> outLastRef, Ref<Integer> inoutTypeSpecFlags)
int
resolveReference(Ref<ResourceTypes.Res_value> value, int blockIndex, Ref<Integer> outLastRef, Ref<Integer> inoutTypeSpecFlags, Ref<ResTable_config> outConfig)
void
unlock()
void
unlockBag(Ref<ResTable.bag_entry[]> bag)
-
-
-
Method Detail
-
Res_GETTYPE
public static int Res_GETTYPE(int id)
-
getResource
public final int getResource(int resID, Ref<ResourceTypes.Res_value> outValue, boolean mayBeBag, int density, Ref<Integer> outSpecFlags, Ref<ResTable_config> outConfig)
-
resolveReference
public final int resolveReference(Ref<ResourceTypes.Res_value> value, int blockIndex, Ref<Integer> outLastRef)
-
resolveReference
public final int resolveReference(Ref<ResourceTypes.Res_value> value, int blockIndex, Ref<Integer> outLastRef, Ref<Integer> inoutTypeSpecFlags)
-
resolveReference
public final int resolveReference(Ref<ResourceTypes.Res_value> value, int blockIndex, Ref<Integer> outLastRef, Ref<Integer> inoutTypeSpecFlags, Ref<ResTable_config> outConfig)
-
getTableCookie
public int getTableCookie(int index)
-
identifierForName
public int identifierForName(String nameString, String type, String packageName, Ref<Integer> outTypeSpecFlags)
-
getBasePackageCount
public int getBasePackageCount()
-
getBasePackageName
public String getBasePackageName(int idx)
-
getBasePackageId
public int getBasePackageId(int idx)
-
getTableCount
public int getTableCount()
-
getTableStringBlock
public ResStringPool getTableStringBlock(int index)
-
getDynamicRefTableForCookie
public DynamicRefTable getDynamicRefTableForCookie(int cookie)
-
getResourceName
public boolean getResourceName(int resID, boolean allowUtf8, ResTable.ResourceName outName)
-
lock
public void lock()
-
unlock
public void unlock()
-
lockBag
public int lockBag(int resID, Ref<ResTable.bag_entry[]> outBag)
-
getBagLocked
public int getBagLocked(int resID, Ref<ResTable.bag_entry[]> outBag, Ref<Integer> outTypeSpecFlags)
-
unlockBag
public void unlockBag(Ref<ResTable.bag_entry[]> bag)
-
-