Added in API level 18
Deprecated in API level 31

Script.LaunchOptions


public static final class Script.LaunchOptions
extends Object

java.lang.Object
   ↳ android.renderscript.Script.LaunchOptions


Class for specifying the specifics about how a kernel will be launched. This class can specify a potential range of cells on which to run a kernel. If no set is called for a dimension then this class will have no impact on that dimension when the kernel is executed. The forEach kernel launch will operate over the intersection of the dimensions. Example: LaunchOptions with setX(5, 15) Allocation with dimension X=10, Y=10 The resulting forEach run would execute over: x = 5 to 9 (inclusive) and y = 0 to 9 (inclusive).

Summary

Public constructors

LaunchOptions()

Public methods

int getXEnd()

Returns the current X end

int getXStart()

Returns the current X start

int getYEnd()

Returns the current Y end

int getYStart()

Returns the current Y start

int getZEnd()

Returns the current Z end

int getZStart()

Returns the current Z start

Script.LaunchOptions setX(int xstartArg, int xendArg)

Set the X range.

Script.LaunchOptions setY(int ystartArg, int yendArg)

Set the Y range.

Script.LaunchOptions setZ(int zstartArg, int zendArg)

Set the Z range.

Inherited methods

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.

Public constructors

LaunchOptions

public LaunchOptions ()

Public methods

getXEnd

Added in API level 18
public int getXEnd ()

Returns the current X end

Returns
int int current value

getXStart

Added in API level 18
public int getXStart ()

Returns the current X start

Returns
int int current value

getYEnd

Added in API level 18
public int getYEnd ()

Returns the current Y end

Returns
int int current value

getYStart

Added in API level 18
public int getYStart ()

Returns the current Y start

Returns
int int current value

getZEnd

Added in API level 18
public int getZEnd ()

Returns the current Z end

Returns
int int current value

getZStart

Added in API level 18
public int getZStart ()

Returns the current Z start

Returns
int int current value

setX

Added in API level 18
public Script.LaunchOptions setX (int xstartArg, 
                int xendArg)

Set the X range. xstartArg is the lowest coordinate of the range, and xendArg-1 is the highest coordinate of the range.

Parameters
xstartArg int: Must be >= 0

xendArg int: Must be > xstartArg

Returns
Script.LaunchOptions LaunchOptions

setY

Added in API level 18
public Script.LaunchOptions setY (int ystartArg, 
                int yendArg)

Set the Y range. ystartArg is the lowest coordinate of the range, and yendArg-1 is the highest coordinate of the range.

Parameters
ystartArg int: Must be >= 0

yendArg int: Must be > ystartArg

Returns
Script.LaunchOptions LaunchOptions

setZ

Added in API level 18
public Script.LaunchOptions setZ (int zstartArg, 
                int zendArg)

Set the Z range. zstartArg is the lowest coordinate of the range, and zendArg-1 is the highest coordinate of the range.

Parameters
zstartArg int: Must be >= 0

zendArg int: Must be > zstartArg

Returns
Script.LaunchOptions LaunchOptions