Added in API level 11
Deprecated in API level 31

Element.DataType


public static final enum Element.DataType
extends Enum<Element.DataType>

java.lang.Object
   ↳ java.lang.Enum<android.renderscript.Element.DataType>
     ↳ android.renderscript.Element.DataType


DataType represents the basic type information for a basic element. The naming convention follows. For numeric types it is FLOAT, SIGNED, or UNSIGNED followed by the _BITS where BITS is the size of the data. BOOLEAN is a true / false (1,0) represented in an 8 bit container. The UNSIGNED variants with multiple bit definitions are for packed graphical data formats and represent vectors with per vector member sizes which are treated as a single unit for packing and alignment purposes. MATRIX the three matrix types contain FLOAT_32 elements and are treated as 32 bits for alignment purposes. RS_* objects: opaque handles with implementation dependent sizes.

Summary

Enum values

Element.DataType  BOOLEAN

 

Element.DataType  FLOAT_16

 

Element.DataType  FLOAT_32

 

Element.DataType  FLOAT_64

 

Element.DataType  MATRIX_2X2

 

Element.DataType  MATRIX_3X3

 

Element.DataType  MATRIX_4X4

 

Element.DataType  NONE

 

Element.DataType  RS_ALLOCATION

 

Element.DataType  RS_ELEMENT

 

Element.DataType  RS_FONT

 

Element.DataType  RS_MESH

 

Element.DataType  RS_PROGRAM_FRAGMENT

 

Element.DataType  RS_PROGRAM_RASTER

 

Element.DataType  RS_PROGRAM_STORE

 

Element.DataType  RS_PROGRAM_VERTEX

 

Element.DataType  RS_SAMPLER

 

Element.DataType  RS_SCRIPT

 

Element.DataType  RS_TYPE

 

Element.DataType  SIGNED_16

 

Element.DataType  SIGNED_32

 

Element.DataType  SIGNED_64

 

Element.DataType  SIGNED_8

 

Element.DataType  UNSIGNED_16

 

Element.DataType  UNSIGNED_32

 

Element.DataType  UNSIGNED_4_4_4_4

 

Element.DataType  UNSIGNED_5_5_5_1

 

Element.DataType  UNSIGNED_5_6_5

 

Element.DataType  UNSIGNED_64

 

Element.DataType  UNSIGNED_8

 

Public methods

static Element.DataType valueOf(String name)
static final DataType[] values()

Inherited methods

final Object clone()

Throws CloneNotSupportedException.

final int compareTo(Element.DataType o)

Compares this enum with the specified object for order.

final boolean equals(Object other)

Returns true if the specified object is equal to this enum constant.

final void finalize()

enum classes cannot have finalize methods.

final Class<Element.DataType> getDeclaringClass()

Returns the Class object corresponding to this enum constant's enum type.

final int hashCode()

Returns a hash code for this enum constant.

final String name()

Returns the name of this enum constant, exactly as declared in its enum declaration.

final int ordinal()

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

String toString()

Returns the name of this enum constant, as contained in the declaration.

static <T extends Enum<T>> T valueOf(Class<T> enumClass, String name)

Returns the enum constant of the specified enum class with the specified name.

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

abstract int compareTo(Element.DataType o)

Compares this object with the specified object for order.

Enum values

BOOLEAN

Added in API level 11
public static final Element.DataType BOOLEAN

FLOAT_16

Added in API level 23
Deprecated in API level 31
public static final Element.DataType FLOAT_16

FLOAT_32

Added in API level 11
public static final Element.DataType FLOAT_32

FLOAT_64

Added in API level 11
public static final Element.DataType FLOAT_64

MATRIX_2X2

Added in API level 11
public static final Element.DataType MATRIX_2X2

MATRIX_3X3

Added in API level 11
public static final Element.DataType MATRIX_3X3

MATRIX_4X4

Added in API level 11
public static final Element.DataType MATRIX_4X4

NONE

Added in API level 16
Deprecated in API level 31
public static final Element.DataType NONE

RS_ALLOCATION

Added in API level 11
public static final Element.DataType RS_ALLOCATION

RS_ELEMENT

Added in API level 11
public static final Element.DataType RS_ELEMENT

RS_FONT

Added in API level 16
Deprecated in API level 31
public static final Element.DataType RS_FONT

RS_MESH

Added in API level 11
public static final Element.DataType RS_MESH

RS_PROGRAM_FRAGMENT

Added in API level 11
public static final Element.DataType RS_PROGRAM_FRAGMENT

RS_PROGRAM_RASTER

Added in API level 11
public static final Element.DataType RS_PROGRAM_RASTER

RS_PROGRAM_STORE

Added in API level 11
public static final Element.DataType RS_PROGRAM_STORE

RS_PROGRAM_VERTEX

Added in API level 11
public static final Element.DataType RS_PROGRAM_VERTEX

RS_SAMPLER

Added in API level 11
public static final Element.DataType RS_SAMPLER

RS_SCRIPT

Added in API level 11
public static final Element.DataType RS_SCRIPT

RS_TYPE

Added in API level 11
public static final Element.DataType RS_TYPE

SIGNED_16

Added in API level 11
public static final Element.DataType SIGNED_16

SIGNED_32

Added in API level 11
public static final Element.DataType SIGNED_32

SIGNED_64

Added in API level 11
public static final Element.DataType SIGNED_64

SIGNED_8

Added in API level 11
public static final Element.DataType SIGNED_8

UNSIGNED_16

Added in API level 11
public static final Element.DataType UNSIGNED_16

UNSIGNED_32

Added in API level 11
public static final Element.DataType UNSIGNED_32

UNSIGNED_4_4_4_4

Added in API level 11
public static final Element.DataType UNSIGNED_4_4_4_4

UNSIGNED_5_5_5_1

Added in API level 11
public static final Element.DataType UNSIGNED_5_5_5_1

UNSIGNED_5_6_5

Added in API level 11
public static final Element.DataType UNSIGNED_5_6_5

UNSIGNED_64

Added in API level 11
public static final Element.DataType UNSIGNED_64

UNSIGNED_8

Added in API level 11
public static final Element.DataType UNSIGNED_8

Public methods

valueOf

public static Element.DataType valueOf (String name)

Parameters
name String

values

public static final DataType[] values ()

Returns
DataType[]