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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-os-Environment"))]
__jni_bindgen! {
/// public class [Environment](https://developer.android.com/reference/android/os/Environment.html)
///
/// Required feature: "android-os-Environment"
public class Environment ("android/os/Environment") extends crate::java::lang::Object {
/// [Environment](https://developer.android.com/reference/android/os/Environment.html#Environment())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::os::Environment>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Environment", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/os/Environment\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getRootDirectory](https://developer.android.com/reference/android/os/Environment.html#getRootDirectory())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getRootDirectory<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Environment", java.flags == PUBLIC | STATIC, .name == "getRootDirectory", .descriptor == "()Ljava/io/File;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Environment\0", "getRootDirectory\0", "()Ljava/io/File;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDataDirectory](https://developer.android.com/reference/android/os/Environment.html#getDataDirectory())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getDataDirectory<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Environment", java.flags == PUBLIC | STATIC, .name == "getDataDirectory", .descriptor == "()Ljava/io/File;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Environment\0", "getDataDirectory\0", "()Ljava/io/File;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getExternalStorageDirectory](https://developer.android.com/reference/android/os/Environment.html#getExternalStorageDirectory())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getExternalStorageDirectory<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Environment", java.flags == PUBLIC | STATIC, .name == "getExternalStorageDirectory", .descriptor == "()Ljava/io/File;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Environment\0", "getExternalStorageDirectory\0", "()Ljava/io/File;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getDownloadCacheDirectory](https://developer.android.com/reference/android/os/Environment.html#getDownloadCacheDirectory())
///
/// Required features: "java-io-File"
#[cfg(any(feature = "all", all(feature = "java-io-File")))]
pub fn getDownloadCacheDirectory<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::io::File>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Environment", java.flags == PUBLIC | STATIC, .name == "getDownloadCacheDirectory", .descriptor == "()Ljava/io/File;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Environment\0", "getDownloadCacheDirectory\0", "()Ljava/io/File;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getExternalStorageState](https://developer.android.com/reference/android/os/Environment.html#getExternalStorageState())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getExternalStorageState<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/os/Environment", java.flags == PUBLIC | STATIC, .name == "getExternalStorageState", .descriptor == "()Ljava/lang/String;"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/os/Environment\0", "getExternalStorageState\0", "()Ljava/lang/String;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [MEDIA_REMOVED](https://developer.android.com/reference/android/os/Environment.html#MEDIA_REMOVED)
pub const MEDIA_REMOVED : &'static str = "removed";
/// public static final [MEDIA_UNMOUNTED](https://developer.android.com/reference/android/os/Environment.html#MEDIA_UNMOUNTED)
pub const MEDIA_UNMOUNTED : &'static str = "unmounted";
/// public static final [MEDIA_CHECKING](https://developer.android.com/reference/android/os/Environment.html#MEDIA_CHECKING)
pub const MEDIA_CHECKING : &'static str = "checking";
/// public static final [MEDIA_NOFS](https://developer.android.com/reference/android/os/Environment.html#MEDIA_NOFS)
pub const MEDIA_NOFS : &'static str = "nofs";
/// public static final [MEDIA_MOUNTED](https://developer.android.com/reference/android/os/Environment.html#MEDIA_MOUNTED)
pub const MEDIA_MOUNTED : &'static str = "mounted";
/// public static final [MEDIA_MOUNTED_READ_ONLY](https://developer.android.com/reference/android/os/Environment.html#MEDIA_MOUNTED_READ_ONLY)
pub const MEDIA_MOUNTED_READ_ONLY : &'static str = "mounted_ro";
/// public static final [MEDIA_SHARED](https://developer.android.com/reference/android/os/Environment.html#MEDIA_SHARED)
pub const MEDIA_SHARED : &'static str = "shared";
/// public static final [MEDIA_BAD_REMOVAL](https://developer.android.com/reference/android/os/Environment.html#MEDIA_BAD_REMOVAL)
pub const MEDIA_BAD_REMOVAL : &'static str = "bad_removal";
/// public static final [MEDIA_UNMOUNTABLE](https://developer.android.com/reference/android/os/Environment.html#MEDIA_UNMOUNTABLE)
pub const MEDIA_UNMOUNTABLE : &'static str = "unmountable";
}
}