Constructor and Description |
---|
BuildPropDevice(java.util.Properties buildProp) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.String> |
getAbi()
Build property
|
java.lang.String |
getBootloader()
Build property
|
java.lang.String |
getBrand()
Build property
|
java.lang.String |
getBuildDevice()
Build property
|
java.lang.String |
getBuildHardware()
Build property
|
java.lang.String |
getBuildId()
Build property
|
java.lang.String |
getBuildModel()
Build property
|
java.lang.String |
getBuildTags()
Build property
|
long |
getBuildTime()
Build property.
|
java.lang.String |
getBuildType()
Build property
|
java.lang.String |
getFingerprint()
Build property
|
int |
getGlEsVersion()
Open GL ES version, encoded in a single int (major version number in the
upper, minor version number in the lower bits).
|
java.util.List<java.lang.String> |
getGlExtensions()
All supported GL extensions.
|
boolean |
getHasFiveWayNavigation()
Refers to the DPAD found on flip phones.
|
boolean |
getHasHardwareKeyboard()
Obsolete.
|
java.lang.String |
getIncrementalVersion()
Build property
|
java.util.List<AppInfo> |
getInstalledApps()
List installed apps
|
int |
getKeyboard()
The keyboard type.
|
java.util.List<java.lang.String> |
getLocales()
Languages, the device support.
|
java.lang.String |
getManufacturer()
Build property
|
int |
getNavigation()
The kind of "cursor keys" available on the device.
|
java.lang.String |
getProduct()
Build property
|
java.lang.String |
getReleaseVersion()
Build property
|
int |
getScreenDensity()
Screen metics.
|
int |
getScreenHeight()
Screen metrics
|
int |
getScreenLayout()
Refer to android.content.res.Configuration for details.
|
int |
getScreenWidth()
Screen metrics
|
int |
getSdkVersion()
Build property
|
int |
getSmallestScreenWidthDp()
Introduced with SDK level 13.
|
java.util.List<java.lang.String> |
getSystemAvailableFeatures()
Can be obtained from "adb shell pm list features".
|
java.util.List<java.lang.String> |
getSystemSharedLibraries()
Can be obtained from running "adb shell pm list libraries".
|
int |
getTouchscreen()
The touchscreen type.
|
boolean |
isLowRamDevice()
Introduced with SDK level 19.
|
boolean |
isOtaInstalled()
Over The Air updated?
|
public java.lang.String getManufacturer()
Device
getManufacturer
in interface Device
public java.lang.String getBrand()
Device
public java.lang.String getBuildDevice()
Device
getBuildDevice
in interface Device
public java.lang.String getBuildHardware()
Device
getBuildHardware
in interface Device
public java.lang.String getBuildModel()
Device
getBuildModel
in interface Device
public java.lang.String getProduct()
Device
getProduct
in interface Device
public java.lang.String getBuildId()
Device
getBuildId
in interface Device
public java.lang.String getFingerprint()
Device
getFingerprint
in interface Device
public java.lang.String getReleaseVersion()
Device
getReleaseVersion
in interface Device
public java.lang.String getIncrementalVersion()
Device
getIncrementalVersion
in interface Device
public java.lang.String getBootloader()
Device
getBootloader
in interface Device
public java.lang.String getBuildType()
Device
getBuildType
in interface Device
public java.lang.String getBuildTags()
Device
getBuildTags
in interface Device
public int getSdkVersion()
Device
getSdkVersion
in interface Device
public long getBuildTime()
Device
NOTE: the build.prop file stores the time in seconds since the epoch.
getBuildTime
in interface Device
public java.util.List<java.lang.String> getAbi()
Device
public int getScreenWidth()
Device
getScreenWidth
in interface Device
public int getScreenHeight()
Device
getScreenHeight
in interface Device
public int getScreenDensity()
Device
getScreenDensity
in interface Device
public java.util.List<java.lang.String> getSystemAvailableFeatures()
Device
getSystemAvailableFeatures
in interface Device
public java.util.List<java.lang.String> getSystemSharedLibraries()
Device
getSystemSharedLibraries
in interface Device
public boolean isOtaInstalled()
Device
isOtaInstalled
in interface Device
public java.util.List<java.lang.String> getLocales()
Device
getLocales
in interface Device
public int getGlEsVersion()
Device
getGlEsVersion
in interface Device
MockUtil.encodeGlVersion(int, int)
.public java.util.List<java.lang.String> getGlExtensions()
Device
getGlExtensions
in interface Device
public java.util.List<AppInfo> getInstalledApps()
Device
getInstalledApps
in interface Device
public boolean getHasFiveWayNavigation()
Device
getHasFiveWayNavigation
in interface Device
public boolean getHasHardwareKeyboard()
Device
getHasHardwareKeyboard
in interface Device
public int getKeyboard()
Device
getKeyboard
in interface Device
public int getTouchscreen()
Device
getTouchscreen
in interface Device
public int getNavigation()
Device
getNavigation
in interface Device
public int getScreenLayout()
Device
getScreenLayout
in interface Device
public boolean isLowRamDevice()
Device
isLowRamDevice
in interface Device
public int getSmallestScreenWidthDp()
Device
getSmallestScreenWidthDp
in interface Device