Lines Matching refs:UID
30 private static final int UID = 10500;
41 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_CACHED_EMPTY);
42 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
43 bi.noteStartSensorLocked(UID, SENSOR_ID);
46 bi.noteStopSensorLocked(UID, SENSOR_ID);
48 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER);
49 bi.noteStartSensorLocked(UID, SENSOR_ID);
50 bi.noteStartSensorLocked(UID, SENSOR_ID);
53 bi.noteStopSensorLocked(UID, SENSOR_ID);
54 bi.noteStopSensorLocked(UID, SENSOR_ID);
56 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats()
58 BatteryStats.Timer sensorBgTimer = bi.getUidStats().get(UID).getSensorStats()
83 bi.noteStartSensorLocked(UID, SENSOR_ID);
87 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats()
95 bi.noteStopSensorLocked(UID, SENSOR_ID);
99 sensorTimer = bi.getUidStats().get(UID).getSensorStats()
118 bi.noteStartSensorLocked(UID, SENSOR_ID);
122 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats()
130 bi.noteStopSensorLocked(UID, SENSOR_ID);
134 sensorTimer = bi.getUidStats().get(UID).getSensorStats()
150 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
154 bi.noteStartSensorLocked(UID, SENSOR_ID);
162 bi.noteStopSensorLocked(UID, SENSOR_ID);
166 bi.noteStartSensorLocked(UID, SENSOR_ID);
170 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats()
178 bi.noteStopSensorLocked(UID, SENSOR_ID);
180 sensorTimer = bi.getUidStats().get(UID).getSensorStats()
199 bi.noteStartSensorLocked(UID, SENSOR_ID);
203 BatteryStats.Timer sensorTimer = bi.getUidStats().get(UID).getSensorStats()
217 sensorTimer = bi.getUidStats().get(UID).getSensorStats().get(SENSOR_ID).getSensorTime();
226 bi.noteStopSensorLocked(UID, SENSOR_ID);
230 sensorTimer = bi.getUidStats().get(UID).getSensorStats().get(SENSOR_ID).getSensorTime();
240 final int UID_2 = 20000; // second uid for testing pool usage
251 // UID in foreground
253 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
255 // UID starts the sensor (foreground)
257 bi.noteStartSensorLocked(UID, SENSOR_ID);
267 // UID enters background
269 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
271 // UID enters background again (from a different background state)
273 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_LAST_ACTIVITY);
283 // UID re-enters foreground
285 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
287 // UID starts the sensor a second time (foreground)
289 bi.noteStartSensorLocked(UID, SENSOR_ID);
291 // UID re-enters background
293 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
295 // UID stops the sensor completely (background)
297 bi.noteStopSensorLocked(UID, SENSOR_ID);
299 bi.noteStopSensorLocked(UID, SENSOR_ID);
301 // UID starts the sensor anew (background)
303 bi.noteStartSensorLocked(UID, SENSOR_ID);
305 // UID stops the sensor (background)
307 bi.noteStopSensorLocked(UID, SENSOR_ID);
310 // UID
320 BatteryStats.Timer timer1 = bi.getUidStats().get(UID).getSensorStats()
322 BatteryStats.Timer bgTimer1 = bi.getUidStats().get(UID).getSensorStats()
341 // Test: UID - blamed time
344 // Test: UID - actual time
347 // Test: UID - background time
353 // Test: UID - count
355 // Test: UID - background count
384 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER);
389 bi.noteStartSensorLocked(UID, SENSOR_ID);
395 final BatteryStats.Uid uid = bi.getUidStats().get(UID);
396 assertNotNull(uid);
398 BatteryStats.Uid.Sensor sensor = uid.getSensorStats().get(SENSOR_ID);
404 bi.getUidStatsLocked(UID).reset(clocks.uptime * 1000, clocks.realtime * 1000);
406 sensor = uid.getSensorStats().get(SENSOR_ID);
411 bi.noteStopSensorLocked(UID, SENSOR_ID);
414 bi.getUidStatsLocked(UID).reset(clocks.uptime * 1000, clocks.realtime * 1000);
416 sensor = uid.getSensorStats().get(SENSOR_ID);
431 BatteryStatsImpl.TimeBase bgTimeBase = bi.getOnBatteryBackgroundTimeBase(UID);
434 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
447 bi.noteStartSensorLocked(UID, SENSOR_ID);
453 BatteryStats.Uid.Sensor sensor = bi.getUidStats().get(UID).getSensorStats().get(SENSOR_ID);
466 bi.getUidStatsLocked(UID).reset(clocks.uptime * 1000, clocks.realtime * 1000);
476 bi.noteStopSensorLocked(UID, SENSOR_ID);
489 bi.noteStartSensorLocked(UID, SENSOR_ID);
505 bi.getUidStatsLocked(UID).reset(clocks.uptime * 1000, clocks.realtime * 1000);
515 bi.noteStopSensorLocked(UID, SENSOR_ID);