// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-renderscript-Script"))]
__jni_bindgen! {
/// public class [Script](https://developer.android.com/reference/android/renderscript/Script.html)
///
/// Required feature: "android-renderscript-Script"
public class Script ("android/renderscript/Script") extends crate::android::renderscript::BaseObj {
/// [bindAllocation](https://developer.android.com/reference/android/renderscript/Script.html#bindAllocation(android.renderscript.Allocation,%20int))
///
/// Required features: "android-renderscript-Allocation"
#[cfg(any(feature = "all", all(feature = "android-renderscript-Allocation")))]
pub fn bindAllocation<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Allocation>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "bindAllocation", .descriptor == "(Landroid/renderscript/Allocation;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "bindAllocation\0", "(Landroid/renderscript/Allocation;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20float))
pub fn setVar_int_float<'env>(&'env self, arg0: i32, arg1: f32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(IF)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(IF)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVarF](https://developer.android.com/reference/android/renderscript/Script.html#getVarF(int))
pub fn getVarF<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "getVarF", .descriptor == "(I)F"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "getVarF\0", "(I)F\0");
__jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20double))
pub fn setVar_int_double<'env>(&'env self, arg0: i32, arg1: f64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(ID)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(ID)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVarD](https://developer.android.com/reference/android/renderscript/Script.html#getVarD(int))
pub fn getVarD<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<f64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "getVarD", .descriptor == "(I)D"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "getVarD\0", "(I)D\0");
__jni_env.call_double_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20int))
pub fn setVar_int_int<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(II)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(II)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVarI](https://developer.android.com/reference/android/renderscript/Script.html#getVarI(int))
pub fn getVarI<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "getVarI", .descriptor == "(I)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "getVarI\0", "(I)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20long))
pub fn setVar_int_long<'env>(&'env self, arg0: i32, arg1: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(IJ)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(IJ)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVarJ](https://developer.android.com/reference/android/renderscript/Script.html#getVarJ(int))
pub fn getVarJ<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "getVarJ", .descriptor == "(I)J"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "getVarJ\0", "(I)J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20boolean))
pub fn setVar_int_boolean<'env>(&'env self, arg0: i32, arg1: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(IZ)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(IZ)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVarB](https://developer.android.com/reference/android/renderscript/Script.html#getVarB(int))
pub fn getVarB<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "getVarB", .descriptor == "(I)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "getVarB\0", "(I)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20android.renderscript.BaseObj))
///
/// Required features: "android-renderscript-BaseObj"
#[cfg(any(feature = "all", all(feature = "android-renderscript-BaseObj")))]
pub fn setVar_int_BaseObj<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::BaseObj>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(ILandroid/renderscript/BaseObj;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(ILandroid/renderscript/BaseObj;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20android.renderscript.FieldPacker))
///
/// Required features: "android-renderscript-FieldPacker"
#[cfg(any(feature = "all", all(feature = "android-renderscript-FieldPacker")))]
pub fn setVar_int_FieldPacker<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::FieldPacker>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(ILandroid/renderscript/FieldPacker;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(ILandroid/renderscript/FieldPacker;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVar](https://developer.android.com/reference/android/renderscript/Script.html#setVar(int,%20android.renderscript.FieldPacker,%20android.renderscript.Element,%20int%5B%5D))
///
/// Required features: "android-renderscript-Element", "android-renderscript-FieldPacker"
#[cfg(any(feature = "all", all(feature = "android-renderscript-Element", feature = "android-renderscript-FieldPacker")))]
pub fn setVar_int_FieldPacker_Element_int_array<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::FieldPacker>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::Element>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setVar", .descriptor == "(ILandroid/renderscript/FieldPacker;Landroid/renderscript/Element;[I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "setVar\0", "(ILandroid/renderscript/FieldPacker;Landroid/renderscript/Element;[I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVarV](https://developer.android.com/reference/android/renderscript/Script.html#getVarV(int,%20android.renderscript.FieldPacker))
///
/// Required features: "android-renderscript-FieldPacker"
#[cfg(any(feature = "all", all(feature = "android-renderscript-FieldPacker")))]
pub fn getVarV<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::renderscript::FieldPacker>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "getVarV", .descriptor == "(ILandroid/renderscript/FieldPacker;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/renderscript/Script\0", "getVarV\0", "(ILandroid/renderscript/FieldPacker;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTimeZone](https://developer.android.com/reference/android/renderscript/Script.html#setTimeZone(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn setTimeZone<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/renderscript/Script", java.flags == PUBLIC, .name == "setTimeZone", .descriptor == "(Ljava/lang/String;)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/Script\0", "setTimeZone\0", "(Ljava/lang/String;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}