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

Side by Side Diff: base/android/java/src/org/chromium/base/SysUtils.java

Issue 17151011: Add a method for catching low end devices (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/sys_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.chromium.base;
6
7 import android.app.ActivityManager;
8 import android.app.ActivityManager.MemoryInfo;
9 import android.content.Context;
10 import android.os.Build;
11
12 /**
13 * Exposes system related information about the current device.
14 */
15 public class SysUtils {
16 private static Boolean sLowEndDevice;
17
18 private SysUtils() { }
19
20 /**
21 * @return Whether or not this device should be considered a low end device.
22 */
23 public static boolean isLowEndDevice() {
24 if (sLowEndDevice == null) sLowEndDevice = nativeIsLowEndDevice();
25
26 return sLowEndDevice.booleanValue();
27 }
28
29 private static native boolean nativeIsLowEndDevice();
30 }
OLDNEW
« no previous file with comments | « base/android/base_jni_registrar.cc ('k') | base/android/sys_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698