// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-content-SearchRecentSuggestionsProvider"))]
__jni_bindgen! {
/// public class [SearchRecentSuggestionsProvider](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html)
///
/// Required feature: "android-content-SearchRecentSuggestionsProvider"
public class SearchRecentSuggestionsProvider ("android/content/SearchRecentSuggestionsProvider") extends crate::android::content::ContentProvider {
/// [SearchRecentSuggestionsProvider](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#SearchRecentSuggestionsProvider())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::SearchRecentSuggestionsProvider>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/SearchRecentSuggestionsProvider", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/SearchRecentSuggestionsProvider\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [delete](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#delete(android.net.Uri,%20java.lang.String,%20java.lang.String%5B%5D))
///
/// Required features: "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn delete<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/SearchRecentSuggestionsProvider", java.flags == PUBLIC, .name == "delete", .descriptor == "(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I"
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/content/SearchRecentSuggestionsProvider\0", "delete\0", "(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getType](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#getType(android.net.Uri))
///
/// Required features: "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn getType<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/SearchRecentSuggestionsProvider", java.flags == PUBLIC, .name == "getType", .descriptor == "(Landroid/net/Uri;)Ljava/lang/String;"
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/content/SearchRecentSuggestionsProvider\0", "getType\0", "(Landroid/net/Uri;)Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [insert](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#insert(android.net.Uri,%20android.content.ContentValues))
///
/// Required features: "android-content-ContentValues", "android-net-Uri"
#[cfg(any(feature = "all", all(feature = "android-content-ContentValues", feature = "android-net-Uri")))]
pub fn insert<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ContentValues>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/SearchRecentSuggestionsProvider", java.flags == PUBLIC, .name == "insert", .descriptor == "(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;"
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/content/SearchRecentSuggestionsProvider\0", "insert\0", "(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCreate](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#onCreate())
pub fn onCreate<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/SearchRecentSuggestionsProvider", java.flags == PUBLIC, .name == "onCreate", .descriptor == "()Z"
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/content/SearchRecentSuggestionsProvider\0", "onCreate\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [query](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#query(android.net.Uri,%20java.lang.String%5B%5D,%20java.lang.String,%20java.lang.String%5B%5D,%20java.lang.String))
///
/// Required features: "android-database-Cursor", "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-database-Cursor", feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn query<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, 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 crate::java::lang::String>>, 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 crate::java::lang::String>>) -> __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/content/SearchRecentSuggestionsProvider", java.flags == PUBLIC, .name == "query", .descriptor == "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;"
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()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/SearchRecentSuggestionsProvider\0", "query\0", "(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [update](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#update(android.net.Uri,%20android.content.ContentValues,%20java.lang.String,%20java.lang.String%5B%5D))
///
/// Required features: "android-content-ContentValues", "android-net-Uri", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-ContentValues", feature = "android-net-Uri", feature = "java-lang-String")))]
pub fn update<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ContentValues>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/SearchRecentSuggestionsProvider", java.flags == PUBLIC, .name == "update", .descriptor == "(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I"
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()), __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/content/SearchRecentSuggestionsProvider\0", "update\0", "(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [DATABASE_MODE_2LINES](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#DATABASE_MODE_2LINES)
pub const DATABASE_MODE_2LINES : i32 = 2;
/// public static final [DATABASE_MODE_QUERIES](https://developer.android.com/reference/android/content/SearchRecentSuggestionsProvider.html#DATABASE_MODE_QUERIES)
pub const DATABASE_MODE_QUERIES : i32 = 1;
}
}