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


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

        // // Not emitting: Non-public method
        // /// <init>
        // fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::android::provider::FontsContract>> {
        //     // class.path == "android/provider/FontsContract", java.flags == (empty), .name == "<init>", .descriptor == "()V"
        //     unsafe {
        //         let __jni_args = [];
        //         let (__jni_class, __jni_method) = __jni_env.require_class_method("android/provider/FontsContract\0", "<init>\0", "()V\0");
        //         __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }

        /// [requestFonts](https://developer.android.com/reference/android/provider/FontsContract.html#requestFonts(android,%2520content,%2520Context,%2520android,%2520provider,%2520FontRequest,%2520android,%2520os,%2520Handler,%2520android,%2520os,%2520CancellationSignal,%2520android,%2520provider,%2520FontsContract.FontRequestCallback))
        ///
        /// Required features: "android-content-Context", "android-os-CancellationSignal", "android-os-Handler", "android-provider-FontRequest", "android-provider-FontsContract_FontRequestCallback"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-os-CancellationSignal", feature = "android-os-Handler", feature = "android-provider-FontRequest", feature = "android-provider-FontsContract_FontRequestCallback")))]
        pub fn request_fonts<'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::android::provider::FontRequest>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Handler>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::CancellationSignal>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::provider::FontsContract_FontRequestCallback>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/provider/FontsContract", java.flags == PUBLIC | STATIC, .name == "requestFonts", .descriptor == "(Landroid/content/Context;Landroid/provider/FontRequest;Landroid/os/Handler;Landroid/os/CancellationSignal;Landroid/provider/FontsContract$FontRequestCallback;)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()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/provider/FontsContract\0", "requestFonts\0", "(Landroid/content/Context;Landroid/provider/FontRequest;Landroid/os/Handler;Landroid/os/CancellationSignal;Landroid/provider/FontsContract$FontRequestCallback;)V\0");
                __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [fetchFonts](https://developer.android.com/reference/android/provider/FontsContract.html#fetchFonts(android,%2520content,%2520Context,%2520android,%2520os,%2520CancellationSignal,%2520android,%2520provider,%2520FontRequest))
        ///
        /// Required features: "android-content-Context", "android-os-CancellationSignal", "android-provider-FontRequest", "android-provider-FontsContract_FontFamilyResult"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-os-CancellationSignal", feature = "android-provider-FontRequest", feature = "android-provider-FontsContract_FontFamilyResult")))]
        pub fn fetch_fonts<'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::android::os::CancellationSignal>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::provider::FontRequest>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::provider::FontsContract_FontFamilyResult>>> {
            // class.path == "android/provider/FontsContract", java.flags == PUBLIC | STATIC, .name == "fetchFonts", .descriptor == "(Landroid/content/Context;Landroid/os/CancellationSignal;Landroid/provider/FontRequest;)Landroid/provider/FontsContract$FontFamilyResult;"
            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_class, __jni_method) = __jni_env.require_class_static_method("android/provider/FontsContract\0", "fetchFonts\0", "(Landroid/content/Context;Landroid/os/CancellationSignal;Landroid/provider/FontRequest;)Landroid/provider/FontsContract$FontFamilyResult;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        // // Not emitting: Passing in arrays of objects is not yet supported
        // /// buildTypeface
        // ///
        // /// Required features: "android-content-Context", "android-graphics-Typeface", "android-os-CancellationSignal", "android-provider-FontsContract_FontInfo"
        // #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-graphics-Typeface", feature = "android-os-CancellationSignal", feature = "android-provider-FontsContract_FontInfo")))]
        // pub fn build_typeface<'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::android::os::CancellationSignal>>, arg2: Array { levels: 1, inner: Class(Id("android/provider/FontsContract$FontInfo")) }) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Typeface>>> {
        //     // class.path == "android/provider/FontsContract", java.flags == PUBLIC | STATIC, .name == "buildTypeface", .descriptor == "(Landroid/content/Context;Landroid/os/CancellationSignal;[Landroid/provider/FontsContract$FontInfo;)Landroid/graphics/Typeface;"
        //     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_class, __jni_method) = __jni_env.require_class_static_method("android/provider/FontsContract\0", "buildTypeface\0", "(Landroid/content/Context;Landroid/os/CancellationSignal;[Landroid/provider/FontsContract$FontInfo;)Landroid/graphics/Typeface;\0");
        //         __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
        //     }
        // }
    }
}