/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelUidCpuFreqTimeReaderTest.java | 68 final int[] uids = {1, 22, 333, 4444, 5555}; in testReadDelta() local 69 final long[][] times = new long[uids.length][freqs.length]; in testReadDelta() 70 for (int i = 0; i < uids.length; ++i) { in testReadDelta() 72 times[i][j] = uids[i] * freqs[j] * 10; in testReadDelta() 76 .thenReturn(getFreqsLine(freqs), getUidTimesLines(uids, times)); in testReadDelta() 79 for (int i = 0; i < uids.length; ++i) { in testReadDelta() 80 verify(mCallback).onUidCpuFreqTime(uids[i], times[i]); in testReadDelta() 86 final long[][] newTimes1 = new long[uids.length][freqs.length]; in testReadDelta() 87 for (int i = 0; i < uids.length; ++i) { in testReadDelta() 89 newTimes1[i][j] = (times[i][j] + uids[i] + freqs[j]) * 10; in testReadDelta() [all …]
|
D | BatteryStatsUserLifecycleTests.java | 121 ArraySet<Integer> uids = new ArraySet<>(); in getNumberOfUidsInBatteryStats() local 132 uids.add(uid); in getNumberOfUidsInBatteryStats() 138 return uids.size(); in getNumberOfUidsInBatteryStats()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ProcessMap.java | 27 SparseArray<E> uids = mMap.get(name); in get() local 28 if (uids == null) return null; in get() 29 return uids.get(uid); in get() 33 SparseArray<E> uids = mMap.get(name); in put() local 34 if (uids == null) { in put() 35 uids = new SparseArray<E>(2); in put() 36 mMap.put(name, uids); in put() 38 uids.put(uid, value); in put() 43 SparseArray<E> uids = mMap.get(name); in remove() local 44 if (uids != null) { in remove() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | AppItem.java | 32 public SparseBooleanArray uids = new SparseBooleanArray(); field in AppItem 45 uids = parcel.readSparseBooleanArray(); in AppItem() 50 uids.put(uid, true); in addUid() 56 dest.writeSparseBooleanArray(uids); in writeToParcel()
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ProcessStats.java | 222 final SparseArray<SparseArray<PackageState>> uids = pkgMap.valueAt(ip); in add() local 223 for (int iu=0; iu<uids.size(); iu++) { in add() 224 final int uid = uids.keyAt(iu); in add() 225 final SparseArray<PackageState> versions = uids.valueAt(iu); in add() 264 SparseArray<ProcessState> uids = procMap.valueAt(ip); in add() local 265 for (int iu=0; iu<uids.size(); iu++) { in add() 266 int uid = uids.keyAt(iu); in add() 267 ProcessState otherProc = uids.valueAt(iu); in add() 387 SparseArray<ProcessState> uids = procMap.valueAt(iproc); in computeTotalMemoryUse() local 388 for (int iu=0; iu<uids.size(); iu++) { in computeTotalMemoryUse() [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | SystemHealthManager.java | 120 public HealthStats[] takeUidSnapshots(int[] uids) { in takeUidSnapshots() argument 122 final HealthStatsParceler[] parcelers = mBatteryStats.takeUidSnapshots(uids); in takeUidSnapshots() 123 final HealthStats[] results = new HealthStats[uids.length]; in takeUidSnapshots() 124 final int N = uids.length; in takeUidSnapshots()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsRecorder.java | 317 public void removeUidsLocked(int[] uids) { in removeUidsLocked() argument 321 mRotator.rewriteAll(new RemoveUidRewriter(mBucketDuration, uids)); in removeUidsLocked() 323 Log.wtf(TAG, "problem removing UIDs " + Arrays.toString(uids), e); in removeUidsLocked() 326 Log.wtf(TAG, "problem removing UIDs " + Arrays.toString(uids), e); in removeUidsLocked() 333 mPending.removeUids(uids); in removeUidsLocked() 336 mSinceBoot.removeUids(uids); in removeUidsLocked() 341 mLastSnapshot = mLastSnapshot.withoutUids(uids); in removeUidsLocked() 346 complete.removeUids(uids); in removeUidsLocked() 392 public RemoveUidRewriter(long bucketDuration, int[] uids) { in RemoveUidRewriter() argument 394 mUids = uids; in RemoveUidRewriter()
|
D | NetworkPolicyManagerShellCommand.java | 189 final int[] uids = mInterface.getUidsWithPolicy(policy); in listUidPolicies() local 191 if (uids.length == 0) { in listUidPolicies() 194 for (int i = 0; i < uids.length; i++) { in listUidPolicies() 195 int uid = uids[i]; in listUidPolicies()
|
D | NetworkStatsCollection.java | 214 IntArray uids = new IntArray(); in getRelevantUids() local 218 int j = uids.binarySearch(key.uid); in getRelevantUids() 222 uids.add(j, key.uid); in getRelevantUids() 226 return uids.toArray(); in getRelevantUids() 623 public void removeUids(int[] uids) { in removeUids() argument 629 if (ArrayUtils.contains(uids, key.uid)) { in removeUids()
|
D | NetworkStatsService.java | 1260 private void removeUidsLocked(int... uids) { in removeUidsLocked() argument 1261 if (LOGV) Slog.v(TAG, "removeUidsLocked() for UIDs " + Arrays.toString(uids)); in removeUidsLocked() 1266 mUidRecorder.removeUidsLocked(uids); in removeUidsLocked() 1267 mUidTagRecorder.removeUidsLocked(uids); in removeUidsLocked() 1270 for (int uid : uids) { in removeUidsLocked() 1282 int[] uids = new int[0]; in removeUserLocked() local 1288 uids = ArrayUtils.appendInt(uids, uid); in removeUserLocked() 1291 removeUidsLocked(uids); in removeUserLocked()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetdEventListenerServiceTest.java | 91 int[] uids = { 10001, 10002, 10004, 1000, 10052, 10023, 10002, 10123, 10004 }; in testWakeupEventLogging() local 92 for (int uid : uids) { in testWakeupEventLogging() 97 int expectedLength2 = uids.length + 1; // +1 for the WakeupStats line in testWakeupEventLogging() 101 for (int i = 0; i < uids.length; i++) { in testWakeupEventLogging() 105 assertContains(got, "uid: " + uids[i]); in testWakeupEventLogging()
|
D | VpnTest.java | 393 private static void assertBlocked(Vpn vpn, int... uids) { in assertBlocked() argument 394 for (int uid : uids) { in assertBlocked() 399 private static void assertUnblocked(Vpn vpn, int... uids) { in assertUnblocked() argument 400 for (int uid : uids) { in assertUnblocked()
|
/frameworks/base/core/java/android/os/ |
D | INetworkManagementService.aidl | 353 void setFirewallUidRules(int chain, in int[] uids, in int[] rules); in setFirewallUidRules() argument 435 void setPermission(String permission, in int[] uids); in setPermission() argument 436 void clearPermission(in int[] uids); in clearPermission() argument
|
D | IPowerManager.aidl | 37 void updateWakeLockUids(IBinder lock, in int[] uids); in updateWakeLockUids() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | ConnOnActivityStartTest.java | 306 String uids = ""; in assertRestrictBackground() local 309 uids = output.split(":")[1]; in assertRestrictBackground() 310 for (String candidate : uids.split(" ")) { in assertRestrictBackground() 321 + ". Full list: " + uids); in assertRestrictBackground()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessStatsService.java | 153 final SparseArray<SparseArray<ProcessStats.PackageState>> uids = pmap.valueAt(ipkg); in setMemFactorLocked() local 154 for (int iuid=uids.size()-1; iuid>=0; iuid--) { in setMemFactorLocked() 155 final SparseArray<ProcessStats.PackageState> vers = uids.valueAt(iuid); in setMemFactorLocked() 302 SparseArray<ProcessState> uids = procMap.valueAt(ip); in readLocked() local 303 final int NUID = uids.size(); in readLocked() 305 Slog.w(TAG, " Uid " + uids.keyAt(iu) + ": " + uids.valueAt(iu)); in readLocked() 313 SparseArray<SparseArray<ProcessStats.PackageState>> uids in readLocked() local 315 final int NUID = uids.size(); in readLocked() 317 Slog.w(TAG, " Uid: " + uids.keyAt(iu)); in readLocked() 318 SparseArray<ProcessStats.PackageState> vers = uids.valueAt(iu); in readLocked()
|
D | AppErrors.java | 115 final SparseArray<Long> uids = pmap.valueAt(ip); in dumpLocked() local 116 final int uidCount = uids.size(); in dumpLocked() 118 final int puid = uids.keyAt(i); in dumpLocked() 133 TimeUtils.formatDuration(now-uids.valueAt(i), pw); in dumpLocked() 145 final SparseArray<BadProcessInfo> uids = pmap.valueAt(ip); in dumpLocked() local 146 final int uidCount = uids.size(); in dumpLocked() 148 final int puid = uids.keyAt(i); in dumpLocked() 160 final BadProcessInfo info = uids.valueAt(i); in dumpLocked()
|
/frameworks/native/libs/binder/aidl/android/content/pm/ |
D | IPackageManagerNative.aidl | 40 @utf8InCpp String[] getNamesForUids(in int[] uids); in getNamesForUids() argument
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | ChartDataLoader.java | 93 final int size = app.uids.size(); in loadInBackground() 95 final int uid = app.uids.keyAt(i); in loadInBackground()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 100 Set<Integer> uids = new HashSet<>(); in testGetAllServicesReplaceUid() local 102 uids.add(srv.uid); in testGetAllServicesReplaceUid() 105 uids.contains(SYSTEM_IMAGE_UID)); in testGetAllServicesReplaceUid() 106 assertFalse("UID must be updated to the new value", uids.contains(UID2)); in testGetAllServicesReplaceUid()
|
/frameworks/native/services/powermanager/ |
D | IPowerManager.cpp | 79 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids, in updateWakeLockUids() argument 84 data.writeInt32Array(len, uids); in updateWakeLockUids()
|
/frameworks/base/media/java/android/media/ |
D | AudioManagerInternal.java | 47 public abstract void setAccessibilityServiceUids(IntArray uids); in setAccessibilityServiceUids() argument
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 499 int[] uids = mSession.getRelevantUids(); in startUserUidEnumeration() local 501 IntArray filteredUids = new IntArray(uids.length); in startUserUidEnumeration() 502 for (int uid : uids) { in startUserUidEnumeration()
|
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkManagementService.java | 2179 public void setFirewallUidRules(int chain, int[] uids, int[] rules) { in setFirewallUidRules() argument 2186 for (int index = uids.length - 1; index >= 0; --index) { in setFirewallUidRules() 2187 int uid = uids[index]; in setFirewallUidRules() 2209 mNetdService.firewallReplaceUidChain("fw_dozable", true, uids); in setFirewallUidRules() 2212 mNetdService.firewallReplaceUidChain("fw_standby", false, uids); in setFirewallUidRules() 2215 mNetdService.firewallReplaceUidChain("fw_powersave", true, uids); in setFirewallUidRules() 2612 public void setPermission(String permission, int[] uids) { in setPermission() argument 2622 for (int i = 0; i < uids.length; ++i) { in setPermission() 2623 argv[argc++] = uids[i]; in setPermission() 2624 if (i == uids.length - 1 || argc == argv.length) { in setPermission() [all …]
|
/frameworks/native/include/powermanager/ |
D | IPowerManager.h | 65 virtual status_t updateWakeLockUids(const sp<IBinder>& lock, int len, const int *uids,
|