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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!! __jni_bindgen! { /// public enum [StandardProtocolFamily](https://developer.android.com/reference/java/net/StandardProtocolFamily.html) /// /// Required feature: java-net-StandardProtocolFamily #[cfg(any(feature = "all", feature = "java-net-StandardProtocolFamily"))] public enum StandardProtocolFamily extends crate::java::lang::Enum, implements crate::java::net::ProtocolFamily { // // Not emitting: Returning arrays of objects not yet supported // /// [values](https://developer.android.com/reference/java/net/StandardProtocolFamily.html#values()) // /// // /// Required features: "java-net-StandardProtocolFamily" // #[cfg(any(feature = "all", all(feature = "java-net-StandardProtocolFamily")))] // pub fn values<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<Array { levels: 1, inner: Class(Id("java/net/StandardProtocolFamily")) }> { // // class.path == "java/net/StandardProtocolFamily", java.flags == PUBLIC | STATIC, .name == "values", .descriptor == "()[Ljava/net/StandardProtocolFamily;" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/StandardProtocolFamily\0", "values\0", "()[Ljava/net/StandardProtocolFamily;\0"); // __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } /// [valueOf](https://developer.android.com/reference/java/net/StandardProtocolFamily.html#valueOf(java,%2520lang,%2520String)) /// /// Required features: "java-lang-String", "java-net-StandardProtocolFamily" #[cfg(any(feature = "all", all(feature = "java-lang-String", feature = "java-net-StandardProtocolFamily")))] pub fn value_of<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::net::StandardProtocolFamily>>> { // class.path == "java/net/StandardProtocolFamily", java.flags == PUBLIC | STATIC, .name == "valueOf", .descriptor == "(Ljava/lang/String;)Ljava/net/StandardProtocolFamily;" unsafe { let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())]; let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/StandardProtocolFamily\0", "valueOf\0", "(Ljava/lang/String;)Ljava/net/StandardProtocolFamily;\0"); __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) } } // // Not emitting: Non-public method // /// <init> // /// // /// Required features: "java-lang-String" // #[cfg(any(feature = "all", all(feature = "java-lang-String")))] // fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32) -> __jni_bindgen::Result<__jni_bindgen::Local<'env, crate::java::net::StandardProtocolFamily>> { // // class.path == "java/net/StandardProtocolFamily", java.flags == PRIVATE, .name == "<init>", .descriptor == "(Ljava/lang/String;I)V" // unsafe { // let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)]; // let (__jni_class, __jni_method) = __jni_env.require_class_method("java/net/StandardProtocolFamily\0", "<init>\0", "(Ljava/lang/String;I)V\0"); // __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Failed to mangle method name // // Not emitting: Non-public method // // Not emitting: Static class constructor - never needs to be called by Rust. // /// <clinit> // fn <clinit><'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::Result<()> { // // class.path == "java/net/StandardProtocolFamily", java.flags == STATIC, .name == "<clinit>", .descriptor == "()V" // unsafe { // let __jni_args = []; // let (__jni_class, __jni_method) = __jni_env.require_class_static_method("java/net/StandardProtocolFamily\0", "<clinit>\0", "()V\0"); // __jni_env.call_static_void_method_a(__jni_class, __jni_method, __jni_args.as_ptr()) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [INET](https://developer.android.com/reference/java/net/StandardProtocolFamily.html#INET) // /// // /// Required feature: java-net-StandardProtocolFamily // #[cfg(any(feature = "all", feature = "java-net-StandardProtocolFamily"))] // pub fn inet<'env>(env: &'env __jni_bindgen::Env) -> java/net/StandardProtocolFamily { // unsafe { // let (class, field) = env.require_class_static_field("java/net/StandardProtocolFamily\0", "INET\0", "Ljava/net/StandardProtocolFamily;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Haven't yet implemented object field types // /// **get** public static final [INET6](https://developer.android.com/reference/java/net/StandardProtocolFamily.html#INET6) // /// // /// Required feature: java-net-StandardProtocolFamily // #[cfg(any(feature = "all", feature = "java-net-StandardProtocolFamily"))] // pub fn ine_t6<'env>(env: &'env __jni_bindgen::Env) -> java/net/StandardProtocolFamily { // unsafe { // let (class, field) = env.require_class_static_field("java/net/StandardProtocolFamily\0", "INET6\0", "Ljava/net/StandardProtocolFamily;\0"); // env.get_static_object_field(class, field) // } // } // // Not emitting: Non-public method // // Not emitting: Haven't yet implemented array field types // // Not emitting: Failed to mangle field name(s) // pub fn get_"$VALUES"<'env>(env: &'env __jni_bindgen::Env) -> ??? { ... } } }