/frameworks/base/core/java/android/os/ |
D | WorkSource.java | 31 int[] mUids; field in WorkSource 74 if (orig.mUids != null) { in WorkSource() 75 mUids = orig.mUids.clone(); in WorkSource() 78 mUids = null; in WorkSource() 98 mUids = new int[] { uid, 0 }; in WorkSource() 109 mUids = new int[] { uid, 0 }; in WorkSource() 117 mUids = in.createIntArray(); in WorkSource() 151 return mUids[index]; in get() 166 return mNum > 0 ? mUids[0] : mChains.get(0).getAttributionUid(); in getAttributionUid() 190 if (mUids[sourceIndex] == mUids[sourceIndex - 1]) { in clearNames() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | KernelCpuUidUserSysTimeReaderTest.java | 60 private final int[] mUids = {0, 1, 22, 333, 4444, 55555}; field in KernelCpuUidUserSysTimeReaderTest 95 writeToFile(uidLines(mUids, mInitialTimes)); in testThrottler() 100 writeToFile(uidLines(mUids, times1)); in testThrottler() 108 writeToFile(uidLines(mUids, times2)); in testThrottler() 114 writeToFile(uidLines(mUids, times3)); in testThrottler() 123 writeToFile(uidLines(mUids, times1)); in testReadDelta() 125 for (int i = 0; i < mUids.length; i++) { in testReadDelta() 126 mCallback.verify(mUids[i], times1[i]); in testReadDelta() 133 writeToFile(uidLines(mUids, times2)); in testReadDelta() 135 for (int i = 0; i < mUids.length; i++) { in testReadDelta() [all …]
|
D | KernelCpuUidActiveTimeReaderTest.java | 65 private final int[] mUids = {0, 1, 22, 333, 4444, 55555}; field in KernelCpuUidActiveTimeReaderTest 98 final long[][] times = increaseTime(new long[mUids.length][mCpus]); in testReadDelta() 101 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 102 mCallback.verify(mUids[i], getActiveTime(times[i])); in testReadDelta() 111 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 112 mCallback.verify(mUids[i], getActiveTime(newTimes1[i]) - getActiveTime(times[i])); in testReadDelta() 133 writeToFile(mHeadline + uidLines(mUids, newTimes3)); in testReadDelta() 135 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 136 mCallback.verify(mUids[i], getActiveTime(newTimes3[i]) - getActiveTime(newTimes2[i])); in testReadDelta() 144 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadAbsolute() [all …]
|
D | KernelCpuUidClusterTimeReaderTest.java | 67 private final int[] mUids = {0, 1, 22, 333, 4444, 55555}; field in KernelCpuUidClusterTimeReaderTest 101 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadDelta() 104 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 105 mCallback.verify(mUids[i], clusterTime(times1[i])); in testReadDelta() 114 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 115 mCallback.verify(mUids[i], subtract(clusterTime(times2[i]), clusterTime(times1[i]))); in testReadDelta() 137 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 138 mCallback.verify(mUids[i], subtract(clusterTime(times4[i]), clusterTime(times3[i]))); in testReadDelta() 146 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadAbsolute() 149 for (int i = 0; i < mUids.length; i++) { in testReadAbsolute() [all …]
|
D | KernelCpuUidFreqTimeReaderTest.java | 70 private final int[] mUids = {0, 1, 22, 333, 4444, 55555}; field in KernelCpuUidFreqTimeReaderTest 162 final long[][] times = increaseTime(new long[mUids.length][freqs.length]); in testReadDelta() 166 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 167 mCallback.verify(mUids[i], times[i]); in testReadDelta() 181 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 182 mCallback.verify(mUids[i], subtract(newTimes1[i], times[i])); in testReadDelta() 204 for (int i = 0; i < mUids.length; ++i) { in testReadDelta() 205 mCallback.verify(mUids[i], subtract(newTimes3[i], newTimes2[i])); in testReadDelta() 214 final long[][] times1 = increaseTime(new long[mUids.length][freqs.length]); in testReadAbsolute() 218 for (int i = 0; i < mUids.length; i++) { in testReadAbsolute() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkCycleDataForUidLoader.java | 40 private final List<Integer> mUids; field in NetworkCycleDataForUidLoader 45 mUids = builder.mUids; in NetworkCycleDataForUidLoader() 55 for (int uid : mUids) { in recordUsage() 98 return mUids; 110 private final List<Integer> mUids = new ArrayList<>(); 118 mUids.add(uid);
|
/frameworks/base/core/java/android/net/ |
D | NetworkCapabilities.java | 101 mUids = null; in clearAll() 122 setUids(nc.mUids); // Will make the defensive copy in set() 1345 private ArraySet<UidRange> mUids = null; field in NetworkCapabilities 1365 mUids = null; in setUids() 1367 mUids = new ArraySet<>(uids); in setUids() 1378 return null == mUids ? null : new ArraySet<>(mUids); in getUids() 1386 if (null == mUids) return true; in appliesToUid() 1387 for (UidRange range : mUids) { in appliesToUid() 1411 Set<UidRange> comparedUids = nc.mUids; in equalsUids() 1412 if (null == comparedUids) return null == mUids; in equalsUids() [all …]
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStats.java | 57 private int[] mUids; field in NetworkStats 584 mUids = filteredUids.toArray(); in startUserUidEnumeration() 686 return mUids != null; in isUidEnumeration() 690 return isUidEnumeration() && (mUidOrUidIndex + 1) < mUids.length; in hasNextUid() 696 if (mUidOrUidIndex < 0 || mUidOrUidIndex >= mUids.length) { in getUid() 698 "Index=" + mUidOrUidIndex + " mUids.length=" + mUids.length); in getUid() 700 return mUids[mUidOrUidIndex]; in getUid() 713 if (mUids != null) { in stepUid()
|
/frameworks/base/cmds/statsd/tools/dogfood/src/com/android/statsd/dogfood/ |
D | MainActivity.java | 43 final int[] mUids = {11111111, 2222222}; field in MainActivity 319 int[] uids = new int[]{mUids[id]}; in onWakeLockAcquire() 325 sb.append("StagsLog.write(10, ").append(mUids[id]).append(", ").append(0) in onWakeLockAcquire() 335 int[] uids = new int[]{mUids[id]}; in onWakeLockRelease() 341 sb.append("StagsLog.write(10, ").append(mUids[id]).append(", ").append(0) in onWakeLockRelease()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsRecorder.java | 389 private final int[] mUids; field in NetworkStatsRecorder.RemoveUidRewriter 393 mUids = uids; in RemoveUidRewriter() 405 mTemp.removeUids(mUids); in read()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 9368 Landroid/app/usage/NetworkStats;->mUids:[I 44327 Landroid/net/NetworkCapabilities;->mUids:Landroid/util/ArraySet; 54085 Landroid/os/WorkSource$WorkChain;->mUids:[I
|