1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-widget-SimpleCursorAdapter"))]
__jni_bindgen! {
    /// public class [SimpleCursorAdapter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html)
    ///
    /// Required feature: "android-widget-SimpleCursorAdapter"
    public class SimpleCursorAdapter ("android/widget/SimpleCursorAdapter") extends crate::android::widget::ResourceCursorAdapter {

        /// [SimpleCursorAdapter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#SimpleCursorAdapter(android.content.Context,%20int,%20android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D))
        ///
        /// Required features: "android-content-Context", "android-database-Cursor", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "java-lang-String")))]
        #[deprecated] pub fn new_Context_int_Cursor_String_array_int_array<'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: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, arg4: 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::android::widget::SimpleCursorAdapter>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "<init>\0", "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[I)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [SimpleCursorAdapter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#SimpleCursorAdapter(android.content.Context,%20int,%20android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D,%20int))
        ///
        /// Required features: "android-content-Context", "android-database-Cursor", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "java-lang-String")))]
        pub fn new_Context_int_Cursor_String_array_int_array_int<'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: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>, arg5: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::SimpleCursorAdapter>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[II)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into()), __jni_bindgen::AsJValue::as_jvalue(&arg5)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "<init>\0", "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[II)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindView](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#bindView(android.view.View,%20android.content.Context,%20android.database.Cursor))
        ///
        /// Required features: "android-content-Context", "android-database-Cursor", "android-view-View"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "android-view-View")))]
        pub fn bindView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "bindView", .descriptor == "(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "bindView\0", "(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getViewBinder](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#getViewBinder())
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_ViewBinder"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_ViewBinder")))]
        pub fn getViewBinder<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::SimpleCursorAdapter_ViewBinder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "getViewBinder", .descriptor == "()Landroid/widget/SimpleCursorAdapter$ViewBinder;"
            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/widget/SimpleCursorAdapter\0", "getViewBinder\0", "()Landroid/widget/SimpleCursorAdapter$ViewBinder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setViewBinder](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setViewBinder(android.widget.SimpleCursorAdapter.ViewBinder))
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_ViewBinder"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_ViewBinder")))]
        pub fn setViewBinder<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::SimpleCursorAdapter_ViewBinder>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setViewBinder", .descriptor == "(Landroid/widget/SimpleCursorAdapter$ViewBinder;)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/widget/SimpleCursorAdapter\0", "setViewBinder\0", "(Landroid/widget/SimpleCursorAdapter$ViewBinder;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setViewImage](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setViewImage(android.widget.ImageView,%20java.lang.String))
        ///
        /// Required features: "android-widget-ImageView", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-widget-ImageView", feature = "java-lang-String")))]
        pub fn setViewImage<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::ImageView>>, arg1: 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/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setViewImage", .descriptor == "(Landroid/widget/ImageView;Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/widget/SimpleCursorAdapter\0", "setViewImage\0", "(Landroid/widget/ImageView;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setViewText](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setViewText(android.widget.TextView,%20java.lang.String))
        ///
        /// Required features: "android-widget-TextView", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-widget-TextView", feature = "java-lang-String")))]
        pub fn setViewText<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::TextView>>, arg1: 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/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setViewText", .descriptor == "(Landroid/widget/TextView;Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/widget/SimpleCursorAdapter\0", "setViewText\0", "(Landroid/widget/TextView;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getStringConversionColumn](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#getStringConversionColumn())
        pub fn getStringConversionColumn<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "getStringConversionColumn", .descriptor == "()I"
            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/widget/SimpleCursorAdapter\0", "getStringConversionColumn\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setStringConversionColumn](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setStringConversionColumn(int))
        pub fn setStringConversionColumn<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setStringConversionColumn", .descriptor == "(I)V"
            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/widget/SimpleCursorAdapter\0", "setStringConversionColumn\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getCursorToStringConverter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#getCursorToStringConverter())
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_CursorToStringConverter"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_CursorToStringConverter")))]
        pub fn getCursorToStringConverter<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::SimpleCursorAdapter_CursorToStringConverter>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "getCursorToStringConverter", .descriptor == "()Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;"
            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/widget/SimpleCursorAdapter\0", "getCursorToStringConverter\0", "()Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCursorToStringConverter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setCursorToStringConverter(android.widget.SimpleCursorAdapter.CursorToStringConverter))
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_CursorToStringConverter"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_CursorToStringConverter")))]
        pub fn setCursorToStringConverter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::SimpleCursorAdapter_CursorToStringConverter>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setCursorToStringConverter", .descriptor == "(Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;)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/widget/SimpleCursorAdapter\0", "setCursorToStringConverter\0", "(Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [convertToString](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#convertToString(android.database.Cursor))
        ///
        /// Required features: "android-database-Cursor", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-database-Cursor", feature = "java-lang-CharSequence")))]
        pub fn convertToString<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "convertToString", .descriptor == "(Landroid/database/Cursor;)Ljava/lang/CharSequence;"
            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/widget/SimpleCursorAdapter\0", "convertToString\0", "(Landroid/database/Cursor;)Ljava/lang/CharSequence;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [swapCursor](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#swapCursor(android.database.Cursor))
        ///
        /// Required features: "android-database-Cursor"
        #[cfg(any(feature = "all", all(feature = "android-database-Cursor")))]
        pub fn swapCursor<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::database::Cursor>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "swapCursor", .descriptor == "(Landroid/database/Cursor;)Landroid/database/Cursor;"
            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/widget/SimpleCursorAdapter\0", "swapCursor\0", "(Landroid/database/Cursor;)Landroid/database/Cursor;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [changeCursorAndColumns](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#changeCursorAndColumns(android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D))
        ///
        /// Required features: "android-database-Cursor", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-database-Cursor", feature = "java-lang-String")))]
        pub fn changeCursorAndColumns<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, arg2: 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/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "changeCursorAndColumns", .descriptor == "(Landroid/database/Cursor;[Ljava/lang/String;[I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "changeCursorAndColumns\0", "(Landroid/database/Cursor;[Ljava/lang/String;[I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}