Added in API level 11
Deprecated in API level 31

Script


open class Script : BaseObj
kotlin.Any
   ↳ android.renderscript.BaseObj
   ↳ android.renderscript.Script

The parent class for all executable scripts. This should not be used by applications.

Summary

Nested classes
open

Only intended for use by generated reflected code.

open

Only intended for use by generated reflected code.

FieldID is an identifier for a Script + exported field pair.

InvokeID is an identifier for an invoke function.

KernelID is an identifier for a Script + root function pair.

Class for specifying the specifics about how a kernel will be launched.

Public methods
open Unit

Only intended for use by generated reflected code.

open Boolean
getVarB(index: Int)

open Double
getVarD(index: Int)

open Float
getVarF(index: Int)

open Int
getVarI(index: Int)

open Long
getVarJ(index: Int)

open Unit
getVarV(index: Int, v: FieldPacker!)

Only intended for use by generated reflected code.

open Unit
setTimeZone(timeZone: String!)

open Unit
setVar(index: Int, v: Float)

Only intended for use by generated reflected code.

open Unit
setVar(index: Int, v: Double)

Only intended for use by generated reflected code.

open Unit
setVar(index: Int, v: Int)

Only intended for use by generated reflected code.

open Unit
setVar(index: Int, v: Long)

Only intended for use by generated reflected code.

open Unit
setVar(index: Int, v: Boolean)

Only intended for use by generated reflected code.

open Unit
setVar(index: Int, o: BaseObj!)

Only intended for use by generated reflected code.

open Unit
setVar(index: Int, v: FieldPacker!)

Only intended for use by generated reflected code.

open Unit
setVar(index: Int, v: FieldPacker!, e: Element!, dims: IntArray!)

Only intended for use by generated reflected code.

Protected methods
open Script.FieldID!
createFieldID(slot: Int, e: Element!)

Only to be used by generated reflected classes.

open Script.InvokeID!

Only to be used by generated reflected classes.

open Script.KernelID!
createKernelID(slot: Int, sig: Int, ein: Element!, eout: Element!)

Only to be used by generated reflected classes.

open Unit
forEach(slot: Int, ain: Allocation!, aout: Allocation!, v: FieldPacker!)

Only intended for use by generated reflected code.

open Unit
forEach(slot: Int, ain: Allocation!, aout: Allocation!, v: FieldPacker!, sc: Script.LaunchOptions!)

Only intended for use by generated reflected code.

open Unit
forEach(slot: Int, ains: Array<Allocation!>!, aout: Allocation!, v: FieldPacker!)

Only intended for use by generated reflected code.

open Unit
forEach(slot: Int, ains: Array<Allocation!>!, aout: Allocation!, v: FieldPacker!, sc: Script.LaunchOptions!)

Only intended for use by generated reflected code.

open Unit
invoke(slot: Int)

Only intended for use by generated reflected code.

open Unit
invoke(slot: Int, v: FieldPacker!)

Only intended for use by generated reflected code.

open Unit
reduce(slot: Int, ains: Array<Allocation!>!, aout: Allocation!, sc: Script.LaunchOptions!)

Only intended for use by generated reflected code.

Inherited functions

Public methods

bindAllocation

Added in API level 11
open fun bindAllocation(
    va: Allocation!,
    slot: Int
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

getVarB

Added in API level 18
Deprecated in API level 31
open fun getVarB(index: Int): Boolean

Deprecated: Deprecated in Java.

getVarD

Added in API level 18
Deprecated in API level 31
open fun getVarD(index: Int): Double

Deprecated: Deprecated in Java.

getVarF

Added in API level 18
Deprecated in API level 31
open fun getVarF(index: Int): Float

Deprecated: Deprecated in Java.

getVarI

Added in API level 18
Deprecated in API level 31
open fun getVarI(index: Int): Int

Deprecated: Deprecated in Java.

getVarJ

Added in API level 18
Deprecated in API level 31
open fun getVarJ(index: Int): Long

Deprecated: Deprecated in Java.

getVarV

Added in API level 18
Deprecated in API level 31
open fun getVarV(
    index: Int,
    v: FieldPacker!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setTimeZone

Added in API level 11
open fun setTimeZone(timeZone: String!): Unit

Deprecated: Deprecated in Java.

setVar

Added in API level 11
open fun setVar(
    index: Int,
    v: Float
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setVar

Added in API level 11
open fun setVar(
    index: Int,
    v: Double
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setVar

Added in API level 11
open fun setVar(
    index: Int,
    v: Int
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setVar

Added in API level 11
open fun setVar(
    index: Int,
    v: Long
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setVar

Added in API level 11
open fun setVar(
    index: Int,
    v: Boolean
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setVar

Added in API level 11
open fun setVar(
    index: Int,
    o: BaseObj!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setVar

Added in API level 11
open fun setVar(
    index: Int,
    v: FieldPacker!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

setVar

Added in API level 16
Deprecated in API level 31
open fun setVar(
    index: Int,
    v: FieldPacker!,
    e: Element!,
    dims: IntArray!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

Protected methods

createFieldID

Added in API level 17
Deprecated in API level 31
protected open fun createFieldID(
    slot: Int,
    e: Element!
): Script.FieldID!

Deprecated: Deprecated in Java.

Only to be used by generated reflected classes.

createInvokeID

Added in API level 23
Deprecated in API level 31
protected open fun createInvokeID(slot: Int): Script.InvokeID!

Deprecated: Deprecated in Java.

Only to be used by generated reflected classes.

createKernelID

Added in API level 17
Deprecated in API level 31
protected open fun createKernelID(
    slot: Int,
    sig: Int,
    ein: Element!,
    eout: Element!
): Script.KernelID!

Deprecated: Deprecated in Java.

Only to be used by generated reflected classes.

forEach

Added in API level 14
Deprecated in API level 31
protected open fun forEach(
    slot: Int,
    ain: Allocation!,
    aout: Allocation!,
    v: FieldPacker!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

forEach

Added in API level 18
Deprecated in API level 31
protected open fun forEach(
    slot: Int,
    ain: Allocation!,
    aout: Allocation!,
    v: FieldPacker!,
    sc: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

forEach

Added in API level 23
Deprecated in API level 31
protected open fun forEach(
    slot: Int,
    ains: Array<Allocation!>!,
    aout: Allocation!,
    v: FieldPacker!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

forEach

Added in API level 23
Deprecated in API level 31
protected open fun forEach(
    slot: Int,
    ains: Array<Allocation!>!,
    aout: Allocation!,
    v: FieldPacker!,
    sc: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

invoke

Added in API level 11
protected open fun invoke(slot: Int): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

invoke

Added in API level 11
protected open fun invoke(
    slot: Int,
    v: FieldPacker!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code.

reduce

Added in API level 24
Deprecated in API level 31
protected open fun reduce(
    slot: Int,
    ains: Array<Allocation!>!,
    aout: Allocation!,
    sc: Script.LaunchOptions!
): Unit

Deprecated: Deprecated in Java.

Only intended for use by generated reflected code. (General reduction)