1713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato/* 2713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Copyright (C) 2016 The Android Open Source Project 3713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * 4713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Licensed under the Apache License, Version 2.0 (the "License"); 5713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * you may not use this file except in compliance with the License. 6713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * You may obtain a copy of the License at 7713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * 8713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * http://www.apache.org/licenses/LICENSE-2.0 9713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * 10713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Unless required by applicable law or agreed to in writing, software 11713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * distributed under the License is distributed on an "AS IS" BASIS, 12713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * See the License for the specific language governing permissions and 14713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * limitations under the License. 15713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 16713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 17713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onoratopackage android.os.health; 18713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 19713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato/** 20713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Keys for {@link HealthStats} returned from 21713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * {@link SystemHealthManager#takeUidSnapshot(int) SystemHealthManager.takeUidSnapshot(int)}, 22713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * {@link SystemHealthManager#takeMyUidSnapshot() SystemHealthManager.takeMyUidSnapshot()}, and 23713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * {@link SystemHealthManager#takeUidSnapshots(int[]) SystemHealthManager.takeUidSnapshots(int[])}. 24713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 25713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onoratopublic final class UidHealthStats { 26713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 27713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato private UidHealthStats() { 28713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato } 29713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 30713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 31713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * How many milliseconds this statistics report covers in wall-clock time while the 32713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * device was on battery including both screen-on and screen-off time. 33713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 34713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 35713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_REALTIME_BATTERY_MS = HealthKeys.BASE_UID + 1; 36713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 37713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 38713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * How many milliseconds this statistics report covers that the CPU was running while the 39713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * device was on battery including both screen-on and screen-off time. 40713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 41713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 42713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_UPTIME_BATTERY_MS = HealthKeys.BASE_UID + 2; 43713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 44713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 45713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * How many milliseconds this statistics report covers in wall-clock time while the 46713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * device was on battery including both screen-on and screen-off time. 47713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 48713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 49713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_REALTIME_SCREEN_OFF_BATTERY_MS = HealthKeys.BASE_UID + 3; 50713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 51713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 52713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * How many milliseconds this statistics report covers that the CPU was running while the 53713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * device was on battery including both screen-on and screen-off time. 54713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 55713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 56713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_UPTIME_SCREEN_OFF_BATTERY_MS = HealthKeys.BASE_UID + 4; 57713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 58713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 59713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a TimerStat for the times a 60713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * {@link android.os.PowerManager#FULL_WAKE_LOCK full wake lock} 61713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * was acquired for this uid. 62713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 63713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS) 64713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMERS_WAKELOCKS_FULL = HealthKeys.BASE_UID + 5; 65713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 66713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 67713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a TimerStat for the times a 68713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * {@link android.os.PowerManager#PARTIAL_WAKE_LOCK full wake lock} 69713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * was acquired for this uid. 70713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 71713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS) 72713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMERS_WAKELOCKS_PARTIAL = HealthKeys.BASE_UID + 6; 73713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 74713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS) 75713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMERS_WAKELOCKS_WINDOW = HealthKeys.BASE_UID + 7; 76713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 77181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 78181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a TimerStat for the times a system-defined wakelock was acquired 79181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * to allow the application to draw when it otherwise would not be able to 80181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * (e.g. on the lock screen or doze screen). 81181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 82713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS) 83713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMERS_WAKELOCKS_DRAW = HealthKeys.BASE_UID + 8; 84713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 85713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 86713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a map of Timers for the sync adapter syncs that were done for 87713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * this uid. 88713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 89713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS) 90713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMERS_SYNCS = HealthKeys.BASE_UID + 9; 91713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 92713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 93713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a map of Timers for the {@link android.app.job.JobScheduler} jobs for 94713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * this uid. 95713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 96713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS) 97713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMERS_JOBS = HealthKeys.BASE_UID + 10; 98713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 99713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 100713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a timer for the applications use of the GPS sensor. 101713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 102713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 103713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_GPS_SENSOR = HealthKeys.BASE_UID + 11; 104713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 105713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 106713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a map of the sensor usage for this uid. The keys are a 107713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * string representation of the handle for the sensor. 108713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 109713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMERS) 110713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMERS_SENSORS = HealthKeys.BASE_UID + 12; 111713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 112713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 113713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a HealthStats with {@link PidHealthStats} keys for each of the 114713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * currently running processes for this uid. 115713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 116713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_STATS) 117713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int STATS_PIDS = HealthKeys.BASE_UID + 13; 118713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 119713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 120713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a HealthStats with {@link ProcessHealthStats} keys for each of the 121713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * named processes for this uid. 122713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 123713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_STATS) 124713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int STATS_PROCESSES = HealthKeys.BASE_UID + 14; 125713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 126713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 127713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * Key for a HealthStats with {@link PackageHealthStats} keys for each of the 128713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * APKs that share this uid. 129713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 130713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_STATS) 131713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int STATS_PACKAGES = HealthKeys.BASE_UID + 15; 132713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 133181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 134181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the wifi controller was 135181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * idle but turned on on behalf of this uid. 136181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 137713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 138713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_IDLE_MS = HealthKeys.BASE_UID + 16; 139713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 140181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 141181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the wifi transmitter was 142181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * receiving data for this uid. 143181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 144713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 145713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_RX_MS = HealthKeys.BASE_UID + 17; 146713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 147181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 148181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the wifi transmitter was 149181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * transmitting data for this uid. 150181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 151713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 152713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_TX_MS = HealthKeys.BASE_UID + 18; 153713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 154181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 155181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of the estimated number of mA*ms used by this uid 156181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * for wifi, that is to say the number of milliseconds of wifi activity 157181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * times the mA current during that period. 158181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 159713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 160713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_POWER_MAMS = HealthKeys.BASE_UID + 19; 161713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 162181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 163181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the bluetooth controller was 164181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * idle but turned on on behalf of this uid. 165181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 166713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 167713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_IDLE_MS = HealthKeys.BASE_UID + 20; 168713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 169181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 170181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the bluetooth transmitter was 171181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * receiving data for this uid. 172181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 173713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 174713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_RX_MS = HealthKeys.BASE_UID + 21; 175713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 176181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 177181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the bluetooth transmitter was 178181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * transmitting data for this uid. 179181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 180713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 181713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_TX_MS = HealthKeys.BASE_UID + 22; 182713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 183181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 184181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of the estimated number of mA*ms used by this uid 185181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * for bluetooth, that is to say the number of milliseconds of activity 186181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * times the mA current during that period. 187181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 188713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 189713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_POWER_MAMS = HealthKeys.BASE_UID + 23; 190713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 191181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 192181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the mobile radio controller was 193181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * idle but turned on on behalf of this uid. 194181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 195713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 196713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_IDLE_MS = HealthKeys.BASE_UID + 24; 197713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 198181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 199181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the mobile radio transmitter was 200181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * receiving data for this uid. 201181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 202713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 203713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_RX_MS = HealthKeys.BASE_UID + 25; 204713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 205181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 206181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the mobile radio transmitter was 207181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * transmitting data for this uid. 208181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 209713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 210713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_TX_MS = HealthKeys.BASE_UID + 26; 211713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 212181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 213181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of the estimated number of mA*ms used by this uid 214181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * for mobile data, that is to say the number of milliseconds of activity 215181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * times the mA current during that period. 216181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 217713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 218713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_POWER_MAMS = HealthKeys.BASE_UID + 27; 219713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 220181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 221181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds the wifi controller was 222181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * active on behalf of this uid. 223181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 224713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 225713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_RUNNING_MS = HealthKeys.BASE_UID + 28; 226713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 227181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 228181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds that this uid held a full wifi lock. 229181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 230713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 231713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_FULL_LOCK_MS = HealthKeys.BASE_UID + 29; 232713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 233181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 234181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of wifi scans done by this uid. 235181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 236713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 237713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_WIFI_SCAN = HealthKeys.BASE_UID + 30; 238713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 239181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 240181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of millseconds that this uid was performing 241181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * multicast wifi traffic. 242181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 243713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 244713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_MULTICAST_MS = HealthKeys.BASE_UID + 31; 245713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 246181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 247181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of audio playback done by this uid. 248181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 249713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 250713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_AUDIO = HealthKeys.BASE_UID + 32; 251713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 252181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 253181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of video playback done by this uid. 254181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 255713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 256713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_VIDEO = HealthKeys.BASE_UID + 33; 257713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 258181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 259181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration this uid had the flashlight turned on. 260181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 261713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 262713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_FLASHLIGHT = HealthKeys.BASE_UID + 34; 263713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 264181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 265181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration this uid had the camera turned on. 266181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 267713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 268713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_CAMERA = HealthKeys.BASE_UID + 35; 269713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 270181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 271181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when an activity from this uid 272181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * was the foreground activitiy. 273181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 274713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 275713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_FOREGROUND_ACTIVITY = HealthKeys.BASE_UID + 36; 276713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 277181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 278181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when this uid was doing bluetooth scans. 279181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 280713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 281713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_BLUETOOTH_SCAN = HealthKeys.BASE_UID + 37; 282713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 283181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 284181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when this uid was in the "top" process state. 285181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 286713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 287713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_PROCESS_STATE_TOP_MS = HealthKeys.BASE_UID + 38; 288713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 289181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 290181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when this uid was in the "foreground service" 291181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * process state. 292181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 293713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 294713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_PROCESS_STATE_FOREGROUND_SERVICE_MS = HealthKeys.BASE_UID + 39; 295713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 296181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 297181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when this uid was in the "top sleeping" 298181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * process state. 299181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 300713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 301713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_PROCESS_STATE_TOP_SLEEPING_MS = HealthKeys.BASE_UID + 40; 302713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 303181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 304181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when this uid was in the "foreground" 305181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * process state. 306181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 307713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 308713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_PROCESS_STATE_FOREGROUND_MS = HealthKeys.BASE_UID + 41; 309713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 310181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 311181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when this uid was in the "background" 312181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * process state. 313181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 314713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 315713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_PROCESS_STATE_BACKGROUND_MS = HealthKeys.BASE_UID + 42; 316713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 317181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 318181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration of when this uid was in the "cached" process 319181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * state. 320181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 321713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 322713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_PROCESS_STATE_CACHED_MS = HealthKeys.BASE_UID + 43; 323713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 324181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 325181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration this uid had the vibrator turned on. 326181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 327713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 328713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_VIBRATOR = HealthKeys.BASE_UID + 44; 329713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 330181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 331181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of software-generated user activity events caused 332181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * by the UID. Calls to userActivity() reset the user activity countdown timer and 333181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * keep the screen on for the user's preferred screen-on setting. 334181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 335713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 336713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_OTHER_USER_ACTIVITY_COUNT = HealthKeys.BASE_UID + 45; 337713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 338181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 339181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of user activity events due to physical button presses caused 340181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * by the UID. Calls to userActivity() reset the user activity countdown timer and 341181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * keep the screen on for the user's preferred screen-on setting. 342181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 343713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 344713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BUTTON_USER_ACTIVITY_COUNT = HealthKeys.BASE_UID + 46; 345713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 346181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 347181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of user activity events due to touch events caused 348181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * by the UID. Calls to userActivity() reset the user activity countdown timer and 349181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * keep the screen on for the user's preferred screen-on setting. 350181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 351713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 352713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_TOUCH_USER_ACTIVITY_COUNT = HealthKeys.BASE_UID + 47; 353713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 354181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 355181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of bytes received for this uid by the mobile radio. 356181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 357713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 358713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_RX_BYTES = HealthKeys.BASE_UID + 48; 359713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 360181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 361181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of bytes transmitted for this uid by the mobile radio. 362181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 363713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 364713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_TX_BYTES = HealthKeys.BASE_UID + 49; 365713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 366181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 367181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of bytes received for this uid by the wifi radio. 368181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 369713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 370713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_RX_BYTES = HealthKeys.BASE_UID + 50; 371713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 372181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 373181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of bytes transmitted for this uid by the wifi radio. 374181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 375713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 376713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_TX_BYTES = HealthKeys.BASE_UID + 51; 377713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 378181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 379181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of bytes received for this uid by the bluetooth radio. 380181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 381713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 382713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_RX_BYTES = HealthKeys.BASE_UID + 52; 383713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 384181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 385181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of bytes transmitted for this uid by the bluetooth radio. 386181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 387713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 388713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_TX_BYTES = HealthKeys.BASE_UID + 53; 389713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 390181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 391181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of packets received for this uid by the mobile radio. 392181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 393713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 394713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_RX_PACKETS = HealthKeys.BASE_UID + 54; 395713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 396181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 397181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of packets transmitted for this uid by the mobile radio. 398181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 399713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 400713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_MOBILE_TX_PACKETS = HealthKeys.BASE_UID + 55; 401713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 402181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 403181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of packets received for this uid by the wifi radio. 404181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 405713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 406713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_RX_PACKETS = HealthKeys.BASE_UID + 56; 407713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 408181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 409181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of packets transmitted for this uid by the wifi radio. 410181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 411713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 412713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_WIFI_TX_PACKETS = HealthKeys.BASE_UID + 57; 413713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 414181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 415181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of packets received for this uid by the bluetooth radio. 416181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 417713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 418713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_RX_PACKETS = HealthKeys.BASE_UID + 58; 419713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 420181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 421181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of number of packets transmitted for this uid by the bluetooth radio. 422181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 423713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 424713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int MEASUREMENT_BLUETOOTH_TX_PACKETS = HealthKeys.BASE_UID + 59; 425713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 426181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 427181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a timer for the count and duration the mobile radio was turned on for this uid. 428181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 429713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_TIMER) 430713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final int TIMER_MOBILE_RADIO_ACTIVE = HealthKeys.BASE_UID + 61; 431713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 432181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 433181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of the number of milliseconds spent by the CPU running user space 434181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * code for this uid. 435181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 436713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 437bee44ae8e5da109cd8273a057b566dc6925d6a71Joe Onorato public static final int MEASUREMENT_USER_CPU_TIME_MS = HealthKeys.BASE_UID + 62; 438713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 439181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato /** 440181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * Key for a measurement of the number of milliseconds spent by the CPU running kernel 441181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato * code for this uid. 442181cada18a9feab90627ab27070bc00c29ec337aJoe Onorato */ 443713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 444bee44ae8e5da109cd8273a057b566dc6925d6a71Joe Onorato public static final int MEASUREMENT_SYSTEM_CPU_TIME_MS = HealthKeys.BASE_UID + 63; 445713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 446713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 447713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * An estimate of the number of milliamp-microsends used by this uid. 448d4abd1eeb01187fa2ef78b64ae4f493a7bb3563fAdam Lesinski * 449d4abd1eeb01187fa2ef78b64ae4f493a7bb3563fAdam Lesinski * @deprecated this measurement is vendor-dependent and not reliable. 450713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 451d4abd1eeb01187fa2ef78b64ae4f493a7bb3563fAdam Lesinski @Deprecated 452713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato @HealthKeys.Constant(type=HealthKeys.TYPE_MEASUREMENT) 453bee44ae8e5da109cd8273a057b566dc6925d6a71Joe Onorato public static final int MEASUREMENT_CPU_POWER_MAMS = HealthKeys.BASE_UID + 64; 454713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 455713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato /** 456713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato * @hide 457713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato */ 458713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato public static final HealthKeys.Constants CONSTANTS = new HealthKeys.Constants(UidHealthStats.class); 459713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato} 460713fec85b8612256211f09c62b8958a99fe5b9dbJoe Onorato 461