jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-app-SearchManager"))]
__jni_bindgen! {
    /// public class [SearchManager](https://developer.android.com/reference/android/app/SearchManager.html)
    ///
    /// Required feature: "android-app-SearchManager"
    public class SearchManager ("android/app/SearchManager") extends crate::java::lang::Object, implements crate::android::content::DialogInterface_OnDismissListener, crate::android::content::DialogInterface_OnCancelListener {

        /// [startSearch](https://developer.android.com/reference/android/app/SearchManager.html#startSearch(java.lang.String,%20boolean,%20android.content.ComponentName,%20android.os.Bundle,%20boolean))
        ///
        /// Required features: "android-content-ComponentName", "android-os-Bundle", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "android-os-Bundle", feature = "java-lang-String")))]
        pub fn startSearch<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: bool, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>, arg4: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/SearchManager", java.flags == PUBLIC, .name == "startSearch", .descriptor == "(Ljava/lang/String;ZLandroid/content/ComponentName;Landroid/os/Bundle;Z)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)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/SearchManager\0", "startSearch\0", "(Ljava/lang/String;ZLandroid/content/ComponentName;Landroid/os/Bundle;Z)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [triggerSearch](https://developer.android.com/reference/android/app/SearchManager.html#triggerSearch(java.lang.String,%20android.content.ComponentName,%20android.os.Bundle))
        ///
        /// Required features: "android-content-ComponentName", "android-os-Bundle", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "android-os-Bundle", feature = "java-lang-String")))]
        pub fn triggerSearch<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/SearchManager", java.flags == PUBLIC, .name == "triggerSearch", .descriptor == "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/os/Bundle;)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/app/SearchManager\0", "triggerSearch\0", "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/os/Bundle;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

        /// public static final [MENU_KEY](https://developer.android.com/reference/android/app/SearchManager.html#MENU_KEY)
        pub const MENU_KEY : __jni_bindgen::jchar = __jni_bindgen::jchar(115);

        /// public static final [MENU_KEYCODE](https://developer.android.com/reference/android/app/SearchManager.html#MENU_KEYCODE)
        pub const MENU_KEYCODE : i32 = 47;

        /// public static final [QUERY](https://developer.android.com/reference/android/app/SearchManager.html#QUERY)
        pub const QUERY : &'static str = "query";

        /// public static final [USER_QUERY](https://developer.android.com/reference/android/app/SearchManager.html#USER_QUERY)
        pub const USER_QUERY : &'static str = "user_query";

        /// public static final [APP_DATA](https://developer.android.com/reference/android/app/SearchManager.html#APP_DATA)
        pub const APP_DATA : &'static str = "app_data";

        /// public static final [ACTION_KEY](https://developer.android.com/reference/android/app/SearchManager.html#ACTION_KEY)
        pub const ACTION_KEY : &'static str = "action_key";

        /// public static final [EXTRA_DATA_KEY](https://developer.android.com/reference/android/app/SearchManager.html#EXTRA_DATA_KEY)
        pub const EXTRA_DATA_KEY : &'static str = "intent_extra_data_key";

        /// public static final [ACTION_MSG](https://developer.android.com/reference/android/app/SearchManager.html#ACTION_MSG)
        pub const ACTION_MSG : &'static str = "action_msg";

        /// public static final [SUGGEST_URI_PATH_QUERY](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_URI_PATH_QUERY)
        pub const SUGGEST_URI_PATH_QUERY : &'static str = "search_suggest_query";

        /// public static final [SUGGEST_MIME_TYPE](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_MIME_TYPE)
        pub const SUGGEST_MIME_TYPE : &'static str = "vnd.android.cursor.dir/vnd.android.search.suggest";

        /// public static final [SUGGEST_URI_PATH_SHORTCUT](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_URI_PATH_SHORTCUT)
        pub const SUGGEST_URI_PATH_SHORTCUT : &'static str = "search_suggest_shortcut";

        /// public static final [SHORTCUT_MIME_TYPE](https://developer.android.com/reference/android/app/SearchManager.html#SHORTCUT_MIME_TYPE)
        pub const SHORTCUT_MIME_TYPE : &'static str = "vnd.android.cursor.item/vnd.android.search.suggest";

        /// public static final [SUGGEST_COLUMN_FORMAT](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_FORMAT)
        pub const SUGGEST_COLUMN_FORMAT : &'static str = "suggest_format";

        /// public static final [SUGGEST_COLUMN_TEXT_1](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_TEXT_1)
        pub const SUGGEST_COLUMN_TEXT_1 : &'static str = "suggest_text_1";

        /// public static final [SUGGEST_COLUMN_TEXT_2](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_TEXT_2)
        pub const SUGGEST_COLUMN_TEXT_2 : &'static str = "suggest_text_2";

        /// public static final [SUGGEST_COLUMN_ICON_1](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_ICON_1)
        pub const SUGGEST_COLUMN_ICON_1 : &'static str = "suggest_icon_1";

        /// public static final [SUGGEST_COLUMN_ICON_2](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_ICON_2)
        pub const SUGGEST_COLUMN_ICON_2 : &'static str = "suggest_icon_2";

        /// public static final [SUGGEST_COLUMN_INTENT_ACTION](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_INTENT_ACTION)
        pub const SUGGEST_COLUMN_INTENT_ACTION : &'static str = "suggest_intent_action";

        /// public static final [SUGGEST_COLUMN_INTENT_DATA](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_INTENT_DATA)
        pub const SUGGEST_COLUMN_INTENT_DATA : &'static str = "suggest_intent_data";

        /// public static final [SUGGEST_COLUMN_INTENT_EXTRA_DATA](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_INTENT_EXTRA_DATA)
        pub const SUGGEST_COLUMN_INTENT_EXTRA_DATA : &'static str = "suggest_intent_extra_data";

        /// public static final [SUGGEST_COLUMN_INTENT_DATA_ID](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_INTENT_DATA_ID)
        pub const SUGGEST_COLUMN_INTENT_DATA_ID : &'static str = "suggest_intent_data_id";

        /// public static final [SUGGEST_COLUMN_QUERY](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_QUERY)
        pub const SUGGEST_COLUMN_QUERY : &'static str = "suggest_intent_query";

        /// public static final [SUGGEST_COLUMN_SHORTCUT_ID](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_SHORTCUT_ID)
        pub const SUGGEST_COLUMN_SHORTCUT_ID : &'static str = "suggest_shortcut_id";

        /// public static final [SUGGEST_COLUMN_SPINNER_WHILE_REFRESHING](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_COLUMN_SPINNER_WHILE_REFRESHING)
        pub const SUGGEST_COLUMN_SPINNER_WHILE_REFRESHING : &'static str = "suggest_spinner_while_refreshing";

        /// public static final [SUGGEST_NEVER_MAKE_SHORTCUT](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_NEVER_MAKE_SHORTCUT)
        pub const SUGGEST_NEVER_MAKE_SHORTCUT : &'static str = "_-1";

        /// public static final [SUGGEST_PARAMETER_LIMIT](https://developer.android.com/reference/android/app/SearchManager.html#SUGGEST_PARAMETER_LIMIT)
        pub const SUGGEST_PARAMETER_LIMIT : &'static str = "limit";

        /// public static final [INTENT_ACTION_WEB_SEARCH_SETTINGS](https://developer.android.com/reference/android/app/SearchManager.html#INTENT_ACTION_WEB_SEARCH_SETTINGS)
        pub const INTENT_ACTION_WEB_SEARCH_SETTINGS : &'static str = "android.search.action.WEB_SEARCH_SETTINGS";

        /// public static final [INTENT_ACTION_SEARCHABLES_CHANGED](https://developer.android.com/reference/android/app/SearchManager.html#INTENT_ACTION_SEARCHABLES_CHANGED)
        pub const INTENT_ACTION_SEARCHABLES_CHANGED : &'static str = "android.search.action.SEARCHABLES_CHANGED";

        /// public static final [INTENT_ACTION_SEARCH_SETTINGS_CHANGED](https://developer.android.com/reference/android/app/SearchManager.html#INTENT_ACTION_SEARCH_SETTINGS_CHANGED)
        pub const INTENT_ACTION_SEARCH_SETTINGS_CHANGED : &'static str = "android.search.action.SETTINGS_CHANGED";
    }
}