IoOveruseStats

public final class IoOveruseStats
extends Object implements Parcelable

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


Disk I/O overuse stats for a package.

Summary

Inherited constants

Fields

public static final Creator<IoOveruseStats> CREATOR

Public methods

int describeContents()
long getDurationInSeconds()

Duration, in seconds, for the below stats.

PerStateBytes getRemainingWriteBytes()

Number of write bytes remaining in each application or system state.

long getStartTime()

Start time, in epoch seconds, for the below stats.

long getTotalBytesWritten()

Aggregated number of bytes written to disk by the package during the given period.

long getTotalOveruses()

Total times the package has written to disk beyond the allowed write bytes during the given period.

long getTotalTimesKilled()

Total times the package was killed during the given period due to disk I/O overuse.

boolean isKillableOnOveruse()

Package may be killed on disk I/O overuse.

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

Inherited methods

Fields

CREATOR

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

Public methods

describeContents

Added in API level 31
public int describeContents ()

Returns
int

getDurationInSeconds

Added in API level 31
public long getDurationInSeconds ()

Duration, in seconds, for the below stats.

Returns
long

getRemainingWriteBytes

Added in API level 31
public PerStateBytes getRemainingWriteBytes ()

Number of write bytes remaining in each application or system state.

On exceeding these limit in at least one system or application state, the package may be killed if isKillableOnOveruse() is true.

The above period does not apply to this field.

Returns
PerStateBytes

getStartTime

Added in API level 31
public long getStartTime ()

Start time, in epoch seconds, for the below stats.

Returns
long

getTotalBytesWritten

Added in API level 31
public long getTotalBytesWritten ()

Aggregated number of bytes written to disk by the package during the given period.

Returns
long

getTotalOveruses

Added in API level 31
public long getTotalOveruses ()

Total times the package has written to disk beyond the allowed write bytes during the given period.

Returns
long

getTotalTimesKilled

Added in API level 31
public long getTotalTimesKilled ()

Total times the package was killed during the given period due to disk I/O overuse.

Returns
long

isKillableOnOveruse

Added in API level 31
public boolean isKillableOnOveruse ()

Package may be killed on disk I/O overuse.

Disk I/O overuse is triggered on exceeding getRemainingWriteBytes().

Returns
boolean

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