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
Public methods
getDurationInSeconds
public long getDurationInSeconds ()
Duration, in seconds, for the below stats.
Returns | |
---|---|
long |
getRemainingWriteBytes
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
public long getStartTime ()
Start time, in epoch seconds, for the below stats.
Returns | |
---|---|
long |
getTotalBytesWritten
public long getTotalBytesWritten ()
Aggregated number of bytes written to disk by the package during the given period.
Returns | |
---|---|
long |
getTotalOveruses
public long getTotalOveruses ()
Total times the package has written to disk beyond the allowed write bytes during the given period.
Returns | |
---|---|
long |
getTotalTimesKilled
public long getTotalTimesKilled ()
Total times the package was killed during the given period due to disk I/O overuse.
Returns | |
---|---|
long |
isKillableOnOveruse
public boolean isKillableOnOveruse ()
Package may be killed on disk I/O overuse.
Disk I/O overuse is triggered on exceeding getRemainingWriteBytes()
.
Returns | |
---|---|
boolean |
writeToParcel
public void writeToParcel (Parcel dest, int flags)
Parameters | |
---|---|
dest |
Parcel |
flags |
int |