/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
BatteryStatsNoteTest.java | 26 import android.os.BatteryStats.Uid.Sensor; 32 import com.android.internal.os.BatteryStatsImpl.Uid; 54 private static final int UID = 10500; 55 private static final WorkSource WS = new WorkSource(UID); 58 * Test BatteryStatsImpl.Uid.noteBluetoothScanResultLocked. 64 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_TOP); 69 bi.getUidStats().get(UID).getBluetoothScanResultCounter() 71 BatteryStats.Counter bgCntr = bi.getUidStats().get(UID).getBluetoothScanResultBgCounter(); 76 bi.noteUidProcessStateLocked(UID, ActivityManager.PROCESS_STATE_IMPORTANT_BACKGROUND); 79 bi.getUidStats().get(UID).getBluetoothScanResultCounter( 154 BatteryStats.Uid uid = bi.getUidStats().get(UID); local [all...] |
BatteryStatsCpuTimesTest.java | 226 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); 227 assertNotNull("No entry for uid=" + testUids[i], u); 230 assertEquals("Uid=" + testUids[i] + ", cluster=" + cluster + ", speed=" + speed, 268 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); 269 assertNotNull("No entry for uid=" + testUids[i], u); 270 assertEquals("Unexpected user cpu time for uid=" + testUids[i], 272 assertEquals("Unexpected system cpu time for uid=" + testUids[i], 275 assertEquals("Unexpected entry in updated uids for uid=" + testUids[i], 301 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); 302 assertNotNull("No entry for uid=" + testUids[i], u) [all...] |
BatteryStatsHelperTest.java | 21 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 64 private static final int UID = 123456; 77 private BatteryStats.Uid mUid; 108 when(mNormalBatterySipper.getUid()).thenReturn(UID); 210 BATTERY_APP_USAGE, 0 /* uid */, true /* isUidNull */); 212 BATTERY_APP_USAGE, 1 /* uid */, false /* isUidNull */); 214 BATTERY_APP_USAGE, 2 /* uid */, false /* isUidNull */); 232 doReturn(UID).when(mNormalBatterySipper).getUid(); 233 doReturn(systemPackages).when(mPackageManager).getPackagesForUid(UID); 242 doReturn(UID).when(mNormalBatterySipper).getUid() 268 final BatteryStats.Uid uid = mock(BatteryStats.Uid.class, RETURNS_DEEP_STUBS); local [all...] |
BstatsCpuTimesValidationTest.java | 19 import static android.os.BatteryStats.Uid.NUM_PROCESS_STATE; 20 import static android.os.BatteryStats.Uid.PROCESS_STATE_BACKGROUND; 21 import static android.os.BatteryStats.Uid.PROCESS_STATE_CACHED; 22 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND; 23 import static android.os.BatteryStats.Uid.PROCESS_STATE_FOREGROUND_SERVICE; 24 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 25 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP_SLEEPING; 26 import static android.os.BatteryStats.Uid.UID_PROCESS_TYPES; 163 // Checks cpu freq times of system uid as an indication of whether /proc/uid_time_in_state 164 // and /proc/uid/<uid>/time_in_state kernel nodes are available [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/ |
WakeLockAnomalyDetector.java | 80 final BatteryStats.Uid uid = sipper.uidObj; local 81 if (uid == null 83 || (targetUid != BatteryUtils.UID_NULL && targetUid != uid.getUid())) { 87 final long currentDurationMs = getCurrentDurationMs(uid, rawRealtime); 88 final long backgroundDurationMs = getBackgroundTotalDurationMs(uid, rawRealtime); 91 final String packageName = mBatteryUtils.getPackageName(uid.getUid()); 96 .setUid(uid.getUid()) 112 long getCurrentDurationMs(BatteryStats.Uid uid, long elapsedRealtimeMs) [all...] |
BluetoothScanAnomalyDetector.java | 78 final BatteryStats.Uid uid = sipper.uidObj; local 79 if (uid == null 81 || (targetUid != BatteryUtils.UID_NULL && targetUid != uid.getUid())) { 85 final long bluetoothTimeMs = getBluetoothUnoptimizedBgTimeMs(uid, elapsedRealtimeMs); 87 final String packageName = mBatteryUtils.getPackageName(uid.getUid()); 92 .setUid(uid.getUid()) 109 public long getBluetoothUnoptimizedBgTimeMs(BatteryStats.Uid uid, long elapsedRealtimeMs) { 110 BatteryStats.Timer timer = uid.getBluetoothUnoptimizedScanBackgroundTimer() [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/anomaly/checker/ |
WakeupAlarmAnomalyDetectorTest.java | 82 private BatteryStats.Uid mAnomalyUid; 84 private BatteryStats.Uid mNormalUid; 86 private BatteryStats.Uid mTargetUid; 90 private BatteryStats.Uid.Pkg mPkg; 201 final ArrayMap<String, BatteryStats.Uid.Pkg> packageStats = new ArrayMap<>(); 216 final ArrayMap<String, BatteryStats.Uid.Pkg> packageStats = new ArrayMap<>();
|
WakeLockAnomalyDetectorTest.java | 77 private BatteryStats.Uid mAnomalyUid; 79 private BatteryStats.Uid mNormalUid; 81 private BatteryStats.Uid mTargetUid; 83 private BatteryStats.Uid mInactiveUid; 184 private Anomaly createWakeLockAnomaly(int uid) { 186 .setUid(uid)
|
BluetoothScanAnomalyDetectorTest.java | 70 private BatteryStats.Uid mAnomalyUid; 72 private BatteryStats.Uid mNormalUid; 74 private BatteryStats.Uid mTargetUid; 150 private Anomaly createBluetoothAnomaly(int uid) { 152 .setUid(uid)
|
/frameworks/base/core/java/com/android/internal/os/ |
WifiPowerEstimator.java | 51 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, 73 for (int bin = 0; bin < BatteryStats.Uid.NUM_WIFI_BATCHED_SCAN_BINS; bin++) { 82 Log.d(TAG, "UID " + u.getUid() + ": power=" +
|
MediaPowerCalculator.java | 36 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs,
|
MemoryPowerCalculator.java | 25 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs,
|
BatteryStatsImpl.java | 152 // per uid; once the limit is reached, we batch the remaining wakelocks 234 * Contains uid -> procState mappings. 262 * Isolated and invalid UID info must be removed to conserve memory. However, STATSD and 263 * Batterystats both need to access UID cpu time. To resolve this race condition, only 265 * implemented so that STATSD can capture those UID times before they are deleted. 277 /** Remove just one UID */ 278 public UidToRemove(int uid, long timestamp) { 279 this(uid, uid, timestamp); 314 Slog.w(TAG, "End UID " + endUid + " is smaller than start UID " + startUid) 416 final int uid = uidStates.keyAt(i); local 494 final int uid = allUidCpuFreqTimesMs.keyAt(i); local 3462 final BatteryStatsImpl.Uid uid = mUidStats.valueAt(i); local 3500 final BatteryStatsImpl.Uid uid = mUidStats.valueAt(i); local 4593 final int uid = mapUid(workSource.get(i)); local 4604 final int uid = workChain.getAttributionUid(); local 4640 final int uid = mapUid(workSource.get(i)); local 4651 final int uid = workChain.getAttributionUid(); local 5554 BatteryStatsImpl.Uid uid = mUidStats.valueAt(i); local 5571 BatteryStatsImpl.Uid uid = mUidStats.valueAt(i); local 5670 BatteryStatsImpl.Uid uid = mUidStats.valueAt(i); local 5687 BatteryStatsImpl.Uid uid = mUidStats.valueAt(i); local 5772 BatteryStatsImpl.Uid uid = mUidStats.valueAt(i); local 5781 int uid = mapUid(ws.get(i)); local 5791 int uid = mapUid(wc.getAttributionUid()); local 5846 int uid = mapUid(ws.get(i)); local 5853 int uid = mapUid(workChains.get(i).getAttributionUid()); local 5869 int uid = mapUid(oldWs.get(i)); local 5876 int uid = mapUid(workChains.get(i).getAttributionUid()); local 5883 int uid = mapUid(newWs.get(i)); local 5890 int uid = mapUid(workChains.get(i).getAttributionUid()); local 5911 int uid = mapUid(ws.get(i)); local 5918 int uid = mapUid(workChains.get(i).getAttributionUid()); local 6114 final int uid = mapUid(ws.get(i)); local 6124 final int uid = mapUid(workChain.getAttributionUid()); local 6136 final int uid = mapUid(ws.get(i)); local 6146 final int uid = mapUid(workChain.getAttributionUid()); local 6158 final int uid = mapUid(ws.get(i)); local 6168 final int uid = mapUid(workChain.getAttributionUid()); local 6179 final int uid = mapUid(ws.get(i)); local 6189 final int uid = mapUid(workChain.getAttributionUid()); local 11178 final Uid uid = mUidStats.valueAt(i); local 11202 final Uid uid = mUidStats.valueAt(i); local 11272 final Uid uid = getUidStatsLocked(txPackets.keyAt(i)); local 11285 final Uid uid = getUidStatsLocked(rxPackets.keyAt(i)); local 11706 final int uid = traffic.getUid(); local 12157 final int uid = timer.mUid.getUid(); local 13422 Uid uid = mUidStats.get(u); local 13430 Uid uid = mUidStats.get(u); local 13591 int uid = in.readInt(); local 13890 int uid = in.readInt(); local 14878 int uid = in.readInt(); local 15074 Uid uid = mUidStats.valueAt(i); local [all...] |
/device/linaro/bootloader/edk2/MdePkg/Include/Ppi/ |
SuperIo.h | 152 EFI_ACPI_UID Uid;
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
BatteryUtils.java | 110 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, 112 if (uid == null) { 118 return getScreenUsageTimeMs(uid, which); 120 return getProcessForegroundTimeMs(uid, which); 122 return getProcessBackgroundTimeMs(uid, which); 124 return getProcessForegroundTimeMs(uid, which) 125 + getProcessBackgroundTimeMs(uid, which); 130 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) 214 final BatteryStats.Uid uid = sippers.get(i).uidObj; local [all...] |
FakeUid.java | 22 import android.os.BatteryStats.Uid; 28 * Fake UID for testing power usage screen. 30 public class FakeUid extends Uid { 34 public FakeUid(int uid) { 35 mUid = uid;
|
/prebuilts/go/darwin-x86/src/archive/tar/ |
reader_test.go | 35 Uid: 73025, 46 Uid: 73025, 64 Uid: 1000, 78 Uid: 1000, 97 Uid: 1000, 117 Uid: 1000, 137 Uid: 1000, 161 Uid: 73025, 173 Uid: 73025, 188 Uid: 73025 [all...] |
/prebuilts/go/darwin-x86/src/os/user/ |
lookup_plan9.go | 34 Uid: uname, 48 func lookupUserId(uid string) (*User, error) {
|
user.go | 19 // Uid is the user ID. 20 // On POSIX systems, this is a decimal number representing the uid. 23 Uid string
|
lookup_unix_test.go | 154 uid string 182 got, err := findUserId(tt.uid, strings.NewReader(tt.in)) 185 t.Errorf("findUserId(%s): got nil error, expected err", tt.uid) 190 if want := "user: unknown userid " + tt.uid; terr.Error() != want { 200 if got.Uid != tt.uid { 201 t.Errorf("findUserId(%s): got uid %v, want %s", tt.name, got.Uid, tt.uid) 217 Uid: "6" [all...] |
/prebuilts/go/linux-x86/src/archive/tar/ |
reader_test.go | 35 Uid: 73025, 46 Uid: 73025, 64 Uid: 1000, 78 Uid: 1000, 97 Uid: 1000, 117 Uid: 1000, 137 Uid: 1000, 161 Uid: 73025, 173 Uid: 73025, 188 Uid: 73025 [all...] |
/prebuilts/go/linux-x86/src/os/user/ |
lookup_plan9.go | 34 Uid: uname, 48 func lookupUserId(uid string) (*User, error) {
|
user.go | 19 // Uid is the user ID. 20 // On POSIX systems, this is a decimal number representing the uid. 23 Uid string
|
lookup_unix_test.go | 154 uid string 182 got, err := findUserId(tt.uid, strings.NewReader(tt.in)) 185 t.Errorf("findUserId(%s): got nil error, expected err", tt.uid) 190 if want := "user: unknown userid " + tt.uid; terr.Error() != want { 200 if got.Uid != tt.uid { 201 t.Errorf("findUserId(%s): got uid %v, want %s", tt.name, got.Uid, tt.uid) 217 Uid: "6" [all...] |
/development/tools/logblame/ |
ps.py | 12 def __init__(self, uid, pid, ppid, name): 13 self.uid = uid 21 if self.uid: 22 return self.uid.name 26 return "Process(uid=%s, pid=%s, name=%s)" % (self.uid, self.pid, self.name) 28 class Uid(object): 29 def __init__(self, uid, name): 30 self.uid = ui [all...] |