Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/appop/
DAppOpsRecentAccessPersistenceTest.java92 SparseArray<AppOpsService.UidState> uidStates = new SparseArray<>(); in readAndWriteRecentAccesses() local
98 persistence.readRecentAccesses(uidStates); in readAndWriteRecentAccesses()
99 validateUidStates(uidStates); in readAndWriteRecentAccesses()
104 persistence.writeRecentAccesses(uidStates); in readAndWriteRecentAccesses()
112 private void validateUidStates(SparseArray<AppOpsService.UidState> uidStates) { in validateUidStates() argument
113 assertThat(uidStates.size()).isEqualTo(1); in validateUidStates()
115 AppOpsService.UidState uidState = uidStates.get(10001); in validateUidStates()
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsRecentAccessPersistence.java91 void readRecentAccesses(@NonNull SparseArray<AppOpsService.UidState> uidStates) { in readRecentAccesses() argument
105 uidStates.clear(); in readRecentAccesses()
128 readPackage(parser, uidStates); in readRecentAccesses()
144 uidStates.clear(); in readRecentAccesses()
156 TypedXmlPullParser parser, SparseArray<AppOpsService.UidState> uidStates) in readPackage() argument
169 readUid(parser, pkgName, uidStates); in readPackage()
179 SparseArray<AppOpsService.UidState> uidStates) in readUid() argument
183 uidStates.put(uid, uidState); in readUid()
272 void writeRecentAccesses(SparseArray<AppOpsService.UidState> uidStates) { in writeRecentAccesses() argument
288 for (int uidIndex = 0; uidIndex < uidStates.size(); uidIndex++) { in writeRecentAccesses()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DCpuPowerStatsProcessorTest.java261 boolean getUidStats(long[] outValues, int uid, int[] uidStates) { in getUidStats() argument
262 long[] values = getUidStats(uid, uidStates); in getUidStats()
268 private long[] getUidStats(int uid, int[] uidStates) { in getUidStats() argument
269 String key = uid + " " + statesToString(getConfig().getUidStateConfig(), uidStates); in getUidStats()
/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerComponentAggregatedPowerStats.java297 boolean getUidStats(long[] outValues, int uid, int[] uidStates) { in getUidStats() argument
298 if (uidStates.length != mUidStateConfig.length) { in getUidStats()
300 "Invalid number of tracked states: " + uidStates.length in getUidStats()
305 uidStats.stats.getStats(outValues, uidStates); in getUidStats()
/frameworks/base/services/core/java/com/android/server/am/
DProcessStatsService.java841 final SparseArray<UidState> uidStates = stats.mUidStates;
843 for (int i = 0, size = uidStates.size(); i < size; i++) {
844 final int uid = uidStates.keyAt(i);
845 final UidState uidState = uidStates.valueAt(i);
/frameworks/base/core/java/com/android/internal/app/procstats/
DProcessStats.java348 SparseArray<UidState> uidStates = other.mUidStates; in add() local
349 for (int ip = 0, size = uidStates.size(); ip < size; ip++) { in add()
350 final int uid = uidStates.keyAt(ip); in add()
353 uidState = uidStates.valueAt(ip).clone(); in add()
356 uidState.add(uidStates.valueAt(ip)); in add()
1870 SparseArray<UidState> uidStates = mUidStates; in dumpLocked() local
1873 for (int iu = 0, size = uidStates.size(); iu < size; iu++) { in dumpLocked()
1874 final int uid = uidStates.keyAt(iu); in dumpLocked()
1875 final UidState uidState = uidStates.valueAt(iu); in dumpLocked()