本文整理汇总了Java中android.os.Build.DISPLAY属性的典型用法代码示例。如果您正苦于以下问题:Java Build.DISPLAY属性的具体用法?Java Build.DISPLAY怎么用?Java Build.DISPLAY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类android.os.Build
的用法示例。
在下文中一共展示了Build.DISPLAY属性的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getPhoneMes
public static void getPhoneMes(Context context) {
try {
TelephonyManager mTm = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
String mtype = Build.MODEL; // 手机型号
String mtyb = Build.BRAND;//手机品牌
mdevicetype = mtyb + "-" + mtype;
String platform = Build.VERSION.RELEASE;//手机Android系统版本
String display = Build.DISPLAY;//手机系统名称
mplatform = "Android版本:" + platform + " 系统名称:" + display;
mdeviceId = mTm.getDeviceId();//手机设备IME
} catch (Exception e) {
e.printStackTrace();
}
}
示例2: getHandSetInfo
private static String getHandSetInfo() {
String handSetInfo = "手机型号:" + Build.MODEL
+ "\n系统版本:" + Build.VERSION.RELEASE
+ "\n产品型号:" + Build.PRODUCT
+ "\n版本显示:" + Build.DISPLAY
+ "\n系统定制商:" + Build.BRAND
+ "\n设备参数:" + Build.DEVICE
+ "\n开发代号:" + Build.VERSION.CODENAME
+ "\nSDK版本号:" + Build.VERSION.SDK_INT
+ "\nCPU类型:" + Build.CPU_ABI
+ "\n硬件类型:" + Build.HARDWARE
+ "\n主机:" + Build.HOST
+ "\n生产ID:" + Build.ID
+ "\nROM制造商:" + Build.MANUFACTURER // 这行返回的是rom定制商的名称
;
Log.e("tt",handSetInfo);
return handSetInfo;
}
示例3: getDeviceDetails
public static String getDeviceDetails(Context context) {
return "Device Information\n"
+ "\nDEVICE.ID : " + getDeviceId(context)
+ "\nUSER.ID : " + getUserIdentity(context)
+ "\nAPP.VERSION : " + getAppVersion(context)
+ "\nLAUNCHER.APP : " + getCurrentLauncherApp(context)
+ "\nTIMEZONE : " + timeZone()
+ "\nVERSION.RELEASE : " + Build.VERSION.RELEASE
+ "\nVERSION.INCREMENTAL : " + Build.VERSION.INCREMENTAL
+ "\nVERSION.SDK.NUMBER : " + Build.VERSION.SDK_INT
+ "\nBOARD : " + Build.BOARD
+ "\nBOOTLOADER : " + Build.BOOTLOADER
+ "\nBRAND : " + Build.BRAND
+ "\nCPU_ABI : " + Build.CPU_ABI
+ "\nCPU_ABI2 : " + Build.CPU_ABI2
+ "\nDISPLAY : " + Build.DISPLAY
+ "\nFINGERPRINT : " + Build.FINGERPRINT
+ "\nHARDWARE : " + Build.HARDWARE
+ "\nHOST : " + Build.HOST
+ "\nID : " + Build.ID
+ "\nMANUFACTURER : " + Build.MANUFACTURER
+ "\nMODEL : " + Build.MODEL
+ "\nPRODUCT : " + Build.PRODUCT
+ "\nSERIAL : " + Build.SERIAL
+ "\nTAGS : " + Build.TAGS
+ "\nTIME : " + Build.TIME
+ "\nTYPE : " + Build.TYPE
+ "\nUNKNOWN : " + Build.UNKNOWN
+ "\nUSER : " + Build.USER;
}
示例4: loadFromContext
public static void loadFromContext(Context context) {
APP_NAME = getAppName(context);
ANDROID_VERSION = Build.VERSION.RELEASE;
ANDROID_BUILD = Build.DISPLAY;
PHONE_MODEL = Build.MODEL;
PHONE_MANUFACTURER = Build.MANUFACTURER;
SDK_ID = Functions.getSdkId();
loadPackageData(context);
loadCrashIdentifier(context);
}
示例5: setCamcorderProfile
@SuppressLint("NewApi")
private void setCamcorderProfile() {
CamcorderProfile profile;
profile = CamcorderProfile.get(CamcorderProfile.QUALITY_480P);
if (profile != null) {
if (currentUsePoint != null) {
profile.videoFrameWidth = currentUsePoint.x;
profile.videoFrameHeight = currentUsePoint.y;
}
profile.fileFormat = MediaRecorder.OutputFormat.MPEG_4;
if (Build.MODEL.equalsIgnoreCase("MB525") || Build.MODEL.equalsIgnoreCase("C8812") || Build.MODEL.equalsIgnoreCase("C8650")) {
profile.videoCodec = MediaRecorder.VideoEncoder.H263;
} else {
profile.videoCodec = MediaRecorder.VideoEncoder.H264;
}
if (Build.VERSION.SDK_INT >= 14) {
profile.audioCodec = MediaRecorder.AudioEncoder.AAC;
} else {
if (Build.DISPLAY != null && Build.DISPLAY.indexOf("MIUI") >= 0) {
profile.audioCodec = MediaRecorder.AudioEncoder.AAC;
} else {
profile.audioCodec = MediaRecorder.AudioEncoder.AMR_NB;
}
}
mediaRecorder.setProfile(profile);
} else {
mediaRecorder.setOutputFormat(MediaRecorder.OutputFormat.MPEG_4);
mediaRecorder.setVideoEncoder(MediaRecorder.VideoEncoder.H264);
mediaRecorder.setAudioEncoder(MediaRecorder.AudioEncoder.AMR_NB);
mediaRecorder.setVideoSize(VIDEO_WIDTH, VIDEO_HEIGHT);
}
}
示例6: isAOSP
public static boolean isAOSP(int sdk) {
if (!PrivacyManager.cVersion3)
return false;
if (Build.VERSION.SDK_INT >= sdk) {
if ("true".equals(System.getenv("XPrivacy.AOSP")))
return true;
if (Build.DISPLAY == null || Build.HOST == null)
return false;
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP)
// @formatter:off
return (
isAOSP() ||
isCyanogenMod() ||
isOmni() ||
isMIUI() ||
isSlim() ||
isParanoidAndroid() ||
isCarbon() ||
isDirtyUnicorns() ||
isLiquidSmooth() ||
isAndroidRevolutionHD() ||
isMahdi() ||
isOmega()
);
// @formatter:on
else
return isAOSP();
} else
return false;
}
示例7: getDeviceInfo
public String getDeviceInfo() {
return "\n" +
"Brand:" +
Build.BRAND +
"\n" +
"Manufacturer:" +
Build.MANUFACTURER +
"\n" +
"Product:" +
Build.PRODUCT +
"\n" +
"Board:" +
Build.BOARD +
"\n" +
"Bootloader:" +
Build.BOOTLOADER +
"\n" +
"CPU_abi:" +
Build.CPU_ABI +
"\n" +
"CPU_abi2:" +
Build.CPU_ABI2 +
"\n" +
"DEVICE:" +
Build.DEVICE +
"\n" +
"Display:" +
Build.DISPLAY +
"\n" +
"Fingerprint:" +
Build.FINGERPRINT +
"\n" +
"Hardware:" +
Build.HARDWARE +
"\n" +
"Host:" +
Build.HOST +
"\n" +
"ID:" +
Build.ID +
"\n" +
"Model:" +
Build.MODEL +
"\n" +
"Time:" +
Build.TIME +
"\n" +
"Type:" +
Build.TYPE +
"\n" +
"User:" +
Build.USER +
"\n" +
"CodeName:" +
Build.VERSION.CODENAME +
"\n" +
"Incremental:" +
Build.VERSION.INCREMENTAL +
"\n" +
"Release:" +
Build.VERSION.RELEASE +
"\n" +
"SDK:" +
Build.VERSION.SDK_INT +
"\n";
}
示例8: getDisplayVersion
public static String getDisplayVersion() {
return Build.DISPLAY;
}
示例9: getBuildDisplayId
public static String getBuildDisplayId() {
return Build.DISPLAY;
}
示例10: getBuildDisplayId
public String getBuildDisplayId() {
return Build.DISPLAY;
}
示例11: getFlymeVersion
/**
* 获取Flyme的版本
*
* @return
*/
public static String getFlymeVersion() {
return isFlyme() ? Build.DISPLAY : "";
}