本文整理匯總了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();
}
示例2: catch
private static String getOsVersion$1afe14f3() {
String str = "UNKNOW";
try {
return VERSION.RELEASE;
} catch (Exception e) {
e.printStackTrace();
return str;
}
}
示例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);
}
}
示例4: osVersion
private static String osVersion() {
String v = VERSION.RELEASE;
if (v == null) {
return "";
}
return StringUtils.strip(v.trim());
}
示例5: getOSVersionName
public static String getOSVersionName() {
return VERSION.RELEASE;
}
示例6: c
public String c() {
return VERSION.RELEASE;
}
示例7: a
public static String a() {
return "Android " + VERSION.RELEASE;
}
示例8: getOSVersionName
public String getOSVersionName() {
return VERSION.RELEASE;
}
示例9: g
public static String g() {
return VERSION.RELEASE;
}
示例10: getVersionCode
public static String getVersionCode() {
return VERSION.RELEASE;
}
示例11: getBuildVersionRelease
public String getBuildVersionRelease() {
return VERSION.RELEASE;
}