/frameworks/base/cmds/statsd/tests/external/ |
D | puller_util_test.cpp | 41 int isolatedUid = 30; variable 65 event->write(isolatedUid); in TEST() 80 EXPECT_CALL(*uidMap, getHostUidOrSelf(isolatedUid)) in TEST() 82 EXPECT_CALL(*uidMap, getHostUidOrSelf(Ne(isolatedUid))) in TEST() 97 event->write(isolatedUid); in TEST() 120 EXPECT_CALL(*uidMap, getHostUidOrSelf(isolatedUid)) in TEST() 122 EXPECT_CALL(*uidMap, getHostUidOrSelf(Ne(isolatedUid))) in TEST() 154 EXPECT_CALL(*uidMap, getHostUidOrSelf(isolatedUid)) in TEST() 156 EXPECT_CALL(*uidMap, getHostUidOrSelf(Ne(isolatedUid))) in TEST() 190 EXPECT_CALL(*uidMap, getHostUidOrSelf(isolatedUid)) in TEST() [all …]
|
/frameworks/base/cmds/statsd/tests/e2e/ |
D | Attribution_e2e_test.cpp | 109 const int isolatedUid = 666; in TEST() local 111 CreateAttribution(isolatedUid, "GMSCoreModule3")}; in TEST() 138 isolatedUid, 222, true/* is_create*/, bucketStartTimeNs + 3 * bucketSizeNs - 1)); in TEST() 140 isolatedUid, 222, false/* is_create*/, bucketStartTimeNs + 3 * bucketSizeNs + 10)); in TEST() 257 const int isolatedUid = 666; in TEST() local 259 CreateAttribution(isolatedUid, "GMSCoreModule1")}; in TEST() 286 isolatedUid, 222, true/* is_create*/, bucketStartTimeNs + 3 * bucketSizeNs - 1)); in TEST() 288 isolatedUid, 222, false/* is_create*/, bucketStartTimeNs + 3 * bucketSizeNs + 10)); in TEST()
|
/frameworks/base/cmds/statsd/src/packages/ |
D | UidMap.h | 130 void assignIsolatedUid(int isolatedUid, int parentUid); 131 void removeIsolatedUid(int isolatedUid);
|
D | UidMap.cpp | 266 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/benchmark/ |
D | metric_util.h | 145 int isolatedUid, int hostUid, bool is_create, uint64_t timestampNs);
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageManagerInternal.java | 642 public abstract void addIsolatedUid(int isolatedUid, int ownerUid); in addIsolatedUid() argument 648 public abstract void removeIsolatedUid(int isolatedUid); in removeIsolatedUid() argument
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsCpuTimesTest.java | 326 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/services/core/java/com/android/server/am/ |
D | BatteryStatsService.java | 335 void addIsolatedUid(int isolatedUid, int appUid) { in addIsolatedUid() argument 337 mStats.addIsolatedUidLocked(isolatedUid, appUid); in addIsolatedUid() 341 void removeIsolatedUid(int isolatedUid, int appUid) { in removeIsolatedUid() argument 343 mStats.scheduleRemoveIsolatedUidLocked(isolatedUid, appUid); in removeIsolatedUid()
|
D | ProcessList.java | 1976 int zygotePolicyFlags, boolean allowWhileBooting, boolean isolated, int isolatedUid, 2048 app = newProcessRecordLocked(info, processName, isolated, isolatedUid, hostingRecord); 2450 boolean isolated, int isolatedUid, HostingRecord hostingRecord) { in newProcessRecordLocked() argument 2455 if (isolatedUid == 0) { in newProcessRecordLocked() 2467 uid = isolatedUid; in newProcessRecordLocked() 2492 if (isolated && isolatedUid != 0) { in newProcessRecordLocked()
|
/frameworks/base/cmds/statsd/tests/ |
D | statsd_test_util.h | 176 int isolatedUid, int hostUid, bool is_create, uint64_t timestampNs);
|
D | statsd_test_util.cpp | 442 int isolatedUid, int hostUid, bool is_create, uint64_t timestampNs) { in CreateIsolatedUidChangedEvent() argument 446 logEvent->write(isolatedUid); in CreateIsolatedUidChangedEvent()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | BatteryStatsImpl.java | 3913 public void addIsolatedUidLocked(int isolatedUid, int appUid) { in addIsolatedUidLocked() argument 3914 mIsolatedUids.put(isolatedUid, appUid); in addIsolatedUidLocked() 3916 u.addIsolatedUid(isolatedUid); in addIsolatedUidLocked() 3923 public void scheduleRemoveIsolatedUidLocked(int isolatedUid, int appUid) { in scheduleRemoveIsolatedUidLocked() argument 3924 int curUid = mIsolatedUids.get(isolatedUid, -1); in scheduleRemoveIsolatedUidLocked() 3927 mExternalSync.scheduleCpuSyncDueToRemovedUid(isolatedUid); in scheduleRemoveIsolatedUidLocked() 3937 public void removeIsolatedUidLocked(int isolatedUid) { in removeIsolatedUidLocked() argument 3938 final int idx = mIsolatedUids.indexOfKey(isolatedUid); in removeIsolatedUidLocked() 3942 u.removeIsolatedUid(isolatedUid); in removeIsolatedUidLocked() 3945 mPendingRemovedUids.add(new UidToRemove(isolatedUid, mClocks.elapsedRealtime())); in removeIsolatedUidLocked() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 24291 public void addIsolatedUid(int isolatedUid, int ownerUid) { 24293 mIsolatedOwners.put(isolatedUid, ownerUid); 24298 public void removeIsolatedUid(int isolatedUid) { 24300 mIsolatedOwners.delete(isolatedUid);
|