public
final
class
MtpObjectInfo
extends Object
java.lang.Object | |
↳ | android.mtp.MtpObjectInfo |
This class encapsulates information about an object on an MTP device. This corresponds to the ObjectInfo Dataset described in section 5.3.1 of the MTP specification.
Nested classes | |
---|---|
class |
MtpObjectInfo.Builder
Builds a new object info instance. |
Public methods | |
---|---|
final
int
|
getAssociationDesc()
Returns the association description for the MTP object
Will be zero objects that are not of format
|
final
int
|
getAssociationType()
Returns the association type for the MTP object
Will be zero objects that are not of format
|
final
int
|
getCompressedSize()
Returns the size of the MTP object |
final
long
|
getCompressedSizeLong()
Returns the size of the MTP object |
final
long
|
getDateCreated()
Returns the creation date of the MTP object The value is represented as milliseconds since January 1, 1970 |
final
long
|
getDateModified()
Returns the modification date of the MTP object The value is represented as milliseconds since January 1, 1970 |
final
int
|
getFormat()
Returns the format code for the MTP object |
final
int
|
getImagePixDepth()
Returns the depth of the MTP object in bits per pixel Will be zero for non-image objects |
final
long
|
getImagePixDepthLong()
Returns the depth of the MTP object in bits per pixel Will be zero for non-image objects |
final
int
|
getImagePixHeight()
Returns the height of the MTP object in pixels Will be zero for non-image objects |
final
long
|
getImagePixHeightLong()
Returns the height of the MTP object in pixels Will be zero for non-image objects |
final
int
|
getImagePixWidth()
Returns the width of the MTP object in pixels Will be zero for non-image objects |
final
long
|
getImagePixWidthLong()
Returns the width of the MTP object in pixels Will be zero for non-image objects |
final
String
|
getKeywords()
Returns a comma separated list of keywords for the MTP object |
final
String
|
getName()
Returns the name of the MTP object |
final
int
|
getObjectHandle()
Returns the object handle for the MTP object |
final
int
|
getParent()
Returns the object handle for the object's parent Will be zero for the root directory of a storage unit |
final
int
|
getProtectionStatus()
Returns the protection status for the MTP object Possible values are: |
final
int
|
getSequenceNumber()
Returns the sequence number for the MTP object This field is typically not used for MTP devices, but is sometimes used to define a sequence of photos on PTP cameras. |
final
long
|
getSequenceNumberLong()
Returns the sequence number for the MTP object This field is typically not used for MTP devices, but is sometimes used to define a sequence of photos on PTP cameras. |
final
int
|
getStorageId()
Returns the storage ID for the MTP object's storage unit |
final
int
|
getThumbCompressedSize()
Returns the size of the MTP object's thumbnail Will be zero for objects with no thumbnail |
final
long
|
getThumbCompressedSizeLong()
Returns the size of the MTP object's thumbnail Will be zero for objects with no thumbnail |
final
int
|
getThumbFormat()
Returns the format code for the MTP object's thumbnail Will be zero for objects with no thumbnail |
final
int
|
getThumbPixHeight()
Returns the height of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail |
final
long
|
getThumbPixHeightLong()
Returns the height of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail |
final
int
|
getThumbPixWidth()
Returns the width of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail |
final
long
|
getThumbPixWidthLong()
Returns the width of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail |
Inherited methods | |
---|---|
From
class
java.lang.Object
|
int getAssociationDesc ()
Returns the association description for the MTP object
Will be zero objects that are not of format
FORMAT_ASSOCIATION
Returns | |
---|---|
int |
the object's association description |
int getAssociationType ()
Returns the association type for the MTP object
Will be zero objects that are not of format
FORMAT_ASSOCIATION
For directories the association type is typically
ASSOCIATION_TYPE_GENERIC_FOLDER
Returns | |
---|---|
int |
the object's association type |
int getCompressedSize ()
Returns the size of the MTP object
Returns | |
---|---|
int |
the object size |
long getCompressedSizeLong ()
Returns the size of the MTP object
Returns | |
---|---|
long |
the object size |
long getDateCreated ()
Returns the creation date of the MTP object The value is represented as milliseconds since January 1, 1970
Returns | |
---|---|
long |
the object's creation date |
long getDateModified ()
Returns the modification date of the MTP object The value is represented as milliseconds since January 1, 1970
Returns | |
---|---|
long |
the object's modification date |
int getFormat ()
Returns the format code for the MTP object
Returns | |
---|---|
int |
the format code |
int getImagePixDepth ()
Returns the depth of the MTP object in bits per pixel Will be zero for non-image objects
Returns | |
---|---|
int |
the image depth |
long getImagePixDepthLong ()
Returns the depth of the MTP object in bits per pixel Will be zero for non-image objects
Returns | |
---|---|
long |
the image depth |
int getImagePixHeight ()
Returns the height of the MTP object in pixels Will be zero for non-image objects
Returns | |
---|---|
int |
the image height |
long getImagePixHeightLong ()
Returns the height of the MTP object in pixels Will be zero for non-image objects
Returns | |
---|---|
long |
the image height |
int getImagePixWidth ()
Returns the width of the MTP object in pixels Will be zero for non-image objects
Returns | |
---|---|
int |
the image width |
long getImagePixWidthLong ()
Returns the width of the MTP object in pixels Will be zero for non-image objects
Returns | |
---|---|
long |
the image width |
String getKeywords ()
Returns a comma separated list of keywords for the MTP object
Returns | |
---|---|
String |
the object's keyword list |
String getName ()
Returns the name of the MTP object
Returns | |
---|---|
String |
the object's name |
int getObjectHandle ()
Returns the object handle for the MTP object
Returns | |
---|---|
int |
the object handle |
int getParent ()
Returns the object handle for the object's parent Will be zero for the root directory of a storage unit
Returns | |
---|---|
int |
the object's parent |
int getProtectionStatus ()
Returns the protection status for the MTP object Possible values are:
Returns | |
---|---|
int |
the protection status |
int getSequenceNumber ()
Returns the sequence number for the MTP object This field is typically not used for MTP devices, but is sometimes used to define a sequence of photos on PTP cameras.
Returns | |
---|---|
int |
the object's sequence number |
long getSequenceNumberLong ()
Returns the sequence number for the MTP object This field is typically not used for MTP devices, but is sometimes used to define a sequence of photos on PTP cameras.
Returns | |
---|---|
long |
the object's sequence number |
int getStorageId ()
Returns the storage ID for the MTP object's storage unit
Returns | |
---|---|
int |
the storage ID |
int getThumbCompressedSize ()
Returns the size of the MTP object's thumbnail Will be zero for objects with no thumbnail
Returns | |
---|---|
int |
the thumbnail size |
long getThumbCompressedSizeLong ()
Returns the size of the MTP object's thumbnail Will be zero for objects with no thumbnail
Returns | |
---|---|
long |
the thumbnail size |
int getThumbFormat ()
Returns the format code for the MTP object's thumbnail Will be zero for objects with no thumbnail
Returns | |
---|---|
int |
the thumbnail format code |
int getThumbPixHeight ()
Returns the height of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail
Returns | |
---|---|
int |
the thumbnail height |
long getThumbPixHeightLong ()
Returns the height of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail
Returns | |
---|---|
long |
the thumbnail height |
int getThumbPixWidth ()
Returns the width of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail
Returns | |
---|---|
int |
the thumbnail width |
long getThumbPixWidthLong ()
Returns the width of the MTP object's thumbnail in pixels Will be zero for objects with no thumbnail
Returns | |
---|---|
long |
the thumbnail width |