public class DeviceInfo
extends java.lang.Object
| Constructor and Description |
|---|
DeviceInfo()
Empty constructor.
Instantiates all variables as null. |
DeviceInfo(java.lang.String make,
java.lang.String model,
java.lang.String board,
java.lang.String bootloader,
java.lang.String[] supportedABIs,
java.lang.String dpi)
Constructor with all variables.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
buildTextReport()
Builds a text report with the gathered information
|
java.lang.StringBuilder |
buildTextReport(java.lang.StringBuilder report)
Builds a text report with the gathered information
|
static DeviceInfo |
getAutoDevInfo(android.content.Context context)
Auto generates an instance of
DeviceInfo with all variables filled with the default values using the Build class. |
java.lang.String |
getBoard()
The board name (e.g.
|
java.lang.String |
getBootloader()
The bootloader version number
|
java.lang.String |
getDpi()
Gets the dpi of the device's screen.
|
java.lang.String |
getMake()
The manufacturer of this device
|
java.lang.String |
getModel()
The device model
|
java.lang.String[] |
getSupportedABIs()
A list of all ABIs supported by the device
|
DeviceInfo |
setBoard(java.lang.String board)
Sets the board name (e.g.
|
DeviceInfo |
setBootloader(java.lang.String bootloader)
Sets the bootloader version number
|
DeviceInfo |
setDpi(java.lang.String dpi)
Sets the dpi of the device's screen.
|
DeviceInfo |
setMake(java.lang.String make)
Sets the manufacturer of the device
|
DeviceInfo |
setModel(java.lang.String model)
Sets the device model
|
DeviceInfo |
setSupportedABIs(java.lang.String[] supportedABIs)
Sets the ABIs supported by the device
|
public DeviceInfo()
public DeviceInfo(java.lang.String make,
java.lang.String model,
java.lang.String board,
java.lang.String bootloader,
java.lang.String[] supportedABIs,
java.lang.String dpi)
make - The manufacturer of this devicemodel - The device modelboard - The board name (e.g. "hammerhead" for Nexus 5)bootloader - The bootloader version number for this devicesupportedABIs - A list of all ABIs supported by the devicepublic java.lang.StringBuilder buildTextReport()
public java.lang.StringBuilder buildTextReport(java.lang.StringBuilder report)
public java.lang.String getMake()
public DeviceInfo setMake(java.lang.String make)
public java.lang.String getModel()
public DeviceInfo setModel(java.lang.String model)
public java.lang.String getBoard()
public DeviceInfo setBoard(java.lang.String board)
public java.lang.String getBootloader()
public DeviceInfo setBootloader(java.lang.String bootloader)
public java.lang.String[] getSupportedABIs()
public DeviceInfo setSupportedABIs(java.lang.String[] supportedABIs)
public java.lang.String getDpi()
public DeviceInfo setDpi(java.lang.String dpi)
public static DeviceInfo getAutoDevInfo(android.content.Context context)
DeviceInfo with all variables filled with Build class.