| 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()
DevicegetManufacturer in interface Devicepublic java.lang.String getBrand()
Devicepublic java.lang.String getBuildDevice()
DevicegetBuildDevice in interface Devicepublic java.lang.String getBuildHardware()
DevicegetBuildHardware in interface Devicepublic java.lang.String getBuildModel()
DevicegetBuildModel in interface Devicepublic java.lang.String getProduct()
DevicegetProduct in interface Devicepublic java.lang.String getBuildId()
DevicegetBuildId in interface Devicepublic java.lang.String getFingerprint()
DevicegetFingerprint in interface Devicepublic java.lang.String getReleaseVersion()
DevicegetReleaseVersion in interface Devicepublic java.lang.String getIncrementalVersion()
DevicegetIncrementalVersion in interface Devicepublic java.lang.String getBootloader()
DevicegetBootloader in interface Devicepublic java.lang.String getBuildType()
DevicegetBuildType in interface Devicepublic java.lang.String getBuildTags()
DevicegetBuildTags in interface Devicepublic int getSdkVersion()
DevicegetSdkVersion in interface Devicepublic long getBuildTime()
DeviceNOTE: the build.prop file stores the time in seconds since the epoch.
getBuildTime in interface Devicepublic java.util.List<java.lang.String> getAbi()
Devicepublic int getScreenWidth()
DevicegetScreenWidth in interface Devicepublic int getScreenHeight()
DevicegetScreenHeight in interface Devicepublic int getScreenDensity()
DevicegetScreenDensity in interface Devicepublic java.util.List<java.lang.String> getSystemAvailableFeatures()
DevicegetSystemAvailableFeatures in interface Devicepublic java.util.List<java.lang.String> getSystemSharedLibraries()
DevicegetSystemSharedLibraries in interface Devicepublic boolean isOtaInstalled()
DeviceisOtaInstalled in interface Devicepublic java.util.List<java.lang.String> getLocales()
DevicegetLocales in interface Devicepublic int getGlEsVersion()
DevicegetGlEsVersion in interface DeviceMockUtil.encodeGlVersion(int, int).public java.util.List<java.lang.String> getGlExtensions()
DevicegetGlExtensions in interface Devicepublic java.util.List<AppInfo> getInstalledApps()
DevicegetInstalledApps in interface Devicepublic boolean getHasFiveWayNavigation()
DevicegetHasFiveWayNavigation in interface Devicepublic boolean getHasHardwareKeyboard()
DevicegetHasHardwareKeyboard in interface Devicepublic int getKeyboard()
DevicegetKeyboard in interface Devicepublic int getTouchscreen()
DevicegetTouchscreen in interface Devicepublic int getNavigation()
DevicegetNavigation in interface Devicepublic int getScreenLayout()
DevicegetScreenLayout in interface Devicepublic boolean isLowRamDevice()
DeviceisLowRamDevice in interface Devicepublic int getSmallestScreenWidthDp()
DevicegetSmallestScreenWidthDp in interface Device