ResourceOveruseStats

public final class ResourceOveruseStats
extends Object implements Parcelable

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


Resource overuse stats for a package.

Summary

Inherited constants

Fields

public static final Creator<ResourceOveruseStats> CREATOR

Public methods

int describeContents()
IoOveruseStats getIoOveruseStats()

I/O overuse stats for the package.

String getPackageName()

Name of the package, whose stats are recorded in the below fields.

UserHandle getUserHandle()

User handle, whose stats are recorded in the below fields.

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

Inherited methods

Fields

CREATOR

public static final Creator<ResourceOveruseStats> CREATOR

Public methods

describeContents

public int describeContents ()

Returns
int

getIoOveruseStats

public IoOveruseStats getIoOveruseStats ()

I/O overuse stats for the package. If the package didn't opt-in to receive I/O overuse stats or the package doesn't have I/O overuse stats, this value will be null.

Returns
IoOveruseStats

getPackageName

public String getPackageName ()

Name of the package, whose stats are recorded in the below fields. NOTE: For packages that share a UID, the package name will be the shared package name because the stats are aggregated for all packages under the shared UID.

Returns
String

getUserHandle

public UserHandle getUserHandle ()

User handle, whose stats are recorded in the below fields.

Returns
UserHandle

toString

public String toString ()

Returns
String

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

Parameters
dest Parcel

flags int