Home | History | Annotate | Download | only in mtp

Lines Matching refs:property

37     private class Property {
42 Property(int code, int type, int column) {
54 private final Property[] mProperties;
61 // constructs a property group for a list of properties
71 mProperties = new Property[count];
82 private Property createProperty(int code, ArrayList<String> columns) {
167 Log.e(TAG, "unsupported property " + code);
173 return new Property(code, type, columns.size() - 1);
175 return new Property(code, type, -1);
220 * Gets the values of the properties represented by this property group for the given
221 * object and adds them to the given property list.
228 for (Property property : mProperties) {
229 if (property.column != -1 && c == null) {
242 switch (property.code) {
245 list.append(id, property.code, property.type, 0);
250 list.append(id, property.code, object.getName());
255 list.append(id, property.code,
259 list.append(id, property.code, property.type, object.getStorageId());
262 list.append(id, property.code, property.type, object.getFormat());
265 list.append(id, property.code, property.type, object.getSize());
268 list.append(id, property.code, property.type,
276 list.append(id, property.code, property.type, puid);
282 year = c.getInt(property.column);
284 list.append(id, property.code, dateTime);
289 track = c.getInt(property.column);
290 list.append(id, property.code, MtpConstants.TYPE_UINT16,
294 list.append(id, property.code,
298 list.append(id, property.code,
304 list.append(id, property.code, genre);
311 list.append(id, property.code, MtpConstants.TYPE_UINT32, 0);
316 list.append(id, property.code, MtpConstants.TYPE_UINT16, 0);
319 switch(property.type) {
321 list.append(id, property.code, property.type, 0);
326 value = c.getString(property.column);
327 list.append(id, property.code, value);
332 longValue = c.getLong(property.column);
333 list.append(id, property.code, property.type, longValue);