Skip navigation links
Android Device 1.0.0 Documentation
A B C D E F G H I K L M N O P R S T U V W X 

A

action - Variable in class universum.studios.android.device.storage.Storage.BaseResult
Identifier of action for which was this result created.
ACTION_COPY - Static variable in interface universum.studios.android.device.storage.Storage
Flag identifying copy action on file system.
ACTION_CREATE - Static variable in interface universum.studios.android.device.storage.Storage
Flag identifying create action on file system.
ACTION_DELETE - Static variable in interface universum.studios.android.device.storage.Storage
Flag identifying delete action on file system.
ACTION_MOVE - Static variable in interface universum.studios.android.device.storage.Storage
Flag identifying move action on file system.
ANDROID_SDK_VERSION - Static variable in class universum.studios.android.device.Device
Android SDK version that is available within this Android device.
ANDROID_VERSION - Static variable in class universum.studios.android.device.Device
Android version that powers this Android device.
ANDROID_VERSION_NAME - Static variable in class universum.studios.android.device.Device
Name of the Android version that powers this Android device.

B

BASE - Static variable in interface universum.studios.android.device.storage.Storage
Identifier for base path on an Android device's file system.
bits - Variable in enum universum.studios.android.device.storage.Storage.Unit
Amount of bits represented by this storage unit.
bytes - Variable in enum universum.studios.android.device.storage.Storage.Unit
Amount of bytes (bits / 8) represented by this storage unit.

C

CACHE - Static variable in interface universum.studios.android.device.storage.Storage
Identifier for the cache directory of an Android device's file system.
changeFilePermissions(String, int, boolean) - Method in interface universum.studios.android.device.storage.Storage
changeFilePermissions(int, String, int, boolean) - Method in interface universum.studios.android.device.storage.Storage
Changes read/write permissions of a file on the given path of this Android device's storage.
Connection - Interface in universum.studios.android.device.connection
Connection interface specifies API through which an actual information about the Android device's screen may be accessed.
Connection.ConnectionType - Enum in universum.studios.android.device.connection
Represents type of the Android device's connection.
Connection.OnConnectionListener - Interface in universum.studios.android.device.connection
Listener that may be used to receive callback with info about changed network connection.
Connection.Provider - Interface in universum.studios.android.device.connection
Interface for provider that may be used to access implementation of Connection.
ConnectionStateReceiver - Class in universum.studios.android.device.connection
A BroadcastReceiver used by Connection implementation to receive actual information about network connection state.
ConnectionStateReceiver() - Constructor for class universum.studios.android.device.connection.ConnectionStateReceiver
 
ConnectionUtils - Class in universum.studios.android.device.connection
Connection utility class specifying API allowing to check whether the Android device has some network connection established or to access info of the current established network connection.
COPY - Static variable in interface universum.studios.android.device.storage.Storage
Copied flag from StorageEditor.COPY for better access.
COPY - Static variable in class universum.studios.android.device.storage.StorageEditor
Flag used to indicate that copy of file/directory should be created with StorageEditor.COPY_SUFFIX.
COPY_SUFFIX - Static variable in class universum.studios.android.device.storage.StorageEditor
Suffix for name of file/directory when creating a copy of it passing StorageEditor.COPY flag to some of this editor's methods accepting flags parameter.
copyDirectories(int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
copyDirectories(int, int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Same as Storage.copyDirectories(int, int, FileFilter, FilenameFilter, String, String...) with null filters, so whole content of the requested directories will be copied.
copyDirectories(int, int, FileFilter, FilenameFilter, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Copies all directories at the given fromPaths on this Android device's storage.
copyDirectories(int, String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
copyDirectories(int, FileFilter, FilenameFilter, String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Copies all directories at the given fromPaths on the file system.
copyDirectory(int, String, String) - Method in interface universum.studios.android.device.storage.Storage
copyDirectory(int, int, String, String) - Method in interface universum.studios.android.device.storage.Storage
Same as Storage.copyDirectory(int, int, FileFilter, FilenameFilter, String, String) with null filters, so whole content of the requested directory will be copied.
copyDirectory(int, int, FileFilter, FilenameFilter, String, String) - Method in interface universum.studios.android.device.storage.Storage
Copies a directory from the given fromPath to the given toPath on this Android device's storage.
copyDirectory(int, String, String) - Static method in class universum.studios.android.device.storage.StorageUtils
copyDirectory(int, FileFilter, FilenameFilter, String, String) - Static method in class universum.studios.android.device.storage.StorageUtils
copyDirectoryContent(File) - Method in class universum.studios.android.device.storage.StorageEditor
Same as StorageEditor.copyDirectoryContent(int, File, File) with StorageEditor.COPY flag and null toDirectory parameter, so there will be created new copy of the given directory at the same path with StorageEditor.COPY_SUFFIX.
copyDirectoryContent(int, File, File) - Method in class universum.studios.android.device.storage.StorageEditor
copyDirectoryContent(int, File, File, FileFilter, FilenameFilter) - Method in class universum.studios.android.device.storage.StorageEditor
Copies a content from the given fromDirectory into the given toDirectory.
copyFile(int, String, String) - Method in interface universum.studios.android.device.storage.Storage
copyFile(int, int, String, String) - Method in interface universum.studios.android.device.storage.Storage
Copies a file from the given fromPath to the given toPath on this Android device's storage.
copyFile(int, String, String) - Static method in class universum.studios.android.device.storage.StorageUtils
Wrapped StorageEditor.copyFileContent(int, File, File) upon this utils editor instance.
copyFileContent(File) - Method in class universum.studios.android.device.storage.StorageEditor
Same as StorageEditor.copyFileContent(int, File, File) with StorageEditor.COPY flag and null toFile parameter, so there will be created new copy of the given file at the same path with StorageEditor.COPY_SUFFIX.
copyFileContent(int, File, File) - Method in class universum.studios.android.device.storage.StorageEditor
Copies a content from the given fromFile into the given toFile.
copyFileOrDirectory(int, String, String) - Method in interface universum.studios.android.device.storage.Storage
copyFileOrDirectory(int, int, String, String) - Method in interface universum.studios.android.device.storage.Storage
copyFileOrDirectory(int, int, FileFilter, FilenameFilter, String, String) - Method in interface universum.studios.android.device.storage.Storage
Performs Storage.copyFile(int, int, String, String) or Storage.copyDirectory(int, int, FileFilter, FilenameFilter, String, String) depends on whether the given fromPath points to a file or to a directory.
copyFiles(int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
copyFiles(int, int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Copies all files at the given fromPaths on this Android device's storage.
copyFiles(int, String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Copies all files at the given fromPaths on the file system.
copyFilesOrDirectories(int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
copyFilesOrDirectories(int, int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
copyFilesOrDirectories(int, int, FileFilter, FilenameFilter, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Performs Storage.copyFile(int, int, String, String) or Storage.copyDirectory(int, int, FileFilter, FilenameFilter, String, String) for each of the given fromPaths depends on whether the iterated path points to a file or to a directory.
copyFileStreams(FileInputStream, FileOutputStream) - Method in class universum.studios.android.device.storage.StorageEditor
copyFileStreams(FileInputStream, FileOutputStream, int) - Method in class universum.studios.android.device.storage.StorageEditor
copyFileStreams(FileInputStream, FileOutputStream, byte[]) - Method in class universum.studios.android.device.storage.StorageEditor
Copies a content of the given inputStream into the given outputStream using the given buffer.
createBuffer(int) - Static method in class universum.studios.android.device.storage.StorageEditor
Creates a new bytes buffer for the specified bufferType.
createDirectories(String...) - Method in interface universum.studios.android.device.storage.Storage
createDirectories(int, String...) - Method in interface universum.studios.android.device.storage.Storage
Creates all directories with the given paths on this Android device's storage.
createDirectories(String...) - Static method in class universum.studios.android.device.storage.StorageUtils
createDirectories(String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Creates all directories at the given paths on the file system.
createDirectory(String) - Method in interface universum.studios.android.device.storage.Storage
createDirectory(int, String) - Method in interface universum.studios.android.device.storage.Storage
Creates a directory with the given path on this Android device's storage.
createDirectory(String) - Static method in class universum.studios.android.device.storage.StorageUtils
Creates a new empty directory at the specified path on the file system.
createFile(String) - Method in interface universum.studios.android.device.storage.Storage
createFile(int, String) - Method in interface universum.studios.android.device.storage.Storage
Creates a file with the given path on this Android device's storage.
createFile(String) - Static method in class universum.studios.android.device.storage.StorageUtils
Creates a new empty File at the specified path on the file system.
createFiles(String...) - Method in interface universum.studios.android.device.storage.Storage
createFiles(int, String...) - Method in interface universum.studios.android.device.storage.Storage
Creates all files with the given paths on this Android device's storage.
createFiles(String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Same as StorageUtils.createFiles(String, String...) with empty basePath.
createFiles(String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Creates all files at the given paths on the file system.

D

DATA - Static variable in interface universum.studios.android.device.storage.Storage
Identifier for the data directory of an Android device's file system.
DEBUG_LOG_ENABLED - Static variable in class universum.studios.android.device.DeviceConfig
Flag indicating whether the debug output for the Device library trough log-cat is enabled or not.
DEFAULT - Static variable in interface universum.studios.android.device.storage.Storage
Copied flag from StorageEditor.DEFAULT for better access.
DEFAULT - Static variable in class universum.studios.android.device.storage.StorageEditor
Flag used to indicate that default options for storage operation should be used.
degrees - Variable in enum universum.studios.android.device.screen.Screen.ScreenRotation
The value of degrees specific for this screen rotation.
deleteDirectories(String...) - Method in interface universum.studios.android.device.storage.Storage
deleteDirectories(int, String...) - Method in interface universum.studios.android.device.storage.Storage
deleteDirectories(int, FileFilter, FilenameFilter, String...) - Method in interface universum.studios.android.device.storage.Storage
Deletes all directories at the given paths from this Android device's storage.
deleteDirectories(String...) - Static method in class universum.studios.android.device.storage.StorageUtils
deleteDirectories(String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
deleteDirectories(FileFilter, FilenameFilter, String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Deletes all directories at the given paths on the file system.
deleteDirectory(String) - Method in interface universum.studios.android.device.storage.Storage
deleteDirectory(int, String) - Method in interface universum.studios.android.device.storage.Storage
deleteDirectory(int, FileFilter, FilenameFilter, String) - Method in interface universum.studios.android.device.storage.Storage
Deletes a directory at the given path from this Android device's storage.
deleteDirectory(File) - Method in class universum.studios.android.device.storage.StorageEditor
deleteDirectory(File, FileFilter, FilenameFilter) - Method in class universum.studios.android.device.storage.StorageEditor
Deletes the given directory and its content (all files + subdirectories) on the file system.
deleteDirectory(String) - Static method in class universum.studios.android.device.storage.StorageUtils
deleteDirectory(FileFilter, FilenameFilter, String) - Static method in class universum.studios.android.device.storage.StorageUtils
deleteFile(String) - Method in interface universum.studios.android.device.storage.Storage
deleteFile(int, String) - Method in interface universum.studios.android.device.storage.Storage
Deletes a file at the given path from this Android device's storage.
deleteFile(String) - Static method in class universum.studios.android.device.storage.StorageUtils
Deletes a file at the specified path on the file system.
deleteFileOrDirectory(String) - Method in interface universum.studios.android.device.storage.Storage
deleteFileOrDirectory(int, String) - Method in interface universum.studios.android.device.storage.Storage
deleteFileOrDirectory(int, FileFilter, FilenameFilter, String) - Method in interface universum.studios.android.device.storage.Storage
Performs Storage.deleteFile(int, String) or Storage.deleteDirectory(int, FileFilter, FilenameFilter, String) depends on whether the given path points to a file or to a directory.
deleteFiles(String...) - Method in interface universum.studios.android.device.storage.Storage
deleteFiles(int, String...) - Method in interface universum.studios.android.device.storage.Storage
Deletes all files at the given paths from this Android device's storage.
deleteFiles(String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Same as StorageUtils.deleteFiles(String, String...) with empty basePath.
deleteFiles(String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Deletes all files at the given paths on the file system.
deleteFilesOrDirectories(String...) - Method in interface universum.studios.android.device.storage.Storage
deleteFilesOrDirectories(int, String...) - Method in interface universum.studios.android.device.storage.Storage
deleteFilesOrDirectories(int, FileFilter, FilenameFilter, String...) - Method in interface universum.studios.android.device.storage.Storage
Performs Storage.deleteFile(int, String) or Storage.deleteDirectory(int, FileFilter, FilenameFilter, String) for each of the given paths depends on whether the iterated path points to a file or to a directory.
Device - Class in universum.studios.android.device
Device is a simple class providing basic information about the Android device.
DeviceConfig - Class in universum.studios.android.device
Configuration options for the Device library.
DeviceUtils - Class in universum.studios.android.device
Utility class that may be used to check whether the Android device is tablet or not via DeviceUtils.isTablet(Context).
directoryExists(String) - Static method in class universum.studios.android.device.storage.StorageUtils
Checks whether a directory at the specified path on the file system exists or not.
dpToPixel(float) - Method in interface universum.studios.android.device.screen.Screen
Transforms density pixel to raw pixel.

E

ERROR_API - Static variable in interface universum.studios.android.device.storage.Storage
Error set to Storage.Result or Storage.Results when there was requested some action to be performed by this storage API, but this action failed because of the specified flags for this action or because of constraints of this storage API.
ERROR_DIRECTORY_SAME_AS_FILE - Static variable in interface universum.studios.android.device.storage.Storage
Error set to Storage.Result or Storage.Results whenever there is requested some action to be performed by this storage API with a directory but the destination path points to a file.
ERROR_EMPTY_REQUEST - Static variable in interface universum.studios.android.device.storage.Storage
Error set to Storage.Result or Storage.Results when there was requested some storage API action but no paths for such a action were specified.
ERROR_FILE_NOT_FOUND - Static variable in interface universum.studios.android.device.storage.Storage
Error set to Storage.Result or Storage.Results whenever there is requested some action to be performed by this storage API with a file which actually does not exists.
ERROR_FILE_SAME_AS_DIRECTORY - Static variable in interface universum.studios.android.device.storage.Storage
Error set to Storage.Result or Storage.Results whenever there is requested some action to be performed by this storage API with a file but the destination path points to a directory.
ERROR_IO - Static variable in interface universum.studios.android.device.storage.Storage
Error set to Storage.Result or Storage.Results when IOException occurred while performing some of the storage API actions.
ERROR_UNSUPPORTED_OPERATION - Static variable in interface universum.studios.android.device.storage.Storage
Error set to Storage.Result or Storage.Results when there was requested some action which is not supported by this storage API.
errorCode - Variable in class universum.studios.android.device.storage.Storage.BaseResult
Code specific to error which occurred during execution of the requested Storage.BaseResult.action.
EXTERNAL - Static variable in interface universum.studios.android.device.storage.Storage
Identifier for the external directory of an Android device's file system.
EXTERNAL_PACKAGE - Static variable in interface universum.studios.android.device.storage.Storage
Identifier for the external-package directory of an Android device's file system created especially for the particular Android application on the external file storage at path: /Android/data/app.package.name/.

F

fileExists(String) - Static method in class universum.studios.android.device.storage.StorageUtils
Checks whether a file at the specified path on the file system exists or not.
flags - Variable in class universum.studios.android.device.storage.Storage.BaseResult
Same flags as passed to the storage API method for which was this result created.
formatBits(long) - Method in enum universum.studios.android.device.storage.Storage.Unit
Formats the given amount of bits to format specific for this storage unit.
formatBytes(long) - Method in enum universum.studios.android.device.storage.Storage.Unit
Formats the given amount of bytes to format specific for this storage unit.
fullName - Variable in enum universum.studios.android.device.storage.Storage.Unit
Full name of this storage unit.

G

getBrightness(Activity) - Method in interface universum.studios.android.device.screen.Screen
Returns the back-light brightness of the Android device's screen for the current application window from the range [0, 100].
getConnection(Context) - Method in interface universum.studios.android.device.connection.Connection.Provider
Provides a singleton implementation of Connection.
getConnectionInfo(Connection.ConnectionType) - Method in interface universum.studios.android.device.connection.Connection
Returns the current info about the requested connectionType.
getConnectionType() - Method in interface universum.studios.android.device.connection.Connection
Returns type of the current established connection.
getCurrentHeight() - Method in interface universum.studios.android.device.screen.Screen
Returns the current height of the Android device's screen, which depends on the current screen orientation.
getCurrentOrientation() - Method in interface universum.studios.android.device.screen.Screen
Returns the current orientation of the Android device's screen.
getCurrentRotation() - Method in interface universum.studios.android.device.screen.Screen
Returns the current rotation of the Android device's screen.
getCurrentWidth() - Method in interface universum.studios.android.device.screen.Screen
Returns the current width of the Android device's screen, which depends on the current screen orientation.
getDefaultOrientation() - Method in interface universum.studios.android.device.screen.Screen
Returns the default orientation of the Android device's screen.
getDensity() - Method in interface universum.studios.android.device.screen.Screen
Returns the density of the Android device's screen.
getDiagonalDistanceInInches() - Method in interface universum.studios.android.device.screen.Screen
Returns the diagonal distance of the Android device's screen.
getDiagonalDistanceInPixels() - Method in interface universum.studios.android.device.screen.Screen
Returns the diagonal distance of the Android device's screen.
getDirectoriesContent(String...) - Method in interface universum.studios.android.device.storage.Storage
getDirectoriesContent(int, String...) - Method in interface universum.studios.android.device.storage.Storage
getDirectoriesContent(int, FileFilter, FilenameFilter, String...) - Method in interface universum.studios.android.device.storage.Storage
Lists all files stored within directories at the given paths on this Android device's storage.
getDirectoryContent(String) - Method in interface universum.studios.android.device.storage.Storage
getDirectoryContent(int, String) - Method in interface universum.studios.android.device.storage.Storage
getDirectoryContent(int, FileFilter, FilenameFilter, String) - Method in interface universum.studios.android.device.storage.Storage
Lists all files stored within a directory at the given path on this Android device's storage.
getDisplay() - Method in interface universum.studios.android.device.screen.Screen
Returns default display of the Android device.
getFile(int, String) - Method in interface universum.studios.android.device.storage.Storage
Returns a file eventually stored on the specified storage.
getFreeSpace(int) - Method in interface universum.studios.android.device.storage.Storage
Returns the currently available free space on the requested storage type.
getHeight() - Method in interface universum.studios.android.device.screen.Screen
Returns the "default" height of the Android device's screen.
getMetrics() - Method in interface universum.studios.android.device.screen.Screen
Returns the current display metrics of the Android device's screen.
getRawDensity() - Method in interface universum.studios.android.device.screen.Screen
Returns the raw density of the Android device's screen obtained from the screen metrics.
getRefreshRate() - Method in interface universum.studios.android.device.screen.Screen
Returns refresh rate of the Android device's screen.
getRequestedOrientation(Activity) - Method in interface universum.studios.android.device.screen.Screen
Returns the orientation that was requested for the specified activity via Screen.requestOrientation(Activity, int) or directly Activity.setRequestedOrientation(int).
getScreen(Context) - Method in interface universum.studios.android.device.screen.Screen.Provider
Provides a singleton implementation of Screen.
getScreenDP() - Method in interface universum.studios.android.device.screen.Screen
Returns the value of density pixel for 1 pixel for the Android device's screen.
getStorage(int) - Method in interface universum.studios.android.device.storage.Storage
Returns a file representing the directory on this Android device's file system.
getStorage(Context) - Method in interface universum.studios.android.device.storage.Storage.Provider
Provides a singleton implementation of Storage.
getStoragePath(int) - Method in interface universum.studios.android.device.storage.Storage
Returns a path obtained from the requested storage by getStorage(int).getPath().
getSystemBrightness() - Method in interface universum.studios.android.device.screen.Screen
Returns the back-light brightness of the Android device's screen.
getType() - Method in interface universum.studios.android.device.screen.Screen
Returns the type of the Android device's screen.
getWidth() - Method in interface universum.studios.android.device.screen.Screen
Returns the "default" width of the Android device's screen.

H

hasFreeSpace(int, long) - Method in interface universum.studios.android.device.storage.Storage
Checks whether there is the specified amount of bytes available on the requested storage type.
hideSoftKeyboard(Activity) - Static method in class universum.studios.android.device.screen.ScreenUtils
Hides soft keyboard from the current window.
hideSoftKeyboard(View) - Static method in class universum.studios.android.device.screen.ScreenUtils
Hides soft keyboard from the current window using token of the given focused view.

I

INTERNAL - Static variable in interface universum.studios.android.device.storage.Storage
Identifier for the internal directory of an Android device's file system.
isAvailable(Connection.ConnectionType) - Method in interface universum.studios.android.device.connection.Connection
Checks whether the Android device can establish connection for the requested connectionType
isConnected() - Method in interface universum.studios.android.device.connection.Connection
Checks whether the Android device has some connection currently established.
isConnected(Connection.ConnectionType) - Method in interface universum.studios.android.device.connection.Connection
Checks whether the Android device has established the connection for the requested connectionType.
isConnectedOrConnecting() - Method in interface universum.studios.android.device.connection.Connection
Checks whether the Android device has some connection or is currently in the process to establish some connection.
isConnectedOrConnecting(Connection.ConnectionType) - Method in interface universum.studios.android.device.connection.Connection
Checks whether the Android device has established the connection or is currently in the process to establish the connection for the requested connectionType.
isConnectionAvailable(Context, int) - Static method in class universum.studios.android.device.connection.ConnectionUtils
Checks whether there is connection of the requested connectionType available or not.
isConnectionEstablished(Context) - Static method in class universum.studios.android.device.connection.ConnectionUtils
Checks whether there is some connection currently established or not.
isConnectionEstablished(Context, int) - Static method in class universum.studios.android.device.connection.ConnectionUtils
Checks whether there is connection of the requested connectionType currently established or not.
isConnectionReceiverRegistered() - Method in interface universum.studios.android.device.connection.Connection
Returns flag indicating whether ConnectionStateReceiver is currently registered or not.
isDirectoryEmpty(String) - Static method in class universum.studios.android.device.storage.StorageUtils
Checks whether a directory at the specified path contains any files/subdirectories or not.
isError - Variable in class universum.studios.android.device.storage.Storage.BaseResult
Flag indicating whether this result was created as error or not.
isExternalAvailable() - Method in interface universum.studios.android.device.storage.Storage
Checks whether there is some external storage available on this Android device which can be used to store some data.
isExternalMounted() - Method in interface universum.studios.android.device.storage.Storage
Checks whether there is some external storage mounted to this Android device or not.
isExternalReadOnly() - Method in interface universum.studios.android.device.storage.Storage
Checks whether the current mounted external storage is in read only state or not.
isInteractive() - Method in interface universum.studios.android.device.screen.Screen
Checks whether the Android device's screen is interactive or not.
isOn() - Method in interface universum.studios.android.device.screen.Screen
Checks whether the Android device's screen is currently on or off.
isOrientationLocked() - Method in interface universum.studios.android.device.screen.Screen
Returns flag indicating whether orientation of the Android device's screen is currently locked or not.
isTablet(Context) - Static method in class universum.studios.android.device.DeviceUtils
Checks whether the current Android device matches tablet specifications or not.

K

KILO - Static variable in interface universum.studios.android.device.storage.Storage
Constant used to increase amount of bits when moving between different storage units by Storage.Unit.

L

LARGE_BUFFER - Static variable in class universum.studios.android.device.storage.StorageEditor
Large buffer type for StorageEditor.createBuffer(int) method.
lockOrientation(Activity) - Method in interface universum.studios.android.device.screen.Screen
Locks orientation of the Android device's screen at the current orientation for the given activity.
LOG_ENABLED - Static variable in class universum.studios.android.device.DeviceConfig
Flag indicating whether the verbose output for the Device library trough log-cat is enabled or not.

M

MEDIUM_BUFFER - Static variable in class universum.studios.android.device.storage.StorageEditor
Medium buffer type for StorageEditor.createBuffer(int) method.
message - Variable in class universum.studios.android.device.storage.Storage.BaseResult
Message for this result.
moveDirectories(int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
moveDirectories(int, int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Same as Storage.moveDirectories(int, int, FileFilter, FilenameFilter, String, String...) with null filters, so whole content of the requested directories will be copied.
moveDirectories(int, int, FileFilter, FilenameFilter, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Moves all directories at the given fromPaths on this Android device's storage.
moveDirectories(int, String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
moveDirectories(int, FileFilter, FilenameFilter, String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Moves all directories at the given fromPaths on the file system.
moveDirectory(int, String, String) - Method in interface universum.studios.android.device.storage.Storage
moveDirectory(int, int, String, String) - Method in interface universum.studios.android.device.storage.Storage
Same as Storage.moveDirectory(int, int, FileFilter, FilenameFilter, String, String) with null filters, so whole content of the requested directory will be copied.
moveDirectory(int, int, FileFilter, FilenameFilter, String, String) - Method in interface universum.studios.android.device.storage.Storage
Moves a directory from the given fromPath to the given toPath on this Android device's storage.
moveDirectory(int, String, String) - Static method in class universum.studios.android.device.storage.StorageUtils
moveDirectory(int, FileFilter, FilenameFilter, String, String) - Static method in class universum.studios.android.device.storage.StorageUtils
moveDirectoryContent(int, File, File) - Method in class universum.studios.android.device.storage.StorageEditor
moveDirectoryContent(int, File, File, FileFilter, FilenameFilter) - Method in class universum.studios.android.device.storage.StorageEditor
Moves a content (files + subdirectories) from the given fromDirectory into the given toDirectory.
moveFile(int, String, String) - Method in interface universum.studios.android.device.storage.Storage
moveFile(int, int, String, String) - Method in interface universum.studios.android.device.storage.Storage
Moves a file from the given fromPath to the given toPath on this Android device's storage.
moveFile(int, String, String) - Static method in class universum.studios.android.device.storage.StorageUtils
Wrapped StorageEditor.moveFileContent(int, File, File) upon this utils editor instance.
moveFileContent(int, File, File) - Method in class universum.studios.android.device.storage.StorageEditor
Moves a content from the given fromFile into the given toFile.
moveFileOrDirectory(int, String, String) - Method in interface universum.studios.android.device.storage.Storage
moveFileOrDirectory(int, int, String, String) - Method in interface universum.studios.android.device.storage.Storage
moveFileOrDirectory(int, int, FileFilter, FilenameFilter, String, String) - Method in interface universum.studios.android.device.storage.Storage
Performs Storage.moveFile(int, int, String, String) or Storage.moveDirectory(int, int, FileFilter, FilenameFilter, String, String) depends on whether the given fromPath points to a file or to a directory.
moveFiles(int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
moveFiles(int, int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Moves all files at the given fromPaths on this Android device's storage.
moveFiles(int, String, String...) - Static method in class universum.studios.android.device.storage.StorageUtils
Moves all files at the given fromPaths on the file system.
moveFilesOrDirectories(int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
moveFilesOrDirectories(int, int, String, String...) - Method in interface universum.studios.android.device.storage.Storage
moveFilesOrDirectories(int, int, FileFilter, FilenameFilter, String, String...) - Method in interface universum.studios.android.device.storage.Storage
Performs Storage.moveFile(int, int, String, String) or Storage.moveDirectory(int, int, FileFilter, FilenameFilter, String, String) for each of the given fromPaths depends on whether the iterated path points to a file or to a directory.

N

nativeHeightDp - Variable in enum universum.studios.android.device.screen.Screen.ScreenType
Native dimension in DP units.
nativeWidthDp - Variable in enum universum.studios.android.device.screen.Screen.ScreenType
Native dimension in DP units.
newIntentFilter() - Method in class universum.studios.android.device.connection.ConnectionStateReceiver
Returns the intent filter for ConnectivityManager.CONNECTIVITY_ACTION action which should be used when registering this instance of connection receiver.
NO_ERROR - Static variable in interface universum.studios.android.device.storage.Storage
Code representing no error.
NO_FLAGS - Static variable in interface universum.studios.android.device.storage.Storage
Represents an empty set of flags for storage API.

O

obtainEstablishedConnectionInfo(Context) - Static method in class universum.studios.android.device.connection.ConnectionUtils
Obtains info of the currently established connection.
obtainEstablishedConnectionType(Context) - Static method in class universum.studios.android.device.connection.ConnectionUtils
Obtains type of the currently established connection.
onConnectionEstablished(Context, Connection.ConnectionType, NetworkInfo) - Method in interface universum.studios.android.device.connection.Connection.OnConnectionListener
Invoked whenever registered ConnectionStateReceiver revives an Intent for the ConnectivityManager.CONNECTIVITY_ACTION and there is some connection established.
onConnectionLost(Context, Connection.ConnectionType) - Method in interface universum.studios.android.device.connection.Connection.OnConnectionListener
Invoked whenever registered ConnectionStateReceiver receives an Intent for the ConnectivityManager.CONNECTIVITY_ACTION and there is no connection available.
onReceive(Context, Intent) - Method in class universum.studios.android.device.connection.ConnectionStateReceiver
 
ORIENTATION_BEHIND - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_BEHIND flag for better access.
ORIENTATION_CURRENT - Static variable in interface universum.studios.android.device.screen.Screen
Orientation flag that is used to lock screen on the current orientation.
ORIENTATION_FULL_SENSOR - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR flag for better access.
ORIENTATION_LANDSCAPE - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE flag for better access.
ORIENTATION_PORTRAIT - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_PORTRAIT flag for better access.
ORIENTATION_REVERSE_LANDSCAPE - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_REVERSE_LANDSCAPE flag for better access.
ORIENTATION_REVERSE_PORTRAIT - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT flag for better access.
ORIENTATION_SENSOR - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_SENSOR flag for better access.
ORIENTATION_SENSOR_LANDSCAPE - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE flag for better access.
ORIENTATION_SENSOR_PORTRAIT - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT flag for better access.
ORIENTATION_UNSPECIFIED - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_UNSPECIFIED flag for better access.
ORIENTATION_USER - Static variable in interface universum.studios.android.device.screen.Screen
Copy of ActivityInfo.SCREEN_ORIENTATION_USER flag for better access.
originalName - Variable in enum universum.studios.android.device.connection.Connection.ConnectionType
Original name of this connection type.
OVERWRITE - Static variable in interface universum.studios.android.device.storage.Storage
Copied flag from StorageEditor.OVERWRITE for better access.
OVERWRITE - Static variable in class universum.studios.android.device.storage.StorageEditor
Flag used to indicate that file/directory can be overwritten.

P

path - Variable in class universum.studios.android.device.storage.Storage.Result
The path passed to the method for which was this result created.
PERMISSION_EXECUTE - Static variable in interface universum.studios.android.device.storage.Storage
Flag indicating whether to allow permission to file to be executable or not.
PERMISSION_READ - Static variable in interface universum.studios.android.device.storage.Storage
Flag indicating whether to allow permission to file to be readable or not.
PERMISSION_WRITE - Static variable in interface universum.studios.android.device.storage.Storage
Flag indicating whether to allow permission to file to be writable or not.
PERMISSIONS_ALL - Static variable in interface universum.studios.android.device.storage.Storage
All file permissions.
PERMISSIONS_READ_WRITE - Static variable in interface universum.studios.android.device.storage.Storage
Read + Write file permissions.
PHABLET - Static variable in class universum.studios.android.device.DeviceUtils
Identifier for PHABLET type of Android powered device.
PHONE - Static variable in class universum.studios.android.device.DeviceUtils
Identifier for PHONE type of Android powered device.
pixelToDP(int) - Method in interface universum.studios.android.device.screen.Screen
Transforms raw pixel to density pixel.
preferencesKey - Variable in enum universum.studios.android.device.connection.Connection.ConnectionType
The key under which may be this connection type saved within shared preferences.
PROVIDER - Static variable in interface universum.studios.android.device.connection.Connection
A Connection.Provider implementation that may be used to access implementation of Connection.
PROVIDER - Static variable in interface universum.studios.android.device.screen.Screen
A Screen.Provider implementation that may be used to access implementation of Screen.
PROVIDER - Static variable in interface universum.studios.android.device.storage.Storage
A Storage.Provider implementation that may be used to access implementation of Storage.

R

registerConnectionReceiver(Context) - Method in interface universum.studios.android.device.connection.Connection
Registers ConnectionStateReceiver to receive broadcasts about the current connection state.
registerOnConnectionListener(Connection.OnConnectionListener) - Method in interface universum.studios.android.device.connection.Connection
Registers a callback to be invoked when some connection change occur.
requestOrientation(Activity, int) - Method in interface universum.studios.android.device.screen.Screen
Requests the specified orientation as orientation of the Android device's screen for the given activity.
resolve(int) - Static method in enum universum.studios.android.device.connection.Connection.ConnectionType
Resolves an instance of ConnectionType according to the given typeId from the current set of ConnectionType values.
resolve(float) - Static method in enum universum.studios.android.device.screen.Screen.ScreenDensity
Resolves an instance of ScreenDensity according to the given densityDpi.
resolve(int) - Static method in enum universum.studios.android.device.screen.Screen.ScreenRotation
Resolves an instance of ScreenRotation according to the given systemConstant from the current set of ScreenRotation values.
resolve(float, float) - Static method in enum universum.studios.android.device.screen.Screen.ScreenType
Resolves an instance of ScreenType according to the given native screen dimensions from the current set of ScreenType values.
results - Variable in class universum.studios.android.device.storage.Storage.Results
List of single results where each of them was obtained by invoking storage API method which accepts single path as parameter for each of the passed paths which were passed to the method for which was this result created.
ROOT - Static variable in interface universum.studios.android.device.storage.Storage
Identifier for the root directory of an Android device's file system.

S

scaleRatio - Variable in enum universum.studios.android.device.screen.Screen.ScreenDensity
The value of scale ratio specific for this screen density.
Screen - Interface in universum.studios.android.device.screen
Screen interface specifies API through which an actual information about the Android device's screen may be accessed.
Screen.Orientation - Annotation Type in universum.studios.android.device.screen
Defines an annotation for determining set of available screen orientations.
Screen.Provider - Interface in universum.studios.android.device.screen
Interface for provider that may be used to access implementation of Screen.
Screen.ScreenDensity - Enum in universum.studios.android.device.screen
Represents density of the Android device's screen.
Screen.ScreenRotation - Enum in universum.studios.android.device.screen
Represents rotation of the Android device's screen.
Screen.ScreenType - Enum in universum.studios.android.device.screen
Represents type of the Android device's screen.
ScreenUtils - Class in universum.studios.android.device.screen
Simple utility class specifying API allowing to manage screen of the current Android device.
setBrightness(Activity, int) - Method in interface universum.studios.android.device.screen.Screen
Sets the back-light brightness of the Android device's screen.
showSoftKeyboard(Activity) - Static method in class universum.studios.android.device.screen.ScreenUtils
Shows soft keyboard on the current window.
showSoftKeyboard(View) - Static method in class universum.studios.android.device.screen.ScreenUtils
Shows soft keyboard on the current window using token of the given focused view.
SMALL_BUFFER - Static variable in class universum.studios.android.device.storage.StorageEditor
Small buffer type for StorageEditor.createBuffer(int) method.
Storage - Interface in universum.studios.android.device.storage
Storage interface specifies API through which an actual information about the Android device's storage may be accessed.
Storage.BaseResult - Class in universum.studios.android.device.storage
This class represents the base structure for results which may be returned by this storage API when invoking some of its methods.
Storage.FilePermissions - Annotation Type in universum.studios.android.device.storage
Defines an annotation for determining set of allowed file permission flags.
Storage.Flags - Annotation Type in universum.studios.android.device.storage
Defines an annotation for determining set of allowed flags.
Storage.Provider - Interface in universum.studios.android.device.storage
Interface for provider that may be used to access implementation of Storage.
Storage.Result - Class in universum.studios.android.device.storage
This class represents structure for result which will be returned by this storage API when invoking some of its methods which accepts only single path as parameter.
Storage.Results - Class in universum.studios.android.device.storage
This class represents structure for result which will be returned by this storage API when invoking some of its methods which accepts set of paths as parameter so when requesting a bulk storage operation.
Storage.StorageDir - Annotation Type in universum.studios.android.device.storage
Defines an annotation for determining set of available storage directories.
Storage.Unit - Enum in universum.studios.android.device.storage
Represents unit to measure files on an Android device's file system.
StorageEditor - Class in universum.studios.android.device.storage
The StorageEditor is a helper class used by StorageUtils to perform Files related operations.
StorageEditor() - Constructor for class universum.studios.android.device.storage.StorageEditor
 
StorageUtils - Class in universum.studios.android.device.storage
Simple utility class specifying API allowing to create, copy, move or delete files on the current Android device's file system.
succeeded - Variable in class universum.studios.android.device.storage.Storage.Results
The count determining how many operations were successfully performed for the paths passed to the bulk method for which was this result created.
systemConstant - Variable in enum universum.studios.android.device.connection.Connection.ConnectionType
The flag provided by ConnectivityManager for this connectivity type.
systemConstant - Variable in enum universum.studios.android.device.screen.Screen.ScreenRotation
The flag provided by Surface for this screen rotation.

T

TABLET - Static variable in class universum.studios.android.device.DeviceUtils
Identifier for TABLET type of Android powered device.
TELEVISION - Static variable in class universum.studios.android.device.DeviceUtils
Identifier for TELEVISION type of Android powered device.

U

universum.studios.android.device - package universum.studios.android.device
Provides classes that may be used to access basic information about an Android device's screen, battery, connection and storage.
universum.studios.android.device.connection - package universum.studios.android.device.connection
 
universum.studios.android.device.screen - package universum.studios.android.device.screen
 
universum.studios.android.device.storage - package universum.studios.android.device.storage
 
UNKNOWN - Static variable in class universum.studios.android.device.DeviceUtils
Identifier for UNKNOWN type of Android powered device.
unlockOrientation(Activity) - Method in interface universum.studios.android.device.screen.Screen
Unlocks orientation of the Android device's screen for the given activity.
unregisterConnectionReceiver(Context) - Method in interface universum.studios.android.device.connection.Connection
Un-registers registered ConnectionStateReceiver.
unregisterOnConnectionListener(Connection.OnConnectionListener) - Method in interface universum.studios.android.device.connection.Connection
Un-registers the given connection callback.

V

value - Variable in enum universum.studios.android.device.screen.Screen.ScreenDensity
The value of this screen density in DPI units.
valueOf(String) - Static method in enum universum.studios.android.device.connection.Connection.ConnectionType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum universum.studios.android.device.screen.Screen.ScreenDensity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum universum.studios.android.device.screen.Screen.ScreenRotation
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum universum.studios.android.device.screen.Screen.ScreenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum universum.studios.android.device.storage.Storage.Unit
Returns the enum constant of this type with the specified name.
values() - Static method in enum universum.studios.android.device.connection.Connection.ConnectionType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum universum.studios.android.device.screen.Screen.ScreenDensity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum universum.studios.android.device.screen.Screen.ScreenRotation
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum universum.studios.android.device.screen.Screen.ScreenType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum universum.studios.android.device.storage.Storage.Unit
Returns an array containing the constants of this enum type, in the order they are declared.

W

WEARABLE - Static variable in class universum.studios.android.device.DeviceUtils
Identifier for WEARABLE type of Android powered device.

X

XLARGE_BUFFER - Static variable in class universum.studios.android.device.storage.StorageEditor
X-Large buffer type for StorageEditor.createBuffer(int) method.
XXLARGE_BUFFER - Static variable in class universum.studios.android.device.storage.StorageEditor
XX-Large buffer type for StorageEditor.createBuffer(int) method.
A B C D E F G H I K L M N O P R S T U V W X 
Skip navigation links
Android Device 1.0.0 Documentation