Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/os/health/UidHealthStats#constants) \| [Inherited Methods](https://developer.android.com/reference/android/os/health/UidHealthStats#inhmethods)

# UidHealthStats

*** ** * ** ***


`
public

final

class
UidHealthStats
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.os.health.UidHealthStats |

<br />

*** ** * ** ***

Keys for `https://developer.android.com/reference/android/os/health/HealthStats` returned from
`https://developer.android.com/reference/android/os/health/SystemHealthManager#takeUidSnapshot(int)`,
`https://developer.android.com/reference/android/os/health/SystemHealthManager#takeMyUidSnapshot()`, and
`https://developer.android.com/reference/android/os/health/SystemHealthManager#takeUidSnapshots(int[])`.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_IDLE_MS` Key for a measurement of number of millseconds the bluetooth controller was idle but turned on on behalf of this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_POWER_MAMS` Key for a measurement of the estimated number of mA\*ms used by this uid for bluetooth, that is to say the number of milliseconds of activity times the mA current during that period. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_RX_BYTES` Key for a measurement of number of bytes received for this uid by the bluetooth radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_RX_MS` Key for a measurement of number of millseconds the bluetooth transmitter was receiving data for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_RX_PACKETS` Key for a measurement of number of packets received for this uid by the bluetooth radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_TX_BYTES` Key for a measurement of number of bytes transmitted for this uid by the bluetooth radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_TX_MS` Key for a measurement of number of millseconds the bluetooth transmitter was transmitting data for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BLUETOOTH_TX_PACKETS` Key for a measurement of number of packets transmitted for this uid by the bluetooth radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_BUTTON_USER_ACTIVITY_COUNT` Key for a measurement of number of user activity events due to physical button presses caused by the UID. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_CPU_POWER_MAMS` *This constant was deprecated in API level 26. this measurement is vendor-dependent and not reliable.* |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_IDLE_MS` Key for a measurement of number of millseconds the mobile radio controller was idle but turned on on behalf of this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_POWER_MAMS` Key for a measurement of the estimated number of mA\*ms used by this uid for mobile data, that is to say the number of milliseconds of activity times the mA current during that period. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_RX_BYTES` Key for a measurement of number of bytes received for this uid by the mobile radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_RX_MS` Key for a measurement of number of millseconds the mobile radio transmitter was receiving data for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_RX_PACKETS` Key for a measurement of number of packets received for this uid by the mobile radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_TX_BYTES` Key for a measurement of number of bytes transmitted for this uid by the mobile radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_TX_MS` Key for a measurement of number of millseconds the mobile radio transmitter was transmitting data for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_MOBILE_TX_PACKETS` Key for a measurement of number of packets transmitted for this uid by the mobile radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_OTHER_USER_ACTIVITY_COUNT` Key for a measurement of number of software-generated user activity events caused by the UID. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_REALTIME_BATTERY_MS` How many milliseconds this statistics report covers in wall-clock time while the device was on battery including both screen-on and screen-off time. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_REALTIME_SCREEN_OFF_BATTERY_MS` How many milliseconds this statistics report covers in wall-clock time while the device was on battery including only screen-off time. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_SYSTEM_CPU_TIME_MS` Key for a measurement of the number of milliseconds spent by the CPU running kernel code for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_TOUCH_USER_ACTIVITY_COUNT` Key for a measurement of number of user activity events due to touch events caused by the UID. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_UPTIME_BATTERY_MS` How many milliseconds this statistics report covers that the CPU was running while the device was on battery including both screen-on and screen-off time. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_UPTIME_SCREEN_OFF_BATTERY_MS` How many milliseconds this statistics report covers that the CPU was running while the device was on battery including only screen-off time. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_USER_CPU_TIME_MS` Key for a measurement of the number of milliseconds spent by the CPU running user space code for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_FULL_LOCK_MS` Key for a measurement of number of millseconds that this uid held a full wifi lock. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_IDLE_MS` Key for a measurement of number of millseconds the wifi controller was idle but turned on on behalf of this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_MULTICAST_MS` Key for a measurement of number of millseconds that this uid was performing multicast wifi traffic. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_POWER_MAMS` Key for a measurement of the estimated number of mA\*ms used by this uid for wifi, that is to say the number of milliseconds of wifi activity times the mA current during that period. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_RUNNING_MS` Key for a measurement of number of millseconds the wifi controller was active on behalf of this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_RX_BYTES` Key for a measurement of number of bytes received for this uid by the wifi radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_RX_MS` Key for a measurement of number of millseconds the wifi transmitter was receiving data for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_RX_PACKETS` Key for a measurement of number of packets received for this uid by the wifi radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_TX_BYTES` Key for a measurement of number of bytes transmitted for this uid by the wifi radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_TX_MS` Key for a measurement of number of millseconds the wifi transmitter was transmitting data for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#MEASUREMENT_WIFI_TX_PACKETS` Key for a measurement of number of packets transmitted for this uid by the wifi radio. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#STATS_PACKAGES` Key for a HealthStats with `https://developer.android.com/reference/android/os/health/PackageHealthStats` keys for each of the APKs that share this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#STATS_PIDS` Key for a HealthStats with `https://developer.android.com/reference/android/os/health/PidHealthStats` keys for each of the currently running processes for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#STATS_PROCESSES` Key for a HealthStats with `https://developer.android.com/reference/android/os/health/ProcessHealthStats` keys for each of the named processes for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMERS_JOBS` Key for a map of Timers for the `https://developer.android.com/reference/android/app/job/JobScheduler` jobs for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMERS_SENSORS` Key for a map of the sensor usage for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMERS_SYNCS` Key for a map of Timers for the sync adapter syncs that were done for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMERS_WAKELOCKS_DRAW` Key for a TimerStat for the times a system-defined wakelock was acquired to allow the application to draw when it otherwise would not be able to (e.g. on the lock screen or doze screen). |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMERS_WAKELOCKS_FULL` Key for a TimerStat for the times a `https://developer.android.com/reference/android/os/PowerManager#FULL_WAKE_LOCK` was acquired for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMERS_WAKELOCKS_PARTIAL` Key for a TimerStat for the times a `https://developer.android.com/reference/android/os/PowerManager#PARTIAL_WAKE_LOCK` was acquired for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMERS_WAKELOCKS_WINDOW` |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_AUDIO` Key for a timer for the count and duration of audio playback done by this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_BLUETOOTH_SCAN` Key for a timer for the count and duration of when this uid was doing bluetooth scans. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_CAMERA` Key for a timer for the count and duration this uid had the camera turned on. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_FLASHLIGHT` Key for a timer for the count and duration this uid had the flashlight turned on. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_FOREGROUND_ACTIVITY` Key for a timer for the count and duration of when an activity from this uid was the foreground activitiy. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_GPS_SENSOR` Key for a timer for the applications use of the GPS sensor. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_MOBILE_RADIO_ACTIVE` Key for a timer for the count and duration the mobile radio was turned on for this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_PROCESS_STATE_BACKGROUND_MS` Key for a timer for the count and duration of when this uid was in the "background" process state. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_PROCESS_STATE_CACHED_MS` Key for a timer for the count and duration of when this uid was in the "cached" process state. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_PROCESS_STATE_FOREGROUND_MS` Key for a timer for the count and duration of when this uid was in the "foreground" process state. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_PROCESS_STATE_FOREGROUND_SERVICE_MS` Key for a timer for the count and duration of when this uid was in the "foreground service" process state. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_PROCESS_STATE_TOP_MS` Key for a timer for the count and duration of when this uid was in the "top" process state. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_PROCESS_STATE_TOP_SLEEPING_MS` Key for a timer for the count and duration of when this uid was in the "top sleeping" process state. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_VIBRATOR` Key for a timer for the count and duration this uid had the vibrator turned on. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_VIDEO` Key for a timer for the count and duration of video playback done by this uid. |
| `int` | `https://developer.android.com/reference/android/os/health/UidHealthStats#TIMER_WIFI_SCAN` Key for a timer for the count and duration of wifi scans done by this uid. |

| ### Inherited methods |
|---|---|
| From class ` https://developer.android.com/reference/java/lang/Object ` |---|---| | ` https://developer.android.com/reference/java/lang/Object` | ` https://developer.android.com/reference/java/lang/Object#clone()() ` Creates and returns a copy of this object. | | ` boolean` | ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) ` Indicates whether some other object is "equal to" this one. | | ` void` | ` https://developer.android.com/reference/java/lang/Object#finalize()() ` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. | | ` final https://developer.android.com/reference/java/lang/Class<?>` | ` https://developer.android.com/reference/java/lang/Object#getClass()() ` Returns the runtime class of this `Object`. | | ` int` | ` https://developer.android.com/reference/java/lang/Object#hashCode()() ` Returns a hash code value for the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notify()() ` Wakes up a single thread that is waiting on this object's monitor. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#notifyAll()() ` Wakes up all threads that are waiting on this object's monitor. | | ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/java/lang/Object#toString()() ` Returns a string representation of the object. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed. | | ` final void` | ` https://developer.android.com/reference/java/lang/Object#wait()() ` Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*. | ||

## Constants

### MEASUREMENT_BLUETOOTH_IDLE_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_IDLE_MS
```

Key for a measurement of number of millseconds the bluetooth controller was
idle but turned on on behalf of this uid.

<br />

Constant Value:

10020
(0x00002724)


### MEASUREMENT_BLUETOOTH_POWER_MAMS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_POWER_MAMS
```

Key for a measurement of the estimated number of mA\*ms used by this uid
for bluetooth, that is to say the number of milliseconds of activity
times the mA current during that period.

<br />

Constant Value:

10023
(0x00002727)


### MEASUREMENT_BLUETOOTH_RX_BYTES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_RX_BYTES
```

Key for a measurement of number of bytes received for this uid by the bluetooth radio.

<br />

Constant Value:

10052
(0x00002744)


### MEASUREMENT_BLUETOOTH_RX_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_RX_MS
```

Key for a measurement of number of millseconds the bluetooth transmitter was
receiving data for this uid.

<br />

Constant Value:

10021
(0x00002725)


### MEASUREMENT_BLUETOOTH_RX_PACKETS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_RX_PACKETS
```

Key for a measurement of number of packets received for this uid by the bluetooth radio.

<br />

Constant Value:

10058
(0x0000274a)


### MEASUREMENT_BLUETOOTH_TX_BYTES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_TX_BYTES
```

Key for a measurement of number of bytes transmitted for this uid by the bluetooth radio.

<br />

Constant Value:

10053
(0x00002745)


### MEASUREMENT_BLUETOOTH_TX_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_TX_MS
```

Key for a measurement of number of millseconds the bluetooth transmitter was
transmitting data for this uid.

<br />

Constant Value:

10022
(0x00002726)


### MEASUREMENT_BLUETOOTH_TX_PACKETS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BLUETOOTH_TX_PACKETS
```

Key for a measurement of number of packets transmitted for this uid by the bluetooth radio.

<br />

Constant Value:

10059
(0x0000274b)


### MEASUREMENT_BUTTON_USER_ACTIVITY_COUNT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_BUTTON_USER_ACTIVITY_COUNT
```

Key for a measurement of number of user activity events due to physical button presses caused
by the UID. Calls to userActivity() reset the user activity countdown timer and
keep the screen on for the user's preferred screen-on setting.

<br />

Constant Value:

10046
(0x0000273e)


### MEASUREMENT_CPU_POWER_MAMS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)   
Deprecated in [API level
26](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_CPU_POWER_MAMS
```


**This constant was deprecated
in API level 26.**   

this measurement is vendor-dependent and not reliable.

An estimate of the number of milliamp-microsends used by this uid.

<br />

Constant Value:

10064
(0x00002750)


### MEASUREMENT_MOBILE_IDLE_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_IDLE_MS
```

Key for a measurement of number of millseconds the mobile radio controller was
idle but turned on on behalf of this uid.

<br />

Constant Value:

10024
(0x00002728)


### MEASUREMENT_MOBILE_POWER_MAMS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_POWER_MAMS
```

Key for a measurement of the estimated number of mA\*ms used by this uid
for mobile data, that is to say the number of milliseconds of activity
times the mA current during that period.

<br />

Constant Value:

10027
(0x0000272b)


### MEASUREMENT_MOBILE_RX_BYTES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_RX_BYTES
```

Key for a measurement of number of bytes received for this uid by the mobile radio.

<br />

Constant Value:

10048
(0x00002740)


### MEASUREMENT_MOBILE_RX_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_RX_MS
```

Key for a measurement of number of millseconds the mobile radio transmitter was
receiving data for this uid.

<br />

Constant Value:

10025
(0x00002729)


### MEASUREMENT_MOBILE_RX_PACKETS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_RX_PACKETS
```

Key for a measurement of number of packets received for this uid by the mobile radio.

<br />

Constant Value:

10054
(0x00002746)


### MEASUREMENT_MOBILE_TX_BYTES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_TX_BYTES
```

Key for a measurement of number of bytes transmitted for this uid by the mobile radio.

<br />

Constant Value:

10049
(0x00002741)


### MEASUREMENT_MOBILE_TX_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_TX_MS
```

Key for a measurement of number of millseconds the mobile radio transmitter was
transmitting data for this uid.

<br />

Constant Value:

10026
(0x0000272a)


### MEASUREMENT_MOBILE_TX_PACKETS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_MOBILE_TX_PACKETS
```

Key for a measurement of number of packets transmitted for this uid by the mobile radio.

<br />

Constant Value:

10055
(0x00002747)


### MEASUREMENT_OTHER_USER_ACTIVITY_COUNT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_OTHER_USER_ACTIVITY_COUNT
```

Key for a measurement of number of software-generated user activity events caused
by the UID. Calls to userActivity() reset the user activity countdown timer and
keep the screen on for the user's preferred screen-on setting.

<br />

Constant Value:

10045
(0x0000273d)


### MEASUREMENT_REALTIME_BATTERY_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_REALTIME_BATTERY_MS
```

How many milliseconds this statistics report covers in wall-clock time while the
device was on battery including both screen-on and screen-off time.

<br />

Constant Value:

10001
(0x00002711)


### MEASUREMENT_REALTIME_SCREEN_OFF_BATTERY_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_REALTIME_SCREEN_OFF_BATTERY_MS
```

How many milliseconds this statistics report covers in wall-clock time while the
device was on battery including only screen-off time.

<br />

Constant Value:

10003
(0x00002713)


### MEASUREMENT_SYSTEM_CPU_TIME_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_SYSTEM_CPU_TIME_MS
```

Key for a measurement of the number of milliseconds spent by the CPU running kernel
code for this uid.

<br />

Constant Value:

10063
(0x0000274f)


### MEASUREMENT_TOUCH_USER_ACTIVITY_COUNT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_TOUCH_USER_ACTIVITY_COUNT
```

Key for a measurement of number of user activity events due to touch events caused
by the UID. Calls to userActivity() reset the user activity countdown timer and
keep the screen on for the user's preferred screen-on setting.

<br />

Constant Value:

10047
(0x0000273f)


### MEASUREMENT_UPTIME_BATTERY_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_UPTIME_BATTERY_MS
```

How many milliseconds this statistics report covers that the CPU was running while the
device was on battery including both screen-on and screen-off time.

<br />

Constant Value:

10002
(0x00002712)


### MEASUREMENT_UPTIME_SCREEN_OFF_BATTERY_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_UPTIME_SCREEN_OFF_BATTERY_MS
```

How many milliseconds this statistics report covers that the CPU was running while the
device was on battery including only screen-off time.

<br />

Constant Value:

10004
(0x00002714)


### MEASUREMENT_USER_CPU_TIME_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_USER_CPU_TIME_MS
```

Key for a measurement of the number of milliseconds spent by the CPU running user space
code for this uid.

<br />

Constant Value:

10062
(0x0000274e)


### MEASUREMENT_WIFI_FULL_LOCK_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_FULL_LOCK_MS
```

Key for a measurement of number of millseconds that this uid held a full wifi lock.

<br />

Constant Value:

10029
(0x0000272d)


### MEASUREMENT_WIFI_IDLE_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_IDLE_MS
```

Key for a measurement of number of millseconds the wifi controller was
idle but turned on on behalf of this uid.

<br />

Constant Value:

10016
(0x00002720)


### MEASUREMENT_WIFI_MULTICAST_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_MULTICAST_MS
```

Key for a measurement of number of millseconds that this uid was performing
multicast wifi traffic.

<br />

Constant Value:

10031
(0x0000272f)


### MEASUREMENT_WIFI_POWER_MAMS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_POWER_MAMS
```

Key for a measurement of the estimated number of mA\*ms used by this uid
for wifi, that is to say the number of milliseconds of wifi activity
times the mA current during that period.

<br />

Constant Value:

10019
(0x00002723)


### MEASUREMENT_WIFI_RUNNING_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_RUNNING_MS
```

Key for a measurement of number of millseconds the wifi controller was
active on behalf of this uid.

<br />

Constant Value:

10028
(0x0000272c)


### MEASUREMENT_WIFI_RX_BYTES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_RX_BYTES
```

Key for a measurement of number of bytes received for this uid by the wifi radio.

<br />

Constant Value:

10050
(0x00002742)


### MEASUREMENT_WIFI_RX_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_RX_MS
```

Key for a measurement of number of millseconds the wifi transmitter was
receiving data for this uid.

<br />

Constant Value:

10017
(0x00002721)


### MEASUREMENT_WIFI_RX_PACKETS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_RX_PACKETS
```

Key for a measurement of number of packets received for this uid by the wifi radio.

<br />

Constant Value:

10056
(0x00002748)


### MEASUREMENT_WIFI_TX_BYTES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_TX_BYTES
```

Key for a measurement of number of bytes transmitted for this uid by the wifi radio.

<br />

Constant Value:

10051
(0x00002743)


### MEASUREMENT_WIFI_TX_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_TX_MS
```

Key for a measurement of number of millseconds the wifi transmitter was
transmitting data for this uid.

<br />

Constant Value:

10018
(0x00002722)


### MEASUREMENT_WIFI_TX_PACKETS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int MEASUREMENT_WIFI_TX_PACKETS
```

Key for a measurement of number of packets transmitted for this uid by the wifi radio.

<br />

Constant Value:

10057
(0x00002749)


### STATS_PACKAGES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATS_PACKAGES
```

Key for a HealthStats with `https://developer.android.com/reference/android/os/health/PackageHealthStats` keys for each of the
APKs that share this uid.

<br />

Constant Value:

10015
(0x0000271f)


### STATS_PIDS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATS_PIDS
```

Key for a HealthStats with `https://developer.android.com/reference/android/os/health/PidHealthStats` keys for each of the
currently running processes for this uid.

<br />

Constant Value:

10013
(0x0000271d)


### STATS_PROCESSES

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int STATS_PROCESSES
```

Key for a HealthStats with `https://developer.android.com/reference/android/os/health/ProcessHealthStats` keys for each of the
named processes for this uid.

<br />

Constant Value:

10014
(0x0000271e)


### TIMERS_JOBS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMERS_JOBS
```

Key for a map of Timers for the `https://developer.android.com/reference/android/app/job/JobScheduler` jobs for
this uid.

<br />

Constant Value:

10010
(0x0000271a)


### TIMERS_SENSORS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMERS_SENSORS
```

Key for a map of the sensor usage for this uid. The keys are a
string representation of the handle for the sensor.

<br />

Constant Value:

10012
(0x0000271c)


### TIMERS_SYNCS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMERS_SYNCS
```

Key for a map of Timers for the sync adapter syncs that were done for
this uid.

<br />

Constant Value:

10009
(0x00002719)


### TIMERS_WAKELOCKS_DRAW

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMERS_WAKELOCKS_DRAW
```

Key for a TimerStat for the times a system-defined wakelock was acquired
to allow the application to draw when it otherwise would not be able to
(e.g. on the lock screen or doze screen).

<br />

Constant Value:

10008
(0x00002718)


### TIMERS_WAKELOCKS_FULL

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMERS_WAKELOCKS_FULL
```

Key for a TimerStat for the times a
`https://developer.android.com/reference/android/os/PowerManager#FULL_WAKE_LOCK`
was acquired for this uid.

<br />

Constant Value:

10005
(0x00002715)


### TIMERS_WAKELOCKS_PARTIAL

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMERS_WAKELOCKS_PARTIAL
```

Key for a TimerStat for the times a
`https://developer.android.com/reference/android/os/PowerManager#PARTIAL_WAKE_LOCK`
was acquired for this uid.

<br />

Constant Value:

10006
(0x00002716)


### TIMERS_WAKELOCKS_WINDOW

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMERS_WAKELOCKS_WINDOW
```

<br />

<br />

Constant Value:

10007
(0x00002717)


### TIMER_AUDIO

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_AUDIO
```

Key for a timer for the count and duration of audio playback done by this uid.

<br />

Constant Value:

10032
(0x00002730)


### TIMER_BLUETOOTH_SCAN

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_BLUETOOTH_SCAN
```

Key for a timer for the count and duration of when this uid was doing bluetooth scans.

<br />

Constant Value:

10037
(0x00002735)


### TIMER_CAMERA

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_CAMERA
```

Key for a timer for the count and duration this uid had the camera turned on.

<br />

Constant Value:

10035
(0x00002733)


### TIMER_FLASHLIGHT

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_FLASHLIGHT
```

Key for a timer for the count and duration this uid had the flashlight turned on.

<br />

Constant Value:

10034
(0x00002732)


### TIMER_FOREGROUND_ACTIVITY

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_FOREGROUND_ACTIVITY
```

Key for a timer for the count and duration of when an activity from this uid
was the foreground activitiy.

<br />

Constant Value:

10036
(0x00002734)


### TIMER_GPS_SENSOR

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_GPS_SENSOR
```

Key for a timer for the applications use of the GPS sensor.

<br />

Constant Value:

10011
(0x0000271b)


### TIMER_MOBILE_RADIO_ACTIVE

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_MOBILE_RADIO_ACTIVE
```

Key for a timer for the count and duration the mobile radio was turned on for this uid.

<br />

Constant Value:

10061
(0x0000274d)


### TIMER_PROCESS_STATE_BACKGROUND_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_PROCESS_STATE_BACKGROUND_MS
```

Key for a timer for the count and duration of when this uid was in the "background"
process state.

<br />

Constant Value:

10042
(0x0000273a)


### TIMER_PROCESS_STATE_CACHED_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_PROCESS_STATE_CACHED_MS
```

Key for a timer for the count and duration of when this uid was in the "cached" process
state.

<br />

Constant Value:

10043
(0x0000273b)


### TIMER_PROCESS_STATE_FOREGROUND_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_PROCESS_STATE_FOREGROUND_MS
```

Key for a timer for the count and duration of when this uid was in the "foreground"
process state.

<br />

Constant Value:

10041
(0x00002739)


### TIMER_PROCESS_STATE_FOREGROUND_SERVICE_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_PROCESS_STATE_FOREGROUND_SERVICE_MS
```

Key for a timer for the count and duration of when this uid was in the "foreground service"
process state.

<br />

Constant Value:

10039
(0x00002737)


### TIMER_PROCESS_STATE_TOP_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_PROCESS_STATE_TOP_MS
```

Key for a timer for the count and duration of when this uid was in the "top" process state.

<br />

Constant Value:

10038
(0x00002736)


### TIMER_PROCESS_STATE_TOP_SLEEPING_MS

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_PROCESS_STATE_TOP_SLEEPING_MS
```

Key for a timer for the count and duration of when this uid was in the "top sleeping"
process state.

<br />

Constant Value:

10040
(0x00002738)


### TIMER_VIBRATOR

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_VIBRATOR
```

Key for a timer for the count and duration this uid had the vibrator turned on.

<br />

Constant Value:

10044
(0x0000273c)


### TIMER_VIDEO

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_VIDEO
```

Key for a timer for the count and duration of video playback done by this uid.

<br />

Constant Value:

10033
(0x00002731)


### TIMER_WIFI_SCAN

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TIMER_WIFI_SCAN
```

Key for a timer for the count and duration of wifi scans done by this uid.

<br />

Constant Value:

10030
(0x0000272e)