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