Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java220 final SparseLongArray updatedUids = new SparseLongArray(); in testUpdateClusterSpeedTimes() local
224 updatedUids.put(testUids[i], cpuTimeUs[i]); in testUpdateClusterSpeedTimes()
228 mBatteryStatsImpl.updateClusterSpeedTimes(updatedUids, true, null); in testUpdateClusterSpeedTimes()
276 final SparseLongArray updatedUids = new SparseLongArray(); in testReadKernelUidCpuTimesLocked() local
277 mBatteryStatsImpl.readKernelUidCpuTimesLocked(null, updatedUids, true); in testReadKernelUidCpuTimesLocked()
289 uidTimesUs[i][0] + uidTimesUs[i][1], updatedUids.get(testUids[i])); in testReadKernelUidCpuTimesLocked()
290 updatedUids.delete(testUids[i]); in testReadKernelUidCpuTimesLocked()
292 assertEquals("Updated uids: " + updatedUids, 0, updatedUids.size()); in testReadKernelUidCpuTimesLocked()
488 final SparseLongArray updatedUids = new SparseLongArray(); in testReadKernelUidCpuTimesLocked_withPartialTimers() local
489 mBatteryStatsImpl.readKernelUidCpuTimesLocked(partialTimers, updatedUids, true); in testReadKernelUidCpuTimesLocked_withPartialTimers()
[all …]
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java375 IntArray updatedUids = null; in updateServices() local
391 if (updatedUids == null) { in updateServices()
392 updatedUids = new IntArray(); in updateServices()
394 updatedUids.add(service.uid); in updateServices()
397 if (updatedUids != null && updatedUids.size() > 0) { in updateServices()
398 int[] updatedUidsArray = updatedUids.toArray(); in updateServices()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java12971 final SparseLongArray updatedUids = mCpuUidFreqTimeReader.perClusterTimesAvailable() in updateCpuTimeLocked() local
12993 readKernelUidCpuTimesLocked(partialTimersToConsider, updatedUids, onBattery); in updateCpuTimeLocked()
12996 if (updatedUids != null) { in updateCpuTimeLocked()
12997 updateClusterSpeedTimes(updatedUids, onBattery, powerAccumulator); in updateCpuTimeLocked()
13109 public void updateClusterSpeedTimes(@NonNull SparseLongArray updatedUids, boolean onBattery, in updateClusterSpeedTimes() argument
13126 final int updatedUidsCount = updatedUids.size(); in updateClusterSpeedTimes()
13130 final Uid u = getUidStatsLocked(updatedUids.keyAt(i), elapsedRealtimeMs, uptimeMs); in updateClusterSpeedTimes()
13131 final long appCpuTimeUs = updatedUids.valueAt(i); in updateClusterSpeedTimes()
13177 @Nullable SparseLongArray updatedUids, boolean onBattery) { in readKernelUidCpuTimesLocked() argument
13231 if (updatedUids != null) { in readKernelUidCpuTimesLocked()
[all …]