當前位置: 首頁>>代碼示例>>Java>>正文


Java Build.DISPLAY屬性代碼示例

本文整理匯總了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();
    }
}
 
開發者ID:chenzj-king,項目名稱:RetrofitSample,代碼行數:17,代碼來源:AppUtil.java

示例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;
}
 
開發者ID:hss01248,項目名稱:MainActivityUIUtil,代碼行數:18,代碼來源:StatusbarUtil.java

示例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;
    }
 
開發者ID:MindorksOpenSource,項目名稱:CrashReporter,代碼行數:31,代碼來源:AppUtils.java

示例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);
}
 
開發者ID:pre-dem,項目名稱:pre-dem-android,代碼行數:12,代碼來源:AppBean.java

示例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);
    }
}
 
開發者ID:newDeepLearing,項目名稱:decoy,代碼行數:37,代碼來源:CaptureVideoActivity.java

示例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;
}
 
開發者ID:ukanth,項目名稱:XPrivacy,代碼行數:30,代碼來源:Hook.java

示例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";
}
 
開發者ID:alphater,項目名稱:garras,代碼行數:66,代碼來源:BaseFragment.java

示例8: getDisplayVersion

public static String getDisplayVersion() {
    return Build.DISPLAY;
}
 
開發者ID:jeasinlee,項目名稱:AndroidBasicLibs,代碼行數:3,代碼來源:DeviceUtils.java

示例9: getBuildDisplayId

public static String getBuildDisplayId() {
    return Build.DISPLAY;
}
 
開發者ID:morogoku,項目名稱:MTweaks-KernelAdiutorMOD,代碼行數:3,代碼來源:Device.java

示例10: getBuildDisplayId

public String getBuildDisplayId() {
    return Build.DISPLAY;
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:3,代碼來源:EnvironmentInfo.java

示例11: getFlymeVersion

/**
 * 獲取Flyme的版本
 *
 * @return
 */
public static String getFlymeVersion() {
    return isFlyme() ? Build.DISPLAY : "";
}
 
開發者ID:AriesHoo,項目名稱:TitleBarView,代碼行數:8,代碼來源:RomUtil.java


注:本文中的android.os.Build.DISPLAY屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。