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 17 package android.mtp; 18 19 /** 20 * This class encapsulates information about an MTP device. 21 * This corresponds to the DeviceInfo Dataset described in 22 * section 5.1.1 of the MTP specification. 23 */ 24 public class MtpDeviceInfo { 25 26 private String mManufacturer; 27 private String mModel; 28 private String mVersion; 29 private String mSerialNumber; 30 31 // only instantiated via JNI 32 private MtpDeviceInfo() { 33 } 34 35 /** 36 * Returns the manufacturer's name for the MTP device 37 * 38 * @return the manufacturer name 39 */ 40 public final String getManufacturer() { 41 return mManufacturer; 42 } 43 44 /** 45 * Returns the model name for the MTP device 46 * 47 * @return the model name 48 */ 49 public final String getModel() { 50 return mModel; 51 } 52 53 /** 54 * Returns the version string the MTP device 55 * 56 * @return the device version 57 */ 58 public final String getVersion() { 59 return mVersion; 60 } 61 62 /** 63 * Returns the unique serial number for the MTP device 64 * 65 * @return the serial number 66 */ 67 public final String getSerialNumber() { 68 return mSerialNumber; 69 } 70 }