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
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-hardware-SensorAdditionalInfo"))]
__jni_bindgen! {
/// public class [SensorAdditionalInfo](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html)
///
/// Required feature: "android-hardware-SensorAdditionalInfo"
public class SensorAdditionalInfo ("android/hardware/SensorAdditionalInfo") extends crate::java::lang::Object {
/// public static final [TYPE_FRAME_BEGIN](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#TYPE_FRAME_BEGIN)
pub const TYPE_FRAME_BEGIN : i32 = 0;
/// public static final [TYPE_FRAME_END](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#TYPE_FRAME_END)
pub const TYPE_FRAME_END : i32 = 1;
/// public static final [TYPE_INTERNAL_TEMPERATURE](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#TYPE_INTERNAL_TEMPERATURE)
pub const TYPE_INTERNAL_TEMPERATURE : i32 = 65537;
/// public static final [TYPE_SAMPLING](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#TYPE_SAMPLING)
pub const TYPE_SAMPLING : i32 = 65540;
/// public static final [TYPE_SENSOR_PLACEMENT](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#TYPE_SENSOR_PLACEMENT)
pub const TYPE_SENSOR_PLACEMENT : i32 = 65539;
/// public static final [TYPE_UNTRACKED_DELAY](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#TYPE_UNTRACKED_DELAY)
pub const TYPE_UNTRACKED_DELAY : i32 = 65536;
/// public static final [TYPE_VEC3_CALIBRATION](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#TYPE_VEC3_CALIBRATION)
pub const TYPE_VEC3_CALIBRATION : i32 = 65538;
/// **get** public final [floatValues](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#floatValues)
pub fn floatValues<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::FloatArray>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/hardware/SensorAdditionalInfo\0", "floatValues\0", "[F\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **get** public final [intValues](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#intValues)
pub fn intValues<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::IntArray>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/hardware/SensorAdditionalInfo\0", "intValues\0", "[I\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **get** public final [sensor](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#sensor)
///
/// Required feature: "android-hardware-Sensor"
#[cfg(any(feature = "all", feature = "android-hardware-Sensor"))]
pub fn sensor<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::hardware::Sensor>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/hardware/SensorAdditionalInfo\0", "sensor\0", "Landroid/hardware/Sensor;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
/// **get** public final [serial](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#serial)
pub fn serial<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/hardware/SensorAdditionalInfo\0", "serial\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [type](https://developer.android.com/reference/android/hardware/SensorAdditionalInfo.html#type)
pub fn r#type<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/hardware/SensorAdditionalInfo\0", "type\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
}
}