Home
last modified time | relevance | path

Searched refs:uidStates (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsUpgradeTest.java86 private void assertSameModes(SparseArray<AppOpsService.UidState> uidStates, int op1, int op2) { in assertSameModes() argument
90 for(int i = 0; i < uidStates.size(); i++) { in assertSameModes()
91 final AppOpsService.UidState uidState = uidStates.valueAt(i); in assertSameModes()
/frameworks/base/services/usage/java/com/android/server/usage/
DAppStandbyController.java1141 SparseIntArray uidStates = new SparseIntArray(); in getIdleUidsForUser() local
1152 int index = uidStates.indexOfKey(ai.uid); in getIdleUidsForUser()
1154 uidStates.put(ai.uid, 1 + (idle ? 1<<16 : 0)); in getIdleUidsForUser()
1156 int value = uidStates.valueAt(index); in getIdleUidsForUser()
1157 uidStates.setValueAt(index, value + 1 + (idle ? 1<<16 : 0)); in getIdleUidsForUser()
1164 for (int i = uidStates.size() - 1; i >= 0; i--) { in getIdleUidsForUser()
1165 int value = uidStates.valueAt(i); in getIdleUidsForUser()
1173 for (int i = uidStates.size() - 1; i >= 0; i--) { in getIdleUidsForUser()
1174 int value = uidStates.valueAt(i); in getIdleUidsForUser()
1176 res[numIdle] = uidStates.keyAt(i); in getIdleUidsForUser()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java433 final SparseIntArray uidStates; in updateProcStateCpuTimes() local
451 uidStates = mPendingUids.clone(); in updateProcStateCpuTimes()
454 for (int i = uidStates.size() - 1; i >= 0; --i) { in updateProcStateCpuTimes()
455 final int uid = uidStates.keyAt(i); in updateProcStateCpuTimes()
456 final int procState = uidStates.valueAt(i); in updateProcStateCpuTimes()