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
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-content-pm-ShortcutInfo_Builder"))]
__jni_bindgen! {
    /// public class [ShortcutInfo.Builder](https://developer.android.com/reference/android/content/pm/ShortcutInfo.Builder.html)
    ///
    /// Required feature: "android-content-pm-ShortcutInfo_Builder"
    public class ShortcutInfo_Builder ("android/content/pm/ShortcutInfo$Builder") extends crate::java::lang::Object {

        /// [Builder](https://developer.android.com/reference/android/content/pm/ShortcutInfo.Builder.html#Builder(android.content.Context,%20java.lang.String))
        ///
        /// Required features: "android-content-Context", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-String")))]
        pub fn new<'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::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::ShortcutInfo_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/content/pm/ShortcutInfo$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Ljava/lang/String;)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/content/pm/ShortcutInfo$Builder\0", "<init>\0", "(Landroid/content/Context;Ljava/lang/String;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

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

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

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

        /// [setIntents](https://developer.android.com/reference/android/content/pm/ShortcutInfo.Builder.html#setIntents(android.content.Intent%5B%5D))
        ///
        /// Required features: "android-content-Intent", "android-content-pm-ShortcutInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "android-content-pm-ShortcutInfo_Builder")))]
        pub fn setIntents<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::android::content::Intent, crate::java::lang::Throwable>>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::pm::ShortcutInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/content/pm/ShortcutInfo$Builder", java.flags == PUBLIC, .name == "setIntents", .descriptor == "([Landroid/content/Intent;)Landroid/content/pm/ShortcutInfo$Builder;"
            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/pm/ShortcutInfo$Builder\0", "setIntents\0", "([Landroid/content/Intent;)Landroid/content/pm/ShortcutInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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