PerStateBytes

public final class PerStateBytes
extends Object implements Parcelable

java.lang.Object
   ↳ android.car.watchdog.PerStateBytes


Number of bytes attributed to each application or system state.

Summary

Inherited constants

Fields

public static final Creator<PerStateBytes> CREATOR

Public constructors

PerStateBytes(long foregroundModeBytes, long backgroundModeBytes, long garageModeBytes)

Creates a new PerStateBytes.

Public methods

int describeContents()
long getBackgroundModeBytes()

Number of bytes attributed to the application background mode.

long getForegroundModeBytes()

Number of bytes attributed to the application foreground mode.

long getGarageModeBytes()

Number of bytes attributed to the system garage mode.

String toString()
void writeToParcel(Parcel dest, int flags)

Inherited methods

Fields

CREATOR

public static final Creator<PerStateBytes> CREATOR

Public constructors

PerStateBytes

public PerStateBytes (long foregroundModeBytes, 
                long backgroundModeBytes, 
                long garageModeBytes)

Creates a new PerStateBytes.

Parameters
foregroundModeBytes long: Number of bytes attributed to the application foreground mode.

backgroundModeBytes long: Number of bytes attributed to the application background mode.

garageModeBytes long: Number of bytes attributed to the system garage mode.

Public methods

describeContents

public int describeContents ()

Returns
int

getBackgroundModeBytes

public long getBackgroundModeBytes ()

Number of bytes attributed to the application background mode.

Returns
long

getForegroundModeBytes

public long getForegroundModeBytes ()

Number of bytes attributed to the application foreground mode.

Returns
long

getGarageModeBytes

public long getGarageModeBytes ()

Number of bytes attributed to the system garage mode.

Returns
long

toString

public String toString ()

Returns
String

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int