Home
last modified time | relevance | path

Searched refs:mUids (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DKernelCpuUidActiveTimeReaderTest.java59 private final int[] mUids = {0, 1, 22, 333, 4444, 55555}; field in KernelCpuUidActiveTimeReaderTest
82 final long[][] times = increaseTime(new long[mUids.length][mCpus]); in testReadDelta()
83 writeToFile(mHeadline + uidLines(mUids, times)); in testReadDelta()
85 for (int i = 0; i < mUids.length; ++i) { in testReadDelta()
86 mCallback.verify(mUids[i], getActiveTime(times[i])); in testReadDelta()
93 writeToFile(mHeadline + uidLines(mUids, newTimes1)); in testReadDelta()
95 for (int i = 0; i < mUids.length; ++i) { in testReadDelta()
96 mCallback.verify(mUids[i], getActiveTime(newTimes1[i]) - getActiveTime(times[i])); in testReadDelta()
108 writeToFile(mHeadline + uidLines(mUids, newTimes2)); in testReadDelta()
116 writeToFile(mHeadline + uidLines(mUids, newTimes3)); in testReadDelta()
[all …]
DKernelCpuUidClusterTimeReaderTest.java61 private final int[] mUids = {0, 1, 22, 333, 4444, 55555}; field in KernelCpuUidClusterTimeReaderTest
84 final long[][] times1 = increaseTime(new long[mUids.length][mCpus]); in testReadDelta()
85 writeToFile(mHeadline + uidLines(mUids, times1)); in testReadDelta()
87 for (int i = 0; i < mUids.length; ++i) { in testReadDelta()
88 mCallback.verify(mUids[i], clusterTime(times1[i])); in testReadDelta()
95 writeToFile(mHeadline + uidLines(mUids, times2)); in testReadDelta()
97 for (int i = 0; i < mUids.length; ++i) { in testReadDelta()
98 mCallback.verify(mUids[i], subtract(clusterTime(times2[i]), clusterTime(times1[i]))); in testReadDelta()
110 writeToFile(mHeadline + uidLines(mUids, times3)); in testReadDelta()
118 writeToFile(mHeadline + uidLines(mUids, times4)); in testReadDelta()
[all …]
DKernelCpuUidUserSysTimeReaderTest.java60 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 …]
DKernelCpuUidFreqTimeReaderTest.java66 private final int[] mUids = {0, 1, 22, 333, 4444, 55555}; field in KernelCpuUidFreqTimeReaderTest
148 final long[][] times = increaseTime(new long[mUids.length][freqs.length]); in testReadDelta()
150 writeToFile(freqsLine(freqs) + uidLines(mUids, times)); in testReadDelta()
152 for (int i = 0; i < mUids.length; ++i) { in testReadDelta()
153 mCallback.verify(mUids[i], times[i]); in testReadDelta()
165 writeToFile(freqsLine(freqs) + uidLines(mUids, newTimes1)); in testReadDelta()
167 for (int i = 0; i < mUids.length; ++i) { in testReadDelta()
168 mCallback.verify(mUids[i], subtract(newTimes1[i], times[i])); in testReadDelta()
180 writeToFile(freqsLine(freqs) + uidLines(mUids, newTimes2)); in testReadDelta()
188 writeToFile(freqsLine(freqs) + uidLines(mUids, newTimes3)); in testReadDelta()
[all …]
/frameworks/base/core/java/android/os/
DWorkSource.java31 int[] mUids; field in WorkSource
71 if (orig.mUids != null) { in WorkSource()
72 mUids = orig.mUids.clone(); in WorkSource()
75 mUids = null; in WorkSource()
94 mUids = new int[] { uid, 0 }; in WorkSource()
105 mUids = new int[] { uid, 0 }; in WorkSource()
113 mUids = in.createIntArray(); in WorkSource()
145 return mUids[index]; in get()
160 return mNum > 0 ? mUids[0] : mChains.get(0).getAttributionUid(); in getAttributionUid()
183 if (mUids[sourceIndex] == mUids[sourceIndex - 1]) { in clearNames()
[all …]
/frameworks/base/core/java/android/net/
DNetworkCapabilities.java86 mUids = null; in clearAll()
103 setUids(nc.mUids); // Will make the defensive copy in set()
1122 private ArraySet<UidRange> mUids = null; field in NetworkCapabilities
1142 mUids = null; in setUids()
1144 mUids = new ArraySet<>(uids); in setUids()
1155 return null == mUids ? null : new ArraySet<>(mUids); in getUids()
1163 if (null == mUids) return true; in appliesToUid()
1164 for (UidRange range : mUids) { in appliesToUid()
1188 Set<UidRange> comparedUids = nc.mUids; in equalsUids()
1189 if (null == comparedUids) return null == mUids; in equalsUids()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataForUidLoader.java40 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/app/usage/
DNetworkStats.java57 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/
DMainActivity.java43 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/
DNetworkStatsRecorder.java404 private final int[] mUids; field in NetworkStatsRecorder.RemoveUidRewriter
408 mUids = uids; in RemoveUidRewriter()
420 mTemp.removeUids(mUids); in read()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt10009 Landroid/app/usage/NetworkStats;->mUids:[I
47570 Landroid/net/NetworkCapabilities;->mUids:Landroid/util/ArraySet;
58061 Landroid/os/WorkSource$WorkChain;->mUids:[I