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 interface [Condition](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html)
    ///
    /// Required feature: java-util-concurrent-locks-Condition
    #[cfg(any(feature = "all", feature = "java-util-concurrent-locks-Condition"))]
    public interface Condition extends crate::java::lang::Object {

        /// [await](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html#await())
        pub fn r#await<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "java/util/concurrent/locks/Condition", java.flags == PUBLIC | ABSTRACT, .name == "await", .descriptor == "()V"
            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("java/util/concurrent/locks/Condition\0", "await\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [awaitUninterruptibly](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html#awaitUninterruptibly())
        pub fn await_uninterruptibly<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "java/util/concurrent/locks/Condition", java.flags == PUBLIC | ABSTRACT, .name == "awaitUninterruptibly", .descriptor == "()V"
            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("java/util/concurrent/locks/Condition\0", "awaitUninterruptibly\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [awaitNanos](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html#awaitNanos(long))
        pub fn await_nanos<'env>(&'env self, arg0: i64) -> __jni_bindgen::Result<i64> {
            // class.path == "java/util/concurrent/locks/Condition", java.flags == PUBLIC | ABSTRACT, .name == "awaitNanos", .descriptor == "(J)J"
            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("java/util/concurrent/locks/Condition\0", "awaitNanos\0", "(J)J\0");
                __jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [await](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html#await(long,%2520java,%2520util,%2520concurrent,%2520TimeUnit))
        ///
        /// Required features: "java-util-concurrent-TimeUnit"
        #[cfg(any(feature = "all", all(feature = "java-util-concurrent-TimeUnit")))]
        pub fn await_long_time_unit<'env>(&'env self, arg0: i64, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::concurrent::TimeUnit>>) -> __jni_bindgen::Result<bool> {
            // class.path == "java/util/concurrent/locks/Condition", java.flags == PUBLIC | ABSTRACT, .name == "await", .descriptor == "(JLjava/util/concurrent/TimeUnit;)Z"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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("java/util/concurrent/locks/Condition\0", "await\0", "(JLjava/util/concurrent/TimeUnit;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [awaitUntil](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html#awaitUntil(java,%2520util,%2520Date))
        ///
        /// Required features: "java-util-Date"
        #[cfg(any(feature = "all", all(feature = "java-util-Date")))]
        pub fn await_until<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::util::Date>>) -> __jni_bindgen::Result<bool> {
            // class.path == "java/util/concurrent/locks/Condition", java.flags == PUBLIC | ABSTRACT, .name == "awaitUntil", .descriptor == "(Ljava/util/Date;)Z"
            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("java/util/concurrent/locks/Condition\0", "awaitUntil\0", "(Ljava/util/Date;)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [signal](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html#signal())
        pub fn signal<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "java/util/concurrent/locks/Condition", java.flags == PUBLIC | ABSTRACT, .name == "signal", .descriptor == "()V"
            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("java/util/concurrent/locks/Condition\0", "signal\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [signalAll](https://developer.android.com/reference/java/util/concurrent/locks/Condition.html#signalAll())
        pub fn signal_all<'env>(&'env self) -> __jni_bindgen::Result<()> {
            // class.path == "java/util/concurrent/locks/Condition", java.flags == PUBLIC | ABSTRACT, .name == "signalAll", .descriptor == "()V"
            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("java/util/concurrent/locks/Condition\0", "signalAll\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}