Added in API level 12

MtpConstants


class MtpConstants
kotlin.Any
   ↳ android.mtp.MtpConstants

A class containing constants in the MTP and PTP specifications.

Summary

Constants
static Int

Association type for objects representing file system directories.

static Int

Format code for 3GP files

static Int

Format code for AAC audio files

static Int

Format code for audio albums

static Int

Format code for abstract audio playlists

static Int

Format code for abstract AV playlists

static Int

Format code for abstract documents

static Int

Format code for image albums

static Int

Format code for abstract mediacasts

static Int

Format code for multimedia albums

static Int

Format code for video albums

static Int

Format code for abstract video playlists

static Int

Format code for AIFF audio files

static Int

Format code for ASF files

static Int

Format code for associations (folders and directories)

static Int

Format code for ASX playlist files

static Int

Format code for Audible audio files

static Int

Format code for AVI video files

static Int

Format code for BMP image files

static Int

Format code for unknown image files.

static Int

Format code for DNG files

static Int

Format code for DPOF files

static Int

Format code for executable files

static Int

Format code for JPEG image files

static Int

Format code for FLAC audio files

static Int

Format code for GIF image files

static Int

Format code for HTML files

static Int

Format code for JFIF image files

static Int

Format code for JP2 files

static Int

Format code for JPX files

static Int

Format code for M3u playlist files

static Int

Format code for MP2 files

static Int

Format code for MP3 audio files

static Int

Format code for MP4 files

static Int

Format code for MPEG video files

static Int

Format code for MPL playlist files

static Int

Format code for MS Excel spreadsheets

static Int

Format code for MS PowerPoint presentatiosn

static Int

Format code for MS Word documents

static Int

Format code for OGG audio files

static Int

Format code for PICT image files

static Int

Format code for PLS playlist files

static Int

Format code for PNG image files

static Int

Format code for script files

static Int

Format code for text files

static Int

Format code for TIFF image files

static Int

Format code for TIFF EP image files

static Int

Undefined format code

static Int

Format code for undefined audio files files

static Int

Format code for undefined collections

static Int

Format code for undefined document files

static Int

Format code for firmware files

static Int

Format code for undefined video files

static Int

Format code for WAV audio files

static Int

Format code for Windows image files

static Int

Format code for WMA audio files

static Int

Format code for WMV video files

static Int

Format code for WPL playlist files

static Int

Format code for XML documents

static Int

Operation code for CloseSession

static Int

Operation code for CopyObject

static Int

Operation code for DeleteObject

static Int

Operation code for FormatStore

static Int

Operation code for GetDeviceInfo

static Int

Operation code for GetDevicePropDesc

static Int

Operation code for GetDevicePropValue

static Int

Operation code for GetNumObjects

static Int

Operation code for GetObject

static Int

Operation code for GetObjectHandles

static Int

Operation code for GetObjectInfo

static Int

Operation code for GetObjectPropsSupported

static Int

Operation code for GetObjectPropDesc

static Int

Operation code for GetObjectPropValue

static Int

Operation code for GetObjectReferences

static Int

Operation code for GetPartialObject

static Int

Operation code for GetPartialObject64

static Int

Operation code for GetStorageInfo

static Int

Operation code for GetStorageIDs

static Int

Operation code for GetThumb

static Int

Operation code for InitiateCapture

static Int

Operation code for InitiateOpenCapture

static Int

Operation code for MoveObject

static Int

Operation code for OpenSession

static Int

Operation code for PowerDown

static Int

Operation code for ResetDevice

static Int

Operation code for ResetDevicePropValue

static Int

Operation code for SelfTest

static Int

Operation code for SendObject

static Int

Operation code for SendObjectInfo

static Int

Operation code for SetDevicePropValue

static Int

Operation code for SetObjectPropValue

static Int

Operation code for SetObjectProtection

static Int

Operation code for SetObjectReferences

static Int

Operation code for Skip

static Int

Operation code for TerminateOpenCapture

static Int

Object is not protected.

static Int

Object's contents can not be transfered from the device, but the object may be moved or deleted and its properties may be modified.

static Int

Object can not be modified or deleted and its properties can not be modified.

static Int

Object can not be modified or deleted but its properties are modifiable.

Public constructors

Public methods
static Boolean

Returns true if the object is abstract (that is, it has no representation in the underlying file system).

Constants

ASSOCIATION_TYPE_GENERIC_FOLDER

Added in API level 12
static val ASSOCIATION_TYPE_GENERIC_FOLDER: Int

Association type for objects representing file system directories.

Value: 1

FORMAT_3GP_CONTAINER

Added in API level 12
static val FORMAT_3GP_CONTAINER: Int

Format code for 3GP files

Value: 47492

FORMAT_AAC

Added in API level 12
static val FORMAT_AAC: Int

Format code for AAC audio files

Value: 47363

FORMAT_ABSTRACT_AUDIO_ALBUM

Added in API level 12
static val FORMAT_ABSTRACT_AUDIO_ALBUM: Int

Format code for audio albums

Value: 47619

FORMAT_ABSTRACT_AUDIO_PLAYLIST

Added in API level 12
static val FORMAT_ABSTRACT_AUDIO_PLAYLIST: Int

Format code for abstract audio playlists

Value: 47625

FORMAT_ABSTRACT_AV_PLAYLIST

Added in API level 12
static val FORMAT_ABSTRACT_AV_PLAYLIST: Int

Format code for abstract AV playlists

Value: 47621

FORMAT_ABSTRACT_DOCUMENT

Added in API level 12
static val FORMAT_ABSTRACT_DOCUMENT: Int

Format code for abstract documents

Value: 47745

FORMAT_ABSTRACT_IMAGE_ALBUM

Added in API level 12
static val FORMAT_ABSTRACT_IMAGE_ALBUM: Int

Format code for image albums

Value: 47618

FORMAT_ABSTRACT_MEDIACAST

Added in API level 12
static val FORMAT_ABSTRACT_MEDIACAST: Int

Format code for abstract mediacasts

Value: 47627

FORMAT_ABSTRACT_MULTIMEDIA_ALBUM

Added in API level 12
static val FORMAT_ABSTRACT_MULTIMEDIA_ALBUM: Int

Format code for multimedia albums

Value: 47617

FORMAT_ABSTRACT_VIDEO_ALBUM

Added in API level 12
static val FORMAT_ABSTRACT_VIDEO_ALBUM: Int

Format code for video albums

Value: 47620

FORMAT_ABSTRACT_VIDEO_PLAYLIST

Added in API level 12
static val FORMAT_ABSTRACT_VIDEO_PLAYLIST: Int

Format code for abstract video playlists

Value: 47626

FORMAT_AIFF

Added in API level 12
static val FORMAT_AIFF: Int

Format code for AIFF audio files

Value: 12295

FORMAT_ASF

Added in API level 12
static val FORMAT_ASF: Int

Format code for ASF files

Value: 12300

FORMAT_ASSOCIATION

Added in API level 12
static val FORMAT_ASSOCIATION: Int

Format code for associations (folders and directories)

Value: 12289

FORMAT_ASX_PLAYLIST

Added in API level 12
static val FORMAT_ASX_PLAYLIST: Int

Format code for ASX playlist files

Value: 47635

FORMAT_AUDIBLE

Added in API level 12
static val FORMAT_AUDIBLE: Int

Format code for Audible audio files

Value: 47364

FORMAT_AVI

Added in API level 12
static val FORMAT_AVI: Int

Format code for AVI video files

Value: 12298

FORMAT_BMP

Added in API level 12
static val FORMAT_BMP: Int

Format code for BMP image files

Value: 14340

FORMAT_DEFINED

Added in API level 24
static val FORMAT_DEFINED: Int

Format code for unknown image files.

Will be used for the formats which are not specified in PTP specification. For instance, WEBP and WBMP.

Value: 14336

FORMAT_DNG

Added in API level 24
static val FORMAT_DNG: Int

Format code for DNG files

Value: 14353

FORMAT_DPOF

Added in API level 12
static val FORMAT_DPOF: Int

Format code for DPOF files

Value: 12294

FORMAT_EXECUTABLE

Added in API level 12
static val FORMAT_EXECUTABLE: Int

Format code for executable files

Value: 12291

FORMAT_EXIF_JPEG

Added in API level 12
static val FORMAT_EXIF_JPEG: Int

Format code for JPEG image files

Value: 14337

FORMAT_FLAC

Added in API level 12
static val FORMAT_FLAC: Int

Format code for FLAC audio files

Value: 47366

FORMAT_GIF

Added in API level 12
static val FORMAT_GIF: Int

Format code for GIF image files

Value: 14343

FORMAT_HTML

Added in API level 12
static val FORMAT_HTML: Int

Format code for HTML files

Value: 12293

FORMAT_JFIF

Added in API level 12
static val FORMAT_JFIF: Int

Format code for JFIF image files

Value: 14344

FORMAT_JP2

Added in API level 12
static val FORMAT_JP2: Int

Format code for JP2 files

Value: 14351

FORMAT_JPX

Added in API level 12
static val FORMAT_JPX: Int

Format code for JPX files

Value: 14352

FORMAT_M3U_PLAYLIST

Added in API level 12
static val FORMAT_M3U_PLAYLIST: Int

Format code for M3u playlist files

Value: 47633

FORMAT_MP2

Added in API level 12
static val FORMAT_MP2: Int

Format code for MP2 files

Value: 47491

FORMAT_MP3

Added in API level 12
static val FORMAT_MP3: Int

Format code for MP3 audio files

Value: 12297

FORMAT_MP4_CONTAINER

Added in API level 12
static val FORMAT_MP4_CONTAINER: Int

Format code for MP4 files

Value: 47490

FORMAT_MPEG

Added in API level 12
static val FORMAT_MPEG: Int

Format code for MPEG video files

Value: 12299

FORMAT_MPL_PLAYLIST

Added in API level 12
static val FORMAT_MPL_PLAYLIST: Int

Format code for MPL playlist files

Value: 47634

FORMAT_MS_EXCEL_SPREADSHEET

Added in API level 12
static val FORMAT_MS_EXCEL_SPREADSHEET: Int

Format code for MS Excel spreadsheets

Value: 47749

FORMAT_MS_POWERPOINT_PRESENTATION

Added in API level 12
static val FORMAT_MS_POWERPOINT_PRESENTATION: Int

Format code for MS PowerPoint presentatiosn

Value: 47750

FORMAT_MS_WORD_DOCUMENT

Added in API level 12
static val FORMAT_MS_WORD_DOCUMENT: Int

Format code for MS Word documents

Value: 47747

FORMAT_OGG

Added in API level 12
static val FORMAT_OGG: Int

Format code for OGG audio files

Value: 47362

FORMAT_PICT

Added in API level 12
static val FORMAT_PICT: Int

Format code for PICT image files

Value: 14346

FORMAT_PLS_PLAYLIST

Added in API level 12
static val FORMAT_PLS_PLAYLIST: Int

Format code for PLS playlist files

Value: 47636

FORMAT_PNG

Added in API level 12
static val FORMAT_PNG: Int

Format code for PNG image files

Value: 14347

FORMAT_SCRIPT

Added in API level 12
static val FORMAT_SCRIPT: Int

Format code for script files

Value: 12290

FORMAT_TEXT

Added in API level 12
static val FORMAT_TEXT: Int

Format code for text files

Value: 12292

FORMAT_TIFF

Added in API level 12
static val FORMAT_TIFF: Int

Format code for TIFF image files

Value: 14349

FORMAT_TIFF_EP

Added in API level 12
static val FORMAT_TIFF_EP: Int

Format code for TIFF EP image files

Value: 14338

FORMAT_UNDEFINED

Added in API level 12
static val FORMAT_UNDEFINED: Int

Undefined format code

Value: 12288

FORMAT_UNDEFINED_AUDIO

Added in API level 12
static val FORMAT_UNDEFINED_AUDIO: Int

Format code for undefined audio files files

Value: 47360

FORMAT_UNDEFINED_COLLECTION

Added in API level 12
static val FORMAT_UNDEFINED_COLLECTION: Int

Format code for undefined collections

Value: 47616

FORMAT_UNDEFINED_DOCUMENT

Added in API level 12
static val FORMAT_UNDEFINED_DOCUMENT: Int

Format code for undefined document files

Value: 47744

FORMAT_UNDEFINED_FIRMWARE

Added in API level 12
static val FORMAT_UNDEFINED_FIRMWARE: Int

Format code for firmware files

Value: 47106

FORMAT_UNDEFINED_VIDEO

Added in API level 12
static val FORMAT_UNDEFINED_VIDEO: Int

Format code for undefined video files

Value: 47488

FORMAT_WAV

Added in API level 12
static val FORMAT_WAV: Int

Format code for WAV audio files

Value: 12296

FORMAT_WINDOWS_IMAGE_FORMAT

Added in API level 12
static val FORMAT_WINDOWS_IMAGE_FORMAT: Int

Format code for Windows image files

Value: 47233

FORMAT_WMA

Added in API level 12
static val FORMAT_WMA: Int

Format code for WMA audio files

Value: 47361

FORMAT_WMV

Added in API level 12
static val FORMAT_WMV: Int

Format code for WMV video files

Value: 47489

FORMAT_WPL_PLAYLIST

Added in API level 12
static val FORMAT_WPL_PLAYLIST: Int

Format code for WPL playlist files

Value: 47632

FORMAT_XML_DOCUMENT

Added in API level 12
static val FORMAT_XML_DOCUMENT: Int

Format code for XML documents

Value: 47746

OPERATION_CLOSE_SESSION

Added in API level 24
static val OPERATION_CLOSE_SESSION: Int

Operation code for CloseSession

Value: 4099

OPERATION_COPY_OBJECT

Added in API level 24
static val OPERATION_COPY_OBJECT: Int

Operation code for CopyObject

Value: 4122

OPERATION_DELETE_OBJECT

Added in API level 24
static val OPERATION_DELETE_OBJECT: Int

Operation code for DeleteObject

Value: 4107

OPERATION_FORMAT_STORE

Added in API level 24
static val OPERATION_FORMAT_STORE: Int

Operation code for FormatStore

Value: 4111

OPERATION_GET_DEVICE_INFO

Added in API level 24
static val OPERATION_GET_DEVICE_INFO: Int

Operation code for GetDeviceInfo

Value: 4097

OPERATION_GET_DEVICE_PROP_DESC

Added in API level 24
static val OPERATION_GET_DEVICE_PROP_DESC: Int

Operation code for GetDevicePropDesc

Value: 4116

OPERATION_GET_DEVICE_PROP_VALUE

Added in API level 24
static val OPERATION_GET_DEVICE_PROP_VALUE: Int

Operation code for GetDevicePropValue

Value: 4117

OPERATION_GET_NUM_OBJECTS

Added in API level 24
static val OPERATION_GET_NUM_OBJECTS: Int

Operation code for GetNumObjects

Value: 4102

OPERATION_GET_OBJECT

Added in API level 24
static val OPERATION_GET_OBJECT: Int

Operation code for GetObject

Value: 4105

OPERATION_GET_OBJECT_HANDLES

Added in API level 24
static val OPERATION_GET_OBJECT_HANDLES: Int

Operation code for GetObjectHandles

Value: 4103

OPERATION_GET_OBJECT_INFO

Added in API level 24
static val OPERATION_GET_OBJECT_INFO: Int

Operation code for GetObjectInfo

Value: 4104

OPERATION_GET_OBJECT_PROPS_SUPPORTED

Added in API level 24
static val OPERATION_GET_OBJECT_PROPS_SUPPORTED: Int

Operation code for GetObjectPropsSupported

Value: 38913

OPERATION_GET_OBJECT_PROP_DESC

Added in API level 24
static val OPERATION_GET_OBJECT_PROP_DESC: Int

Operation code for GetObjectPropDesc

Value: 38914

OPERATION_GET_OBJECT_PROP_VALUE

Added in API level 24
static val OPERATION_GET_OBJECT_PROP_VALUE: Int

Operation code for GetObjectPropValue

Value: 38915

OPERATION_GET_OBJECT_REFERENCES

Added in API level 24
static val OPERATION_GET_OBJECT_REFERENCES: Int

Operation code for GetObjectReferences

Value: 38928

OPERATION_GET_PARTIAL_OBJECT

Added in API level 24
static val OPERATION_GET_PARTIAL_OBJECT: Int

Operation code for GetPartialObject

Value: 4123

OPERATION_GET_PARTIAL_OBJECT_64

Added in API level 24
static val OPERATION_GET_PARTIAL_OBJECT_64: Int

Operation code for GetPartialObject64

Value: 38337

OPERATION_GET_STORAGE_INFO

Added in API level 24
static val OPERATION_GET_STORAGE_INFO: Int

Operation code for GetStorageInfo

Value: 4101

OPERATION_GET_STORAGE_I_DS

Added in API level 24
static val OPERATION_GET_STORAGE_I_DS: Int

Operation code for GetStorageIDs

Value: 4100

OPERATION_GET_THUMB

Added in API level 24
static val OPERATION_GET_THUMB: Int

Operation code for GetThumb

Value: 4106

OPERATION_INITIATE_CAPTURE

Added in API level 24
static val OPERATION_INITIATE_CAPTURE: Int

Operation code for InitiateCapture

Value: 4110

OPERATION_INITIATE_OPEN_CAPTURE

Added in API level 24
static val OPERATION_INITIATE_OPEN_CAPTURE: Int

Operation code for InitiateOpenCapture

Value: 4124

OPERATION_MOVE_OBJECT

Added in API level 24
static val OPERATION_MOVE_OBJECT: Int

Operation code for MoveObject

Value: 4121

OPERATION_OPEN_SESSION

Added in API level 24
static val OPERATION_OPEN_SESSION: Int

Operation code for OpenSession

Value: 4098

OPERATION_POWER_DOWN

Added in API level 24
static val OPERATION_POWER_DOWN: Int

Operation code for PowerDown

Value: 4115

OPERATION_RESET_DEVICE

Added in API level 24
static val OPERATION_RESET_DEVICE: Int

Operation code for ResetDevice

Value: 4112

OPERATION_RESET_DEVICE_PROP_VALUE

Added in API level 24
static val OPERATION_RESET_DEVICE_PROP_VALUE: Int

Operation code for ResetDevicePropValue

Value: 4119

OPERATION_SELF_TEST

Added in API level 24
static val OPERATION_SELF_TEST: Int

Operation code for SelfTest

Value: 4113

OPERATION_SEND_OBJECT

Added in API level 24
static val OPERATION_SEND_OBJECT: Int

Operation code for SendObject

Value: 4109

OPERATION_SEND_OBJECT_INFO

Added in API level 24
static val OPERATION_SEND_OBJECT_INFO: Int

Operation code for SendObjectInfo

Value: 4108

OPERATION_SET_DEVICE_PROP_VALUE

Added in API level 24
static val OPERATION_SET_DEVICE_PROP_VALUE: Int

Operation code for SetDevicePropValue

Value: 4118

OPERATION_SET_OBJECT_PROP_VALUE

Added in API level 24
static val OPERATION_SET_OBJECT_PROP_VALUE: Int

Operation code for SetObjectPropValue

Value: 38916

OPERATION_SET_OBJECT_PROTECTION

Added in API level 24
static val OPERATION_SET_OBJECT_PROTECTION: Int

Operation code for SetObjectProtection

Value: 4114

OPERATION_SET_OBJECT_REFERENCES

Added in API level 24
static val OPERATION_SET_OBJECT_REFERENCES: Int

Operation code for SetObjectReferences

Value: 38929

OPERATION_SKIP

Added in API level 24
static val OPERATION_SKIP: Int

Operation code for Skip

Value: 38944

OPERATION_TERMINATE_OPEN_CAPTURE

Added in API level 24
static val OPERATION_TERMINATE_OPEN_CAPTURE: Int

Operation code for TerminateOpenCapture

Value: 4120

PROTECTION_STATUS_NONE

Added in API level 12
static val PROTECTION_STATUS_NONE: Int

Object is not protected. It may be modified and deleted, and its properties may be modified.

Value: 0

PROTECTION_STATUS_NON_TRANSFERABLE_DATA

Added in API level 12
static val PROTECTION_STATUS_NON_TRANSFERABLE_DATA: Int

Object's contents can not be transfered from the device, but the object may be moved or deleted and its properties may be modified.

Value: 32771

PROTECTION_STATUS_READ_ONLY

Added in API level 12
static val PROTECTION_STATUS_READ_ONLY: Int

Object can not be modified or deleted and its properties can not be modified.

Value: 32769

PROTECTION_STATUS_READ_ONLY_DATA

Added in API level 12
static val PROTECTION_STATUS_READ_ONLY_DATA: Int

Object can not be modified or deleted but its properties are modifiable.

Value: 32770

Public constructors

MtpConstants

MtpConstants()

Public methods

isAbstractObject

Added in API level 12
static fun isAbstractObject(format: Int): Boolean

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
Return
Boolean true if the object is abstract