[−]Struct jni_android_sys::android::os::storage::StorageManager
public class StorageManager
Required feature: "android-os-storage-StorageManager"
Methods
impl StorageManager
pub fn mountObb<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env OnObbStateChangeListener>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env String>>,
arg2: impl Into<Option<&'env OnObbStateChangeListener>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-os-storage-OnObbStateChangeListener", "java-lang-String"
pub fn unmountObb<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool,
arg2: impl Into<Option<&'env OnObbStateChangeListener>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: bool,
arg2: impl Into<Option<&'env OnObbStateChangeListener>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-os-storage-OnObbStateChangeListener", "java-lang-String"
pub fn isObbMounted<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getMountedObbPath<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getUuidForPath<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, UUID>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, UUID>>, Local<'env, Throwable>>
Required features: "java-io-File", "java-util-UUID"
pub fn isAllocationSupported<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-io-FileDescriptor"
pub fn getStorageVolume<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, StorageVolume>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, StorageVolume>>, Local<'env, Throwable>>
Required features: "android-os-storage-StorageVolume", "java-io-File"
pub fn getStorageVolumes<'env>(
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
Required features: "java-util-List"
pub fn getPrimaryStorageVolume<'env>(
&'env self
) -> Result<Option<Local<'env, StorageVolume>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, StorageVolume>>, Local<'env, Throwable>>
Required features: "android-os-storage-StorageVolume"
pub fn isEncrypted<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-io-File"
pub fn openProxyFileDescriptor<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env ProxyFileDescriptorCallback>>,
arg2: impl Into<Option<&'env Handler>>
) -> Result<Option<Local<'env, ParcelFileDescriptor>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env ProxyFileDescriptorCallback>>,
arg2: impl Into<Option<&'env Handler>>
) -> Result<Option<Local<'env, ParcelFileDescriptor>>, Local<'env, Throwable>>
Required features: "android-os-Handler", "android-os-ParcelFileDescriptor", "android-os-ProxyFileDescriptorCallback"
pub fn getCacheQuotaBytes<'env>(
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-util-UUID"
pub fn getCacheSizeBytes<'env>(
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-util-UUID"
pub fn getAllocatableBytes<'env>(
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
Required features: "java-util-UUID"
pub fn allocateBytes_UUID_long<'env>(
&'env self,
arg0: impl Into<Option<&'env UUID>>,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env UUID>>,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
Required features: "java-util-UUID"
pub fn allocateBytes_FileDescriptor_long<'env>(
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env FileDescriptor>>,
arg1: i64
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-FileDescriptor"
pub fn setCacheBehaviorGroup<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-File"
pub fn isCacheBehaviorGroup<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-io-File"
pub fn setCacheBehaviorTombstone<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>,
arg1: bool
) -> Result<(), Local<'env, Throwable>>
Required features: "java-io-File"
pub fn isCacheBehaviorTombstone<'env>(
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-io-File"
pub const ACTION_MANAGE_STORAGE: &'static str
[src]
public static final ACTION_MANAGE_STORAGE
pub const EXTRA_REQUESTED_BYTES: &'static str
[src]
public static final EXTRA_REQUESTED_BYTES
pub const EXTRA_UUID: &'static str
[src]
public static final EXTRA_UUID
pub fn UUID_DEFAULT<'env>(env: &'env Env) -> Option<Local<'env, UUID>>
[src]
get public static final UUID_DEFAULT
Required feature: "java-util-UUID"
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for StorageManager
impl AsValidJObjectAndEnv for StorageManager
impl Deref for StorageManager
impl JniType for StorageManager
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for StorageManager
impl !Send for StorageManager
impl !Sync for StorageManager
impl Unpin for StorageManager
impl UnwindSafe for StorageManager
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,