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


Java VERSION.RELEASE屬性代碼示例

本文整理匯總了Java中android.os.Build.VERSION.RELEASE屬性的典型用法代碼示例。如果您正苦於以下問題:Java VERSION.RELEASE屬性的具體用法?Java VERSION.RELEASE怎麽用?Java VERSION.RELEASE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在android.os.Build.VERSION的用法示例。


在下文中一共展示了VERSION.RELEASE屬性的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: b

public static String b(Context context, String str) {
    String str2 = VERSION.RELEASE + "," + Integer.toString(VERSION.SDK_INT);
    String str3 = Build.MODEL;
    String a = s.a(context, z[79], z[76]);
    String str4 = Build.DEVICE;
    Object F = cn.jpush.android.a.F();
    if (ai.a(F)) {
        F = " ";
    }
    String c = c(context);
    JSONObject jSONObject = new JSONObject();
    try {
        jSONObject.put(z[TransportMediator.KEYCODE_MEDIA_PLAY], str2);
        jSONObject.put(z[LeMessageIds.MSG_ALBUM_FETCH_PLAY_NEXT_CONTROLLER], str3);
        jSONObject.put(z[76], a);
        jSONObject.put(z[122], str4);
        jSONObject.put(z[125], F);
        jSONObject.put(z[123], c);
        jSONObject.put(z[124], str);
    } catch (JSONException e) {
    }
    return jSONObject.toString();
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:23,代碼來源:a.java

示例2: catch

private static String getOsVersion$1afe14f3() {
    String str = "UNKNOW";
    try {
        return VERSION.RELEASE;
    } catch (Exception e) {
        e.printStackTrace();
        return str;
    }
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:9,代碼來源:a.java

示例3: leakInfo

public static String leakInfo(Context context, HeapDump heapDump, AnalysisResult result,
                              boolean detailed) {
    PackageManager packageManager = context.getPackageManager();
    String packageName = context.getPackageName();
    try {
        PackageInfo packageInfo = packageManager.getPackageInfo(packageName, 0);
        String info = "In " + packageName + ":" + packageInfo.versionName + ":" + packageInfo
                .versionCode + ".\n";
        String detailedString = "";
        if (result.leakFound) {
            if (result.excludedLeak) {
                info = info + "* LEAK CAN BE IGNORED.\n";
            }
            info = info + "* " + result.className;
            if (!heapDump.referenceName.equals("")) {
                info = info + " (" + heapDump.referenceName + SocializeConstants.OP_CLOSE_PAREN;
            }
            info = info + " has leaked:\n" + result.leakTrace.toString() + "\n";
            if (detailed) {
                detailedString = "\n* Details:\n" + result.leakTrace.toDetailedString();
            }
        } else {
            info = result.failure != null ? info + "* FAILURE:\n" + Log.getStackTraceString
                    (result.failure) + "\n" : info + "* NO LEAK FOUND.\n\n";
        }
        return info + "* Reference Key: " + heapDump.referenceKey + "\n" + "* Device: " +
                Build.MANUFACTURER + " " + Build.BRAND + " " + Build.MODEL + " " + Build
                .PRODUCT + "\n" + "* Android Version: " + VERSION.RELEASE + " API: " +
                VERSION.SDK_INT + " LeakCanary: " + BuildConfig.LIBRARY_VERSION + "\n" + "* " +
                "Durations: watch=" + heapDump.watchDurationMs + "ms, gc=" + heapDump
                .gcDurationMs + "ms, heap dump=" + heapDump.heapDumpDurationMs + "ms, " +
                "analysis=" + result.analysisDurationMs + "ms" + "\n" + detailedString;
    } catch (NameNotFoundException e) {
        throw new RuntimeException(e);
    }
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:36,代碼來源:LeakCanary.java

示例4: osVersion

private static String osVersion() {
    String v = VERSION.RELEASE;
    if (v == null) {
        return "";
    }
    return StringUtils.strip(v.trim());
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:7,代碼來源:UserAgent.java

示例5: getOSVersionName

public static String getOSVersionName() {
    return VERSION.RELEASE;
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:3,代碼來源:DataUtils.java

示例6: c

public String c() {
    return VERSION.RELEASE;
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:3,代碼來源:hk.java

示例7: a

public static String a() {
    return "Android " + VERSION.RELEASE;
}
 
開發者ID:JackChan1999,項目名稱:letv,代碼行數:3,代碼來源:k.java

示例8: getOSVersionName

public String getOSVersionName() {
    return VERSION.RELEASE;
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:3,代碼來源:DeviceHelper.java

示例9: g

public static String g() {
    return VERSION.RELEASE;
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:3,代碼來源:DeviceInfoUtils.java

示例10: getVersionCode

public static String getVersionCode() {
    return VERSION.RELEASE;
}
 
開發者ID:JackChan1999,項目名稱:boohee_v5.6,代碼行數:3,代碼來源:SystemUtil.java

示例11: getBuildVersionRelease

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


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