Lines Matching refs:UID
34 private static final int UID = 10500;
36 /** Test that BatteryStatsImpl.Uid.mOnBatteryBackgroundTimeBase works correctly. */
43 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryBackgroundTimeBase(UID);
55 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
62 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
84 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_RECEIVER); // background too
92 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
99 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_NONEXISTENT);
104 /** Test that BatteryStatsImpl.Uid.mOnBatteryScreenOffBackgroundTimeBase works correctly. */
111 BatteryStatsImpl.TimeBase bgtb = bi.getOnBatteryScreenOffBackgroundTimeBase(UID);
115 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
132 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
147 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
163 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
167 bi.noteWifiScanStartedLocked(UID);
171 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
179 bi.noteWifiScanStoppedLocked(UID);
183 long time = bi.getUidStats().get(UID).getWifiScanTime(curr, STATS_SINCE_CHARGED);
184 int count = bi.getUidStats().get(UID).getWifiScanCount(STATS_SINCE_CHARGED);
185 int bgCount = bi.getUidStats().get(UID).getWifiScanBackgroundCount(STATS_SINCE_CHARGED);
186 long actualTime = bi.getUidStats().get(UID).getWifiScanActualTime(curr);
187 long bgTime = bi.getUidStats().get(UID).getWifiScanBackgroundTime(curr);
199 WorkSource ws = new WorkSource(UID); // needed for bluetooth
207 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
215 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
231 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP);
243 BatteryStats.Timer timer = bi.getUidStats().get(UID).getBluetoothScanTimer();
244 BatteryStats.Timer bgTimer = bi.getUidStats().get(UID).getBluetoothScanBackgroundTimer();
245 BatteryStats.Timer badTimer = bi.getUidStats().get(UID).getBluetoothUnoptimizedScanTimer();
246 BatteryStats.Timer badBgTimer = bi.getUidStats().get(UID)
276 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
280 bi.noteJobStartLocked(jobName, UID);
284 bi.noteJobFinishLocked(jobName, UID, 0);
288 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
292 bi.noteJobStartLocked(jobName, UID);
300 bi.noteJobFinishLocked(jobName, UID, 0);
305 bi.getUidStats().get(UID).getJobStats();
321 bi.noteJobStartLocked(jobName2, UID);
322 assertEquals(2, bi.getUidStats().get(UID).getJobStats().size());
323 bi.noteJobFinishLocked(jobName2, UID, 0);
337 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_FOREGROUND);
341 bi.noteSyncStartLocked(syncName, UID);
345 bi.noteSyncFinishLocked(syncName, UID);
349 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND);
353 bi.noteSyncStartLocked(syncName, UID);
361 bi.noteSyncFinishLocked(syncName, UID);
366 bi.getUidStats().get(UID).getSyncStats();
382 bi.noteSyncStartLocked(syncName2, UID);
383 assertEquals(2, bi.getUidStats().get(UID).getSyncStats().size());
384 bi.noteSyncFinishLocked(syncName2, UID);