| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2010 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| Mike Lockwood | 0cd0136 | 2010-12-30 11:54:33 -0500 | [diff] [blame] | 17 | package android.mtp; |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 18 | |
| 19 | /** |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 20 | * A class containing constants in the MTP and PTP specifications. |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 21 | */ |
| 22 | public final class MtpConstants { |
| 23 | |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 24 | // MTP Data Types |
| 25 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 26 | public static final int TYPE_UNDEFINED = 0x0000; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 27 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 28 | public static final int TYPE_INT8 = 0x0001; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 29 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 30 | public static final int TYPE_UINT8 = 0x0002; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 31 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 32 | public static final int TYPE_INT16 = 0x0003; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 33 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 34 | public static final int TYPE_UINT16 = 0x0004; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 35 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 36 | public static final int TYPE_INT32 = 0x0005; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 37 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 38 | public static final int TYPE_UINT32 = 0x0006; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 39 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 40 | public static final int TYPE_INT64 = 0x0007; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 41 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 42 | public static final int TYPE_UINT64 = 0x0008; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 43 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 44 | public static final int TYPE_INT128 = 0x0009; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 45 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 46 | public static final int TYPE_UINT128 = 0x000A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 47 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 48 | public static final int TYPE_AINT8 = 0x4001; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 49 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 50 | public static final int TYPE_AUINT8 = 0x4002; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 51 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 52 | public static final int TYPE_AINT16 = 0x4003; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 53 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 54 | public static final int TYPE_AUINT16 = 0x4004; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 55 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 56 | public static final int TYPE_AINT32 = 0x4005; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 57 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 58 | public static final int TYPE_AUINT32 = 0x4006; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 59 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 60 | public static final int TYPE_AINT64 = 0x4007; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 61 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 62 | public static final int TYPE_AUINT64 = 0x4008; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 63 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 64 | public static final int TYPE_AINT128 = 0x4009; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 65 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 66 | public static final int TYPE_AUINT128 = 0x400A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 67 | /** @hide */ |
| Mike Lockwood | e2ad6ec | 2010-10-14 18:03:25 -0400 | [diff] [blame] | 68 | public static final int TYPE_STR = 0xFFFF; |
| 69 | |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 70 | // MTP Response Codes |
| 71 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 72 | public static final int RESPONSE_UNDEFINED = 0x2000; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 73 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 74 | public static final int RESPONSE_OK = 0x2001; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 75 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 76 | public static final int RESPONSE_GENERAL_ERROR = 0x2002; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 77 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 78 | public static final int RESPONSE_SESSION_NOT_OPEN = 0x2003; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 79 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 80 | public static final int RESPONSE_INVALID_TRANSACTION_ID = 0x2004; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 81 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 82 | public static final int RESPONSE_OPERATION_NOT_SUPPORTED = 0x2005; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 83 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 84 | public static final int RESPONSE_PARAMETER_NOT_SUPPORTED = 0x2006; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 85 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 86 | public static final int RESPONSE_INCOMPLETE_TRANSFER = 0x2007; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 87 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 88 | public static final int RESPONSE_INVALID_STORAGE_ID = 0x2008; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 89 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 90 | public static final int RESPONSE_INVALID_OBJECT_HANDLE = 0x2009; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 91 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 92 | public static final int RESPONSE_DEVICE_PROP_NOT_SUPPORTED = 0x200A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 93 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 94 | public static final int RESPONSE_INVALID_OBJECT_FORMAT_CODE = 0x200B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 95 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 96 | public static final int RESPONSE_STORAGE_FULL = 0x200C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 97 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 98 | public static final int RESPONSE_OBJECT_WRITE_PROTECTED = 0x200D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 99 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 100 | public static final int RESPONSE_STORE_READ_ONLY = 0x200E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 101 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 102 | public static final int RESPONSE_ACCESS_DENIED = 0x200F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 103 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 104 | public static final int RESPONSE_NO_THUMBNAIL_PRESENT = 0x2010; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 105 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 106 | public static final int RESPONSE_SELF_TEST_FAILED = 0x2011; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 107 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 108 | public static final int RESPONSE_PARTIAL_DELETION = 0x2012; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 109 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 110 | public static final int RESPONSE_STORE_NOT_AVAILABLE = 0x2013; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 111 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 112 | public static final int RESPONSE_SPECIFICATION_BY_FORMAT_UNSUPPORTED = 0x2014; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 113 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 114 | public static final int RESPONSE_NO_VALID_OBJECT_INFO = 0x2015; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 115 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 116 | public static final int RESPONSE_INVALID_CODE_FORMAT = 0x2016; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 117 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 118 | public static final int RESPONSE_UNKNOWN_VENDOR_CODE = 0x2017; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 119 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 120 | public static final int RESPONSE_CAPTURE_ALREADY_TERMINATED = 0x2018; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 121 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 122 | public static final int RESPONSE_DEVICE_BUSY = 0x2019; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 123 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 124 | public static final int RESPONSE_INVALID_PARENT_OBJECT = 0x201A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 125 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 126 | public static final int RESPONSE_INVALID_DEVICE_PROP_FORMAT = 0x201B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 127 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 128 | public static final int RESPONSE_INVALID_DEVICE_PROP_VALUE = 0x201C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 129 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 130 | public static final int RESPONSE_INVALID_PARAMETER = 0x201D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 131 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 132 | public static final int RESPONSE_SESSION_ALREADY_OPEN = 0x201E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 133 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 134 | public static final int RESPONSE_TRANSACTION_CANCELLED = 0x201F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 135 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 136 | public static final int RESPONSE_SPECIFICATION_OF_DESTINATION_UNSUPPORTED = 0x2020; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 137 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 138 | public static final int RESPONSE_INVALID_OBJECT_PROP_CODE = 0xA801; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 139 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 140 | public static final int RESPONSE_INVALID_OBJECT_PROP_FORMAT = 0xA802; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 141 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 142 | public static final int RESPONSE_INVALID_OBJECT_PROP_VALUE = 0xA803; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 143 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 144 | public static final int RESPONSE_INVALID_OBJECT_REFERENCE = 0xA804; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 145 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 146 | public static final int RESPONSE_GROUP_NOT_SUPPORTED = 0xA805; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 147 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 148 | public static final int RESPONSE_INVALID_DATASET = 0xA806; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 149 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 150 | public static final int RESPONSE_SPECIFICATION_BY_GROUP_UNSUPPORTED = 0xA807; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 151 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 152 | public static final int RESPONSE_SPECIFICATION_BY_DEPTH_UNSUPPORTED = 0xA808; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 153 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 154 | public static final int RESPONSE_OBJECT_TOO_LARGE = 0xA809; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 155 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 156 | public static final int RESPONSE_OBJECT_PROP_NOT_SUPPORTED = 0xA80A; |
| 157 | |
| 158 | // MTP format codes |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 159 | /** Undefined format code */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 160 | public static final int FORMAT_UNDEFINED = 0x3000; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 161 | /** Format code for associations (folders and directories) */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 162 | public static final int FORMAT_ASSOCIATION = 0x3001; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 163 | /** Format code for script files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 164 | public static final int FORMAT_SCRIPT = 0x3002; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 165 | /** Format code for executable files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 166 | public static final int FORMAT_EXECUTABLE = 0x3003; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 167 | /** Format code for text files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 168 | public static final int FORMAT_TEXT = 0x3004; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 169 | /** Format code for HTML files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 170 | public static final int FORMAT_HTML = 0x3005; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 171 | /** Format code for DPOF files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 172 | public static final int FORMAT_DPOF = 0x3006; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 173 | /** Format code for AIFF audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 174 | public static final int FORMAT_AIFF = 0x3007; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 175 | /** Format code for WAV audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 176 | public static final int FORMAT_WAV = 0x3008; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 177 | /** Format code for MP3 audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 178 | public static final int FORMAT_MP3 = 0x3009; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 179 | /** Format code for AVI video files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 180 | public static final int FORMAT_AVI = 0x300A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 181 | /** Format code for MPEG video files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 182 | public static final int FORMAT_MPEG = 0x300B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 183 | /** Format code for ASF files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 184 | public static final int FORMAT_ASF = 0x300C; |
| Jaesung Chung | 8409c06 | 2016-01-19 10:48:30 +0900 | [diff] [blame] | 185 | /** |
| 186 | * Format code for unknown image files. |
| 187 | * <p> |
| 188 | * Will be used for the formats which are not specified in PTP specification. |
| 189 | * For instance, WEBP and WBMP. |
| 190 | */ |
| 191 | public static final int FORMAT_DEFINED = 0x3800; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 192 | /** Format code for JPEG image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 193 | public static final int FORMAT_EXIF_JPEG = 0x3801; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 194 | /** Format code for TIFF EP image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 195 | public static final int FORMAT_TIFF_EP = 0x3802; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 196 | /** Format code for BMP image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 197 | public static final int FORMAT_BMP = 0x3804; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 198 | /** Format code for GIF image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 199 | public static final int FORMAT_GIF = 0x3807; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 200 | /** Format code for JFIF image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 201 | public static final int FORMAT_JFIF = 0x3808; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 202 | /** Format code for PICT image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 203 | public static final int FORMAT_PICT = 0x380A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 204 | /** Format code for PNG image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 205 | public static final int FORMAT_PNG = 0x380B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 206 | /** Format code for TIFF image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 207 | public static final int FORMAT_TIFF = 0x380D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 208 | /** Format code for JP2 files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 209 | public static final int FORMAT_JP2 = 0x380F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 210 | /** Format code for JPX files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 211 | public static final int FORMAT_JPX = 0x3810; |
| Jaesung Chung | 5a8b962 | 2015-12-18 05:50:21 +0100 | [diff] [blame] | 212 | /** Format code for DNG files */ |
| 213 | public static final int FORMAT_DNG = 0x3811; |
| Chong Zhang | 6e18cce | 2017-08-16 11:57:02 -0700 | [diff] [blame] | 214 | /** Format code for HEIF files {@hide} */ |
| 215 | public static final int FORMAT_HEIF = 0x3812; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 216 | /** Format code for firmware files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 217 | public static final int FORMAT_UNDEFINED_FIRMWARE = 0xB802; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 218 | /** Format code for Windows image files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 219 | public static final int FORMAT_WINDOWS_IMAGE_FORMAT = 0xB881; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 220 | /** Format code for undefined audio files files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 221 | public static final int FORMAT_UNDEFINED_AUDIO = 0xB900; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 222 | /** Format code for WMA audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 223 | public static final int FORMAT_WMA = 0xB901; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 224 | /** Format code for OGG audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 225 | public static final int FORMAT_OGG = 0xB902; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 226 | /** Format code for AAC audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 227 | public static final int FORMAT_AAC = 0xB903; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 228 | /** Format code for Audible audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 229 | public static final int FORMAT_AUDIBLE = 0xB904; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 230 | /** Format code for FLAC audio files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 231 | public static final int FORMAT_FLAC = 0xB906; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 232 | /** Format code for undefined video files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 233 | public static final int FORMAT_UNDEFINED_VIDEO = 0xB980; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 234 | /** Format code for WMV video files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 235 | public static final int FORMAT_WMV = 0xB981; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 236 | /** Format code for MP4 files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 237 | public static final int FORMAT_MP4_CONTAINER = 0xB982; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 238 | /** Format code for MP2 files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 239 | public static final int FORMAT_MP2 = 0xB983; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 240 | /** Format code for 3GP files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 241 | public static final int FORMAT_3GP_CONTAINER = 0xB984; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 242 | /** Format code for undefined collections */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 243 | public static final int FORMAT_UNDEFINED_COLLECTION = 0xBA00; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 244 | /** Format code for multimedia albums */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 245 | public static final int FORMAT_ABSTRACT_MULTIMEDIA_ALBUM = 0xBA01; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 246 | /** Format code for image albums */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 247 | public static final int FORMAT_ABSTRACT_IMAGE_ALBUM = 0xBA02; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 248 | /** Format code for audio albums */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 249 | public static final int FORMAT_ABSTRACT_AUDIO_ALBUM = 0xBA03; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 250 | /** Format code for video albums */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 251 | public static final int FORMAT_ABSTRACT_VIDEO_ALBUM = 0xBA04; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 252 | /** Format code for abstract AV playlists */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 253 | public static final int FORMAT_ABSTRACT_AV_PLAYLIST = 0xBA05; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 254 | /** Format code for abstract audio playlists */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 255 | public static final int FORMAT_ABSTRACT_AUDIO_PLAYLIST = 0xBA09; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 256 | /** Format code for abstract video playlists */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 257 | public static final int FORMAT_ABSTRACT_VIDEO_PLAYLIST = 0xBA0A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 258 | /** Format code for abstract mediacasts */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 259 | public static final int FORMAT_ABSTRACT_MEDIACAST = 0xBA0B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 260 | /** Format code for WPL playlist files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 261 | public static final int FORMAT_WPL_PLAYLIST = 0xBA10; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 262 | /** Format code for M3u playlist files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 263 | public static final int FORMAT_M3U_PLAYLIST = 0xBA11; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 264 | /** Format code for MPL playlist files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 265 | public static final int FORMAT_MPL_PLAYLIST = 0xBA12; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 266 | /** Format code for ASX playlist files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 267 | public static final int FORMAT_ASX_PLAYLIST = 0xBA13; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 268 | /** Format code for PLS playlist files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 269 | public static final int FORMAT_PLS_PLAYLIST = 0xBA14; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 270 | /** Format code for undefined document files */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 271 | public static final int FORMAT_UNDEFINED_DOCUMENT = 0xBA80; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 272 | /** Format code for abstract documents */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 273 | public static final int FORMAT_ABSTRACT_DOCUMENT = 0xBA81; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 274 | /** Format code for XML documents */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 275 | public static final int FORMAT_XML_DOCUMENT = 0xBA82; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 276 | /** Format code for MS Word documents */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 277 | public static final int FORMAT_MS_WORD_DOCUMENT = 0xBA83; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 278 | /** Format code for MS Excel spreadsheets */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 279 | public static final int FORMAT_MS_EXCEL_SPREADSHEET = 0xBA85; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 280 | /** Format code for MS PowerPoint presentatiosn */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 281 | public static final int FORMAT_MS_POWERPOINT_PRESENTATION = 0xBA86; |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 282 | |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 283 | /** |
| Jaesung Chung | 8409c06 | 2016-01-19 10:48:30 +0900 | [diff] [blame] | 284 | * Returns true if the object is abstract (that is, it has no representation |
| 285 | * in the underlying file system). |
| 286 | * |
| 287 | * @param format the format of the object |
| 288 | * @return true if the object is abstract |
| 289 | */ |
| Mike Lockwood | d7456c6 | 2010-09-14 10:44:30 -0400 | [diff] [blame] | 290 | public static boolean isAbstractObject(int format) { |
| 291 | switch (format) { |
| 292 | case FORMAT_ABSTRACT_MULTIMEDIA_ALBUM: |
| 293 | case FORMAT_ABSTRACT_IMAGE_ALBUM: |
| 294 | case FORMAT_ABSTRACT_AUDIO_ALBUM: |
| 295 | case FORMAT_ABSTRACT_VIDEO_ALBUM: |
| 296 | case FORMAT_ABSTRACT_AV_PLAYLIST: |
| Mike Lockwood | d7456c6 | 2010-09-14 10:44:30 -0400 | [diff] [blame] | 297 | case FORMAT_ABSTRACT_AUDIO_PLAYLIST: |
| 298 | case FORMAT_ABSTRACT_VIDEO_PLAYLIST: |
| 299 | case FORMAT_ABSTRACT_MEDIACAST: |
| 300 | case FORMAT_ABSTRACT_DOCUMENT: |
| Mike Lockwood | d7456c6 | 2010-09-14 10:44:30 -0400 | [diff] [blame] | 301 | return true; |
| 302 | default: |
| 303 | return false; |
| 304 | } |
| 305 | } |
| 306 | |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 307 | // MTP object properties |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 308 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 309 | public static final int PROPERTY_STORAGE_ID = 0xDC01; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 310 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 311 | public static final int PROPERTY_OBJECT_FORMAT = 0xDC02; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 312 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 313 | public static final int PROPERTY_PROTECTION_STATUS = 0xDC03; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 314 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 315 | public static final int PROPERTY_OBJECT_SIZE = 0xDC04; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 316 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 317 | public static final int PROPERTY_ASSOCIATION_TYPE = 0xDC05; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 318 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 319 | public static final int PROPERTY_ASSOCIATION_DESC = 0xDC06; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 320 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 321 | public static final int PROPERTY_OBJECT_FILE_NAME = 0xDC07; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 322 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 323 | public static final int PROPERTY_DATE_CREATED = 0xDC08; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 324 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 325 | public static final int PROPERTY_DATE_MODIFIED = 0xDC09; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 326 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 327 | public static final int PROPERTY_KEYWORDS = 0xDC0A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 328 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 329 | public static final int PROPERTY_PARENT_OBJECT = 0xDC0B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 330 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 331 | public static final int PROPERTY_ALLOWED_FOLDER_CONTENTS = 0xDC0C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 332 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 333 | public static final int PROPERTY_HIDDEN = 0xDC0D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 334 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 335 | public static final int PROPERTY_SYSTEM_OBJECT = 0xDC0E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 336 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 337 | public static final int PROPERTY_PERSISTENT_UID = 0xDC41; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 338 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 339 | public static final int PROPERTY_SYNC_ID = 0xDC42; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 340 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 341 | public static final int PROPERTY_PROPERTY_BAG = 0xDC43; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 342 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 343 | public static final int PROPERTY_NAME = 0xDC44; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 344 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 345 | public static final int PROPERTY_CREATED_BY = 0xDC45; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 346 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 347 | public static final int PROPERTY_ARTIST = 0xDC46; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 348 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 349 | public static final int PROPERTY_DATE_AUTHORED = 0xDC47; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 350 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 351 | public static final int PROPERTY_DESCRIPTION = 0xDC48; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 352 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 353 | public static final int PROPERTY_URL_REFERENCE = 0xDC49; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 354 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 355 | public static final int PROPERTY_LANGUAGE_LOCALE = 0xDC4A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 356 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 357 | public static final int PROPERTY_COPYRIGHT_INFORMATION = 0xDC4B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 358 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 359 | public static final int PROPERTY_SOURCE = 0xDC4C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 360 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 361 | public static final int PROPERTY_ORIGIN_LOCATION = 0xDC4D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 362 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 363 | public static final int PROPERTY_DATE_ADDED = 0xDC4E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 364 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 365 | public static final int PROPERTY_NON_CONSUMABLE = 0xDC4F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 366 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 367 | public static final int PROPERTY_CORRUPT_UNPLAYABLE = 0xDC50; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 368 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 369 | public static final int PROPERTY_PRODUCER_SERIAL_NUMBER = 0xDC51; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 370 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 371 | public static final int PROPERTY_REPRESENTATIVE_SAMPLE_FORMAT = 0xDC81; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 372 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 373 | public static final int PROPERTY_REPRESENTATIVE_SAMPLE_SIZE = 0xDC82; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 374 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 375 | public static final int PROPERTY_REPRESENTATIVE_SAMPLE_HEIGHT = 0xDC83; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 376 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 377 | public static final int PROPERTY_REPRESENTATIVE_SAMPLE_WIDTH = 0xDC84; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 378 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 379 | public static final int PROPERTY_REPRESENTATIVE_SAMPLE_DURATION = 0xDC85; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 380 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 381 | public static final int PROPERTY_REPRESENTATIVE_SAMPLE_DATA = 0xDC86; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 382 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 383 | public static final int PROPERTY_WIDTH = 0xDC87; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 384 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 385 | public static final int PROPERTY_HEIGHT = 0xDC88; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 386 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 387 | public static final int PROPERTY_DURATION = 0xDC89; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 388 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 389 | public static final int PROPERTY_RATING = 0xDC8A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 390 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 391 | public static final int PROPERTY_TRACK = 0xDC8B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 392 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 393 | public static final int PROPERTY_GENRE = 0xDC8C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 394 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 395 | public static final int PROPERTY_CREDITS = 0xDC8D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 396 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 397 | public static final int PROPERTY_LYRICS = 0xDC8E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 398 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 399 | public static final int PROPERTY_SUBSCRIPTION_CONTENT_ID = 0xDC8F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 400 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 401 | public static final int PROPERTY_PRODUCED_BY = 0xDC90; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 402 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 403 | public static final int PROPERTY_USE_COUNT = 0xDC91; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 404 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 405 | public static final int PROPERTY_SKIP_COUNT = 0xDC92; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 406 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 407 | public static final int PROPERTY_LAST_ACCESSED = 0xDC93; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 408 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 409 | public static final int PROPERTY_PARENTAL_RATING = 0xDC94; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 410 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 411 | public static final int PROPERTY_META_GENRE = 0xDC95; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 412 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 413 | public static final int PROPERTY_COMPOSER = 0xDC96; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 414 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 415 | public static final int PROPERTY_EFFECTIVE_RATING = 0xDC97; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 416 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 417 | public static final int PROPERTY_SUBTITLE = 0xDC98; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 418 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 419 | public static final int PROPERTY_ORIGINAL_RELEASE_DATE = 0xDC99; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 420 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 421 | public static final int PROPERTY_ALBUM_NAME = 0xDC9A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 422 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 423 | public static final int PROPERTY_ALBUM_ARTIST = 0xDC9B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 424 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 425 | public static final int PROPERTY_MOOD = 0xDC9C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 426 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 427 | public static final int PROPERTY_DRM_STATUS = 0xDC9D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 428 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 429 | public static final int PROPERTY_SUB_DESCRIPTION = 0xDC9E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 430 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 431 | public static final int PROPERTY_IS_CROPPED = 0xDCD1; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 432 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 433 | public static final int PROPERTY_IS_COLOUR_CORRECTED = 0xDCD2; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 434 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 435 | public static final int PROPERTY_IMAGE_BIT_DEPTH = 0xDCD3; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 436 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 437 | public static final int PROPERTY_F_NUMBER = 0xDCD4; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 438 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 439 | public static final int PROPERTY_EXPOSURE_TIME = 0xDCD5; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 440 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 441 | public static final int PROPERTY_EXPOSURE_INDEX = 0xDCD6; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 442 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 443 | public static final int PROPERTY_TOTAL_BITRATE = 0xDE91; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 444 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 445 | public static final int PROPERTY_BITRATE_TYPE = 0xDE92; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 446 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 447 | public static final int PROPERTY_SAMPLE_RATE = 0xDE93; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 448 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 449 | public static final int PROPERTY_NUMBER_OF_CHANNELS = 0xDE94; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 450 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 451 | public static final int PROPERTY_AUDIO_BIT_DEPTH = 0xDE95; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 452 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 453 | public static final int PROPERTY_SCAN_TYPE = 0xDE97; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 454 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 455 | public static final int PROPERTY_AUDIO_WAVE_CODEC = 0xDE99; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 456 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 457 | public static final int PROPERTY_AUDIO_BITRATE = 0xDE9A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 458 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 459 | public static final int PROPERTY_VIDEO_FOURCC_CODEC = 0xDE9B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 460 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 461 | public static final int PROPERTY_VIDEO_BITRATE = 0xDE9C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 462 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 463 | public static final int PROPERTY_FRAMES_PER_THOUSAND_SECONDS = 0xDE9D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 464 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 465 | public static final int PROPERTY_KEYFRAME_DISTANCE = 0xDE9E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 466 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 467 | public static final int PROPERTY_BUFFER_SIZE = 0xDE9F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 468 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 469 | public static final int PROPERTY_ENCODING_QUALITY = 0xDEA0; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 470 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 471 | public static final int PROPERTY_ENCODING_PROFILE = 0xDEA1; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 472 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 473 | public static final int PROPERTY_DISPLAY_NAME = 0xDCE0; |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 474 | |
| 475 | // MTP device properties |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 476 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 477 | public static final int DEVICE_PROPERTY_UNDEFINED = 0x5000; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 478 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 479 | public static final int DEVICE_PROPERTY_BATTERY_LEVEL = 0x5001; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 480 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 481 | public static final int DEVICE_PROPERTY_FUNCTIONAL_MODE = 0x5002; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 482 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 483 | public static final int DEVICE_PROPERTY_IMAGE_SIZE = 0x5003; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 484 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 485 | public static final int DEVICE_PROPERTY_COMPRESSION_SETTING = 0x5004; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 486 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 487 | public static final int DEVICE_PROPERTY_WHITE_BALANCE = 0x5005; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 488 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 489 | public static final int DEVICE_PROPERTY_RGB_GAIN = 0x5006; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 490 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 491 | public static final int DEVICE_PROPERTY_F_NUMBER = 0x5007; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 492 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 493 | public static final int DEVICE_PROPERTY_FOCAL_LENGTH = 0x5008; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 494 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 495 | public static final int DEVICE_PROPERTY_FOCUS_DISTANCE = 0x5009; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 496 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 497 | public static final int DEVICE_PROPERTY_FOCUS_MODE = 0x500A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 498 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 499 | public static final int DEVICE_PROPERTY_EXPOSURE_METERING_MODE = 0x500B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 500 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 501 | public static final int DEVICE_PROPERTY_FLASH_MODE = 0x500C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 502 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 503 | public static final int DEVICE_PROPERTY_EXPOSURE_TIME = 0x500D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 504 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 505 | public static final int DEVICE_PROPERTY_EXPOSURE_PROGRAM_MODE = 0x500E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 506 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 507 | public static final int DEVICE_PROPERTY_EXPOSURE_INDEX = 0x500F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 508 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 509 | public static final int DEVICE_PROPERTY_EXPOSURE_BIAS_COMPENSATION = 0x5010; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 510 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 511 | public static final int DEVICE_PROPERTY_DATETIME = 0x5011; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 512 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 513 | public static final int DEVICE_PROPERTY_CAPTURE_DELAY = 0x5012; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 514 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 515 | public static final int DEVICE_PROPERTY_STILL_CAPTURE_MODE = 0x5013; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 516 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 517 | public static final int DEVICE_PROPERTY_CONTRAST = 0x5014; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 518 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 519 | public static final int DEVICE_PROPERTY_SHARPNESS = 0x5015; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 520 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 521 | public static final int DEVICE_PROPERTY_DIGITAL_ZOOM = 0x5016; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 522 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 523 | public static final int DEVICE_PROPERTY_EFFECT_MODE = 0x5017; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 524 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 525 | public static final int DEVICE_PROPERTY_BURST_NUMBER= 0x5018; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 526 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 527 | public static final int DEVICE_PROPERTY_BURST_INTERVAL = 0x5019; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 528 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 529 | public static final int DEVICE_PROPERTY_TIMELAPSE_NUMBER = 0x501A; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 530 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 531 | public static final int DEVICE_PROPERTY_TIMELAPSE_INTERVAL = 0x501B; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 532 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 533 | public static final int DEVICE_PROPERTY_FOCUS_METERING_MODE = 0x501C; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 534 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 535 | public static final int DEVICE_PROPERTY_UPLOAD_URL = 0x501D; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 536 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 537 | public static final int DEVICE_PROPERTY_ARTIST = 0x501E; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 538 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 539 | public static final int DEVICE_PROPERTY_COPYRIGHT_INFO = 0x501F; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 540 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 541 | public static final int DEVICE_PROPERTY_SYNCHRONIZATION_PARTNER = 0xD401; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 542 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 543 | public static final int DEVICE_PROPERTY_DEVICE_FRIENDLY_NAME = 0xD402; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 544 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 545 | public static final int DEVICE_PROPERTY_VOLUME = 0xD403; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 546 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 547 | public static final int DEVICE_PROPERTY_SUPPORTED_FORMATS_ORDERED = 0xD404; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 548 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 549 | public static final int DEVICE_PROPERTY_DEVICE_ICON = 0xD405; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 550 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 551 | public static final int DEVICE_PROPERTY_PLAYBACK_RATE = 0xD410; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 552 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 553 | public static final int DEVICE_PROPERTY_PLAYBACK_OBJECT = 0xD411; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 554 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 555 | public static final int DEVICE_PROPERTY_PLAYBACK_CONTAINER_INDEX = 0xD412; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 556 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 557 | public static final int DEVICE_PROPERTY_SESSION_INITIATOR_VERSION_INFO = 0xD406; |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 558 | /** @hide */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 559 | public static final int DEVICE_PROPERTY_PERCEIVED_DEVICE_TYPE = 0xD407; |
| 560 | |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 561 | /** |
| 562 | * Object is not protected. It may be modified and deleted, and its properties |
| 563 | * may be modified. |
| 564 | */ |
| 565 | public static final int PROTECTION_STATUS_NONE = 0; |
| 566 | |
| 567 | /** |
| 568 | * Object can not be modified or deleted and its properties can not be modified. |
| 569 | */ |
| 570 | public static final int PROTECTION_STATUS_READ_ONLY = 0x8001; |
| 571 | |
| 572 | /** |
| 573 | * Object can not be modified or deleted but its properties are modifiable. |
| 574 | */ |
| 575 | public static final int PROTECTION_STATUS_READ_ONLY_DATA = 0x8002; |
| 576 | |
| 577 | /** |
| 578 | * Object's contents can not be transfered from the device, but the object |
| 579 | * may be moved or deleted and its properties may be modified. |
| 580 | */ |
| 581 | public static final int PROTECTION_STATUS_NON_TRANSFERABLE_DATA = 0x8003; |
| 582 | |
| Mike Lockwood | 540380f | 2011-02-09 21:48:53 -0500 | [diff] [blame] | 583 | /** |
| 584 | * Association type for objects representing file system directories. |
| 585 | */ |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 586 | public static final int ASSOCIATION_TYPE_GENERIC_FOLDER = 0x0001; |
| Daichi Hirono | cf62fdc | 2016-01-06 14:55:47 +0900 | [diff] [blame] | 587 | |
| Daichi Hirono | 1d4779c | 2016-01-06 16:43:32 +0900 | [diff] [blame] | 588 | /** Operation code for GetDeviceInfo */ |
| 589 | public static final int OPERATION_GET_DEVICE_INFO = 0x1001; |
| 590 | /** Operation code for OpenSession */ |
| 591 | public static final int OPERATION_OPEN_SESSION = 0x1002; |
| 592 | /** Operation code for CloseSession */ |
| 593 | public static final int OPERATION_CLOSE_SESSION = 0x1003; |
| 594 | /** Operation code for GetStorageIDs */ |
| 595 | public static final int OPERATION_GET_STORAGE_I_DS = 0x1004; |
| 596 | /** Operation code for GetStorageInfo */ |
| 597 | public static final int OPERATION_GET_STORAGE_INFO = 0x1005; |
| 598 | /** Operation code for GetNumObjects */ |
| 599 | public static final int OPERATION_GET_NUM_OBJECTS = 0x1006; |
| 600 | /** Operation code for GetObjectHandles */ |
| 601 | public static final int OPERATION_GET_OBJECT_HANDLES = 0x1007; |
| 602 | /** Operation code for GetObjectInfo */ |
| 603 | public static final int OPERATION_GET_OBJECT_INFO = 0x1008; |
| 604 | /** Operation code for GetObject */ |
| 605 | public static final int OPERATION_GET_OBJECT = 0x1009; |
| 606 | /** Operation code for GetThumb */ |
| 607 | public static final int OPERATION_GET_THUMB = 0x100A; |
| 608 | /** Operation code for DeleteObject */ |
| 609 | public static final int OPERATION_DELETE_OBJECT = 0x100B; |
| 610 | /** Operation code for SendObjectInfo */ |
| 611 | public static final int OPERATION_SEND_OBJECT_INFO = 0x100C; |
| 612 | /** Operation code for SendObject */ |
| 613 | public static final int OPERATION_SEND_OBJECT = 0x100D; |
| 614 | /** Operation code for InitiateCapture */ |
| 615 | public static final int OPERATION_INITIATE_CAPTURE = 0x100E; |
| 616 | /** Operation code for FormatStore */ |
| 617 | public static final int OPERATION_FORMAT_STORE = 0x100F; |
| 618 | /** Operation code for ResetDevice */ |
| 619 | public static final int OPERATION_RESET_DEVICE = 0x1010; |
| 620 | /** Operation code for SelfTest */ |
| 621 | public static final int OPERATION_SELF_TEST = 0x1011; |
| 622 | /** Operation code for SetObjectProtection */ |
| 623 | public static final int OPERATION_SET_OBJECT_PROTECTION = 0x1012; |
| 624 | /** Operation code for PowerDown */ |
| 625 | public static final int OPERATION_POWER_DOWN = 0x1013; |
| 626 | /** Operation code for GetDevicePropDesc */ |
| 627 | public static final int OPERATION_GET_DEVICE_PROP_DESC = 0x1014; |
| 628 | /** Operation code for GetDevicePropValue */ |
| 629 | public static final int OPERATION_GET_DEVICE_PROP_VALUE = 0x1015; |
| 630 | /** Operation code for SetDevicePropValue */ |
| 631 | public static final int OPERATION_SET_DEVICE_PROP_VALUE = 0x1016; |
| 632 | /** Operation code for ResetDevicePropValue */ |
| 633 | public static final int OPERATION_RESET_DEVICE_PROP_VALUE = 0x1017; |
| 634 | /** Operation code for TerminateOpenCapture */ |
| 635 | public static final int OPERATION_TERMINATE_OPEN_CAPTURE = 0x1018; |
| 636 | /** Operation code for MoveObject */ |
| 637 | public static final int OPERATION_MOVE_OBJECT = 0x1019; |
| 638 | /** Operation code for CopyObject */ |
| 639 | public static final int OPERATION_COPY_OBJECT = 0x101A; |
| 640 | /** Operation code for GetPartialObject */ |
| 641 | public static final int OPERATION_GET_PARTIAL_OBJECT = 0x101B; |
| 642 | /** Operation code for InitiateOpenCapture */ |
| 643 | public static final int OPERATION_INITIATE_OPEN_CAPTURE = 0x101C; |
| 644 | /** Operation code for GetObjectPropsSupported */ |
| 645 | public static final int OPERATION_GET_OBJECT_PROPS_SUPPORTED = 0x9801; |
| 646 | /** Operation code for GetObjectPropDesc */ |
| 647 | public static final int OPERATION_GET_OBJECT_PROP_DESC = 0x9802; |
| 648 | /** Operation code for GetObjectPropValue */ |
| 649 | public static final int OPERATION_GET_OBJECT_PROP_VALUE = 0x9803; |
| 650 | /** Operation code for SetObjectPropValue */ |
| 651 | public static final int OPERATION_SET_OBJECT_PROP_VALUE = 0x9804; |
| 652 | /** Operation code for GetObjectReferences */ |
| 653 | public static final int OPERATION_GET_OBJECT_REFERENCES = 0x9810; |
| 654 | /** Operation code for SetObjectReferences */ |
| 655 | public static final int OPERATION_SET_OBJECT_REFERENCES = 0x9811; |
| 656 | /** Operation code for Skip */ |
| 657 | public static final int OPERATION_SKIP = 0x9820; |
| Daichi Hirono | 038832b | 2016-01-22 19:34:25 +0900 | [diff] [blame] | 658 | /** Operation code for GetPartialObject64 */ |
| 659 | public static final int OPERATION_GET_PARTIAL_OBJECT_64 = 0x95C1; |
| Mike Lockwood | 5367ab6 | 2010-08-30 13:23:02 -0400 | [diff] [blame] | 660 | } |