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-webkit-TracingConfig"))]
__jni_bindgen! {
    /// public class [TracingConfig](https://developer.android.com/reference/android/webkit/TracingConfig.html)
    ///
    /// Required feature: "android-webkit-TracingConfig"
    public class TracingConfig ("android/webkit/TracingConfig") extends crate::java::lang::Object {

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

        /// [getCustomIncludedCategories](https://developer.android.com/reference/android/webkit/TracingConfig.html#getCustomIncludedCategories())
        ///
        /// Required features: "java-util-List"
        #[cfg(any(feature = "all", all(feature = "java-util-List")))]
        pub fn getCustomIncludedCategories<'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/webkit/TracingConfig", java.flags == PUBLIC, .name == "getCustomIncludedCategories", .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/webkit/TracingConfig\0", "getCustomIncludedCategories\0", "()Ljava/util/List;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// public static final [CATEGORIES_ALL](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_ALL)
        pub const CATEGORIES_ALL : i32 = 1;

        /// public static final [CATEGORIES_ANDROID_WEBVIEW](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_ANDROID_WEBVIEW)
        pub const CATEGORIES_ANDROID_WEBVIEW : i32 = 2;

        /// public static final [CATEGORIES_FRAME_VIEWER](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_FRAME_VIEWER)
        pub const CATEGORIES_FRAME_VIEWER : i32 = 64;

        /// public static final [CATEGORIES_INPUT_LATENCY](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_INPUT_LATENCY)
        pub const CATEGORIES_INPUT_LATENCY : i32 = 8;

        /// public static final [CATEGORIES_JAVASCRIPT_AND_RENDERING](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_JAVASCRIPT_AND_RENDERING)
        pub const CATEGORIES_JAVASCRIPT_AND_RENDERING : i32 = 32;

        /// public static final [CATEGORIES_NONE](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_NONE)
        pub const CATEGORIES_NONE : i32 = 0;

        /// public static final [CATEGORIES_RENDERING](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_RENDERING)
        pub const CATEGORIES_RENDERING : i32 = 16;

        /// public static final [CATEGORIES_WEB_DEVELOPER](https://developer.android.com/reference/android/webkit/TracingConfig.html#CATEGORIES_WEB_DEVELOPER)
        pub const CATEGORIES_WEB_DEVELOPER : i32 = 4;

        /// public static final [RECORD_CONTINUOUSLY](https://developer.android.com/reference/android/webkit/TracingConfig.html#RECORD_CONTINUOUSLY)
        pub const RECORD_CONTINUOUSLY : i32 = 1;

        /// public static final [RECORD_UNTIL_FULL](https://developer.android.com/reference/android/webkit/TracingConfig.html#RECORD_UNTIL_FULL)
        pub const RECORD_UNTIL_FULL : i32 = 0;
    }
}