Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/e2e/
DAttribution_e2e_test.cpp88 const int isolatedUid = 666; variable
89 std::vector<int> attributionUids9 = {isolatedUid};
92 std::vector<int> attributionUids10 = {isolatedUid};
140 isolatedUid, true /*is_create*/)); in TEST()
142 isolatedUid, false /*is_create*/)); in TEST()
253 isolatedUid, true /*is_create*/)); in TEST()
255 isolatedUid, false /*is_create*/)); in TEST()
/frameworks/base/services/core/java/com/android/server/am/
DAppExitInfoTracker.java1434 void addIsolatedUid(int isolatedUid, int uid) { in addIsolatedUid() argument
1441 set.add(isolatedUid); in addIsolatedUid()
1443 mIsolatedUidToUidMap.put(isolatedUid, uid); in addIsolatedUid()
1448 Integer getUidByIsolatedUid(int isolatedUid) { in getUidByIsolatedUid() argument
1449 if (UserHandle.isIsolated(isolatedUid)) { in getUidByIsolatedUid()
1451 return mIsolatedUidToUidMap.get(isolatedUid); in getUidByIsolatedUid()
1454 return isolatedUid; in getUidByIsolatedUid()
1462 int isolatedUid = set.removeAt(i); in removeAppUidLocked() local
1463 mIsolatedUidToUidMap.remove(isolatedUid); in removeAppUidLocked()
1488 int removeIsolatedUidLocked(int isolatedUid) { in removeIsolatedUidLocked() argument
[all …]
DBatteryStatsService.java333 void addIsolatedUid(int isolatedUid, int appUid) { in addIsolatedUid() argument
335 mStats.addIsolatedUidLocked(isolatedUid, appUid); in addIsolatedUid()
339 void removeIsolatedUid(int isolatedUid, int appUid) { in removeIsolatedUid() argument
341 mStats.scheduleRemoveIsolatedUidLocked(isolatedUid, appUid); in removeIsolatedUid()
DProcessList.java2327 int zygotePolicyFlags, boolean allowWhileBooting, boolean isolated, int isolatedUid,
2405 app = newProcessRecordLocked(info, processName, isolated, isolatedUid, hostingRecord);
2844 boolean isolated, int isolatedUid, HostingRecord hostingRecord) { in newProcessRecordLocked() argument
2849 if (isolatedUid == 0) { in newProcessRecordLocked()
2861 uid = isolatedUid; in newProcessRecordLocked()
2887 if (isolated && isolatedUid != 0) { in newProcessRecordLocked()
/frameworks/base/cmds/statsd/src/packages/
DUidMap.h131 void assignIsolatedUid(int isolatedUid, int parentUid);
132 void removeIsolatedUid(int isolatedUid);
DUidMap.cpp266 void UidMap::assignIsolatedUid(int isolatedUid, int parentUid) { in assignIsolatedUid() argument
269 mIsolatedUidMap[isolatedUid] = parentUid; in assignIsolatedUid()
272 void UidMap::removeIsolatedUid(int isolatedUid) { in removeIsolatedUid() argument
275 auto it = mIsolatedUidMap.find(isolatedUid); in removeIsolatedUid()
/frameworks/base/cmds/statsd/tests/
DStatsLogProcessor_test.cpp1730 int isolatedUid = 30; in TEST() local
1735 sp<MockUidMap> mockUidMap = makeMockUidMapForOneHost(hostUid, {isolatedUid}); in TEST()
1754 int isolatedUid = 30; in TEST() local
1759 sp<MockUidMap> mockUidMap = makeMockUidMapForOneHost(hostUid, {isolatedUid}); in TEST()
1766 makeUidLogEvent(atomId, eventTimeNs, isolatedUid, field1, field2); in TEST()
1779 int isolatedUid = 30; in TEST() local
1784 sp<MockUidMap> mockUidMap = makeMockUidMapForOneHost(hostUid, {isolatedUid}); in TEST()
1807 int isolatedUid = 30; in TEST() local
1812 sp<MockUidMap> mockUidMap = makeMockUidMapForOneHost(hostUid, {isolatedUid}); in TEST()
1818 shared_ptr<LogEvent> logEvent = makeAttributionLogEvent(atomId, eventTimeNs, {isolatedUid, 200}, in TEST()
[all …]
Dstatsd_test_util.cpp631 for (const int isolatedUid : isolatedUids) { in makeMockUidMapForOneHost() local
632 EXPECT_CALL(*uidMap, getHostUidOrSelf(isolatedUid)).WillRepeatedly(Return(hostUid)); in makeMockUidMapForOneHost()
877 int isolatedUid, bool is_create) { in CreateIsolatedUidChangedEvent() argument
883 AStatsEvent_writeInt32(statsEvent, isolatedUid); in CreateIsolatedUidChangedEvent()
Dstatsd_test_util.h308 int isolatedUid, bool is_create);
/frameworks/base/services/core/java/android/content/pm/
DPackageManagerInternal.java573 public abstract void addIsolatedUid(int isolatedUid, int ownerUid); in addIsolatedUid() argument
579 public abstract void removeIsolatedUid(int isolatedUid); in removeIsolatedUid() argument
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java326 final int isolatedUid = UserHandle.getUid(testUserId, isolatedAppId); in testReadKernelUidCpuTimesLocked_isolatedUid() local
361 verify(mCpuUidUserSysTimeReader).removeUid(isolatedUid); in testReadKernelUidCpuTimesLocked_isolatedUid()
367 mBatteryStatsImpl.addIsolatedUidLocked(isolatedUid, ownerUid); in testReadKernelUidCpuTimesLocked_isolatedUid()
903 final int isolatedUid = UserHandle.getUid(testUserId, isolatedAppId); in testReadKernelUidCpuFreqTimesLocked_isolatedUid() local
941 verify(mCpuUidFreqTimeReader).removeUid(isolatedUid); in testReadKernelUidCpuFreqTimesLocked_isolatedUid()
948 mBatteryStatsImpl.addIsolatedUidLocked(isolatedUid, ownerUid); in testReadKernelUidCpuFreqTimesLocked_isolatedUid()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3915 public void addIsolatedUidLocked(int isolatedUid, int appUid) { in addIsolatedUidLocked() argument
3916 mIsolatedUids.put(isolatedUid, appUid); in addIsolatedUidLocked()
3918 u.addIsolatedUid(isolatedUid); in addIsolatedUidLocked()
3925 public void scheduleRemoveIsolatedUidLocked(int isolatedUid, int appUid) { in scheduleRemoveIsolatedUidLocked() argument
3926 int curUid = mIsolatedUids.get(isolatedUid, -1); in scheduleRemoveIsolatedUidLocked()
3929 mExternalSync.scheduleCpuSyncDueToRemovedUid(isolatedUid); in scheduleRemoveIsolatedUidLocked()
3939 public void removeIsolatedUidLocked(int isolatedUid) { in removeIsolatedUidLocked() argument
3940 final int idx = mIsolatedUids.indexOfKey(isolatedUid); in removeIsolatedUidLocked()
3944 u.removeIsolatedUid(isolatedUid); in removeIsolatedUidLocked()
3947 mPendingRemovedUids.add(new UidToRemove(isolatedUid, mClocks.elapsedRealtime())); in removeIsolatedUidLocked()
[all …]