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


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

        /// [pinSlice](https://developer.android.com/reference/android/app/slice/SliceManager.html#pinSlice(android.net.Uri,%20java.util.Set))
        ///
        /// Required features: "android-net-Uri", "java-util-Set"
        #[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-util-Set")))]
        pub fn pinSlice<'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::util::Set>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "pinSlice", .descriptor == "(Landroid/net/Uri;Ljava/util/Set;)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/app/slice/SliceManager\0", "pinSlice\0", "(Landroid/net/Uri;Ljava/util/Set;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [unpinSlice](https://developer.android.com/reference/android/app/slice/SliceManager.html#unpinSlice(android.net.Uri))
        ///
        /// Required features: "android-net-Uri"
        #[cfg(any(feature = "all", all(feature = "android-net-Uri")))]
        pub fn unpinSlice<'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::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "unpinSlice", .descriptor == "(Landroid/net/Uri;)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/slice/SliceManager\0", "unpinSlice\0", "(Landroid/net/Uri;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getPinnedSpecs](https://developer.android.com/reference/android/app/slice/SliceManager.html#getPinnedSpecs(android.net.Uri))
        ///
        /// Required features: "android-net-Uri", "java-util-Set"
        #[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-util-Set")))]
        pub fn getPinnedSpecs<'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::util::Set>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "getPinnedSpecs", .descriptor == "(Landroid/net/Uri;)Ljava/util/Set;"
            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/slice/SliceManager\0", "getPinnedSpecs\0", "(Landroid/net/Uri;)Ljava/util/Set;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [getSliceDescendants](https://developer.android.com/reference/android/app/slice/SliceManager.html#getSliceDescendants(android.net.Uri))
        ///
        /// Required features: "android-net-Uri", "java-util-Collection"
        #[cfg(any(feature = "all", all(feature = "android-net-Uri", feature = "java-util-Collection")))]
        pub fn getSliceDescendants<'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::util::Collection>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "getSliceDescendants", .descriptor == "(Landroid/net/Uri;)Ljava/util/Collection;"
            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/slice/SliceManager\0", "getSliceDescendants\0", "(Landroid/net/Uri;)Ljava/util/Collection;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindSlice](https://developer.android.com/reference/android/app/slice/SliceManager.html#bindSlice(android.net.Uri,%20java.util.Set))
        ///
        /// Required features: "android-app-slice-Slice", "android-net-Uri", "java-util-Set"
        #[cfg(any(feature = "all", all(feature = "android-app-slice-Slice", feature = "android-net-Uri", feature = "java-util-Set")))]
        pub fn bindSlice_Uri_Set<'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::util::Set>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::slice::Slice>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "bindSlice", .descriptor == "(Landroid/net/Uri;Ljava/util/Set;)Landroid/app/slice/Slice;"
            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/app/slice/SliceManager\0", "bindSlice\0", "(Landroid/net/Uri;Ljava/util/Set;)Landroid/app/slice/Slice;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [mapIntentToUri](https://developer.android.com/reference/android/app/slice/SliceManager.html#mapIntentToUri(android.content.Intent))
        ///
        /// Required features: "android-content-Intent", "android-net-Uri"
        #[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "android-net-Uri")))]
        pub fn mapIntentToUri<'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::net::Uri>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "mapIntentToUri", .descriptor == "(Landroid/content/Intent;)Landroid/net/Uri;"
            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/slice/SliceManager\0", "mapIntentToUri\0", "(Landroid/content/Intent;)Landroid/net/Uri;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [checkSlicePermission](https://developer.android.com/reference/android/app/slice/SliceManager.html#checkSlicePermission(android.net.Uri,%20int,%20int))
        ///
        /// Required features: "android-net-Uri"
        #[cfg(any(feature = "all", all(feature = "android-net-Uri")))]
        pub fn checkSlicePermission<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "checkSlicePermission", .descriptor == "(Landroid/net/Uri;II)I"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/slice/SliceManager\0", "checkSlicePermission\0", "(Landroid/net/Uri;II)I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [grantSlicePermission](https://developer.android.com/reference/android/app/slice/SliceManager.html#grantSlicePermission(java.lang.String,%20android.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 grantSlicePermission<'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::net::Uri>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "grantSlicePermission", .descriptor == "(Ljava/lang/String;Landroid/net/Uri;)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/app/slice/SliceManager\0", "grantSlicePermission\0", "(Ljava/lang/String;Landroid/net/Uri;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [revokeSlicePermission](https://developer.android.com/reference/android/app/slice/SliceManager.html#revokeSlicePermission(java.lang.String,%20android.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 revokeSlicePermission<'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::net::Uri>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/slice/SliceManager", java.flags == PUBLIC, .name == "revokeSlicePermission", .descriptor == "(Ljava/lang/String;Landroid/net/Uri;)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/app/slice/SliceManager\0", "revokeSlicePermission\0", "(Ljava/lang/String;Landroid/net/Uri;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [CATEGORY_SLICE](https://developer.android.com/reference/android/app/slice/SliceManager.html#CATEGORY_SLICE)
        pub const CATEGORY_SLICE : &'static str = "android.app.slice.category.SLICE";

        /// public static final [SLICE_METADATA_KEY](https://developer.android.com/reference/android/app/slice/SliceManager.html#SLICE_METADATA_KEY)
        pub const SLICE_METADATA_KEY : &'static str = "android.metadata.SLICE_URI";
    }
}