public
final
class
MtpConstants
extends Object
java.lang.Object | |
↳ | android.mtp.MtpConstants |
A class containing constants in the MTP and PTP specifications.
Constants | |
---|---|
int |
ASSOCIATION_TYPE_GENERIC_FOLDER
Association type for objects representing file system directories. |
int |
FORMAT_3GP_CONTAINER
Format code for 3GP files |
int |
FORMAT_AAC
Format code for AAC audio files |
int |
FORMAT_ABSTRACT_AUDIO_ALBUM
Format code for audio albums |
int |
FORMAT_ABSTRACT_AUDIO_PLAYLIST
Format code for abstract audio playlists |
int |
FORMAT_ABSTRACT_AV_PLAYLIST
Format code for abstract AV playlists |
int |
FORMAT_ABSTRACT_DOCUMENT
Format code for abstract documents |
int |
FORMAT_ABSTRACT_IMAGE_ALBUM
Format code for image albums |
int |
FORMAT_ABSTRACT_MEDIACAST
Format code for abstract mediacasts |
int |
FORMAT_ABSTRACT_MULTIMEDIA_ALBUM
Format code for multimedia albums |
int |
FORMAT_ABSTRACT_VIDEO_ALBUM
Format code for video albums |
int |
FORMAT_ABSTRACT_VIDEO_PLAYLIST
Format code for abstract video playlists |
int |
FORMAT_AIFF
Format code for AIFF audio files |
int |
FORMAT_ASF
Format code for ASF files |
int |
FORMAT_ASSOCIATION
Format code for associations (folders and directories) |
int |
FORMAT_ASX_PLAYLIST
Format code for ASX playlist files |
int |
FORMAT_AUDIBLE
Format code for Audible audio files |
int |
FORMAT_AVI
Format code for AVI video files |
int |
FORMAT_BMP
Format code for BMP image files |
int |
FORMAT_DEFINED
Format code for unknown image files. |
int |
FORMAT_DNG
Format code for DNG files |
int |
FORMAT_DPOF
Format code for DPOF files |
int |
FORMAT_EXECUTABLE
Format code for executable files |
int |
FORMAT_EXIF_JPEG
Format code for JPEG image files |
int |
FORMAT_FLAC
Format code for FLAC audio files |
int |
FORMAT_GIF
Format code for GIF image files |
int |
FORMAT_HTML
Format code for HTML files |
int |
FORMAT_JFIF
Format code for JFIF image files |
int |
FORMAT_JP2
Format code for JP2 files |
int |
FORMAT_JPX
Format code for JPX files |
int |
FORMAT_M3U_PLAYLIST
Format code for M3u playlist files |
int |
FORMAT_MP2
Format code for MP2 files |
int |
FORMAT_MP3
Format code for MP3 audio files |
int |
FORMAT_MP4_CONTAINER
Format code for MP4 files |
int |
FORMAT_MPEG
Format code for MPEG video files |
int |
FORMAT_MPL_PLAYLIST
Format code for MPL playlist files |
int |
FORMAT_MS_EXCEL_SPREADSHEET
Format code for MS Excel spreadsheets |
int |
FORMAT_MS_POWERPOINT_PRESENTATION
Format code for MS PowerPoint presentatiosn |
int |
FORMAT_MS_WORD_DOCUMENT
Format code for MS Word documents |
int |
FORMAT_OGG
Format code for OGG audio files |
int |
FORMAT_PICT
Format code for PICT image files |
int |
FORMAT_PLS_PLAYLIST
Format code for PLS playlist files |
int |
FORMAT_PNG
Format code for PNG image files |
int |
FORMAT_SCRIPT
Format code for script files |
int |
FORMAT_TEXT
Format code for text files |
int |
FORMAT_TIFF
Format code for TIFF image files |
int |
FORMAT_TIFF_EP
Format code for TIFF EP image files |
int |
FORMAT_UNDEFINED
Undefined format code |
int |
FORMAT_UNDEFINED_AUDIO
Format code for undefined audio files files |
int |
FORMAT_UNDEFINED_COLLECTION
Format code for undefined collections |
int |
FORMAT_UNDEFINED_DOCUMENT
Format code for undefined document files |
int |
FORMAT_UNDEFINED_FIRMWARE
Format code for firmware files |
int |
FORMAT_UNDEFINED_VIDEO
Format code for undefined video files |
int |
FORMAT_WAV
Format code for WAV audio files |
int |
FORMAT_WINDOWS_IMAGE_FORMAT
Format code for Windows image files |
int |
FORMAT_WMA
Format code for WMA audio files |
int |
FORMAT_WMV
Format code for WMV video files |
int |
FORMAT_WPL_PLAYLIST
Format code for WPL playlist files |
int |
FORMAT_XML_DOCUMENT
Format code for XML documents |
int |
OPERATION_CLOSE_SESSION
Operation code for CloseSession |
int |
OPERATION_COPY_OBJECT
Operation code for CopyObject |
int |
OPERATION_DELETE_OBJECT
Operation code for DeleteObject |
int |
OPERATION_FORMAT_STORE
Operation code for FormatStore |
int |
OPERATION_GET_DEVICE_INFO
Operation code for GetDeviceInfo |
int |
OPERATION_GET_DEVICE_PROP_DESC
Operation code for GetDevicePropDesc |
int |
OPERATION_GET_DEVICE_PROP_VALUE
Operation code for GetDevicePropValue |
int |
OPERATION_GET_NUM_OBJECTS
Operation code for GetNumObjects |
int |
OPERATION_GET_OBJECT
Operation code for GetObject |
int |
OPERATION_GET_OBJECT_HANDLES
Operation code for GetObjectHandles |
int |
OPERATION_GET_OBJECT_INFO
Operation code for GetObjectInfo |
int |
OPERATION_GET_OBJECT_PROPS_SUPPORTED
Operation code for GetObjectPropsSupported |
int |
OPERATION_GET_OBJECT_PROP_DESC
Operation code for GetObjectPropDesc |
int |
OPERATION_GET_OBJECT_PROP_VALUE
Operation code for GetObjectPropValue |
int |
OPERATION_GET_OBJECT_REFERENCES
Operation code for GetObjectReferences |
int |
OPERATION_GET_PARTIAL_OBJECT
Operation code for GetPartialObject |
int |
OPERATION_GET_PARTIAL_OBJECT_64
Operation code for GetPartialObject64 |
int |
OPERATION_GET_STORAGE_INFO
Operation code for GetStorageInfo |
int |
OPERATION_GET_STORAGE_I_DS
Operation code for GetStorageIDs |
int |
OPERATION_GET_THUMB
Operation code for GetThumb |
int |
OPERATION_INITIATE_CAPTURE
Operation code for InitiateCapture |
int |
OPERATION_INITIATE_OPEN_CAPTURE
Operation code for InitiateOpenCapture |
int |
OPERATION_MOVE_OBJECT
Operation code for MoveObject |
int |
OPERATION_OPEN_SESSION
Operation code for OpenSession |
int |
OPERATION_POWER_DOWN
Operation code for PowerDown |
int |
OPERATION_RESET_DEVICE
Operation code for ResetDevice |
int |
OPERATION_RESET_DEVICE_PROP_VALUE
Operation code for ResetDevicePropValue |
int |
OPERATION_SELF_TEST
Operation code for SelfTest |
int |
OPERATION_SEND_OBJECT
Operation code for SendObject |
int |
OPERATION_SEND_OBJECT_INFO
Operation code for SendObjectInfo |
int |
OPERATION_SET_DEVICE_PROP_VALUE
Operation code for SetDevicePropValue |
int |
OPERATION_SET_OBJECT_PROP_VALUE
Operation code for SetObjectPropValue |
int |
OPERATION_SET_OBJECT_PROTECTION
Operation code for SetObjectProtection |
int |
OPERATION_SET_OBJECT_REFERENCES
Operation code for SetObjectReferences |
int |
OPERATION_SKIP
Operation code for Skip |
int |
OPERATION_TERMINATE_OPEN_CAPTURE
Operation code for TerminateOpenCapture |
int |
PROTECTION_STATUS_NONE
Object is not protected. |
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. |
int |
PROTECTION_STATUS_READ_ONLY
Object can not be modified or deleted and its properties can not be modified. |
int |
PROTECTION_STATUS_READ_ONLY_DATA
Object can not be modified or deleted but its properties are modifiable. |
Public constructors | |
---|---|
MtpConstants()
|
Public methods | |
---|---|
static
boolean
|
isAbstractObject(int format)
Returns true if the object is abstract (that is, it has no representation in the underlying file system). |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int ASSOCIATION_TYPE_GENERIC_FOLDER
Association type for objects representing file system directories.
Constant Value: 1 (0x00000001)
int FORMAT_3GP_CONTAINER
Format code for 3GP files
Constant Value: 47492 (0x0000b984)
int FORMAT_AAC
Format code for AAC audio files
Constant Value: 47363 (0x0000b903)
int FORMAT_ABSTRACT_AUDIO_ALBUM
Format code for audio albums
Constant Value: 47619 (0x0000ba03)
int FORMAT_ABSTRACT_AUDIO_PLAYLIST
Format code for abstract audio playlists
Constant Value: 47625 (0x0000ba09)
int FORMAT_ABSTRACT_AV_PLAYLIST
Format code for abstract AV playlists
Constant Value: 47621 (0x0000ba05)
int FORMAT_ABSTRACT_DOCUMENT
Format code for abstract documents
Constant Value: 47745 (0x0000ba81)
int FORMAT_ABSTRACT_IMAGE_ALBUM
Format code for image albums
Constant Value: 47618 (0x0000ba02)
int FORMAT_ABSTRACT_MEDIACAST
Format code for abstract mediacasts
Constant Value: 47627 (0x0000ba0b)
int FORMAT_ABSTRACT_MULTIMEDIA_ALBUM
Format code for multimedia albums
Constant Value: 47617 (0x0000ba01)
int FORMAT_ABSTRACT_VIDEO_ALBUM
Format code for video albums
Constant Value: 47620 (0x0000ba04)
int FORMAT_ABSTRACT_VIDEO_PLAYLIST
Format code for abstract video playlists
Constant Value: 47626 (0x0000ba0a)
int FORMAT_AIFF
Format code for AIFF audio files
Constant Value: 12295 (0x00003007)
int FORMAT_ASF
Format code for ASF files
Constant Value: 12300 (0x0000300c)
int FORMAT_ASSOCIATION
Format code for associations (folders and directories)
Constant Value: 12289 (0x00003001)
int FORMAT_ASX_PLAYLIST
Format code for ASX playlist files
Constant Value: 47635 (0x0000ba13)
int FORMAT_AUDIBLE
Format code for Audible audio files
Constant Value: 47364 (0x0000b904)
int FORMAT_AVI
Format code for AVI video files
Constant Value: 12298 (0x0000300a)
int FORMAT_BMP
Format code for BMP image files
Constant Value: 14340 (0x00003804)
int FORMAT_DEFINED
Format code for unknown image files.
Will be used for the formats which are not specified in PTP specification. For instance, WEBP and WBMP.
Constant Value: 14336 (0x00003800)
int FORMAT_DNG
Format code for DNG files
Constant Value: 14353 (0x00003811)
int FORMAT_DPOF
Format code for DPOF files
Constant Value: 12294 (0x00003006)
int FORMAT_EXECUTABLE
Format code for executable files
Constant Value: 12291 (0x00003003)
int FORMAT_EXIF_JPEG
Format code for JPEG image files
Constant Value: 14337 (0x00003801)
int FORMAT_FLAC
Format code for FLAC audio files
Constant Value: 47366 (0x0000b906)
int FORMAT_GIF
Format code for GIF image files
Constant Value: 14343 (0x00003807)
int FORMAT_HTML
Format code for HTML files
Constant Value: 12293 (0x00003005)
int FORMAT_JFIF
Format code for JFIF image files
Constant Value: 14344 (0x00003808)
int FORMAT_JP2
Format code for JP2 files
Constant Value: 14351 (0x0000380f)
int FORMAT_JPX
Format code for JPX files
Constant Value: 14352 (0x00003810)
int FORMAT_M3U_PLAYLIST
Format code for M3u playlist files
Constant Value: 47633 (0x0000ba11)
int FORMAT_MP2
Format code for MP2 files
Constant Value: 47491 (0x0000b983)
int FORMAT_MP3
Format code for MP3 audio files
Constant Value: 12297 (0x00003009)
int FORMAT_MP4_CONTAINER
Format code for MP4 files
Constant Value: 47490 (0x0000b982)
int FORMAT_MPEG
Format code for MPEG video files
Constant Value: 12299 (0x0000300b)
int FORMAT_MPL_PLAYLIST
Format code for MPL playlist files
Constant Value: 47634 (0x0000ba12)
int FORMAT_MS_EXCEL_SPREADSHEET
Format code for MS Excel spreadsheets
Constant Value: 47749 (0x0000ba85)
int FORMAT_MS_POWERPOINT_PRESENTATION
Format code for MS PowerPoint presentatiosn
Constant Value: 47750 (0x0000ba86)
int FORMAT_MS_WORD_DOCUMENT
Format code for MS Word documents
Constant Value: 47747 (0x0000ba83)
int FORMAT_OGG
Format code for OGG audio files
Constant Value: 47362 (0x0000b902)
int FORMAT_PICT
Format code for PICT image files
Constant Value: 14346 (0x0000380a)
int FORMAT_PLS_PLAYLIST
Format code for PLS playlist files
Constant Value: 47636 (0x0000ba14)
int FORMAT_PNG
Format code for PNG image files
Constant Value: 14347 (0x0000380b)
int FORMAT_SCRIPT
Format code for script files
Constant Value: 12290 (0x00003002)
int FORMAT_TEXT
Format code for text files
Constant Value: 12292 (0x00003004)
int FORMAT_TIFF
Format code for TIFF image files
Constant Value: 14349 (0x0000380d)
int FORMAT_TIFF_EP
Format code for TIFF EP image files
Constant Value: 14338 (0x00003802)
int FORMAT_UNDEFINED
Undefined format code
Constant Value: 12288 (0x00003000)
int FORMAT_UNDEFINED_AUDIO
Format code for undefined audio files files
Constant Value: 47360 (0x0000b900)
int FORMAT_UNDEFINED_COLLECTION
Format code for undefined collections
Constant Value: 47616 (0x0000ba00)
int FORMAT_UNDEFINED_DOCUMENT
Format code for undefined document files
Constant Value: 47744 (0x0000ba80)
int FORMAT_UNDEFINED_FIRMWARE
Format code for firmware files
Constant Value: 47106 (0x0000b802)
int FORMAT_UNDEFINED_VIDEO
Format code for undefined video files
Constant Value: 47488 (0x0000b980)
int FORMAT_WAV
Format code for WAV audio files
Constant Value: 12296 (0x00003008)
int FORMAT_WINDOWS_IMAGE_FORMAT
Format code for Windows image files
Constant Value: 47233 (0x0000b881)
int FORMAT_WMA
Format code for WMA audio files
Constant Value: 47361 (0x0000b901)
int FORMAT_WMV
Format code for WMV video files
Constant Value: 47489 (0x0000b981)
int FORMAT_WPL_PLAYLIST
Format code for WPL playlist files
Constant Value: 47632 (0x0000ba10)
int FORMAT_XML_DOCUMENT
Format code for XML documents
Constant Value: 47746 (0x0000ba82)
int OPERATION_CLOSE_SESSION
Operation code for CloseSession
Constant Value: 4099 (0x00001003)
int OPERATION_COPY_OBJECT
Operation code for CopyObject
Constant Value: 4122 (0x0000101a)
int OPERATION_DELETE_OBJECT
Operation code for DeleteObject
Constant Value: 4107 (0x0000100b)
int OPERATION_FORMAT_STORE
Operation code for FormatStore
Constant Value: 4111 (0x0000100f)
int OPERATION_GET_DEVICE_INFO
Operation code for GetDeviceInfo
Constant Value: 4097 (0x00001001)
int OPERATION_GET_DEVICE_PROP_DESC
Operation code for GetDevicePropDesc
Constant Value: 4116 (0x00001014)
int OPERATION_GET_DEVICE_PROP_VALUE
Operation code for GetDevicePropValue
Constant Value: 4117 (0x00001015)
int OPERATION_GET_NUM_OBJECTS
Operation code for GetNumObjects
Constant Value: 4102 (0x00001006)
int OPERATION_GET_OBJECT
Operation code for GetObject
Constant Value: 4105 (0x00001009)
int OPERATION_GET_OBJECT_HANDLES
Operation code for GetObjectHandles
Constant Value: 4103 (0x00001007)
int OPERATION_GET_OBJECT_INFO
Operation code for GetObjectInfo
Constant Value: 4104 (0x00001008)
int OPERATION_GET_OBJECT_PROPS_SUPPORTED
Operation code for GetObjectPropsSupported
Constant Value: 38913 (0x00009801)
int OPERATION_GET_OBJECT_PROP_DESC
Operation code for GetObjectPropDesc
Constant Value: 38914 (0x00009802)
int OPERATION_GET_OBJECT_PROP_VALUE
Operation code for GetObjectPropValue
Constant Value: 38915 (0x00009803)
int OPERATION_GET_OBJECT_REFERENCES
Operation code for GetObjectReferences
Constant Value: 38928 (0x00009810)
int OPERATION_GET_PARTIAL_OBJECT
Operation code for GetPartialObject
Constant Value: 4123 (0x0000101b)
int OPERATION_GET_PARTIAL_OBJECT_64
Operation code for GetPartialObject64
Constant Value: 38337 (0x000095c1)
int OPERATION_GET_STORAGE_INFO
Operation code for GetStorageInfo
Constant Value: 4101 (0x00001005)
int OPERATION_GET_STORAGE_I_DS
Operation code for GetStorageIDs
Constant Value: 4100 (0x00001004)
int OPERATION_GET_THUMB
Operation code for GetThumb
Constant Value: 4106 (0x0000100a)
int OPERATION_INITIATE_CAPTURE
Operation code for InitiateCapture
Constant Value: 4110 (0x0000100e)
int OPERATION_INITIATE_OPEN_CAPTURE
Operation code for InitiateOpenCapture
Constant Value: 4124 (0x0000101c)
int OPERATION_MOVE_OBJECT
Operation code for MoveObject
Constant Value: 4121 (0x00001019)
int OPERATION_OPEN_SESSION
Operation code for OpenSession
Constant Value: 4098 (0x00001002)
int OPERATION_POWER_DOWN
Operation code for PowerDown
Constant Value: 4115 (0x00001013)
int OPERATION_RESET_DEVICE
Operation code for ResetDevice
Constant Value: 4112 (0x00001010)
int OPERATION_RESET_DEVICE_PROP_VALUE
Operation code for ResetDevicePropValue
Constant Value: 4119 (0x00001017)
int OPERATION_SELF_TEST
Operation code for SelfTest
Constant Value: 4113 (0x00001011)
int OPERATION_SEND_OBJECT
Operation code for SendObject
Constant Value: 4109 (0x0000100d)
int OPERATION_SEND_OBJECT_INFO
Operation code for SendObjectInfo
Constant Value: 4108 (0x0000100c)
int OPERATION_SET_DEVICE_PROP_VALUE
Operation code for SetDevicePropValue
Constant Value: 4118 (0x00001016)
int OPERATION_SET_OBJECT_PROP_VALUE
Operation code for SetObjectPropValue
Constant Value: 38916 (0x00009804)
int OPERATION_SET_OBJECT_PROTECTION
Operation code for SetObjectProtection
Constant Value: 4114 (0x00001012)
int OPERATION_SET_OBJECT_REFERENCES
Operation code for SetObjectReferences
Constant Value: 38929 (0x00009811)
int OPERATION_SKIP
Operation code for Skip
Constant Value: 38944 (0x00009820)
int OPERATION_TERMINATE_OPEN_CAPTURE
Operation code for TerminateOpenCapture
Constant Value: 4120 (0x00001018)
int PROTECTION_STATUS_NONE
Object is not protected. It may be modified and deleted, and its properties may be modified.
Constant Value: 0 (0x00000000)
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.
Constant Value: 32771 (0x00008003)
int PROTECTION_STATUS_READ_ONLY
Object can not be modified or deleted and its properties can not be modified.
Constant Value: 32769 (0x00008001)
int PROTECTION_STATUS_READ_ONLY_DATA
Object can not be modified or deleted but its properties are modifiable.
Constant Value: 32770 (0x00008002)
boolean isAbstractObject (int format)
Returns true if the object is abstract (that is, it has no representation in the underlying file system).
Parameters | |
---|---|
format |
int :
the format of the object |
Returns | |
---|---|
boolean |
true if the object is abstract |