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


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

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

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

        /// public static final [ERROR_INTERRUPTED](https://developer.android.com/reference/android/telephony/NetworkScan.html#ERROR_INTERRUPTED)
        pub const ERROR_INTERRUPTED : i32 = 10002;

        /// public static final [ERROR_INVALID_SCAN](https://developer.android.com/reference/android/telephony/NetworkScan.html#ERROR_INVALID_SCAN)
        pub const ERROR_INVALID_SCAN : i32 = 2;

        /// public static final [ERROR_INVALID_SCANID](https://developer.android.com/reference/android/telephony/NetworkScan.html#ERROR_INVALID_SCANID)
        pub const ERROR_INVALID_SCANID : i32 = 10001;

        /// public static final [ERROR_MODEM_ERROR](https://developer.android.com/reference/android/telephony/NetworkScan.html#ERROR_MODEM_ERROR)
        pub const ERROR_MODEM_ERROR : i32 = 1;

        /// public static final [ERROR_MODEM_UNAVAILABLE](https://developer.android.com/reference/android/telephony/NetworkScan.html#ERROR_MODEM_UNAVAILABLE)
        pub const ERROR_MODEM_UNAVAILABLE : i32 = 3;

        /// public static final [ERROR_RADIO_INTERFACE_ERROR](https://developer.android.com/reference/android/telephony/NetworkScan.html#ERROR_RADIO_INTERFACE_ERROR)
        pub const ERROR_RADIO_INTERFACE_ERROR : i32 = 10000;

        /// public static final [ERROR_UNSUPPORTED](https://developer.android.com/reference/android/telephony/NetworkScan.html#ERROR_UNSUPPORTED)
        pub const ERROR_UNSUPPORTED : i32 = 4;

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