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 of the time period, in seconds. | 
| 
        
        
        
        
        
        PerStateBytes | 
      getRemainingWriteBytes()
      Number of write bytes remaining in each application or system state. | 
| 
        
        
        
        
        
        long | 
      getStartTime()
      Start time of the time period, in epoch seconds. | 
| 
        
        
        
        
        
        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
describeContents
public int describeContents ()
| Returns | |
|---|---|
| int | |
getDurationInSeconds
public long getDurationInSeconds ()
Duration of the time period, in seconds.
| 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 ERROR(/#mKillableOnOveruse) is true.
 
The ERROR(/#mDurationInSeconds) does not apply to this field.
| Returns | |
|---|---|
| PerStateBytes | |
getStartTime
public long getStartTime ()
Start time of the time period, in epoch seconds.
| 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 ERROR(/#mRemainingWriteBytes).
| Returns | |
|---|---|
| boolean | |
toString
public String toString ()
| Returns | |
|---|---|
| String | |
writeToParcel
public void writeToParcel (Parcel dest, 
                int flags)| Parameters | |
|---|---|
| dest | Parcel | 
| flags | int | 
