Package org.robolectric.shadows
Class StorageVolumeBuilder
java.lang.Object
org.robolectric.shadows.StorageVolumeBuilder
Class to build
StorageVolume
-
Constructor Summary
ConstructorDescriptionStorageVolumeBuilder
(String id, File path, String description, UserHandle owner, String state) -
Method Summary
Modifier and TypeMethodDescriptionbuild()
setAllowMassStorage
(boolean allowMassStorage) setExternallyManaged
(boolean externallyManaged) setInternalPath
(File internalPath) setIsEmulated
(boolean isEmulated) setIsPrimary
(boolean isPrimary) setIsRemovable
(boolean isRemovable) setMaxFileSize
(long maxFileSize) setMtpReserveSize
(long mtpReserveSize) setStorageId
(int storageId)
-
Constructor Details
-
StorageVolumeBuilder
public StorageVolumeBuilder(String id, File path, String description, UserHandle owner, String state)
-
-
Method Details
-
setStorageId
-
setIsPrimary
-
setIsRemovable
-
setIsEmulated
-
setMtpReserveSize
-
setExternallyManaged
-
setAllowMassStorage
-
setMaxFileSize
-
setFsUuid
-
setInternalPath
-
build
- Throws:
IllegalStateException
-