EMMA Coverage Report (generated Fri Aug 23 16:39:17 PDT 2013)
[all classes][org.chromium.base]

COVERAGE SUMMARY FOR SOURCE FILE [SysUtils.java]

nameclass, %method, %block, %line, %
SysUtils.java100% (1/1)50%  (1/2)73%  (8/11)67%  (2/3)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class SysUtils100% (1/1)50%  (1/2)73%  (8/11)67%  (2/3)
SysUtils (): void 0%   (0/1)0%   (0/3)0%   (0/1)
isLowEndDevice (): boolean 100% (1/1)100% (8/8)100% (2/2)

1// Copyright 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 
5package org.chromium.base;
6 
7import android.app.ActivityManager;
8import android.app.ActivityManager.MemoryInfo;
9import android.content.Context;
10import android.os.Build;
11 
12/**
13 * Exposes system related information about the current device.
14 */
15public 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}

[all classes][org.chromium.base]
EMMA 2.0.5312 (C) Vladimir Roubtsov