Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsUidResolver.java43 void onIsolatedUidAdded(int isolatedUid, int parentUid); in onIsolatedUidAdded() argument
50 void onBeforeIsolatedUidRemoved(int isolatedUid, int parentUid); in onBeforeIsolatedUidRemoved() argument
55 void onAfterIsolatedUidRemoved(int isolatedUid, int parentUid); in onAfterIsolatedUidRemoved() argument
97 public void noteIsolatedUidAdded(int isolatedUid, int parentUid) { in noteIsolatedUidAdded() argument
99 mIsolatedUids.put(isolatedUid, parentUid); in noteIsolatedUidAdded()
105 listeners.get(i).onIsolatedUidAdded(isolatedUid, parentUid); in noteIsolatedUidAdded()
114 public void noteIsolatedUidRemoved(int isolatedUid, int parentUid) { in noteIsolatedUidRemoved() argument
117 if (curUid != parentUid) { in noteIsolatedUidRemoved()
119 + " with the parent UID " + parentUid in noteIsolatedUidRemoved()
127 listeners.get(i).onBeforeIsolatedUidRemoved(isolatedUid, parentUid); in noteIsolatedUidRemoved()
[all …]
DPowerStatsCollector.java74 public void onIsolatedUidAdded(int isolatedUid, int parentUid) { in PowerStatsCollector()
78 public void onBeforeIsolatedUidRemoved(int isolatedUid, int parentUid) { in PowerStatsCollector()
82 public void onAfterIsolatedUidRemoved(int isolatedUid, int parentUid) { in PowerStatsCollector()
DBatteryStatsImpl.java770 final int parentUid = mapUid(uid); in updateCpuTimesForAllUids() local
771 final Uid u = getAvailableUidStatsLocked(parentUid); in updateCpuTimesForAllUids()
788 if (uid == parentUid || Process.isSdkSandboxUid(uid)) { in updateCpuTimesForAllUids()
789 mKernelSingleUidTimeReader.addDelta(parentUid, onBatteryCounter, in updateCpuTimesForAllUids()
791 mKernelSingleUidTimeReader.addDelta(parentUid, onBatteryScreenOffCounter, in updateCpuTimesForAllUids()
4601 private void onIsolatedUidAdded(int isolatedUid, int parentUid) { in onIsolatedUidAdded() argument
4605 getUidStatsLocked(parentUid, realtime, uptime).addIsolatedUid(isolatedUid); in onIsolatedUidAdded()
4609 private void onBeforeIsolatedUidRemoved(int isolatedUid, int parentUid) { in onBeforeIsolatedUidRemoved() argument
4620 private void onAfterIsolatedUidRemoved(int isolatedUid, int parentUid) { in onAfterIsolatedUidRemoved() argument
4624 getUidStatsLocked(parentUid, realtime, uptime).removeIsolatedUid(isolatedUid); in onAfterIsolatedUidRemoved()
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsImplTest.java322 final int parentUid = testUids[1]; in testUpdateProcStateCpuTimes() local
324 addIsolatedUid(parentUid, childUid); in testUpdateProcStateCpuTimes()
345 + (testUids[i] == parentUid ? isolatedUidCpuTimes[j] : 0); in testUpdateProcStateCpuTimes()
352 + (testUids[i] == parentUid ? isolatedUidCpuTimes[j] : 0); in testUpdateProcStateCpuTimes()
570 private void addIsolatedUid(int parentUid, int childUid) { in addIsolatedUid() argument
571 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(parentUid); in addIsolatedUid()