Added in API level 11
Deprecated in API level 31

AllocationAdapter

open class AllocationAdapter : Allocation
kotlin.Any
   ↳ android.renderscript.BaseObj
   ↳ android.renderscript.Allocation
   ↳ android.renderscript.AllocationAdapter

Only intended for use by generated reflected code.

Summary

Inherited constants
Public methods
open static AllocationAdapter!

open static AllocationAdapter!

open static AllocationAdapter!

Create an arbitrary window into the base allocation.

open Unit
resize(dimX: Int)

Override the Allocation resize.

open Unit

Set the active Face.

open Unit
setLOD(lod: Int)

Set the active LOD.

open Unit
setX(x: Int)

Set the active X.

open Unit
setY(y: Int)

Set the active Y.

open Unit
setZ(z: Int)

Set the active Z.

Inherited functions

Public methods

create1D

Added in API level 14
Deprecated in API level 31
open static fun create1D(
    rs: RenderScript!,
    a: Allocation!
): AllocationAdapter!

Deprecated: Deprecated in Java.

create2D

Added in API level 11
open static fun create2D(
    rs: RenderScript!,
    a: Allocation!
): AllocationAdapter!

Deprecated: Deprecated in Java.

createTyped

Added in API level 23
Deprecated in API level 31
open static fun createTyped(
    rs: RenderScript!,
    a: Allocation!,
    t: Type!
): AllocationAdapter!

Deprecated: Deprecated in Java.

Create an arbitrary window into the base allocation. The type describes the shape of the window. Any dimensions present in the type must be equal or smaller to the dimensions in the source allocation. A dimension present in the allocation that is not present in the type will be constrained away with the selectors. If a dimension is present in both the type and allocation, one of two things will happen. If the type is smaller than the allocation, a window will be created, the selected value in the adapter for that dimension will act as the base address, and the type will describe the size of the view starting at that point. If the type and allocation dimension are of the same size, then setting the selector for the dimension will be an error.

resize

Added in API level 11
open fun resize(dimX: Int): Unit

Deprecated: Deprecated in Java.

Override the Allocation resize. Resizing adapters is not allowed and will throw a RSInvalidStateException.

Parameters
dimX Int: ignored.

setFace

Added in API level 11
open fun setFace(cf: Type.CubemapFace!): Unit

Deprecated: Deprecated in Java.

Set the active Face. The base allocation must be of a type that includes faces.

Parameters
cf Type.CubemapFace!: The face to make active.

setLOD

Added in API level 11
open fun setLOD(lod: Int): Unit

Deprecated: Deprecated in Java.

Set the active LOD. The LOD must be within the range for the type being adapted. The base allocation must have mipmaps. Because this changes the dimensions of the adapter the current Y and Z will be reset.

Parameters
lod Int: The LOD to make active.

setX

Added in API level 23
Deprecated in API level 31
open fun setX(x: Int): Unit

Deprecated: Deprecated in Java.

Set the active X. The x value must be within the range for the allocation being adapted.

Parameters
x Int: The x to make active.

setY

Added in API level 11
open fun setY(y: Int): Unit

Deprecated: Deprecated in Java.

Set the active Y. The y value must be within the range for the allocation being adapted. The base allocation must contain the Y dimension.

Parameters
y Int: The y to make active.

setZ

Added in API level 11
open fun setZ(z: Int): Unit

Deprecated: Deprecated in Java.

Set the active Z. The z value must be within the range for the allocation being adapted. The base allocation must contain the Z dimension.

Parameters
z Int: The z to make active.