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

Added in API level 31
public static final Creator<PerStateBytes> CREATOR

Public constructors

PerStateBytes

Added in API level 31
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

Added in API level 31
public int describeContents ()

Returns
int

getBackgroundModeBytes

Added in API level 31
public long getBackgroundModeBytes ()

Number of bytes attributed to the application background mode.

Returns
long

getForegroundModeBytes

Added in API level 31
public long getForegroundModeBytes ()

Number of bytes attributed to the application foreground mode.

Returns
long

getGarageModeBytes

Added in API level 31
public long getGarageModeBytes ()

Number of bytes attributed to the system garage mode.

Returns
long

toString

Added in API level 31
public String toString ()

Returns
String

writeToParcel

Added in API level 31
public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int