UidHealthStats
public
final
class
UidHealthStats
extends Object
java.lang.Object | |
↳ | android.os.health.UidHealthStats |
Keys for HealthStats
returned from
SystemHealthManager.takeUidSnapshot(int)
,
SystemHealthManager.takeMyUidSnapshot()
, and
SystemHealthManager.takeUidSnapshots(int[])
.
Summary
Constants | |
---|---|
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. |
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. |
int |
MEASUREMENT_BLUETOOTH_RX_BYTES
Key for a measurement of number of bytes received for this uid by the bluetooth radio. |
int |
MEASUREMENT_BLUETOOTH_RX_MS
Key for a measurement of number of millseconds the bluetooth transmitter was receiving data for this uid. |
int |
MEASUREMENT_BLUETOOTH_RX_PACKETS
Key for a measurement of number of packets received for this uid by the bluetooth radio. |
int |
MEASUREMENT_BLUETOOTH_TX_BYTES
Key for a measurement of number of bytes transmitted for this uid by the bluetooth radio. |
int |
MEASUREMENT_BLUETOOTH_TX_MS
Key for a measurement of number of millseconds the bluetooth transmitter was transmitting data for this uid. |
int |
MEASUREMENT_BLUETOOTH_TX_PACKETS
Key for a measurement of number of packets transmitted for this uid by the bluetooth radio. |
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. |
int |
MEASUREMENT_CPU_POWER_MAMS
This constant was deprecated in API level 26. this measurement is vendor-dependent and not reliable. |
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. |
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. |
int |
MEASUREMENT_MOBILE_RX_BYTES
Key for a measurement of number of bytes received for this uid by the mobile radio. |
int |
MEASUREMENT_MOBILE_RX_MS
Key for a measurement of number of millseconds the mobile radio transmitter was receiving data for this uid. |
int |
MEASUREMENT_MOBILE_RX_PACKETS
Key for a measurement of number of packets received for this uid by the mobile radio. |
int |
MEASUREMENT_MOBILE_TX_BYTES
Key for a measurement of number of bytes transmitted for this uid by the mobile radio. |
int |
MEASUREMENT_MOBILE_TX_MS
Key for a measurement of number of millseconds the mobile radio transmitter was transmitting data for this uid. |
int |
MEASUREMENT_MOBILE_TX_PACKETS
Key for a measurement of number of packets transmitted for this uid by the mobile radio. |
int |
MEASUREMENT_OTHER_USER_ACTIVITY_COUNT
Key for a measurement of number of software-generated user activity events caused by the UID. |
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. |
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. |
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. |
int |
MEASUREMENT_TOUCH_USER_ACTIVITY_COUNT
Key for a measurement of number of user activity events due to touch events caused by the UID. |
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. |
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. |
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. |
int |
MEASUREMENT_WIFI_FULL_LOCK_MS
Key for a measurement of number of millseconds that this uid held a full wifi lock. |
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. |
int |
MEASUREMENT_WIFI_MULTICAST_MS
Key for a measurement of number of millseconds that this uid was performing multicast wifi traffic. |
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. |
int |
MEASUREMENT_WIFI_RUNNING_MS
Key for a measurement of number of millseconds the wifi controller was active on behalf of this uid. |
int |
MEASUREMENT_WIFI_RX_BYTES
Key for a measurement of number of bytes received for this uid by the wifi radio. |
int |
MEASUREMENT_WIFI_RX_MS
Key for a measurement of number of millseconds the wifi transmitter was receiving data for this uid. |
int |
MEASUREMENT_WIFI_RX_PACKETS
Key for a measurement of number of packets received for this uid by the wifi radio. |
int |
MEASUREMENT_WIFI_TX_BYTES
Key for a measurement of number of bytes transmitted for this uid by the wifi radio. |
int |
MEASUREMENT_WIFI_TX_MS
Key for a measurement of number of millseconds the wifi transmitter was transmitting data for this uid. |
int |
MEASUREMENT_WIFI_TX_PACKETS
Key for a measurement of number of packets transmitted for this uid by the wifi radio. |
int |
STATS_PACKAGES
Key for a HealthStats with |
int |
STATS_PIDS
Key for a HealthStats with |
int |
STATS_PROCESSES
Key for a HealthStats with |
int |
TIMERS_JOBS
Key for a map of Timers for the |
int |
TIMERS_SENSORS
Key for a map of the sensor usage for this uid. |
int |
TIMERS_SYNCS
Key for a map of Timers for the sync adapter syncs that were done for this uid. |
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). |
int |
TIMERS_WAKELOCKS_FULL
Key for a TimerStat for the times a
|
int |
TIMERS_WAKELOCKS_PARTIAL
Key for a TimerStat for the times a
|
int |
TIMERS_WAKELOCKS_WINDOW
|
int |
TIMER_AUDIO
Key for a timer for the count and duration of audio playback done by this uid. |
int |
TIMER_BLUETOOTH_SCAN
Key for a timer for the count and duration of when this uid was doing bluetooth scans. |
int |
TIMER_CAMERA
Key for a timer for the count and duration this uid had the camera turned on. |
int |
TIMER_FLASHLIGHT
Key for a timer for the count and duration this uid had the flashlight turned on. |
int |
TIMER_FOREGROUND_ACTIVITY
Key for a timer for the count and duration of when an activity from this uid was the foreground activitiy. |
int |
TIMER_GPS_SENSOR
Key for a timer for the applications use of the GPS sensor. |
int |
TIMER_MOBILE_RADIO_ACTIVE
Key for a timer for the count and duration the mobile radio was turned on for this uid. |
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. |
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. |
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. |
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. |
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. |
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. |
int |
TIMER_VIBRATOR
Key for a timer for the count and duration this uid had the vibrator turned on. |
int |
TIMER_VIDEO
Key for a timer for the count and duration of video playback done by this uid. |
int |
TIMER_WIFI_SCAN
Key for a timer for the count and duration of wifi scans done by this uid. |
Inherited methods | |
---|---|
Constants
MEASUREMENT_BLUETOOTH_IDLE_MS
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.
Constant Value: 10020 (0x00002724)
MEASUREMENT_BLUETOOTH_POWER_MAMS
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.
Constant Value: 10023 (0x00002727)
MEASUREMENT_BLUETOOTH_RX_BYTES
public static final int MEASUREMENT_BLUETOOTH_RX_BYTES
Key for a measurement of number of bytes received for this uid by the bluetooth radio.
Constant Value: 10052 (0x00002744)
MEASUREMENT_BLUETOOTH_RX_MS
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.
Constant Value: 10021 (0x00002725)
MEASUREMENT_BLUETOOTH_RX_PACKETS
public static final int MEASUREMENT_BLUETOOTH_RX_PACKETS
Key for a measurement of number of packets received for this uid by the bluetooth radio.
Constant Value: 10058 (0x0000274a)
MEASUREMENT_BLUETOOTH_TX_BYTES
public static final int MEASUREMENT_BLUETOOTH_TX_BYTES
Key for a measurement of number of bytes transmitted for this uid by the bluetooth radio.
Constant Value: 10053 (0x00002745)
MEASUREMENT_BLUETOOTH_TX_MS
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.
Constant Value: 10022 (0x00002726)
MEASUREMENT_BLUETOOTH_TX_PACKETS
public static final int MEASUREMENT_BLUETOOTH_TX_PACKETS
Key for a measurement of number of packets transmitted for this uid by the bluetooth radio.
Constant Value: 10059 (0x0000274b)
MEASUREMENT_BUTTON_USER_ACTIVITY_COUNT
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.
Constant Value: 10046 (0x0000273e)
MEASUREMENT_CPU_POWER_MAMS
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.
Constant Value: 10064 (0x00002750)
MEASUREMENT_MOBILE_IDLE_MS
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.
Constant Value: 10024 (0x00002728)
MEASUREMENT_MOBILE_POWER_MAMS
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.
Constant Value: 10027 (0x0000272b)
MEASUREMENT_MOBILE_RX_BYTES
public static final int MEASUREMENT_MOBILE_RX_BYTES
Key for a measurement of number of bytes received for this uid by the mobile radio.
Constant Value: 10048 (0x00002740)
MEASUREMENT_MOBILE_RX_MS
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.
Constant Value: 10025 (0x00002729)
MEASUREMENT_MOBILE_RX_PACKETS
public static final int MEASUREMENT_MOBILE_RX_PACKETS
Key for a measurement of number of packets received for this uid by the mobile radio.
Constant Value: 10054 (0x00002746)
MEASUREMENT_MOBILE_TX_BYTES
public static final int MEASUREMENT_MOBILE_TX_BYTES
Key for a measurement of number of bytes transmitted for this uid by the mobile radio.
Constant Value: 10049 (0x00002741)
MEASUREMENT_MOBILE_TX_MS
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.
Constant Value: 10026 (0x0000272a)
MEASUREMENT_MOBILE_TX_PACKETS
public static final int MEASUREMENT_MOBILE_TX_PACKETS
Key for a measurement of number of packets transmitted for this uid by the mobile radio.
Constant Value: 10055 (0x00002747)
MEASUREMENT_OTHER_USER_ACTIVITY_COUNT
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.
Constant Value: 10045 (0x0000273d)
MEASUREMENT_REALTIME_BATTERY_MS
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.
Constant Value: 10001 (0x00002711)
MEASUREMENT_REALTIME_SCREEN_OFF_BATTERY_MS
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.
Constant Value: 10003 (0x00002713)
MEASUREMENT_SYSTEM_CPU_TIME_MS
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.
Constant Value: 10063 (0x0000274f)
MEASUREMENT_TOUCH_USER_ACTIVITY_COUNT
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.
Constant Value: 10047 (0x0000273f)
MEASUREMENT_UPTIME_BATTERY_MS
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.
Constant Value: 10002 (0x00002712)
MEASUREMENT_UPTIME_SCREEN_OFF_BATTERY_MS
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.
Constant Value: 10004 (0x00002714)
MEASUREMENT_USER_CPU_TIME_MS
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.
Constant Value: 10062 (0x0000274e)
MEASUREMENT_WIFI_FULL_LOCK_MS
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.
Constant Value: 10029 (0x0000272d)
MEASUREMENT_WIFI_IDLE_MS
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.
Constant Value: 10016 (0x00002720)
MEASUREMENT_WIFI_MULTICAST_MS
public static final int MEASUREMENT_WIFI_MULTICAST_MS
Key for a measurement of number of millseconds that this uid was performing multicast wifi traffic.
Constant Value: 10031 (0x0000272f)
MEASUREMENT_WIFI_POWER_MAMS
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.
Constant Value: 10019 (0x00002723)
MEASUREMENT_WIFI_RUNNING_MS
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.
Constant Value: 10028 (0x0000272c)
MEASUREMENT_WIFI_RX_BYTES
public static final int MEASUREMENT_WIFI_RX_BYTES
Key for a measurement of number of bytes received for this uid by the wifi radio.
Constant Value: 10050 (0x00002742)
MEASUREMENT_WIFI_RX_MS
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.
Constant Value: 10017 (0x00002721)
MEASUREMENT_WIFI_RX_PACKETS
public static final int MEASUREMENT_WIFI_RX_PACKETS
Key for a measurement of number of packets received for this uid by the wifi radio.
Constant Value: 10056 (0x00002748)
MEASUREMENT_WIFI_TX_BYTES
public static final int MEASUREMENT_WIFI_TX_BYTES
Key for a measurement of number of bytes transmitted for this uid by the wifi radio.
Constant Value: 10051 (0x00002743)
MEASUREMENT_WIFI_TX_MS
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.
Constant Value: 10018 (0x00002722)
MEASUREMENT_WIFI_TX_PACKETS
public static final int MEASUREMENT_WIFI_TX_PACKETS
Key for a measurement of number of packets transmitted for this uid by the wifi radio.
Constant Value: 10057 (0x00002749)
STATS_PACKAGES
public static final int STATS_PACKAGES
Key for a HealthStats with PackageHealthStats
keys for each of the
APKs that share this uid.
Constant Value: 10015 (0x0000271f)
STATS_PIDS
public static final int STATS_PIDS
Key for a HealthStats with PidHealthStats
keys for each of the
currently running processes for this uid.
Constant Value: 10013 (0x0000271d)
STATS_PROCESSES
public static final int STATS_PROCESSES
Key for a HealthStats with ProcessHealthStats
keys for each of the
named processes for this uid.
Constant Value: 10014 (0x0000271e)
TIMERS_JOBS
public static final int TIMERS_JOBS
Key for a map of Timers for the JobScheduler
jobs for
this uid.
Constant Value: 10010 (0x0000271a)
TIMERS_SENSORS
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.
Constant Value: 10012 (0x0000271c)
TIMERS_SYNCS
public static final int TIMERS_SYNCS
Key for a map of Timers for the sync adapter syncs that were done for this uid.
Constant Value: 10009 (0x00002719)
TIMERS_WAKELOCKS_DRAW
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).
Constant Value: 10008 (0x00002718)
TIMERS_WAKELOCKS_FULL
public static final int TIMERS_WAKELOCKS_FULL
Key for a TimerStat for the times a
full wake lock
was acquired for this uid.
Constant Value: 10005 (0x00002715)
TIMERS_WAKELOCKS_PARTIAL
public static final int TIMERS_WAKELOCKS_PARTIAL
Key for a TimerStat for the times a
partial wake lock
was acquired for this uid.
Constant Value: 10006 (0x00002716)
TIMERS_WAKELOCKS_WINDOW
public static final int TIMERS_WAKELOCKS_WINDOW
Constant Value: 10007 (0x00002717)
TIMER_AUDIO
public static final int TIMER_AUDIO
Key for a timer for the count and duration of audio playback done by this uid.
Constant Value: 10032 (0x00002730)
TIMER_BLUETOOTH_SCAN
public static final int TIMER_BLUETOOTH_SCAN
Key for a timer for the count and duration of when this uid was doing bluetooth scans.
Constant Value: 10037 (0x00002735)
TIMER_CAMERA
public static final int TIMER_CAMERA
Key for a timer for the count and duration this uid had the camera turned on.
Constant Value: 10035 (0x00002733)
TIMER_FLASHLIGHT
public static final int TIMER_FLASHLIGHT
Key for a timer for the count and duration this uid had the flashlight turned on.
Constant Value: 10034 (0x00002732)
TIMER_FOREGROUND_ACTIVITY
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.
Constant Value: 10036 (0x00002734)
TIMER_GPS_SENSOR
public static final int TIMER_GPS_SENSOR
Key for a timer for the applications use of the GPS sensor.
Constant Value: 10011 (0x0000271b)
TIMER_MOBILE_RADIO_ACTIVE
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.
Constant Value: 10061 (0x0000274d)
TIMER_PROCESS_STATE_BACKGROUND_MS
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.
Constant Value: 10042 (0x0000273a)
TIMER_PROCESS_STATE_CACHED_MS
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.
Constant Value: 10043 (0x0000273b)
TIMER_PROCESS_STATE_FOREGROUND_MS
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.
Constant Value: 10041 (0x00002739)
TIMER_PROCESS_STATE_FOREGROUND_SERVICE_MS
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.
Constant Value: 10039 (0x00002737)
TIMER_PROCESS_STATE_TOP_MS
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.
Constant Value: 10038 (0x00002736)
TIMER_PROCESS_STATE_TOP_SLEEPING_MS
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.
Constant Value: 10040 (0x00002738)
TIMER_VIBRATOR
public static final int TIMER_VIBRATOR
Key for a timer for the count and duration this uid had the vibrator turned on.
Constant Value: 10044 (0x0000273c)
TIMER_VIDEO
public static final int TIMER_VIDEO
Key for a timer for the count and duration of video playback done by this uid.
Constant Value: 10033 (0x00002731)
TIMER_WIFI_SCAN
public static final int TIMER_WIFI_SCAN
Key for a timer for the count and duration of wifi scans done by this uid.
Constant Value: 10030 (0x0000272e)