[]Struct jni_android_sys::android::os::storage::StorageManager

#[repr(transparent)]
pub struct 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]

mountObb

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]

unmountObb

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]

isObbMounted

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]

getMountedObbPath

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]

getUuidForPath

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]

isAllocationSupported

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]

getStorageVolume

Required features: "android-os-storage-StorageVolume", "java-io-File"

pub fn getStorageVolumes<'env>(
    &'env self
) -> Result<Option<Local<'env, List>>, Local<'env, Throwable>>
[src]

getStorageVolumes

Required features: "java-util-List"

pub fn getPrimaryStorageVolume<'env>(
    &'env self
) -> Result<Option<Local<'env, StorageVolume>>, Local<'env, Throwable>>
[src]

getPrimaryStorageVolume

Required features: "android-os-storage-StorageVolume"

pub fn isEncrypted<'env>(
    &'env self,
    arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]

isEncrypted

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]

openProxyFileDescriptor

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]

getCacheQuotaBytes

Required features: "java-util-UUID"

pub fn getCacheSizeBytes<'env>(
    &'env self,
    arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
[src]

getCacheSizeBytes

Required features: "java-util-UUID"

pub fn getAllocatableBytes<'env>(
    &'env self,
    arg0: impl Into<Option<&'env UUID>>
) -> Result<i64, Local<'env, Throwable>>
[src]

getAllocatableBytes

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]

allocateBytes

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]

allocateBytes

Required features: "java-io-FileDescriptor"

pub fn setCacheBehaviorGroup<'env>(
    &'env self,
    arg0: impl Into<Option<&'env File>>,
    arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]

setCacheBehaviorGroup

Required features: "java-io-File"

pub fn isCacheBehaviorGroup<'env>(
    &'env self,
    arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]

isCacheBehaviorGroup

Required features: "java-io-File"

pub fn setCacheBehaviorTombstone<'env>(
    &'env self,
    arg0: impl Into<Option<&'env File>>,
    arg1: bool
) -> Result<(), Local<'env, Throwable>>
[src]

setCacheBehaviorTombstone

Required features: "java-io-File"

pub fn isCacheBehaviorTombstone<'env>(
    &'env self,
    arg0: impl Into<Option<&'env File>>
) -> Result<bool, Local<'env, Throwable>>
[src]

isCacheBehaviorTombstone

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

type Target = Object

The resulting type after dereferencing.

impl JniType for StorageManager

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.