# ResourceOveruseStats

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

# ResourceOveruseStats

`
public

final

class
ResourceOveruseStats
`  
`

extends Object


``


implements

Parcelable


`

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

<br />

*** ** * ** ***

Resource 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<`[ResourceOveruseStats](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats)`>` | [CREATOR](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats#CREATOR) <br /> |

|                                                                                                                                        ### Public methods                                                                                                                                         ||
|--------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` int`                                                                                           | ` `[describeContents](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats#describeContents())`() `                                                                |
| ` `[IoOveruseStats](https://developer.android.com/reference/android/car/watchdog/IoOveruseStats) | ` `[getIoOveruseStats](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats#getIoOveruseStats())`() ` I/O overuse stats for the package.                           |
| ` String`                                                                                        | ` `[getPackageName](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats#getPackageName())`() ` Name of the package, whose stats are recorded in the below fields. |
| ` UserHandle`                                                                                    | ` `[getUserHandle](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats#getUserHandle())`() ` User handle, whose stats are recorded in the below fields.           |
| ` String`                                                                                        | ` `[toString](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats#toString())`() `                                                                                |
| ` void`                                                                                          | ` `[writeToParcel](https://developer.android.com/reference/android/car/watchdog/ResourceOveruseStats#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<ResourceOveruseStats> CREATOR
```

<br />

<br />

## Public methods

### describeContents

```
public int describeContents ()
```

<br />

<br />

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

### 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.

<br />

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

### 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.

<br />

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

### getUserHandle

```
public UserHandle getUserHandle ()
```

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

<br />

|       Returns        ||
|--------------|--------|
| `UserHandle` | <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 />    |