Package org.robolectric.shadows
Class StorageVolumeBuilder
- java.lang.Object
-
- org.robolectric.shadows.StorageVolumeBuilder
-
public final class StorageVolumeBuilder extends Object
Class to buildStorageVolume
-
-
Constructor Summary
Constructors Constructor Description StorageVolumeBuilder(String id, File path, String description, UserHandle owner, String state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StorageVolume
build()
StorageVolumeBuilder
setAllowMassStorage(boolean allowMassStorage)
StorageVolumeBuilder
setExternallyManaged(boolean externallyManaged)
StorageVolumeBuilder
setFsUuid(String fsUuid)
StorageVolumeBuilder
setInternalPath(File internalPath)
StorageVolumeBuilder
setIsEmulated(boolean isEmulated)
StorageVolumeBuilder
setIsPrimary(boolean isPrimary)
StorageVolumeBuilder
setIsRemovable(boolean isRemovable)
StorageVolumeBuilder
setMaxFileSize(long maxFileSize)
StorageVolumeBuilder
setMtpReserveSize(long mtpReserveSize)
StorageVolumeBuilder
setStorageId(int storageId)
-
-
-
Constructor Detail
-
StorageVolumeBuilder
public StorageVolumeBuilder(String id, File path, String description, UserHandle owner, String state)
-
-
Method Detail
-
setStorageId
public StorageVolumeBuilder setStorageId(int storageId)
-
setIsPrimary
public StorageVolumeBuilder setIsPrimary(boolean isPrimary)
-
setIsRemovable
public StorageVolumeBuilder setIsRemovable(boolean isRemovable)
-
setIsEmulated
public StorageVolumeBuilder setIsEmulated(boolean isEmulated)
-
setMtpReserveSize
public StorageVolumeBuilder setMtpReserveSize(long mtpReserveSize)
-
setExternallyManaged
public StorageVolumeBuilder setExternallyManaged(boolean externallyManaged)
-
setAllowMassStorage
public StorageVolumeBuilder setAllowMassStorage(boolean allowMassStorage)
-
setMaxFileSize
public StorageVolumeBuilder setMaxFileSize(long maxFileSize)
-
setFsUuid
public StorageVolumeBuilder setFsUuid(String fsUuid)
-
setInternalPath
public StorageVolumeBuilder setInternalPath(File internalPath)
-
build
public StorageVolume build() throws IllegalStateException
- Throws:
IllegalStateException
-
-