Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/os/
DKernelSingleUidTimeReader.java138 public long[] computeDelta(int uid, @NonNull long[] latestCpuTimesMs) { in computeDelta() argument
145 final long[] deltaTimesMs = getDeltaLocked(lastCpuTimesMs, latestCpuTimesMs); in computeDelta()
149 + "; latest=" + Arrays.toString(latestCpuTimesMs)); in computeDelta()
161 mLastUidCpuTimeMs.put(uid, latestCpuTimesMs); in computeDelta()
178 public long[] getDeltaLocked(long[] lastCpuTimesMs, @NonNull long[] latestCpuTimesMs) { in getDeltaLocked() argument
179 for (int i = latestCpuTimesMs.length - 1; i >= 0; --i) { in getDeltaLocked()
180 if (latestCpuTimesMs[i] < 0) { in getDeltaLocked()
185 return latestCpuTimesMs; in getDeltaLocked()
187 final long[] deltaTimesMs = new long[latestCpuTimesMs.length]; in getDeltaLocked()
188 for (int i = latestCpuTimesMs.length - 1; i >= 0; --i) { in getDeltaLocked()
[all …]