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

int CONTENTS_FILE_DESCRIPTOR

int PARCELABLE_ELIDE_DUPLICATES

int PARCELABLE_STABILITY_LOCAL

int PARCELABLE_STABILITY_VINTF

int PARCELABLE_WRITE_RETURN_VALUE

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

Object clone()
boolean equals(Object arg0)
void finalize()
final Class<?> getClass()
int hashCode()
final void notify()
final void notifyAll()
String toString()
final void wait(long arg0, int arg1)
final void wait(long arg0)
final void wait()
abstract int describeContents()
default int getStability()
abstract void writeToParcel(Parcel arg0, int arg1)

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