/frameworks/base/core/java/com/android/internal/os/ |
PowerCalculator.java | 34 public abstract void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs,
|
WakelockPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, 36 final ArrayMap<String, ? extends BatteryStats.Uid.Wakelock> wakelockStats = 40 final BatteryStats.Uid.Wakelock wakelock = wakelockStats.valueAt(i); 55 Log.d(TAG, "UID " + u.getUid() + ": wake " + app.wakeLockTimeMs
|
CameraPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs,
|
FlashlightPowerCalculator.java | 31 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs,
|
SensorPowerCalculator.java | 38 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, 41 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats(); 44 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); 50 case BatteryStats.Uid.Sensor.GPS:
|
BatterySipper.java | 18 import android.os.BatteryStats.Uid; 27 public Uid uidObj; 136 public BatterySipper(DrainType drainType, Uid uid, double value) { 139 uidObj = uid;
|
CpuPowerCalculator.java | 33 public void calculateApp(BatterySipper app, BatteryStats.Uid u, long rawRealtimeUs, 46 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + cluster + " step #" 63 Log.d(TAG, "UID " + u.getUid() + ": CPU cluster #" + i + " clusterTimeUs=" 69 Log.w(TAG, "UID " + u.getUid() + " CPU cluster # mismatch: Power Profile # " 76 Log.d(TAG, "UID " + u.getUid() + ": CPU time=" + app.cpuTimeMs + " ms power=" 84 final ArrayMap<String, ? extends BatteryStats.Uid.Proc> processStats = u.getProcessStats(); 87 final BatteryStats.Uid.Proc ps = processStats.valueAt(i);
|
/prebuilts/go/darwin-x86/src/os/user/ |
cgo_unix_test.go | 18 if g, w := u.Uid, "4294967294"; g != w { 19 t.Errorf("Uid = %q; want %q", g, w)
|
lookup_stubs.go | 23 Uid: currentUID(), 32 if u.Uid == "" { 33 u.Uid = "1" 42 if u.Uid == "" { 43 u.Uid = "1" 54 if u.Uid != "" && u.Username != "" && u.HomeDir != "" {
|
user_test.go | 38 if want.Uid != got.Uid { 39 t.Errorf("got Uid=%q; want %q", got.Uid, want.Uid) 91 got, err := LookupId(want.Uid)
|
/prebuilts/go/linux-x86/src/os/user/ |
cgo_unix_test.go | 18 if g, w := u.Uid, "4294967294"; g != w { 19 t.Errorf("Uid = %q; want %q", g, w)
|
lookup_stubs.go | 23 Uid: currentUID(), 32 if u.Uid == "" { 33 u.Uid = "1" 42 if u.Uid == "" { 43 u.Uid = "1" 54 if u.Uid != "" && u.Username != "" && u.HomeDir != "" {
|
user_test.go | 38 if want.Uid != got.Uid { 39 t.Errorf("got Uid=%q; want %q", got.Uid, want.Uid) 91 got, err := LookupId(want.Uid)
|
/frameworks/base/services/core/java/com/android/server/am/ |
BackupRecord.java | 31 final BatteryStatsImpl.Uid.Pkg.Serv stats; 39 BackupRecord(BatteryStatsImpl.Uid.Pkg.Serv _agentStats, ApplicationInfo _appInfo,
|
HealthStatsBatteryStatsWriter.java | 47 * Writes the contents of a BatteryStats.Uid into a HealthStatsWriter. 50 public void writeUid(HealthStatsWriter uidWriter, BatteryStats bs, BatteryStats.Uid uid) { 53 SparseArray<? extends BatteryStats.Uid.Sensor> sensors; 54 SparseArray<? extends BatteryStats.Uid.Pid> pids; 82 // Now on to the real per-uid stats... 85 for (final Map.Entry<String,? extends BatteryStats.Uid.Wakelock> entry: 86 uid.getWakelockStats().entrySet()) { 88 final BatteryStats.Uid.Wakelock wakelock = entry.getValue(); 109 uid.getSyncStats().entrySet()) [all...] |
/prebuilts/go/darwin-x86/src/os/exec/ |
exec_posix_test.go | 23 uid, err := strconv.Atoi(u.Uid) 25 t.Fatalf("error converting Uid=%s to integer: %v", u.Uid, err) 37 Uid: uint32(uid),
|
/prebuilts/go/linux-x86/src/os/exec/ |
exec_posix_test.go | 23 uid, err := strconv.Atoi(u.Uid) 25 t.Fatalf("error converting Uid=%s to integer: %v", u.Uid, err) 37 Uid: uint32(uid),
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
BatteryStatsImplTest.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_SERVICE; 23 import static android.os.BatteryStats.Uid.PROCESS_STATE_TOP; 94 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStatsLocked(testUids[i]); 105 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); 108 assertArrayEquals("Uid=" + testUids[i], cpuTimes[i], 132 final BatteryStats.Uid u = mBatteryStatsImpl.getUidStats().get(testUids[i]); 139 assertArrayEquals("Uid=" + testUids[i], expectedCpuTimes [all...] |
PowerCalculatorTest.java | 55 BatteryStats.Uid u = mock(BatteryStats.Uid.class);
|
/device/linaro/bootloader/edk2/OvmfPkg/Library/QemuBootOrderLib/ |
ExtraRootBusMap.c | 44 protocol device paths based on UID.
70 return Acpi1->UID < Acpi2->UID ? -1 :
71 Acpi1->UID > Acpi2->UID ? 1 :
78 protocol device path against a UID.
80 @param[in] StandaloneKey Pointer to the bare UINT32 UID.
83 embedded UINT32 UID.
99 CONST UINT32 *Uid;
102 Uid = StandaloneKey; [all...] |
/packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/checker/ |
WakeupAlarmAnomalyDetector.java | 86 final BatteryStats.Uid uid = sipper.uidObj; local 87 if (uid == null 89 || (targetUid != BatteryUtils.UID_NULL && targetUid != uid.getUid())) { 93 final int wakeupAlarmCount = (int) (getWakeupAlarmCountFromUid(uid) 96 final String packageName = mBatteryUtils.getPackageName(uid.getUid()); 102 .setUid(uid.getUid()) 109 uid.getUid(), packageName)) 124 int getWakeupAlarmCountFromUid(BatteryStats.Uid uid) { [all...] |
/prebuilts/go/darwin-x86/src/archive/tar/ |
stat_unix.go | 22 // userMap and groupMap caches UID and GID lookups for performance reasons. 31 h.Uid = int(sys.Uid) 37 if u, ok := userMap.Load(h.Uid); ok { 39 } else if u, err := user.LookupId(strconv.Itoa(h.Uid)); err == nil { 41 userMap.Store(h.Uid, h.Uname)
|
/prebuilts/go/linux-x86/src/archive/tar/ |
stat_unix.go | 22 // userMap and groupMap caches UID and GID lookups for performance reasons. 31 h.Uid = int(sys.Uid) 37 if u, ok := userMap.Load(h.Uid); ok { 39 } else if u, err := user.LookupId(strconv.Itoa(h.Uid)); err == nil { 41 userMap.Store(h.Uid, h.Uname)
|
/prebuilts/go/darwin-x86/src/os/ |
os_unix_test.go | 24 func checkUidGid(t *testing.T, path string, uid, gid int) { 27 t.Fatalf("Lstat %q (looking for uid/gid %d/%d): %s", path, uid, gid, err) 30 if int(sys.Uid) != uid { 31 t.Errorf("Lstat %q: uid %d want %d", path, sys.Uid, uid) 51 // Can't change uid unless root, but can try 59 checkUidGid(t, f.Name(), int(sys.Uid), gid [all...] |
/prebuilts/go/linux-x86/src/os/ |
os_unix_test.go | 24 func checkUidGid(t *testing.T, path string, uid, gid int) { 27 t.Fatalf("Lstat %q (looking for uid/gid %d/%d): %s", path, uid, gid, err) 30 if int(sys.Uid) != uid { 31 t.Errorf("Lstat %q: uid %d want %d", path, sys.Uid, uid) 51 // Can't change uid unless root, but can try 59 checkUidGid(t, f.Name(), int(sys.Uid), gid [all...] |