Language

OperationCode Enum

Definition

Identifies MTP and PTP operations. The values correspond to the OPERATION_ constants in MtpConstants.java in Android 16 (android-16.0.0_r1). A code does not indicate that a device supports the operation.

public enum OperationCode
type OperationCode = 
Inheritance
OperationCode

Fields

Name Value Description
GetDeviceInfo 4097

Operation code for GetDeviceInfo

Android reference for android.mtp.MtpConstants.OPERATION_GET_DEVICE_INFO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

OpenSession 4098

Operation code for OpenSession

Android reference for android.mtp.MtpConstants.OPERATION_OPEN_SESSION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

CloseSession 4099

Operation code for CloseSession

Android reference for android.mtp.MtpConstants.OPERATION_CLOSE_SESSION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetStorageIDs 4100

Operation code for GetStorageIDs

Android reference for android.mtp.MtpConstants.OPERATION_GET_STORAGE_I_DS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetStorageInfo 4101

Operation code for GetStorageInfo

Android reference for android.mtp.MtpConstants.OPERATION_GET_STORAGE_INFO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetNumObjects 4102

Operation code for GetNumObjects

Android reference for android.mtp.MtpConstants.OPERATION_GET_NUM_OBJECTS.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetObjectHandles 4103

Operation code for GetObjectHandles

Android reference for android.mtp.MtpConstants.OPERATION_GET_OBJECT_HANDLES.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetObjectInfo 4104

Operation code for GetObjectInfo

Android reference for android.mtp.MtpConstants.OPERATION_GET_OBJECT_INFO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetObject 4105

Operation code for GetObject

Android reference for android.mtp.MtpConstants.OPERATION_GET_OBJECT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetThumb 4106

Operation code for GetThumb

Android reference for android.mtp.MtpConstants.OPERATION_GET_THUMB.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

DeleteObject 4107

Operation code for DeleteObject

Android reference for android.mtp.MtpConstants.OPERATION_DELETE_OBJECT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SendObjectInfo 4108

Operation code for SendObjectInfo

Android reference for android.mtp.MtpConstants.OPERATION_SEND_OBJECT_INFO.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SendObject 4109

Operation code for SendObject

Android reference for android.mtp.MtpConstants.OPERATION_SEND_OBJECT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InitiateCapture 4110

Operation code for InitiateCapture

Android reference for android.mtp.MtpConstants.OPERATION_INITIATE_CAPTURE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

FormatStore 4111

Operation code for FormatStore

Android reference for android.mtp.MtpConstants.OPERATION_FORMAT_STORE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ResetDevice 4112

Operation code for ResetDevice

Android reference for android.mtp.MtpConstants.OPERATION_RESET_DEVICE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SelfTest 4113

Operation code for SelfTest

Android reference for android.mtp.MtpConstants.OPERATION_SELF_TEST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SetObjectProtection 4114

Operation code for SetObjectProtection

Android reference for android.mtp.MtpConstants.OPERATION_SET_OBJECT_PROTECTION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

PowerDown 4115

Operation code for PowerDown

Android reference for android.mtp.MtpConstants.OPERATION_POWER_DOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetDevicePropDesc 4116

Operation code for GetDevicePropDesc

Android reference for android.mtp.MtpConstants.OPERATION_GET_DEVICE_PROP_DESC.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetDevicePropValue 4117

Operation code for GetDevicePropValue

Android reference for android.mtp.MtpConstants.OPERATION_GET_DEVICE_PROP_VALUE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SetDevicePropValue 4118

Operation code for SetDevicePropValue

Android reference for android.mtp.MtpConstants.OPERATION_SET_DEVICE_PROP_VALUE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ResetDevicePropValue 4119

Operation code for ResetDevicePropValue

Android reference for android.mtp.MtpConstants.OPERATION_RESET_DEVICE_PROP_VALUE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

TerminateOpenCapture 4120

Operation code for TerminateOpenCapture

Android reference for android.mtp.MtpConstants.OPERATION_TERMINATE_OPEN_CAPTURE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

MoveObject 4121

Operation code for MoveObject

Android reference for android.mtp.MtpConstants.OPERATION_MOVE_OBJECT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

CopyObject 4122

Operation code for CopyObject

Android reference for android.mtp.MtpConstants.OPERATION_COPY_OBJECT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetPartialObject 4123

Operation code for GetPartialObject

Android reference for android.mtp.MtpConstants.OPERATION_GET_PARTIAL_OBJECT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

InitiateOpenCapture 4124

Operation code for InitiateOpenCapture

Android reference for android.mtp.MtpConstants.OPERATION_INITIATE_OPEN_CAPTURE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetPartialObject64 38337

Operation code for GetPartialObject64

Android reference for android.mtp.MtpConstants.OPERATION_GET_PARTIAL_OBJECT_64.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetObjectPropsSupported 38913

Operation code for GetObjectPropsSupported

Android reference for android.mtp.MtpConstants.OPERATION_GET_OBJECT_PROPS_SUPPORTED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetObjectPropDesc 38914

Operation code for GetObjectPropDesc

Android reference for android.mtp.MtpConstants.OPERATION_GET_OBJECT_PROP_DESC.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetObjectPropValue 38915

Operation code for GetObjectPropValue

Android reference for android.mtp.MtpConstants.OPERATION_GET_OBJECT_PROP_VALUE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SetObjectPropValue 38916

Operation code for SetObjectPropValue

Android reference for android.mtp.MtpConstants.OPERATION_SET_OBJECT_PROP_VALUE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

GetObjectReferences 38928

Operation code for GetObjectReferences

Android reference for android.mtp.MtpConstants.OPERATION_GET_OBJECT_REFERENCES.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

SetObjectReferences 38929

Operation code for SetObjectReferences

Android reference for android.mtp.MtpConstants.OPERATION_SET_OBJECT_REFERENCES.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Skip 38944

Operation code for Skip

Android reference for android.mtp.MtpConstants.OPERATION_SKIP.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to