[]Struct jni_android_sys::android::renderscript::Allocation

#[repr(transparent)]
pub struct Allocation(_);

public class Allocation

Required feature: "android-renderscript-Allocation"

Methods

impl Allocation

pub fn getElement<'env>(
    &'env self
) -> Result<Option<Local<'env, Element>>, Local<'env, Throwable>>
[src]

getElement

Required features: "android-renderscript-Element"

pub fn getUsage<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn setAutoPadding<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn getBytesSize<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn getType<'env>(
    &'env self
) -> Result<Option<Local<'env, Type>>, Local<'env, Throwable>>
[src]

getType

Required features: "android-renderscript-Type"

pub fn syncAll<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn ioSend<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn ioReceive<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn copyFrom_BaseObj_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<BaseObj, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyFrom

Required features: "android-renderscript-BaseObj"

pub fn copyFromUnchecked_Object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyFromUnchecked

Required features: "java-lang-Object"

pub fn copyFromUnchecked_int_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFromUnchecked_short_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFromUnchecked_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFromUnchecked_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFrom_Object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyFrom

Required features: "java-lang-Object"

pub fn copyFrom_int_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFrom_short_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFrom_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFrom_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyFrom_Bitmap<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyFrom

Required features: "android-graphics-Bitmap"

pub fn copyFrom_Allocation<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Allocation>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyFrom

Required features: "android-renderscript-Allocation"

pub fn setFromFieldPacker_int_FieldPacker<'env>(
    &'env self,
    arg0: i32,
    arg1: impl Into<Option<&'env FieldPacker>>
) -> Result<(), Local<'env, Throwable>>
[src]

setFromFieldPacker

Required features: "android-renderscript-FieldPacker"

pub fn setFromFieldPacker_int_int_FieldPacker<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env FieldPacker>>
) -> Result<(), Local<'env, Throwable>>
[src]

setFromFieldPacker

Required features: "android-renderscript-FieldPacker"

pub fn setFromFieldPacker_int_int_int_int_FieldPacker<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env FieldPacker>>
) -> Result<(), Local<'env, Throwable>>
[src]

setFromFieldPacker

Required features: "android-renderscript-FieldPacker"

pub fn generateMipmaps<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn copy1DRangeFromUnchecked_int_int_Object<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy1DRangeFromUnchecked

Required features: "java-lang-Object"

pub fn copy1DRangeFromUnchecked_int_int_int_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFromUnchecked_int_int_short_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFromUnchecked_int_int_byte_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFromUnchecked_int_int_float_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFrom_int_int_Object<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy1DRangeFrom

Required features: "java-lang-Object"

pub fn copy1DRangeFrom_int_int_int_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFrom_int_int_short_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFrom_int_int_byte_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFrom_int_int_float_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeFrom_int_int_Allocation_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Allocation>>,
    arg3: i32
) -> Result<(), Local<'env, Throwable>>
[src]

copy1DRangeFrom

Required features: "android-renderscript-Allocation"

pub fn copy2DRangeFrom_int_int_int_int_Object<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy2DRangeFrom

Required features: "java-lang-Object"

pub fn copy2DRangeFrom_int_int_int_int_byte_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeFrom_int_int_int_int_short_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeFrom_int_int_int_int_int_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeFrom_int_int_int_int_float_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeFrom_int_int_int_int_Allocation_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env Allocation>>,
    arg5: i32,
    arg6: i32
) -> Result<(), Local<'env, Throwable>>
[src]

copy2DRangeFrom

Required features: "android-renderscript-Allocation"

pub fn copy2DRangeFrom_int_int_Bitmap<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy2DRangeFrom

Required features: "android-graphics-Bitmap"

pub fn copy3DRangeFrom_int_int_int_int_int_int_Object<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy3DRangeFrom

Required features: "java-lang-Object"

pub fn copy3DRangeFrom_int_int_int_int_int_int_Allocation_int_int_int<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: impl Into<Option<&'env Allocation>>,
    arg7: i32,
    arg8: i32,
    arg9: i32
) -> Result<(), Local<'env, Throwable>>
[src]

copy3DRangeFrom

Required features: "android-renderscript-Allocation"

pub fn copyTo_Bitmap<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bitmap>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyTo

Required features: "android-graphics-Bitmap"

pub fn copyTo_Object<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copyTo

Required features: "java-lang-Object"

pub fn copyTo_byte_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyTo_short_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyTo_int_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copyTo_float_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn resize<'env>(&'env self, arg0: i32) -> Result<(), Local<'env, Throwable>>[src]

Deprecated

pub fn copy1DRangeToUnchecked_int_int_Object<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy1DRangeToUnchecked

Required features: "java-lang-Object"

pub fn copy1DRangeToUnchecked_int_int_int_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeToUnchecked_int_int_short_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeToUnchecked_int_int_byte_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeToUnchecked_int_int_float_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeTo_int_int_Object<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy1DRangeTo

Required features: "java-lang-Object"

pub fn copy1DRangeTo_int_int_int_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeTo_int_int_short_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeTo_int_int_byte_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy1DRangeTo_int_int_float_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeTo_int_int_int_int_Object<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy2DRangeTo

Required features: "java-lang-Object"

pub fn copy2DRangeTo_int_int_int_int_byte_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env ByteArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeTo_int_int_int_int_short_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env ShortArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeTo_int_int_int_int_int_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy2DRangeTo_int_int_int_int_float_array<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: impl Into<Option<&'env FloatArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn copy3DRangeTo<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32,
    arg6: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

copy3DRangeTo

Required features: "java-lang-Object"

pub fn createTyped_RenderScript_Type_MipmapControl_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Type>>,
    arg2: impl Into<Option<&'env Allocation_MipmapControl>>,
    arg3: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createTyped

Required features: "android-renderscript-Allocation", "android-renderscript-Allocation_MipmapControl", "android-renderscript-RenderScript", "android-renderscript-Type"

pub fn createTyped_RenderScript_Type_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Type>>,
    arg2: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createTyped

Required features: "android-renderscript-Allocation", "android-renderscript-RenderScript", "android-renderscript-Type"

pub fn createTyped_RenderScript_Type<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Type>>
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createTyped

Required features: "android-renderscript-Allocation", "android-renderscript-RenderScript", "android-renderscript-Type"

pub fn createSized_RenderScript_Element_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Element>>,
    arg2: i32,
    arg3: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createSized

Required features: "android-renderscript-Allocation", "android-renderscript-Element", "android-renderscript-RenderScript"

pub fn createSized_RenderScript_Element_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Element>>,
    arg2: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createSized

Required features: "android-renderscript-Allocation", "android-renderscript-Element", "android-renderscript-RenderScript"

pub fn createFromBitmap_RenderScript_Bitmap_MipmapControl_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Bitmap>>,
    arg2: impl Into<Option<&'env Allocation_MipmapControl>>,
    arg3: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createFromBitmap

Required features: "android-graphics-Bitmap", "android-renderscript-Allocation", "android-renderscript-Allocation_MipmapControl", "android-renderscript-RenderScript"

pub fn getByteBuffer<'env>(
    &'env self
) -> Result<Option<Local<'env, ByteBuffer>>, Local<'env, Throwable>>
[src]

getByteBuffer

Required features: "java-nio-ByteBuffer"

pub fn createAllocations<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Type>>,
    arg2: i32,
    arg3: i32
) -> Result<Option<Local<'env, ObjectArray<Allocation, Throwable>>>, Local<'env, Throwable>>
[src]

createAllocations

Required features: "android-renderscript-Allocation", "android-renderscript-RenderScript", "android-renderscript-Type"

pub fn getStride<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn getTimeStamp<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>[src]

pub fn getSurface<'env>(
    &'env self
) -> Result<Option<Local<'env, Surface>>, Local<'env, Throwable>>
[src]

getSurface

Required features: "android-view-Surface"

pub fn setSurface<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Surface>>
) -> Result<(), Local<'env, Throwable>>
[src]

setSurface

Required features: "android-view-Surface"

pub fn createFromBitmap_RenderScript_Bitmap<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createFromBitmap

Required features: "android-graphics-Bitmap", "android-renderscript-Allocation", "android-renderscript-RenderScript"

pub fn createCubemapFromBitmap_RenderScript_Bitmap_MipmapControl_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Bitmap>>,
    arg2: impl Into<Option<&'env Allocation_MipmapControl>>,
    arg3: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createCubemapFromBitmap

Required features: "android-graphics-Bitmap", "android-renderscript-Allocation", "android-renderscript-Allocation_MipmapControl", "android-renderscript-RenderScript"

pub fn createCubemapFromBitmap_RenderScript_Bitmap<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createCubemapFromBitmap

Required features: "android-graphics-Bitmap", "android-renderscript-Allocation", "android-renderscript-RenderScript"

pub fn createCubemapFromCubeFaces_RenderScript_Bitmap_Bitmap_Bitmap_Bitmap_Bitmap_Bitmap_MipmapControl_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Bitmap>>,
    arg2: impl Into<Option<&'env Bitmap>>,
    arg3: impl Into<Option<&'env Bitmap>>,
    arg4: impl Into<Option<&'env Bitmap>>,
    arg5: impl Into<Option<&'env Bitmap>>,
    arg6: impl Into<Option<&'env Bitmap>>,
    arg7: impl Into<Option<&'env Allocation_MipmapControl>>,
    arg8: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createCubemapFromCubeFaces

Required features: "android-graphics-Bitmap", "android-renderscript-Allocation", "android-renderscript-Allocation_MipmapControl", "android-renderscript-RenderScript"

pub fn createCubemapFromCubeFaces_RenderScript_Bitmap_Bitmap_Bitmap_Bitmap_Bitmap_Bitmap<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Bitmap>>,
    arg2: impl Into<Option<&'env Bitmap>>,
    arg3: impl Into<Option<&'env Bitmap>>,
    arg4: impl Into<Option<&'env Bitmap>>,
    arg5: impl Into<Option<&'env Bitmap>>,
    arg6: impl Into<Option<&'env Bitmap>>
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createCubemapFromCubeFaces

Required features: "android-graphics-Bitmap", "android-renderscript-Allocation", "android-renderscript-RenderScript"

pub fn createFromBitmapResource_RenderScript_Resources_int_MipmapControl_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Resources>>,
    arg2: i32,
    arg3: impl Into<Option<&'env Allocation_MipmapControl>>,
    arg4: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createFromBitmapResource

Required features: "android-content-res-Resources", "android-renderscript-Allocation", "android-renderscript-Allocation_MipmapControl", "android-renderscript-RenderScript"

pub fn createFromBitmapResource_RenderScript_Resources_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env Resources>>,
    arg2: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createFromBitmapResource

Required features: "android-content-res-Resources", "android-renderscript-Allocation", "android-renderscript-RenderScript"

pub fn createFromString<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env RenderScript>>,
    arg1: impl Into<Option<&'env String>>,
    arg2: i32
) -> Result<Option<Local<'env, Allocation>>, Local<'env, Throwable>>
[src]

createFromString

Required features: "android-renderscript-Allocation", "android-renderscript-RenderScript", "java-lang-String"

pub fn setOnBufferAvailableListener<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Allocation_OnBufferAvailableListener>>
) -> Result<(), Local<'env, Throwable>>
[src]

setOnBufferAvailableListener

Required features: "android-renderscript-Allocation_OnBufferAvailableListener"

pub fn destroy<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub const USAGE_GRAPHICS_CONSTANTS: i32[src]

public static final USAGE_GRAPHICS_CONSTANTS

pub const USAGE_GRAPHICS_RENDER_TARGET: i32[src]

public static final USAGE_GRAPHICS_RENDER_TARGET

pub const USAGE_GRAPHICS_TEXTURE: i32[src]

public static final USAGE_GRAPHICS_TEXTURE

pub const USAGE_GRAPHICS_VERTEX: i32[src]

public static final USAGE_GRAPHICS_VERTEX

pub const USAGE_IO_INPUT: i32[src]

public static final USAGE_IO_INPUT

pub const USAGE_IO_OUTPUT: i32[src]

public static final USAGE_IO_OUTPUT

pub const USAGE_SCRIPT: i32[src]

public static final USAGE_SCRIPT

pub const USAGE_SHARED: i32[src]

public static final USAGE_SHARED

Methods from Deref<Target = BaseObj>

pub fn setName<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]

setName

Required features: "java-lang-String"

pub fn getName<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

getName

Required features: "java-lang-String"

pub fn destroy<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

Trait Implementations

impl AsJValue for Allocation

impl AsValidJObjectAndEnv for Allocation

impl Deref for Allocation

type Target = BaseObj

The resulting type after dereferencing.

impl JniType for Allocation

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.