FileDocCategorySizeDatePackage
RunResult.javaAPI DocAndroid 5.1 API2462Thu Mar 12 22:22:42 GMT 2015com.android.frameworkperf

RunResult

public class RunResult extends Object implements android.os.Parcelable

Fields Summary
final String
name
final String
fgLongName
final String
bgLongName
final long
fgTime
final long
fgOps
final long
bgTime
final long
bgOps
public static final Parcelable.Creator
CREATOR
Constructors Summary
RunResult(TestService.TestRunner op)

        name = op.getName();
        fgLongName = op.getForegroundLongName();
        bgLongName = op.getBackgroundLongName();
        fgTime = op.getForegroundTime();
        fgOps = op.getForegroundOps();
        bgTime = op.getBackgroundTime();
        bgOps = op.getBackgroundOps();
    
RunResult(android.os.Parcel source)

        name = source.readString();
        fgLongName = source.readString();
        bgLongName = source.readString();
        fgTime = source.readLong();
        fgOps = source.readLong();
        bgTime = source.readLong();
        bgOps = source.readLong();
    
Methods Summary
public intdescribeContents()

        return 0;
    
floatgetBgMsPerOp()

        return bgOps != 0 ? (bgTime / (float)bgOps) : 0;
    
floatgetFgMsPerOp()

        return fgOps != 0 ? (fgTime / (float)fgOps) : 0;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeString(name);
        dest.writeString(fgLongName);
        dest.writeString(bgLongName);
        dest.writeLong(fgTime);
        dest.writeLong(fgOps);
        dest.writeLong(bgTime);
        dest.writeLong(bgOps);