Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelSingleUidTimeReaderTest.java236 final int startUid = 12; in testRemoveUidsRange() local
239 for (int i = startUid; i <= endUid; ++i) { in testRemoveUidsRange()
240 lastUidCpuTimes.put(startUid, new long[] {}); in testRemoveUidsRange()
242 mReader.removeUidsInRange(startUid, endUid); in testRemoveUidsRange()
246 for (int i = startUid; i <= endUid; ++i) { in testRemoveUidsRange()
247 lastUidCpuTimes.put(startUid, new long[] {}); in testRemoveUidsRange()
249 mReader.removeUidsInRange(startUid - 1, endUid); in testRemoveUidsRange()
253 for (int i = startUid; i <= endUid; ++i) { in testRemoveUidsRange()
254 lastUidCpuTimes.put(startUid, new long[] {}); in testRemoveUidsRange()
256 mReader.removeUidsInRange(startUid, endUid + 1); in testRemoveUidsRange()
[all …]
/frameworks/base/core/java/com/android/internal/os/
DKernelUidCpuTimeReader.java185 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument
186 if (endUid < startUid) { in removeUidsInRange()
189 mLastSystemTimeUs.put(startUid, 0); in removeUidsInRange()
190 mLastUserTimeUs.put(startUid, 0); in removeUidsInRange()
193 final int startIndex = mLastSystemTimeUs.indexOfKey(startUid); 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()
DKernelSingleUidTimeReader.java229 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument
230 if (endUid < startUid) { in removeUidsInRange()
234 mLastUidCpuTimeMs.put(startUid, null); in removeUidsInRange()
236 final int startIdx = mLastUidCpuTimeMs.indexOfKey(startUid); in removeUidsInRange()
DKernelUidCpuActiveTimeReader.java172 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument
173 mLastUidCpuActiveTimeMs.put(startUid, null); in removeUidsInRange()
175 final int firstIndex = mLastUidCpuActiveTimeMs.indexOfKey(startUid); in removeUidsInRange()
DKernelUidCpuClusterTimeReader.java232 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument
233 mLastUidPolicyTimeMs.put(startUid, null); in removeUidsInRange()
235 final int firstIndex = mLastUidPolicyTimeMs.indexOfKey(startUid); in removeUidsInRange()
DKernelUidCpuFreqTimeReader.java266 public void removeUidsInRange(int startUid, int endUid) { in removeUidsInRange() argument
267 mLastUidCpuFreqTimeMs.put(startUid, null); in removeUidsInRange()
269 final int firstIndex = mLastUidCpuFreqTimeMs.indexOfKey(startUid); in removeUidsInRange()
DBatteryStatsImpl.java273 int startUid; field in BatteryStatsImpl.UidToRemove
283 public UidToRemove(int startUid, int endUid, long timestamp) { in UidToRemove() argument
284 this.startUid = startUid; in UidToRemove()
290 if (startUid == endUid) { in remove()
291 mKernelUidCpuTimeReader.removeUid(startUid); in remove()
292 mKernelUidCpuFreqTimeReader.removeUid(startUid); in remove()
294 mKernelUidCpuActiveTimeReader.removeUid(startUid); in remove()
295 mKernelUidCpuClusterTimeReader.removeUid(startUid); in remove()
298 mKernelSingleUidTimeReader.removeUid(startUid); in remove()
301 } else if (startUid < endUid) { in remove()
[all …]
/frameworks/base/core/java/android/net/
DUidRange.java33 public UidRange(int startUid, int stopUid) { in UidRange() argument
34 if (startUid < 0) throw new IllegalArgumentException("Invalid start UID."); in UidRange()
36 if (startUid > stopUid) throw new IllegalArgumentException("Invalid UID range."); in UidRange()
37 start = startUid; in UidRange()
/frameworks/base/services/core/java/com/android/server/am/
DProcessRecord.java234 int startUid; field in ProcessRecord
236 void setStartParams(int startUid, String hostingType, String hostingNameStr, String seInfo, in setStartParams() argument
238 this.startUid = startUid; in setStartParams()
DActivityManagerService.java4428 app, app.startUid, gids, runtimeFlags, mountExternal, app.seInfo, in startProcessLocked()
4546 UserHandle.getUserId(app.startUid), pid, app.startUid, in handleProcessStartedLocked()
4569 UserHandle.formatUid(buf, app.startUid); in handleProcessStartedLocked()
4581 reportUidInfoMessageLocked(TAG, buf.toString(), app.startUid); in handleProcessStartedLocked()
7592 if (pending != null && pending.startUid == callingUid in attachApplicationLocked()