FileDocCategorySizeDatePackage
MtpConstants.javaAPI DocAndroid 5.1 API23603Thu Mar 12 22:22:30 GMT 2015android.mtp

MtpConstants

public final class MtpConstants extends Object
A class containing constants in the MTP and PTP specifications.

Fields Summary
public static final int
TYPE_UNDEFINED
public static final int
TYPE_INT8
public static final int
TYPE_UINT8
public static final int
TYPE_INT16
public static final int
TYPE_UINT16
public static final int
TYPE_INT32
public static final int
TYPE_UINT32
public static final int
TYPE_INT64
public static final int
TYPE_UINT64
public static final int
TYPE_INT128
public static final int
TYPE_UINT128
public static final int
TYPE_AINT8
public static final int
TYPE_AUINT8
public static final int
TYPE_AINT16
public static final int
TYPE_AUINT16
public static final int
TYPE_AINT32
public static final int
TYPE_AUINT32
public static final int
TYPE_AINT64
public static final int
TYPE_AUINT64
public static final int
TYPE_AINT128
public static final int
TYPE_AUINT128
public static final int
TYPE_STR
public static final int
RESPONSE_UNDEFINED
public static final int
RESPONSE_OK
public static final int
RESPONSE_GENERAL_ERROR
public static final int
RESPONSE_SESSION_NOT_OPEN
public static final int
RESPONSE_INVALID_TRANSACTION_ID
public static final int
RESPONSE_OPERATION_NOT_SUPPORTED
public static final int
RESPONSE_PARAMETER_NOT_SUPPORTED
public static final int
RESPONSE_INCOMPLETE_TRANSFER
public static final int
RESPONSE_INVALID_STORAGE_ID
public static final int
RESPONSE_INVALID_OBJECT_HANDLE
public static final int
RESPONSE_DEVICE_PROP_NOT_SUPPORTED
public static final int
RESPONSE_INVALID_OBJECT_FORMAT_CODE
public static final int
RESPONSE_STORAGE_FULL
public static final int
RESPONSE_OBJECT_WRITE_PROTECTED
public static final int
RESPONSE_STORE_READ_ONLY
public static final int
RESPONSE_ACCESS_DENIED
public static final int
RESPONSE_NO_THUMBNAIL_PRESENT
public static final int
RESPONSE_SELF_TEST_FAILED
public static final int
RESPONSE_PARTIAL_DELETION
public static final int
RESPONSE_STORE_NOT_AVAILABLE
public static final int
RESPONSE_SPECIFICATION_BY_FORMAT_UNSUPPORTED
public static final int
RESPONSE_NO_VALID_OBJECT_INFO
public static final int
RESPONSE_INVALID_CODE_FORMAT
public static final int
RESPONSE_UNKNOWN_VENDOR_CODE
public static final int
RESPONSE_CAPTURE_ALREADY_TERMINATED
public static final int
RESPONSE_DEVICE_BUSY
public static final int
RESPONSE_INVALID_PARENT_OBJECT
public static final int
RESPONSE_INVALID_DEVICE_PROP_FORMAT
public static final int
RESPONSE_INVALID_DEVICE_PROP_VALUE
public static final int
RESPONSE_INVALID_PARAMETER
public static final int
RESPONSE_SESSION_ALREADY_OPEN
public static final int
RESPONSE_TRANSACTION_CANCELLED
public static final int
RESPONSE_SPECIFICATION_OF_DESTINATION_UNSUPPORTED
public static final int
RESPONSE_INVALID_OBJECT_PROP_CODE
public static final int
RESPONSE_INVALID_OBJECT_PROP_FORMAT
public static final int
RESPONSE_INVALID_OBJECT_PROP_VALUE
public static final int
RESPONSE_INVALID_OBJECT_REFERENCE
public static final int
RESPONSE_GROUP_NOT_SUPPORTED
public static final int
RESPONSE_INVALID_DATASET
public static final int
RESPONSE_SPECIFICATION_BY_GROUP_UNSUPPORTED
public static final int
RESPONSE_SPECIFICATION_BY_DEPTH_UNSUPPORTED
public static final int
RESPONSE_OBJECT_TOO_LARGE
public static final int
RESPONSE_OBJECT_PROP_NOT_SUPPORTED
public static final int
FORMAT_UNDEFINED
Undefined format code
public static final int
FORMAT_ASSOCIATION
Format code for associations (folders and directories)
public static final int
FORMAT_SCRIPT
Format code for script files
public static final int
FORMAT_EXECUTABLE
Format code for executable files
public static final int
FORMAT_TEXT
Format code for text files
public static final int
FORMAT_HTML
Format code for HTML files
public static final int
FORMAT_DPOF
Format code for DPOF files
public static final int
FORMAT_AIFF
Format code for AIFF audio files
public static final int
FORMAT_WAV
Format code for WAV audio files
public static final int
FORMAT_MP3
Format code for MP3 audio files
public static final int
FORMAT_AVI
Format code for AVI video files
public static final int
FORMAT_MPEG
Format code for MPEG video files
public static final int
FORMAT_ASF
Format code for ASF files
public static final int
FORMAT_EXIF_JPEG
Format code for JPEG image files
public static final int
FORMAT_TIFF_EP
Format code for TIFF EP image files
public static final int
FORMAT_BMP
Format code for BMP image files
public static final int
FORMAT_GIF
Format code for GIF image files
public static final int
FORMAT_JFIF
Format code for JFIF image files
public static final int
FORMAT_PICT
Format code for PICT image files
public static final int
FORMAT_PNG
Format code for PNG image files
public static final int
FORMAT_TIFF
Format code for TIFF image files
public static final int
FORMAT_JP2
Format code for JP2 files
public static final int
FORMAT_JPX
Format code for JPX files
public static final int
FORMAT_UNDEFINED_FIRMWARE
Format code for firmware files
public static final int
FORMAT_WINDOWS_IMAGE_FORMAT
Format code for Windows image files
public static final int
FORMAT_UNDEFINED_AUDIO
Format code for undefined audio files files
public static final int
FORMAT_WMA
Format code for WMA audio files
public static final int
FORMAT_OGG
Format code for OGG audio files
public static final int
FORMAT_AAC
Format code for AAC audio files
public static final int
FORMAT_AUDIBLE
Format code for Audible audio files
public static final int
FORMAT_FLAC
Format code for FLAC audio files
public static final int
FORMAT_UNDEFINED_VIDEO
Format code for undefined video files
public static final int
FORMAT_WMV
Format code for WMV video files
public static final int
FORMAT_MP4_CONTAINER
Format code for MP4 files
public static final int
FORMAT_MP2
Format code for MP2 files
public static final int
FORMAT_3GP_CONTAINER
Format code for 3GP files
public static final int
FORMAT_UNDEFINED_COLLECTION
Format code for undefined collections
public static final int
FORMAT_ABSTRACT_MULTIMEDIA_ALBUM
Format code for multimedia albums
public static final int
FORMAT_ABSTRACT_IMAGE_ALBUM
Format code for image albums
public static final int
FORMAT_ABSTRACT_AUDIO_ALBUM
Format code for audio albums
public static final int
FORMAT_ABSTRACT_VIDEO_ALBUM
Format code for video albums
public static final int
FORMAT_ABSTRACT_AV_PLAYLIST
Format code for abstract AV playlists
public static final int
FORMAT_ABSTRACT_AUDIO_PLAYLIST
Format code for abstract audio playlists
public static final int
FORMAT_ABSTRACT_VIDEO_PLAYLIST
Format code for abstract video playlists
public static final int
FORMAT_ABSTRACT_MEDIACAST
Format code for abstract mediacasts
public static final int
FORMAT_WPL_PLAYLIST
Format code for WPL playlist files
public static final int
FORMAT_M3U_PLAYLIST
Format code for M3u playlist files
public static final int
FORMAT_MPL_PLAYLIST
Format code for MPL playlist files
public static final int
FORMAT_ASX_PLAYLIST
Format code for ASX playlist files
public static final int
FORMAT_PLS_PLAYLIST
Format code for PLS playlist files
public static final int
FORMAT_UNDEFINED_DOCUMENT
Format code for undefined document files
public static final int
FORMAT_ABSTRACT_DOCUMENT
Format code for abstract documents
public static final int
FORMAT_XML_DOCUMENT
Format code for XML documents
public static final int
FORMAT_MS_WORD_DOCUMENT
Format code for MS Word documents
public static final int
FORMAT_MS_EXCEL_SPREADSHEET
Format code for MS Excel spreadsheets
public static final int
FORMAT_MS_POWERPOINT_PRESENTATION
Format code for MS PowerPoint presentatiosn
public static final int
PROPERTY_STORAGE_ID
public static final int
PROPERTY_OBJECT_FORMAT
public static final int
PROPERTY_PROTECTION_STATUS
public static final int
PROPERTY_OBJECT_SIZE
public static final int
PROPERTY_ASSOCIATION_TYPE
public static final int
PROPERTY_ASSOCIATION_DESC
public static final int
PROPERTY_OBJECT_FILE_NAME
public static final int
PROPERTY_DATE_CREATED
public static final int
PROPERTY_DATE_MODIFIED
public static final int
PROPERTY_KEYWORDS
public static final int
PROPERTY_PARENT_OBJECT
public static final int
PROPERTY_ALLOWED_FOLDER_CONTENTS
public static final int
PROPERTY_HIDDEN
public static final int
PROPERTY_SYSTEM_OBJECT
public static final int
PROPERTY_PERSISTENT_UID
public static final int
PROPERTY_SYNC_ID
public static final int
PROPERTY_PROPERTY_BAG
public static final int
PROPERTY_NAME
public static final int
PROPERTY_CREATED_BY
public static final int
PROPERTY_ARTIST
public static final int
PROPERTY_DATE_AUTHORED
public static final int
PROPERTY_DESCRIPTION
public static final int
PROPERTY_URL_REFERENCE
public static final int
PROPERTY_LANGUAGE_LOCALE
public static final int
PROPERTY_COPYRIGHT_INFORMATION
public static final int
PROPERTY_SOURCE
public static final int
PROPERTY_ORIGIN_LOCATION
public static final int
PROPERTY_DATE_ADDED
public static final int
PROPERTY_NON_CONSUMABLE
public static final int
PROPERTY_CORRUPT_UNPLAYABLE
public static final int
PROPERTY_PRODUCER_SERIAL_NUMBER
public static final int
PROPERTY_REPRESENTATIVE_SAMPLE_FORMAT
public static final int
PROPERTY_REPRESENTATIVE_SAMPLE_SIZE
public static final int
PROPERTY_REPRESENTATIVE_SAMPLE_HEIGHT
public static final int
PROPERTY_REPRESENTATIVE_SAMPLE_WIDTH
public static final int
PROPERTY_REPRESENTATIVE_SAMPLE_DURATION
public static final int
PROPERTY_REPRESENTATIVE_SAMPLE_DATA
public static final int
PROPERTY_WIDTH
public static final int
PROPERTY_HEIGHT
public static final int
PROPERTY_DURATION
public static final int
PROPERTY_RATING
public static final int
PROPERTY_TRACK
public static final int
PROPERTY_GENRE
public static final int
PROPERTY_CREDITS
public static final int
PROPERTY_LYRICS
public static final int
PROPERTY_SUBSCRIPTION_CONTENT_ID
public static final int
PROPERTY_PRODUCED_BY
public static final int
PROPERTY_USE_COUNT
public static final int
PROPERTY_SKIP_COUNT
public static final int
PROPERTY_LAST_ACCESSED
public static final int
PROPERTY_PARENTAL_RATING
public static final int
PROPERTY_META_GENRE
public static final int
PROPERTY_COMPOSER
public static final int
PROPERTY_EFFECTIVE_RATING
public static final int
PROPERTY_SUBTITLE
public static final int
PROPERTY_ORIGINAL_RELEASE_DATE
public static final int
PROPERTY_ALBUM_NAME
public static final int
PROPERTY_ALBUM_ARTIST
public static final int
PROPERTY_MOOD
public static final int
PROPERTY_DRM_STATUS
public static final int
PROPERTY_SUB_DESCRIPTION
public static final int
PROPERTY_IS_CROPPED
public static final int
PROPERTY_IS_COLOUR_CORRECTED
public static final int
PROPERTY_IMAGE_BIT_DEPTH
public static final int
PROPERTY_F_NUMBER
public static final int
PROPERTY_EXPOSURE_TIME
public static final int
PROPERTY_EXPOSURE_INDEX
public static final int
PROPERTY_TOTAL_BITRATE
public static final int
PROPERTY_BITRATE_TYPE
public static final int
PROPERTY_SAMPLE_RATE
public static final int
PROPERTY_NUMBER_OF_CHANNELS
public static final int
PROPERTY_AUDIO_BIT_DEPTH
public static final int
PROPERTY_SCAN_TYPE
public static final int
PROPERTY_AUDIO_WAVE_CODEC
public static final int
PROPERTY_AUDIO_BITRATE
public static final int
PROPERTY_VIDEO_FOURCC_CODEC
public static final int
PROPERTY_VIDEO_BITRATE
public static final int
PROPERTY_FRAMES_PER_THOUSAND_SECONDS
public static final int
PROPERTY_KEYFRAME_DISTANCE
public static final int
PROPERTY_BUFFER_SIZE
public static final int
PROPERTY_ENCODING_QUALITY
public static final int
PROPERTY_ENCODING_PROFILE
public static final int
PROPERTY_DISPLAY_NAME
public static final int
DEVICE_PROPERTY_UNDEFINED
public static final int
DEVICE_PROPERTY_BATTERY_LEVEL
public static final int
DEVICE_PROPERTY_FUNCTIONAL_MODE
public static final int
DEVICE_PROPERTY_IMAGE_SIZE
public static final int
DEVICE_PROPERTY_COMPRESSION_SETTING
public static final int
DEVICE_PROPERTY_WHITE_BALANCE
public static final int
DEVICE_PROPERTY_RGB_GAIN
public static final int
DEVICE_PROPERTY_F_NUMBER
public static final int
DEVICE_PROPERTY_FOCAL_LENGTH
public static final int
DEVICE_PROPERTY_FOCUS_DISTANCE
public static final int
DEVICE_PROPERTY_FOCUS_MODE
public static final int
DEVICE_PROPERTY_EXPOSURE_METERING_MODE
public static final int
DEVICE_PROPERTY_FLASH_MODE
public static final int
DEVICE_PROPERTY_EXPOSURE_TIME
public static final int
DEVICE_PROPERTY_EXPOSURE_PROGRAM_MODE
public static final int
DEVICE_PROPERTY_EXPOSURE_INDEX
public static final int
DEVICE_PROPERTY_EXPOSURE_BIAS_COMPENSATION
public static final int
DEVICE_PROPERTY_DATETIME
public static final int
DEVICE_PROPERTY_CAPTURE_DELAY
public static final int
DEVICE_PROPERTY_STILL_CAPTURE_MODE
public static final int
DEVICE_PROPERTY_CONTRAST
public static final int
DEVICE_PROPERTY_SHARPNESS
public static final int
DEVICE_PROPERTY_DIGITAL_ZOOM
public static final int
DEVICE_PROPERTY_EFFECT_MODE
public static final int
DEVICE_PROPERTY_BURST_NUMBER
public static final int
DEVICE_PROPERTY_BURST_INTERVAL
public static final int
DEVICE_PROPERTY_TIMELAPSE_NUMBER
public static final int
DEVICE_PROPERTY_TIMELAPSE_INTERVAL
public static final int
DEVICE_PROPERTY_FOCUS_METERING_MODE
public static final int
DEVICE_PROPERTY_UPLOAD_URL
public static final int
DEVICE_PROPERTY_ARTIST
public static final int
DEVICE_PROPERTY_COPYRIGHT_INFO
public static final int
DEVICE_PROPERTY_SYNCHRONIZATION_PARTNER
public static final int
DEVICE_PROPERTY_DEVICE_FRIENDLY_NAME
public static final int
DEVICE_PROPERTY_VOLUME
public static final int
DEVICE_PROPERTY_SUPPORTED_FORMATS_ORDERED
public static final int
DEVICE_PROPERTY_DEVICE_ICON
public static final int
DEVICE_PROPERTY_PLAYBACK_RATE
public static final int
DEVICE_PROPERTY_PLAYBACK_OBJECT
public static final int
DEVICE_PROPERTY_PLAYBACK_CONTAINER_INDEX
public static final int
DEVICE_PROPERTY_SESSION_INITIATOR_VERSION_INFO
public static final int
DEVICE_PROPERTY_PERCEIVED_DEVICE_TYPE
public static final int
PROTECTION_STATUS_NONE
Object is not protected. It may be modified and deleted, and its properties may be modified.
public static final int
PROTECTION_STATUS_READ_ONLY
Object can not be modified or deleted and its properties can not be modified.
public static final int
PROTECTION_STATUS_READ_ONLY_DATA
Object can not be modified or deleted but its properties are modifiable.
public static final int
PROTECTION_STATUS_NON_TRANSFERABLE_DATA
Object's contents can not be transfered from the device, but the object may be moved or deleted and its properties may be modified.
public static final int
ASSOCIATION_TYPE_GENERIC_FOLDER
Association type for objects representing file system directories.
Constructors Summary
Methods Summary
public static booleanisAbstractObject(int format)
Returns true if the object is abstract (that is, it has no representation in the underlying file system).

param
format the format of the object
return
true if the object is abstract


                                          
         
        switch (format) {
            case FORMAT_ABSTRACT_MULTIMEDIA_ALBUM:
            case FORMAT_ABSTRACT_IMAGE_ALBUM:
            case FORMAT_ABSTRACT_AUDIO_ALBUM:
            case FORMAT_ABSTRACT_VIDEO_ALBUM:
            case FORMAT_ABSTRACT_AV_PLAYLIST:
            case FORMAT_ABSTRACT_AUDIO_PLAYLIST:
            case FORMAT_ABSTRACT_VIDEO_PLAYLIST:
            case FORMAT_ABSTRACT_MEDIACAST:
            case FORMAT_ABSTRACT_DOCUMENT:
                return true;
            default:
                return false;
        }