Package org.robolectric.res.android
Class ResourceTypes.Res_value
- java.lang.Object
-
- org.robolectric.res.android.ResourceTypes.Res_value
-
- Enclosing class:
- ResourceTypes
public static class ResourceTypes.Res_value extends Object
Representation of a value in a resource, supplying type information.
-
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Res_value()
Res_value(byte dataType, int data)
Res_value(ByteBuffer buf, int offset)
Res_value(ResourceTypes.Res_value other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceTypes.Res_value
copy()
String
toString()
ResourceTypes.Res_value
withData(int data)
ResourceTypes.Res_value
withType(byte dataType)
static void
write(ByteBuffer buf, int dataType, int data)
-
-
-
Field Detail
-
TYPE_NULL
public static final int TYPE_NULL
- See Also:
- Constant Field Values
-
TYPE_REFERENCE
public static final int TYPE_REFERENCE
- See Also:
- Constant Field Values
-
TYPE_ATTRIBUTE
public static final int TYPE_ATTRIBUTE
- See Also:
- Constant Field Values
-
TYPE_STRING
public static final int TYPE_STRING
- See Also:
- Constant Field Values
-
TYPE_FLOAT
public static final int TYPE_FLOAT
- See Also:
- Constant Field Values
-
TYPE_DIMENSION
public static final int TYPE_DIMENSION
- See Also:
- Constant Field Values
-
TYPE_FRACTION
public static final int TYPE_FRACTION
- See Also:
- Constant Field Values
-
TYPE_DYNAMIC_REFERENCE
public static final int TYPE_DYNAMIC_REFERENCE
- See Also:
- Constant Field Values
-
TYPE_DYNAMIC_ATTRIBUTE
public static final int TYPE_DYNAMIC_ATTRIBUTE
- See Also:
- Constant Field Values
-
TYPE_FIRST_INT
public static final int TYPE_FIRST_INT
- See Also:
- Constant Field Values
-
TYPE_INT_DEC
public static final int TYPE_INT_DEC
- See Also:
- Constant Field Values
-
TYPE_INT_HEX
public static final int TYPE_INT_HEX
- See Also:
- Constant Field Values
-
TYPE_INT_BOOLEAN
public static final int TYPE_INT_BOOLEAN
- See Also:
- Constant Field Values
-
TYPE_FIRST_COLOR_INT
public static final int TYPE_FIRST_COLOR_INT
- See Also:
- Constant Field Values
-
TYPE_INT_COLOR_ARGB8
public static final int TYPE_INT_COLOR_ARGB8
- See Also:
- Constant Field Values
-
TYPE_INT_COLOR_RGB8
public static final int TYPE_INT_COLOR_RGB8
- See Also:
- Constant Field Values
-
TYPE_INT_COLOR_ARGB4
public static final int TYPE_INT_COLOR_ARGB4
- See Also:
- Constant Field Values
-
TYPE_INT_COLOR_RGB4
public static final int TYPE_INT_COLOR_RGB4
- See Also:
- Constant Field Values
-
TYPE_LAST_COLOR_INT
public static final int TYPE_LAST_COLOR_INT
- See Also:
- Constant Field Values
-
TYPE_LAST_INT
public static final int TYPE_LAST_INT
- See Also:
- Constant Field Values
-
dataType
public final byte dataType
-
COMPLEX_UNIT_SHIFT
public static final int COMPLEX_UNIT_SHIFT
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_MASK
public static final int COMPLEX_UNIT_MASK
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_PX
public static final int COMPLEX_UNIT_PX
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_DIP
public static final int COMPLEX_UNIT_DIP
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_SP
public static final int COMPLEX_UNIT_SP
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_PT
public static final int COMPLEX_UNIT_PT
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_IN
public static final int COMPLEX_UNIT_IN
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_MM
public static final int COMPLEX_UNIT_MM
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_FRACTION
public static final int COMPLEX_UNIT_FRACTION
- See Also:
- Constant Field Values
-
COMPLEX_UNIT_FRACTION_PARENT
public static final int COMPLEX_UNIT_FRACTION_PARENT
- See Also:
- Constant Field Values
-
COMPLEX_RADIX_SHIFT
public static final int COMPLEX_RADIX_SHIFT
- See Also:
- Constant Field Values
-
COMPLEX_RADIX_MASK
public static final int COMPLEX_RADIX_MASK
- See Also:
- Constant Field Values
-
COMPLEX_RADIX_23p0
public static final int COMPLEX_RADIX_23p0
- See Also:
- Constant Field Values
-
COMPLEX_RADIX_16p7
public static final int COMPLEX_RADIX_16p7
- See Also:
- Constant Field Values
-
COMPLEX_RADIX_8p15
public static final int COMPLEX_RADIX_8p15
- See Also:
- Constant Field Values
-
COMPLEX_RADIX_0p23
public static final int COMPLEX_RADIX_0p23
- See Also:
- Constant Field Values
-
COMPLEX_MANTISSA_SHIFT
public static final int COMPLEX_MANTISSA_SHIFT
- See Also:
- Constant Field Values
-
COMPLEX_MANTISSA_MASK
public static final int COMPLEX_MANTISSA_MASK
- See Also:
- Constant Field Values
-
DATA_NULL_UNDEFINED
public static final int DATA_NULL_UNDEFINED
- See Also:
- Constant Field Values
-
DATA_NULL_EMPTY
public static final int DATA_NULL_EMPTY
- See Also:
- Constant Field Values
-
NULL_VALUE
public static final ResourceTypes.Res_value NULL_VALUE
-
data
public final int data
-
-
Constructor Detail
-
Res_value
public Res_value()
-
Res_value
public Res_value(ByteBuffer buf, int offset)
-
Res_value
public Res_value(ResourceTypes.Res_value other)
-
Res_value
public Res_value(byte dataType, int data)
-
-
Method Detail
-
write
public static void write(ByteBuffer buf, int dataType, int data)
-
withType
public ResourceTypes.Res_value withType(byte dataType)
-
withData
public ResourceTypes.Res_value withData(int data)
-
copy
public ResourceTypes.Res_value copy()
-
-