本文整理匯總了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 : "";
}