# IoOveruseStats

Summary:[Inherited Constants](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#inhconstants)\|[Fields](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#lfields)\|[Methods](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#pubmethods)\|[Inherited Methods](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#inhmethods)  

# IoOveruseStats

`
public

final

class
IoOveruseStats
`  
`

extends Object


``


implements

Parcelable


`

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

<br />

*** ** * ** ***

Disk I/O overuse stats for a package.

## Summary

|                                                                                                                                                                 ### Inherited constants                                                                                                                                                                 |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From interface`android.os.Parcelable` |-------|----------------------------------------| | `int` | `CONTENTS_FILE_DESCRIPTOR` <br />      | | `int` | `PARCELABLE_ELIDE_DUPLICATES` <br />   | | `int` | `PARCELABLE_STABILITY_LOCAL` <br />    | | `int` | `PARCELABLE_STABILITY_VINTF` <br />    | | `int` | `PARCELABLE_WRITE_RETURN_VALUE` <br /> | |

|                                                                                                               ### Fields                                                                                                               ||
|---------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------|
| ` public static final Creator<`[IoOveruseStats](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats)`>` | [CREATOR](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#CREATOR) <br /> |

|                                                                                                                                                       ### Public methods                                                                                                                                                       ||
|------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                         | ` `[describeContents](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#describeContents())`() `                                                                                                     |
| ` long`                                                                                        | ` `[getDurationInSeconds](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#getDurationInSeconds())`() ` Duration of the time period, in seconds.                                                    |
| ` `[PerStateBytes](https://developer.android.com/reference/android/car/watchdog/PerStateBytes) | ` `[getRemainingWriteBytes](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#getRemainingWriteBytes())`() ` Number of write bytes remaining in each application or system state.                    |
| ` long`                                                                                        | ` `[getStartTime](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#getStartTime())`() ` Start time of the time period, in epoch seconds.                                                            |
| ` long`                                                                                        | ` `[getTotalBytesWritten](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#getTotalBytesWritten())`() ` Aggregated number of bytes written to disk by the package during the given period.          |
| ` long`                                                                                        | ` `[getTotalOveruses](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#getTotalOveruses())`() ` Total times the package has written to disk beyond the allowed write bytes during the given period. |
| ` long`                                                                                        | ` `[getTotalTimesKilled](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#getTotalTimesKilled())`() ` Total times the package was killed during the given period due to disk I/O overuse.           |
| ` boolean`                                                                                     | ` `[isKillableOnOveruse](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#isKillableOnOveruse())`() ` Package may be killed on disk I/O overuse.                                                    |
| ` String`                                                                                      | ` `[toString](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#toString())`() `                                                                                                                     |
| ` void`                                                                                        | ` `[writeToParcel](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats#writeToParcel(android.os.Parcel,%20int))`(Parcel dest, int flags) `                                                             |

| ### Inherited methods |
|-----------------------|---|
| From class` java.lang.Object ` |-------------------|-------------------------------| | ` Object`         | ` clone() `                   | | ` boolean`        | ` equals(Object arg0) `       | | ` void`           | ` finalize() `                | | ` final Class<?>` | ` getClass() `                | | ` int`            | ` hashCode() `                | | ` final void`     | ` notify() `                  | | ` final void`     | ` notifyAll() `               | | ` String`         | ` toString() `                | | ` final void`     | ` wait(long arg0, int arg1) ` | | ` final void`     | ` wait(long arg0) `           | | ` final void`     | ` wait() `                    | ||
| From interface` android.os.Parcelable ` |------------------|------------------------------------------| | ` abstract int`  | ` describeContents() `                   | | ` default int`   | ` getStability() `                       | | ` abstract void` | ` writeToParcel(Parcel arg0, int arg1) ` | ||

## Fields

### CREATOR

```
public static final Creator<IoOveruseStats> CREATOR
```

<br />

<br />

## Public methods

### describeContents

```
public int describeContents ()
```

<br />

<br />

|    Returns    ||
|-------|--------|
| `int` | <br /> |

### getDurationInSeconds

```
public long getDurationInSeconds ()
```

Duration of the time period, in seconds.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### 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)](https://developer.android.com/)is`true`.

The[ERROR(/#mDurationInSeconds)](https://developer.android.com/)does not apply to this field.

<br />

|                                               Returns                                               ||
|---------------------------------------------------------------------------------------------|--------|
| [PerStateBytes](https://developer.android.com/reference/android/car/watchdog/PerStateBytes) | <br /> |

### getStartTime

```
public long getStartTime ()
```

Start time of the time period, in epoch seconds.

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### getTotalBytesWritten

```
public long getTotalBytesWritten ()
```

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

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### getTotalOveruses

```
public long getTotalOveruses ()
```

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

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### getTotalTimesKilled

```
public long getTotalTimesKilled ()
```

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

<br />

|    Returns     ||
|--------|--------|
| `long` | <br /> |

### isKillableOnOveruse

```
public boolean isKillableOnOveruse ()
```

Package may be killed on disk I/O overuse.

Disk I/O overuse is triggered on exceeding[ERROR(/#mRemainingWriteBytes)](https://developer.android.com/).

<br />

|      Returns      ||
|-----------|--------|
| `boolean` | <br /> |

### toString

```
public String toString ()
```

<br />

<br />

|     Returns      ||
|----------|--------|
| `String` | <br /> |

### writeToParcel

```
public void writeToParcel (Parcel dest, 
                int flags)
```

<br />

<br />

|        Parameters        ||
|---------|-----------------|
| `dest`  | `Parcel` <br /> |
| `flags` | `int` <br />    |