[]Struct jni_android_sys::android::hardware::HardwareBuffer

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

public final class HardwareBuffer

Required feature: "android-hardware-HardwareBuffer"

Methods

impl HardwareBuffer

pub fn create<'env>(
    __jni_env: &'env Env,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i64
) -> Result<Option<Local<'env, HardwareBuffer>>, Local<'env, Throwable>>
[src]

create

Required features: "android-hardware-HardwareBuffer"

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

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

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

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

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

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

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

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

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

writeToParcel

Required features: "android-os-Parcel"

pub const BLOB: i32[src]

public static final BLOB

pub fn CREATOR<'env>(env: &'env Env) -> Option<Local<'env, Parcelable_Creator>>[src]

get public static final CREATOR

Required feature: "android-os-Parcelable_Creator"

pub const DS_24UI8: i32[src]

public static final DS_24UI8

pub const DS_FP32UI8: i32[src]

public static final DS_FP32UI8

pub const D_16: i32[src]

public static final D_16

pub const D_24: i32[src]

public static final D_24

pub const D_FP32: i32[src]

public static final D_FP32

pub const RGBA_1010102: i32[src]

public static final RGBA_1010102

pub const RGBA_8888: i32[src]

public static final RGBA_8888

pub const RGBA_FP16: i32[src]

public static final RGBA_FP16

pub const RGBX_8888: i32[src]

public static final RGBX_8888

pub const RGB_565: i32[src]

public static final RGB_565

pub const RGB_888: i32[src]

public static final RGB_888

pub const S_UI8: i32[src]

public static final S_UI8

pub const USAGE_CPU_READ_OFTEN: i64[src]

public static final USAGE_CPU_READ_OFTEN

pub const USAGE_CPU_READ_RARELY: i64[src]

public static final USAGE_CPU_READ_RARELY

pub const USAGE_CPU_WRITE_OFTEN: i64[src]

public static final USAGE_CPU_WRITE_OFTEN

pub const USAGE_CPU_WRITE_RARELY: i64[src]

public static final USAGE_CPU_WRITE_RARELY

pub const USAGE_GPU_COLOR_OUTPUT: i64[src]

public static final USAGE_GPU_COLOR_OUTPUT

pub const USAGE_GPU_CUBE_MAP: i64[src]

public static final USAGE_GPU_CUBE_MAP

pub const USAGE_GPU_DATA_BUFFER: i64[src]

public static final USAGE_GPU_DATA_BUFFER

pub const USAGE_GPU_MIPMAP_COMPLETE: i64[src]

public static final USAGE_GPU_MIPMAP_COMPLETE

pub const USAGE_GPU_SAMPLED_IMAGE: i64[src]

public static final USAGE_GPU_SAMPLED_IMAGE

pub const USAGE_PROTECTED_CONTENT: i64[src]

public static final USAGE_PROTECTED_CONTENT

pub const USAGE_SENSOR_DIRECT_DATA: i64[src]

public static final USAGE_SENSOR_DIRECT_DATA

pub const USAGE_VIDEO_ENCODE: i64[src]

public static final USAGE_VIDEO_ENCODE

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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"

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

toString

Required features: "java-lang-String"

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

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

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

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

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

Trait Implementations

impl AsJValue for HardwareBuffer

impl AsRef<AutoCloseable> for HardwareBuffer

impl AsRef<Parcelable> for HardwareBuffer

impl AsValidJObjectAndEnv for HardwareBuffer

impl Deref for HardwareBuffer

type Target = Object

The resulting type after dereferencing.

impl JniType for HardwareBuffer

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.