mtp

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mtp provides Go bindings for android.mtp.

Index

Constants

View Source
const (
	EventCancelTransaction              = consts.EventCancelTransaction
	EventCaptureComplete                = consts.EventCaptureComplete
	EventDeviceInfoChanged              = consts.EventDeviceInfoChanged
	EventDevicePropChanged              = consts.EventDevicePropChanged
	EventDeviceReset                    = consts.EventDeviceReset
	EventObjectAdded                    = consts.EventObjectAdded
	EventObjectInfoChanged              = consts.EventObjectInfoChanged
	EventObjectPropChanged              = consts.EventObjectPropChanged
	EventObjectPropDescChanged          = consts.EventObjectPropDescChanged
	EventObjectReferencesChanged        = consts.EventObjectReferencesChanged
	EventObjectRemoved                  = consts.EventObjectRemoved
	EventRequestObjectTransfer          = consts.EventRequestObjectTransfer
	EventStorageInfoChanged             = consts.EventStorageInfoChanged
	EventStoreAdded                     = consts.EventStoreAdded
	EventStoreFull                      = consts.EventStoreFull
	EventStoreRemoved                   = consts.EventStoreRemoved
	EventUndefined                      = consts.EventUndefined
	EventUnreportedStatus               = consts.EventUnreportedStatus
	AssociationTypeGenericFolder        = consts.AssociationTypeGenericFolder
	Format3gpContainer                  = consts.Format3gpContainer
	FormatAac                           = consts.FormatAac
	FormatAbstractAudioAlbum            = consts.FormatAbstractAudioAlbum
	FormatAbstractAudioPlaylist         = consts.FormatAbstractAudioPlaylist
	FormatAbstractAvPlaylist            = consts.FormatAbstractAvPlaylist
	FormatAbstractDocument              = consts.FormatAbstractDocument
	FormatAbstractImageAlbum            = consts.FormatAbstractImageAlbum
	FormatAbstractMediacast             = consts.FormatAbstractMediacast
	FormatAbstractMultimediaAlbum       = consts.FormatAbstractMultimediaAlbum
	FormatAbstractVideoAlbum            = consts.FormatAbstractVideoAlbum
	FormatAbstractVideoPlaylist         = consts.FormatAbstractVideoPlaylist
	FormatAiff                          = consts.FormatAiff
	FormatAsf                           = consts.FormatAsf
	FormatAssociation                   = consts.FormatAssociation
	FormatAsxPlaylist                   = consts.FormatAsxPlaylist
	FormatAudible                       = consts.FormatAudible
	FormatAvi                           = consts.FormatAvi
	FormatBmp                           = consts.FormatBmp
	FormatDefined                       = consts.FormatDefined
	FormatDng                           = consts.FormatDng
	FormatDpof                          = consts.FormatDpof
	FormatExecutable                    = consts.FormatExecutable
	FormatExifJpeg                      = consts.FormatExifJpeg
	FormatFlac                          = consts.FormatFlac
	FormatGif                           = consts.FormatGif
	FormatHtml                          = consts.FormatHtml
	FormatJfif                          = consts.FormatJfif
	FormatJp2                           = consts.FormatJp2
	FormatJpx                           = consts.FormatJpx
	FormatM3uPlaylist                   = consts.FormatM3uPlaylist
	FormatMp2                           = consts.FormatMp2
	FormatMp3                           = consts.FormatMp3
	FormatMp4Container                  = consts.FormatMp4Container
	FormatMpeg                          = consts.FormatMpeg
	FormatMplPlaylist                   = consts.FormatMplPlaylist
	FormatMsExcelSpreadsheet            = consts.FormatMsExcelSpreadsheet
	FormatMsPowerpointPresentation      = consts.FormatMsPowerpointPresentation
	FormatMsWordDocument                = consts.FormatMsWordDocument
	FormatOgg                           = consts.FormatOgg
	FormatPict                          = consts.FormatPict
	FormatPlsPlaylist                   = consts.FormatPlsPlaylist
	FormatPng                           = consts.FormatPng
	FormatScript                        = consts.FormatScript
	FormatText                          = consts.FormatText
	FormatTiff                          = consts.FormatTiff
	FormatTiffEp                        = consts.FormatTiffEp
	FormatUndefined                     = consts.FormatUndefined
	FormatUndefinedAudio                = consts.FormatUndefinedAudio
	FormatUndefinedCollection           = consts.FormatUndefinedCollection
	FormatUndefinedDocument             = consts.FormatUndefinedDocument
	FormatUndefinedFirmware             = consts.FormatUndefinedFirmware
	FormatUndefinedVideo                = consts.FormatUndefinedVideo
	FormatWav                           = consts.FormatWav
	FormatWindowsImageFormat            = consts.FormatWindowsImageFormat
	FormatWma                           = consts.FormatWma
	FormatWmv                           = consts.FormatWmv
	FormatWplPlaylist                   = consts.FormatWplPlaylist
	FormatXmlDocument                   = consts.FormatXmlDocument
	OperationCloseSession               = consts.OperationCloseSession
	OperationCopyObject                 = consts.OperationCopyObject
	OperationDeleteObject               = consts.OperationDeleteObject
	OperationFormatStore                = consts.OperationFormatStore
	OperationGetDeviceInfo              = consts.OperationGetDeviceInfo
	OperationGetDevicePropDesc          = consts.OperationGetDevicePropDesc
	OperationGetDevicePropValue         = consts.OperationGetDevicePropValue
	OperationGetNumObjects              = consts.OperationGetNumObjects
	OperationGetObject                  = consts.OperationGetObject
	OperationGetObjectHandles           = consts.OperationGetObjectHandles
	OperationGetObjectInfo              = consts.OperationGetObjectInfo
	OperationGetObjectPropsSupported    = consts.OperationGetObjectPropsSupported
	OperationGetObjectPropDesc          = consts.OperationGetObjectPropDesc
	OperationGetObjectPropValue         = consts.OperationGetObjectPropValue
	OperationGetObjectReferences        = consts.OperationGetObjectReferences
	OperationGetPartialObject           = consts.OperationGetPartialObject
	OperationGetPartialObject64         = consts.OperationGetPartialObject64
	OperationGetStorageInfo             = consts.OperationGetStorageInfo
	OperationGetStorageIDs              = consts.OperationGetStorageIDs
	OperationGetThumb                   = consts.OperationGetThumb
	OperationInitiateCapture            = consts.OperationInitiateCapture
	OperationInitiateOpenCapture        = consts.OperationInitiateOpenCapture
	OperationMoveObject                 = consts.OperationMoveObject
	OperationOpenSession                = consts.OperationOpenSession
	OperationPowerDown                  = consts.OperationPowerDown
	OperationResetDevice                = consts.OperationResetDevice
	OperationResetDevicePropValue       = consts.OperationResetDevicePropValue
	OperationSelfTest                   = consts.OperationSelfTest
	OperationSendObject                 = consts.OperationSendObject
	OperationSendObjectInfo             = consts.OperationSendObjectInfo
	OperationSetDevicePropValue         = consts.OperationSetDevicePropValue
	OperationSetObjectPropValue         = consts.OperationSetObjectPropValue
	OperationSetObjectProtection        = consts.OperationSetObjectProtection
	OperationSetObjectReferences        = consts.OperationSetObjectReferences
	OperationSkip                       = consts.OperationSkip
	OperationTerminateOpenCapture       = consts.OperationTerminateOpenCapture
	ProtectionStatusNone                = consts.ProtectionStatusNone
	ProtectionStatusNonTransferableData = consts.ProtectionStatusNonTransferableData
	ProtectionStatusReadOnly            = consts.ProtectionStatusReadOnly
	ProtectionStatusReadOnlyData        = consts.ProtectionStatusReadOnlyData
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type Device

type Device struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Device wraps android.mtp.MtpDevice.

func NewDevice

func NewDevice(vm *jni.VM, arg0 *jni.Object) (*Device, error)

NewDevice creates a new android.mtp.MtpDevice instance.

func (*Device) Close

func (m *Device) Close() error

Close calls android.mtp.MtpDevice.close.

func (*Device) DeleteObject

func (m *Device) DeleteObject(arg0 int32) (bool, error)

DeleteObject calls android.mtp.MtpDevice.deleteObject.

func (*Device) GetDeviceId

func (m *Device) GetDeviceId() (int32, error)

GetDeviceId calls android.mtp.MtpDevice.getDeviceId.

func (*Device) GetDeviceInfo

func (m *Device) GetDeviceInfo() (*jni.Object, error)

GetDeviceInfo calls android.mtp.MtpDevice.getDeviceInfo.

func (*Device) GetDeviceName

func (m *Device) GetDeviceName() (string, error)

GetDeviceName calls android.mtp.MtpDevice.getDeviceName.

func (*Device) GetObject

func (m *Device) GetObject(arg0 int32, arg1 int32) (*jni.Object, error)

GetObject calls android.mtp.MtpDevice.getObject.

func (*Device) GetObjectHandles

func (m *Device) GetObjectHandles(
	arg0 int32,
	arg1 int32,
	arg2 int32,
) (*jni.Object, error)

GetObjectHandles calls android.mtp.MtpDevice.getObjectHandles.

func (*Device) GetObjectInfo

func (m *Device) GetObjectInfo(arg0 int32) (*jni.Object, error)

GetObjectInfo calls android.mtp.MtpDevice.getObjectInfo.

func (*Device) GetParent

func (m *Device) GetParent(arg0 int32) (int64, error)

GetParent calls android.mtp.MtpDevice.getParent.

func (*Device) GetPartialObject

func (m *Device) GetPartialObject(
	arg0 int32,
	arg1 int64,
	arg2 int64,
	arg3 *jni.Object,
) (int64, error)

GetPartialObject calls android.mtp.MtpDevice.getPartialObject.

func (*Device) GetPartialObject64

func (m *Device) GetPartialObject64(
	arg0 int32,
	arg1 int64,
	arg2 int64,
	arg3 *jni.Object,
) (int64, error)

GetPartialObject64 calls android.mtp.MtpDevice.getPartialObject64.

func (*Device) GetStorageId

func (m *Device) GetStorageId(arg0 int32) (int64, error)

GetStorageId calls android.mtp.MtpDevice.getStorageId.

func (*Device) GetStorageIds

func (m *Device) GetStorageIds() (*jni.Object, error)

GetStorageIds calls android.mtp.MtpDevice.getStorageIds.

func (*Device) GetStorageInfo

func (m *Device) GetStorageInfo(arg0 int32) (*jni.Object, error)

GetStorageInfo calls android.mtp.MtpDevice.getStorageInfo.

func (*Device) GetThumbnail

func (m *Device) GetThumbnail(arg0 int32) (*jni.Object, error)

GetThumbnail calls android.mtp.MtpDevice.getThumbnail.

func (*Device) ImportFile2

func (m *Device) ImportFile2(arg0 int32, arg1 *jni.Object) (bool, error)

ImportFile2 calls android.mtp.MtpDevice.importFile.

func (*Device) ImportFile2_1

func (m *Device) ImportFile2_1(arg0 int32, arg1 string) (bool, error)

ImportFile2_1 calls android.mtp.MtpDevice.importFile.

func (*Device) Open

func (m *Device) Open(arg0 *jni.Object) (bool, error)

Open calls android.mtp.MtpDevice.open.

func (*Device) ReadEvent

func (m *Device) ReadEvent(arg0 *jni.Object) (*jni.Object, error)

ReadEvent calls android.mtp.MtpDevice.readEvent.

func (*Device) SendObject

func (m *Device) SendObject(
	arg0 int32,
	arg1 int64,
	arg2 *jni.Object,
) (bool, error)

SendObject calls android.mtp.MtpDevice.sendObject.

func (*Device) SendObjectInfo

func (m *Device) SendObjectInfo(arg0 *jni.Object) (*jni.Object, error)

SendObjectInfo calls android.mtp.MtpDevice.sendObjectInfo.

func (*Device) ToString

func (m *Device) ToString() (string, error)

ToString calls android.mtp.MtpDevice.toString.

type DeviceInfo

type DeviceInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

DeviceInfo wraps android.mtp.MtpDeviceInfo.

func (*DeviceInfo) GetEventsSupported

func (m *DeviceInfo) GetEventsSupported() (*jni.Object, error)

GetEventsSupported calls android.mtp.MtpDeviceInfo.getEventsSupported.

func (*DeviceInfo) GetManufacturer

func (m *DeviceInfo) GetManufacturer() (string, error)

GetManufacturer calls android.mtp.MtpDeviceInfo.getManufacturer.

func (*DeviceInfo) GetModel

func (m *DeviceInfo) GetModel() (string, error)

GetModel calls android.mtp.MtpDeviceInfo.getModel.

func (*DeviceInfo) GetOperationsSupported

func (m *DeviceInfo) GetOperationsSupported() (*jni.Object, error)

GetOperationsSupported calls android.mtp.MtpDeviceInfo.getOperationsSupported.

func (*DeviceInfo) GetSerialNumber

func (m *DeviceInfo) GetSerialNumber() (string, error)

GetSerialNumber calls android.mtp.MtpDeviceInfo.getSerialNumber.

func (*DeviceInfo) GetVersion

func (m *DeviceInfo) GetVersion() (string, error)

GetVersion calls android.mtp.MtpDeviceInfo.getVersion.

func (*DeviceInfo) IsEventSupported

func (m *DeviceInfo) IsEventSupported(arg0 int32) (bool, error)

IsEventSupported calls android.mtp.MtpDeviceInfo.isEventSupported.

func (*DeviceInfo) IsOperationSupported

func (m *DeviceInfo) IsOperationSupported(arg0 int32) (bool, error)

IsOperationSupported calls android.mtp.MtpDeviceInfo.isOperationSupported.

type Event

type Event struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Event wraps android.mtp.MtpEvent.

func (*Event) GetDevicePropCode

func (m *Event) GetDevicePropCode() (int32, error)

GetDevicePropCode calls android.mtp.MtpEvent.getDevicePropCode.

func (*Event) GetEventCode

func (m *Event) GetEventCode() (int32, error)

GetEventCode calls android.mtp.MtpEvent.getEventCode.

func (*Event) GetObjectFormatCode

func (m *Event) GetObjectFormatCode() (int32, error)

GetObjectFormatCode calls android.mtp.MtpEvent.getObjectFormatCode.

func (*Event) GetObjectHandle

func (m *Event) GetObjectHandle() (int32, error)

GetObjectHandle calls android.mtp.MtpEvent.getObjectHandle.

func (*Event) GetObjectPropCode

func (m *Event) GetObjectPropCode() (int32, error)

GetObjectPropCode calls android.mtp.MtpEvent.getObjectPropCode.

func (*Event) GetParameter1

func (m *Event) GetParameter1() (int32, error)

GetParameter1 calls android.mtp.MtpEvent.getParameter1.

func (*Event) GetParameter2

func (m *Event) GetParameter2() (int32, error)

GetParameter2 calls android.mtp.MtpEvent.getParameter2.

func (*Event) GetParameter3

func (m *Event) GetParameter3() (int32, error)

GetParameter3 calls android.mtp.MtpEvent.getParameter3.

func (*Event) GetStorageId

func (m *Event) GetStorageId() (int32, error)

GetStorageId calls android.mtp.MtpEvent.getStorageId.

func (*Event) GetTransactionId

func (m *Event) GetTransactionId() (int32, error)

GetTransactionId calls android.mtp.MtpEvent.getTransactionId.

type ObjectInfo

type ObjectInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ObjectInfo wraps android.mtp.MtpObjectInfo.

func (*ObjectInfo) GetAssociationDesc

func (m *ObjectInfo) GetAssociationDesc() (int32, error)

GetAssociationDesc calls android.mtp.MtpObjectInfo.getAssociationDesc.

func (*ObjectInfo) GetAssociationType

func (m *ObjectInfo) GetAssociationType() (int32, error)

GetAssociationType calls android.mtp.MtpObjectInfo.getAssociationType.

func (*ObjectInfo) GetCompressedSize

func (m *ObjectInfo) GetCompressedSize() (int32, error)

GetCompressedSize calls android.mtp.MtpObjectInfo.getCompressedSize.

func (*ObjectInfo) GetCompressedSizeLong

func (m *ObjectInfo) GetCompressedSizeLong() (int64, error)

GetCompressedSizeLong calls android.mtp.MtpObjectInfo.getCompressedSizeLong.

func (*ObjectInfo) GetDateCreated

func (m *ObjectInfo) GetDateCreated() (int64, error)

GetDateCreated calls android.mtp.MtpObjectInfo.getDateCreated.

func (*ObjectInfo) GetDateModified

func (m *ObjectInfo) GetDateModified() (int64, error)

GetDateModified calls android.mtp.MtpObjectInfo.getDateModified.

func (*ObjectInfo) GetFormat

func (m *ObjectInfo) GetFormat() (int32, error)

GetFormat calls android.mtp.MtpObjectInfo.getFormat.

func (*ObjectInfo) GetImagePixDepth

func (m *ObjectInfo) GetImagePixDepth() (int32, error)

GetImagePixDepth calls android.mtp.MtpObjectInfo.getImagePixDepth.

func (*ObjectInfo) GetImagePixDepthLong

func (m *ObjectInfo) GetImagePixDepthLong() (int64, error)

GetImagePixDepthLong calls android.mtp.MtpObjectInfo.getImagePixDepthLong.

func (*ObjectInfo) GetImagePixHeight

func (m *ObjectInfo) GetImagePixHeight() (int32, error)

GetImagePixHeight calls android.mtp.MtpObjectInfo.getImagePixHeight.

func (*ObjectInfo) GetImagePixHeightLong

func (m *ObjectInfo) GetImagePixHeightLong() (int64, error)

GetImagePixHeightLong calls android.mtp.MtpObjectInfo.getImagePixHeightLong.

func (*ObjectInfo) GetImagePixWidth

func (m *ObjectInfo) GetImagePixWidth() (int32, error)

GetImagePixWidth calls android.mtp.MtpObjectInfo.getImagePixWidth.

func (*ObjectInfo) GetImagePixWidthLong

func (m *ObjectInfo) GetImagePixWidthLong() (int64, error)

GetImagePixWidthLong calls android.mtp.MtpObjectInfo.getImagePixWidthLong.

func (*ObjectInfo) GetKeywords

func (m *ObjectInfo) GetKeywords() (string, error)

GetKeywords calls android.mtp.MtpObjectInfo.getKeywords.

func (*ObjectInfo) GetName

func (m *ObjectInfo) GetName() (string, error)

GetName calls android.mtp.MtpObjectInfo.getName.

func (*ObjectInfo) GetObjectHandle

func (m *ObjectInfo) GetObjectHandle() (int32, error)

GetObjectHandle calls android.mtp.MtpObjectInfo.getObjectHandle.

func (*ObjectInfo) GetParent

func (m *ObjectInfo) GetParent() (int32, error)

GetParent calls android.mtp.MtpObjectInfo.getParent.

func (*ObjectInfo) GetProtectionStatus

func (m *ObjectInfo) GetProtectionStatus() (int32, error)

GetProtectionStatus calls android.mtp.MtpObjectInfo.getProtectionStatus.

func (*ObjectInfo) GetSequenceNumber

func (m *ObjectInfo) GetSequenceNumber() (int32, error)

GetSequenceNumber calls android.mtp.MtpObjectInfo.getSequenceNumber.

func (*ObjectInfo) GetSequenceNumberLong

func (m *ObjectInfo) GetSequenceNumberLong() (int64, error)

GetSequenceNumberLong calls android.mtp.MtpObjectInfo.getSequenceNumberLong.

func (*ObjectInfo) GetStorageId

func (m *ObjectInfo) GetStorageId() (int32, error)

GetStorageId calls android.mtp.MtpObjectInfo.getStorageId.

func (*ObjectInfo) GetThumbCompressedSize

func (m *ObjectInfo) GetThumbCompressedSize() (int32, error)

GetThumbCompressedSize calls android.mtp.MtpObjectInfo.getThumbCompressedSize.

func (*ObjectInfo) GetThumbCompressedSizeLong

func (m *ObjectInfo) GetThumbCompressedSizeLong() (int64, error)

GetThumbCompressedSizeLong calls android.mtp.MtpObjectInfo.getThumbCompressedSizeLong.

func (*ObjectInfo) GetThumbFormat

func (m *ObjectInfo) GetThumbFormat() (int32, error)

GetThumbFormat calls android.mtp.MtpObjectInfo.getThumbFormat.

func (*ObjectInfo) GetThumbPixHeight

func (m *ObjectInfo) GetThumbPixHeight() (int32, error)

GetThumbPixHeight calls android.mtp.MtpObjectInfo.getThumbPixHeight.

func (*ObjectInfo) GetThumbPixHeightLong

func (m *ObjectInfo) GetThumbPixHeightLong() (int64, error)

GetThumbPixHeightLong calls android.mtp.MtpObjectInfo.getThumbPixHeightLong.

func (*ObjectInfo) GetThumbPixWidth

func (m *ObjectInfo) GetThumbPixWidth() (int32, error)

GetThumbPixWidth calls android.mtp.MtpObjectInfo.getThumbPixWidth.

func (*ObjectInfo) GetThumbPixWidthLong

func (m *ObjectInfo) GetThumbPixWidthLong() (int64, error)

GetThumbPixWidthLong calls android.mtp.MtpObjectInfo.getThumbPixWidthLong.

type ObjectInfoBuilder

type ObjectInfoBuilder struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

ObjectInfoBuilder wraps android.mtp.MtpObjectInfo$Builder.

func (*ObjectInfoBuilder) Build

func (m *ObjectInfoBuilder) Build() (*jni.Object, error)

Build calls android.mtp.MtpObjectInfo$Builder.build.

func (*ObjectInfoBuilder) SetAssociationDesc

func (m *ObjectInfoBuilder) SetAssociationDesc(arg0 int32) (*jni.Object, error)

SetAssociationDesc calls android.mtp.MtpObjectInfo$Builder.setAssociationDesc.

func (*ObjectInfoBuilder) SetAssociationType

func (m *ObjectInfoBuilder) SetAssociationType(arg0 int32) (*jni.Object, error)

SetAssociationType calls android.mtp.MtpObjectInfo$Builder.setAssociationType.

func (*ObjectInfoBuilder) SetCompressedSize

func (m *ObjectInfoBuilder) SetCompressedSize(arg0 int64) (*jni.Object, error)

SetCompressedSize calls android.mtp.MtpObjectInfo$Builder.setCompressedSize.

func (*ObjectInfoBuilder) SetDateCreated

func (m *ObjectInfoBuilder) SetDateCreated(arg0 int64) (*jni.Object, error)

SetDateCreated calls android.mtp.MtpObjectInfo$Builder.setDateCreated.

func (*ObjectInfoBuilder) SetDateModified

func (m *ObjectInfoBuilder) SetDateModified(arg0 int64) (*jni.Object, error)

SetDateModified calls android.mtp.MtpObjectInfo$Builder.setDateModified.

func (*ObjectInfoBuilder) SetFormat

func (m *ObjectInfoBuilder) SetFormat(arg0 int32) (*jni.Object, error)

SetFormat calls android.mtp.MtpObjectInfo$Builder.setFormat.

func (*ObjectInfoBuilder) SetImagePixDepth

func (m *ObjectInfoBuilder) SetImagePixDepth(arg0 int64) (*jni.Object, error)

SetImagePixDepth calls android.mtp.MtpObjectInfo$Builder.setImagePixDepth.

func (*ObjectInfoBuilder) SetImagePixHeight

func (m *ObjectInfoBuilder) SetImagePixHeight(arg0 int64) (*jni.Object, error)

SetImagePixHeight calls android.mtp.MtpObjectInfo$Builder.setImagePixHeight.

func (*ObjectInfoBuilder) SetImagePixWidth

func (m *ObjectInfoBuilder) SetImagePixWidth(arg0 int64) (*jni.Object, error)

SetImagePixWidth calls android.mtp.MtpObjectInfo$Builder.setImagePixWidth.

func (*ObjectInfoBuilder) SetKeywords

func (m *ObjectInfoBuilder) SetKeywords(arg0 string) (*jni.Object, error)

SetKeywords calls android.mtp.MtpObjectInfo$Builder.setKeywords.

func (*ObjectInfoBuilder) SetName

func (m *ObjectInfoBuilder) SetName(arg0 string) (*jni.Object, error)

SetName calls android.mtp.MtpObjectInfo$Builder.setName.

func (*ObjectInfoBuilder) SetObjectHandle

func (m *ObjectInfoBuilder) SetObjectHandle(arg0 int32) (*jni.Object, error)

SetObjectHandle calls android.mtp.MtpObjectInfo$Builder.setObjectHandle.

func (*ObjectInfoBuilder) SetParent

func (m *ObjectInfoBuilder) SetParent(arg0 int32) (*jni.Object, error)

SetParent calls android.mtp.MtpObjectInfo$Builder.setParent.

func (*ObjectInfoBuilder) SetProtectionStatus

func (m *ObjectInfoBuilder) SetProtectionStatus(arg0 int32) (*jni.Object, error)

SetProtectionStatus calls android.mtp.MtpObjectInfo$Builder.setProtectionStatus.

func (*ObjectInfoBuilder) SetSequenceNumber

func (m *ObjectInfoBuilder) SetSequenceNumber(arg0 int64) (*jni.Object, error)

SetSequenceNumber calls android.mtp.MtpObjectInfo$Builder.setSequenceNumber.

func (*ObjectInfoBuilder) SetStorageId

func (m *ObjectInfoBuilder) SetStorageId(arg0 int32) (*jni.Object, error)

SetStorageId calls android.mtp.MtpObjectInfo$Builder.setStorageId.

func (*ObjectInfoBuilder) SetThumbCompressedSize

func (m *ObjectInfoBuilder) SetThumbCompressedSize(arg0 int64) (*jni.Object, error)

SetThumbCompressedSize calls android.mtp.MtpObjectInfo$Builder.setThumbCompressedSize.

func (*ObjectInfoBuilder) SetThumbFormat

func (m *ObjectInfoBuilder) SetThumbFormat(arg0 int32) (*jni.Object, error)

SetThumbFormat calls android.mtp.MtpObjectInfo$Builder.setThumbFormat.

func (*ObjectInfoBuilder) SetThumbPixHeight

func (m *ObjectInfoBuilder) SetThumbPixHeight(arg0 int64) (*jni.Object, error)

SetThumbPixHeight calls android.mtp.MtpObjectInfo$Builder.setThumbPixHeight.

func (*ObjectInfoBuilder) SetThumbPixWidth

func (m *ObjectInfoBuilder) SetThumbPixWidth(arg0 int64) (*jni.Object, error)

SetThumbPixWidth calls android.mtp.MtpObjectInfo$Builder.setThumbPixWidth.

type StorageInfo

type StorageInfo struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

StorageInfo wraps android.mtp.MtpStorageInfo.

func (*StorageInfo) GetDescription

func (m *StorageInfo) GetDescription() (string, error)

GetDescription calls android.mtp.MtpStorageInfo.getDescription.

func (*StorageInfo) GetFreeSpace

func (m *StorageInfo) GetFreeSpace() (int64, error)

GetFreeSpace calls android.mtp.MtpStorageInfo.getFreeSpace.

func (*StorageInfo) GetMaxCapacity

func (m *StorageInfo) GetMaxCapacity() (int64, error)

GetMaxCapacity calls android.mtp.MtpStorageInfo.getMaxCapacity.

func (*StorageInfo) GetStorageId

func (m *StorageInfo) GetStorageId() (int32, error)

GetStorageId calls android.mtp.MtpStorageInfo.getStorageId.

func (*StorageInfo) GetVolumeIdentifier

func (m *StorageInfo) GetVolumeIdentifier() (string, error)

GetVolumeIdentifier calls android.mtp.MtpStorageInfo.getVolumeIdentifier.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL