Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(188)

Unified Diff: base/android/java/src/org/chromium/base/BuildInfo.java

Issue 1236283002: [Android] Remove deprecated SysInfo property retrieval (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/android/build_info.cc ('k') | base/sys_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/java/src/org/chromium/base/BuildInfo.java
diff --git a/base/android/java/src/org/chromium/base/BuildInfo.java b/base/android/java/src/org/chromium/base/BuildInfo.java
index f00c4c6231ff0800bd4faeda9ca3b41416e91710..f1f60520db20b789fa29ffe02ddd07be52d667e8 100644
--- a/base/android/java/src/org/chromium/base/BuildInfo.java
+++ b/base/android/java/src/org/chromium/base/BuildInfo.java
@@ -5,6 +5,7 @@
package org.chromium.base;
import android.annotation.TargetApi;
+import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
@@ -43,7 +44,7 @@ public class BuildInfo {
}
@CalledByNative
- public static String getAndroidBuildId() {
+ public static String getBuildId() {
return Build.ID;
}
@@ -53,7 +54,7 @@ public class BuildInfo {
* strings.
*/
@CalledByNative
- public static String getAndroidBuildFingerprint() {
+ public static String getBuildFingerprint() {
return Build.FINGERPRINT.substring(
0, Math.min(Build.FINGERPRINT.length(), MAX_FINGERPRINT_LENGTH));
}
@@ -118,11 +119,27 @@ public class BuildInfo {
}
@CalledByNative
+ public static int getLargeMemoryClass(Context context) {
+ ActivityManager am = (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE);
+ return am.getLargeMemoryClass();
+ }
+
+ @CalledByNative
public static String getBuildType() {
return Build.TYPE;
}
@CalledByNative
+ public static String getBuildVersionCodename() {
+ return Build.VERSION.CODENAME;
+ }
+
+ @CalledByNative
+ public static String getBuildVersionRelease() {
+ return Build.VERSION.RELEASE;
+ }
+
+ @CalledByNative
public static int getSdkInt() {
return Build.VERSION.SDK_INT;
}
« no previous file with comments | « base/android/build_info.cc ('k') | base/sys_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698