// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-renderscript-RSSurfaceView"))]
__jni_bindgen! {
/// public class [RSSurfaceView](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html)
///
/// Required feature: "android-renderscript-RSSurfaceView"
#[deprecated] public class RSSurfaceView ("android/renderscript/RSSurfaceView") extends crate::android::view::SurfaceView, implements crate::android::view::SurfaceHolder_Callback {
/// [RSSurfaceView](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#RSSurfaceView(android.content.Context))
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
#[deprecated] pub fn new_Context<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::renderscript::RSSurfaceView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "<init>\0", "(Landroid/content/Context;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [RSSurfaceView](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#RSSurfaceView(android.content.Context,%20android.util.AttributeSet))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
#[deprecated] pub fn new_Context_AttributeSet<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::renderscript::RSSurfaceView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [surfaceCreated](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#surfaceCreated(android.view.SurfaceHolder))
///
/// Required features: "android-view-SurfaceHolder"
#[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))]
#[deprecated] pub fn surfaceCreated<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "surfaceCreated", .descriptor == "(Landroid/view/SurfaceHolder;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "surfaceCreated\0", "(Landroid/view/SurfaceHolder;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [surfaceDestroyed](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#surfaceDestroyed(android.view.SurfaceHolder))
///
/// Required features: "android-view-SurfaceHolder"
#[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))]
#[deprecated] pub fn surfaceDestroyed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "surfaceDestroyed", .descriptor == "(Landroid/view/SurfaceHolder;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "surfaceDestroyed\0", "(Landroid/view/SurfaceHolder;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [surfaceChanged](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#surfaceChanged(android.view.SurfaceHolder,%20int,%20int,%20int))
///
/// Required features: "android-view-SurfaceHolder"
#[cfg(any(feature = "all", all(feature = "android-view-SurfaceHolder")))]
#[deprecated] pub fn surfaceChanged<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::SurfaceHolder>>, arg1: i32, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "surfaceChanged", .descriptor == "(Landroid/view/SurfaceHolder;III)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "surfaceChanged\0", "(Landroid/view/SurfaceHolder;III)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [pause](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#pause())
#[deprecated] pub fn pause<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "pause", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "pause\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [resume](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#resume())
#[deprecated] pub fn resume<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "resume", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "resume\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [createRenderScriptGL](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#createRenderScriptGL(android.renderscript.RenderScriptGL.SurfaceConfig))
///
/// Required features: "android-renderscript-RenderScriptGL", "android-renderscript-RenderScriptGL_SurfaceConfig"
#[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScriptGL", feature = "android-renderscript-RenderScriptGL_SurfaceConfig")))]
#[deprecated] pub fn createRenderScriptGL<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScriptGL_SurfaceConfig>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::RenderScriptGL>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "createRenderScriptGL", .descriptor == "(Landroid/renderscript/RenderScriptGL$SurfaceConfig;)Landroid/renderscript/RenderScriptGL;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "createRenderScriptGL\0", "(Landroid/renderscript/RenderScriptGL$SurfaceConfig;)Landroid/renderscript/RenderScriptGL;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [destroyRenderScriptGL](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#destroyRenderScriptGL())
#[deprecated] pub fn destroyRenderScriptGL<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "destroyRenderScriptGL", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "destroyRenderScriptGL\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setRenderScriptGL](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#setRenderScriptGL(android.renderscript.RenderScriptGL))
///
/// Required features: "android-renderscript-RenderScriptGL"
#[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScriptGL")))]
#[deprecated] pub fn setRenderScriptGL<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::RenderScriptGL>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "setRenderScriptGL", .descriptor == "(Landroid/renderscript/RenderScriptGL;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "setRenderScriptGL\0", "(Landroid/renderscript/RenderScriptGL;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getRenderScriptGL](https://developer.android.com/reference/android/renderscript/RSSurfaceView.html#getRenderScriptGL())
///
/// Required features: "android-renderscript-RenderScriptGL"
#[cfg(any(feature = "all", all(feature = "android-renderscript-RenderScriptGL")))]
#[deprecated] pub fn getRenderScriptGL<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::renderscript::RenderScriptGL>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/RSSurfaceView", java.flags == PUBLIC, .name == "getRenderScriptGL", .descriptor == "()Landroid/renderscript/RenderScriptGL;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/RSSurfaceView\0", "getRenderScriptGL\0", "()Landroid/renderscript/RenderScriptGL;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}