Searched refs:endUid (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/java/com/android/internal/os/ |
D | KernelUidCpuTimeReader.java | 185 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument 186 if (endUid < startUid) { in removeUidsInRange() 191 mLastSystemTimeUs.put(endUid, 0); in removeUidsInRange() 192 mLastUserTimeUs.put(endUid, 0); in removeUidsInRange() 194 final int endIndex = mLastSystemTimeUs.indexOfKey(endUid); in removeUidsInRange() 197 removeUidsFromKernelModule(startUid, endUid); in removeUidsInRange() 200 private void removeUidsFromKernelModule(int startUid, int endUid) { in removeUidsFromKernelModule() argument 201 Slog.d(TAG, "Removing uids " + startUid + "-" + endUid); in removeUidsFromKernelModule() 204 writer.write(startUid + "-" + endUid); in removeUidsFromKernelModule() 207 Slog.e(TAG, "failed to remove uids " + startUid + " - " + endUid in removeUidsFromKernelModule()
|
D | KernelSingleUidTimeReader.java | 229 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument 230 if (endUid < startUid) { in removeUidsInRange() 235 mLastUidCpuTimeMs.put(endUid, null); in removeUidsInRange() 237 final int endIdx = mLastUidCpuTimeMs.indexOfKey(endUid); in removeUidsInRange()
|
D | KernelUidCpuActiveTimeReader.java | 172 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument 174 mLastUidCpuActiveTimeMs.put(endUid, null); in removeUidsInRange() 176 final int lastIndex = mLastUidCpuActiveTimeMs.indexOfKey(endUid); in removeUidsInRange()
|
D | KernelUidCpuClusterTimeReader.java | 232 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument 234 mLastUidPolicyTimeMs.put(endUid, null); in removeUidsInRange() 236 final int lastIndex = mLastUidPolicyTimeMs.indexOfKey(endUid); in removeUidsInRange()
|
D | KernelUidCpuFreqTimeReader.java | 266 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument 268 mLastUidCpuFreqTimeMs.put(endUid, null); in removeUidsInRange() 270 final int lastIndex = mLastUidCpuFreqTimeMs.indexOfKey(endUid); in removeUidsInRange()
|
D | BatteryStatsImpl.java | 274 int endUid; field in BatteryStatsImpl.UidToRemove 283 public UidToRemove(int startUid, int endUid, long timestamp) { in UidToRemove() argument 285 this.endUid = endUid; in UidToRemove() 290 if (startUid == endUid) { in remove() 301 } else if (startUid < endUid) { in remove() 302 mKernelUidCpuFreqTimeReader.removeUidsInRange(startUid, endUid); in remove() 303 mKernelUidCpuTimeReader.removeUidsInRange(startUid, endUid); in remove() 305 mKernelUidCpuActiveTimeReader.removeUidsInRange(startUid, endUid); in remove() 306 mKernelUidCpuClusterTimeReader.removeUidsInRange(startUid, endUid); in remove() 309 mKernelSingleUidTimeReader.removeUidsInRange(startUid, endUid); in remove() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelSingleUidTimeReaderTest.java | 237 final int endUid = 24; in testRemoveUidsRange() local 239 for (int i = startUid; i <= endUid; ++i) { in testRemoveUidsRange() 242 mReader.removeUidsInRange(startUid, endUid); in testRemoveUidsRange() 246 for (int i = startUid; i <= endUid; ++i) { in testRemoveUidsRange() 249 mReader.removeUidsInRange(startUid - 1, endUid); in testRemoveUidsRange() 253 for (int i = startUid; i <= endUid; ++i) { in testRemoveUidsRange() 256 mReader.removeUidsInRange(startUid, endUid + 1); in testRemoveUidsRange() 260 for (int i = startUid; i <= endUid; ++i) { in testRemoveUidsRange() 263 mReader.removeUidsInRange(startUid - 1, endUid + 1); in testRemoveUidsRange()
|