/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/cmds/statsd/tests/ |
D | UidMap_test.cpp | 73 vector<int32_t> uids; in TEST() local 79 uids.push_back(1000); in TEST() 80 uids.push_back(1000); in TEST() 89 m.updateMap(1, uids, versions, versionStrings, apps, installers); in TEST() 105 vector<int32_t> uids; in TEST() local 111 uids.push_back(1000); in TEST() 112 uids.push_back(1000); in TEST() 121 m.updateMap(1, uids, versions, versionStrings, apps, installers); in TEST() 200 vector<int32_t> uids; in TEST() local 205 uids.push_back(1000); in TEST() [all …]
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | NetworkSuggestionEvaluatorTest.java | 91 int[] uids = {}; in testSelectNetworkSuggestionForNoMatch() local 97 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForNoMatch() 129 int[] uids = {TEST_UID}; in testSelectNetworkSuggestionForOneMatch() local 135 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForOneMatch() 174 int[] uids = {TEST_UID, TEST_UID}; in testSelectNetworkSuggestionForMultipleMatch() local 180 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForMultipleMatch() 221 int[] uids = {TEST_UID, TEST_UID}; in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() local 227 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForMultipleMatchHighPriorityWins() 271 int[] uids = {TEST_UID, TEST_UID, TEST_UID_OTHER}; in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions() local 277 appInteractions, meteredness, priorities, uids, packageNames); in testSelectNetworkSuggestionForMultipleMatchWithMultipleSuggestions() [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/cmds/statsd/tests/condition/ |
D | SimpleConditionTracker_test.cpp | 60 void writeAttributionNodesToEvent(LogEvent* event, const std::vector<int> &uids) { in writeAttributionNodesToEvent() argument 62 for (size_t i = 0; i < uids.size(); ++i) { in writeAttributionNodesToEvent() 64 node.set_uid(uids[i]); in writeAttributionNodesToEvent() 71 LogEvent* event, const std::vector<int> &uids, const string& wl, int acquire) { in makeWakeLockEvent() argument 72 writeAttributionNodesToEvent(event, uids); in makeWakeLockEvent() 80 const std::vector<int> &uids, const string& conditionName) { in getWakeLockQueryKey() argument 91 uid_indexes.push_back(uids.size() - 1); in getWakeLockQueryKey() 95 uid_indexes.resize(uids.size()); in getWakeLockQueryKey() 104 Value value((int32_t)uids[idx]); in getWakeLockQueryKey() 288 std::vector<int> uids = {111, 222, 333}; in TEST() local [all …]
|
/frameworks/base/core/java/android/os/health/ |
D | SystemHealthManager.java | 125 public HealthStats[] takeUidSnapshots(int[] uids) { in takeUidSnapshots() argument 127 final HealthStatsParceler[] parcelers = mBatteryStats.takeUidSnapshots(uids); in takeUidSnapshots() 128 final HealthStats[] results = new HealthStats[uids.length]; in takeUidSnapshots() 129 final int N = uids.length; in takeUidSnapshots()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | NetdEventListenerServiceTest.java | 101 int[] uids = {10001, 10002, 10004, 1000, 10052, 10023, 10002, 10123, 10004}; in testWakeupEventLogging() local 102 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 103 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 104 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 105 wakeupEvent(iface, uids[3], v4, icmp6, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 106 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 107 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); in testWakeupEventLogging() 108 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 109 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() 110 wakeupEvent(iface, uids[8], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); in testWakeupEventLogging() [all …]
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
D | ProcessStats.java | 269 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); in add() local 270 for (int iu=0; iu<uids.size(); iu++) { in add() 271 final int uid = uids.keyAt(iu); in add() 272 final LongSparseArray<PackageState> versions = uids.valueAt(iu); in add() 320 SparseArray<ProcessState> uids = procMap.valueAt(ip); in add() local 321 for (int iu=0; iu<uids.size(); iu++) { in add() 322 int uid = uids.keyAt(iu); in add() 323 ProcessState otherProc = uids.valueAt(iu); in add() 454 SparseArray<ProcessState> uids = procMap.valueAt(iproc); in computeTotalMemoryUse() local 455 for (int iu=0; iu<uids.size(); iu++) { in computeTotalMemoryUse() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | StoragedUidIoStatsReaderTest.java | 96 int[] uids = {0, 100, 200}; in testReadExpected() local 108 for (int i = 0; i < uids.length; i++) { in testReadExpected() 110 .format("%d %d %d %d %d %d %d %d %d %d %d\n", uids[i], fg_chars_read[i], in testReadExpected() 118 for (int i = 0; i < uids.length; i++) { in testReadExpected() 119 verify(mCallback).onUidStorageStats(uids[i], fg_chars_read[i], fg_chars_write[i], in testReadExpected()
|
D | BatteryStatsImplTest.java | 421 private void addPendingUids(int[] uids, int[] procStates) { in addPendingUids() argument 423 for (int i = 0; i < uids.length; ++i) { in addPendingUids() 424 pendingUids.put(uids[i], procStates[i]); in addPendingUids() 428 private void updateProcessStates(int[] uids, int[] procStates, in updateProcessStates() argument 431 for (int i = 0; i < uids.length; ++i) { in updateProcessStates() 432 final BatteryStatsImpl.Uid u = mBatteryStatsImpl.getUidStatsLocked(uids[i]); in updateProcessStates() 435 pendingUids.put(uids[i], procStates[i]); in updateProcessStates()
|
D | BatteryStatsUserLifecycleTests.java | 122 ArraySet<Integer> uids = new ArraySet<>(); in getNumberOfUidsInBatteryStats() local 133 uids.add(uid); in getNumberOfUidsInBatteryStats() 139 return uids.size(); in getNumberOfUidsInBatteryStats()
|
D | KernelCpuThreadReaderTest.java | 67 int[] uids = new int[]{0, 2, 3, 4, 5, 6000}; in testReader_byUids() local 78 for (int uid : uids) { in testReader_byUids() 88 mProcDirectory.toPath().resolve(uids[0] + "/task/" + uids[0] + "/time_in_state"), in testReader_byUids()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerShellCommand.java | 201 final int[] uids = mInterface.getUidsWithPolicy(policy); in listUidPolicies() local 202 return listUidList(msg, uids); in listUidPolicies() 205 private int listUidList(String msg, int[] uids) { in listUidList() argument 208 if (uids.length == 0) { in listUidList() 211 for (int i = 0; i < uids.length; i++) { in listUidList() 212 int uid = uids[i]; in listUidList() 233 final int[] uids = mInterface.getAppIdleWhitelist(); in listAppIdleWhitelist() local 234 return listUidList("App Idle whitelisted UIDs", uids); in listAppIdleWhitelist()
|
D | NetworkStatsRecorder.java | 316 public void removeUidsLocked(int[] uids) { in removeUidsLocked() argument 320 mRotator.rewriteAll(new RemoveUidRewriter(mBucketDuration, uids)); in removeUidsLocked() 322 Log.wtf(TAG, "problem removing UIDs " + Arrays.toString(uids), e); in removeUidsLocked() 325 Log.wtf(TAG, "problem removing UIDs " + Arrays.toString(uids), e); in removeUidsLocked() 332 mPending.removeUids(uids); in removeUidsLocked() 335 mSinceBoot.removeUids(uids); in removeUidsLocked() 340 mLastSnapshot.removeUids(uids); in removeUidsLocked() 345 complete.removeUids(uids); in removeUidsLocked() 391 public RemoveUidRewriter(long bucketDuration, int[] uids) { in RemoveUidRewriter() argument 393 mUids = uids; in RemoveUidRewriter()
|
/frameworks/base/cmds/statsd/src/subscriber/ |
D | IncidentdReporter.cpp | 98 std::set<int32_t> uids; in getProtoData() local 104 uids.insert(uid); in getProtoData() 111 uids.insert(uid); in getProtoData() 115 if (!uids.empty()) { in getProtoData() 117 UidMap::getInstance()->writeUidMapSnapshot(getElapsedRealtimeNs(), true, true, uids, in getProtoData()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | AppErrors.java | 124 final SparseArray<Long> uids = pmap.valueAt(ip); in writeToProto() local 125 final int uidCount = uids.size(); in writeToProto() 129 final int puid = uids.keyAt(i); in writeToProto() 137 uids.valueAt(i)); in writeToProto() 151 final SparseArray<BadProcessInfo> uids = pmap.valueAt(ip); in writeToProto() local 152 final int uidCount = uids.size(); in writeToProto() 156 final int puid = uids.keyAt(i); in writeToProto() 162 final BadProcessInfo info = uids.valueAt(i); in writeToProto() 186 final SparseArray<Long> uids = pmap.valueAt(ip); in dumpLocked() local 187 final int uidCount = uids.size(); in dumpLocked() [all …]
|
D | ProcessStatsService.java | 168 final SparseArray<LongSparseArray<ProcessStats.PackageState>> uids = in setMemFactorLocked() local 170 for (int iuid=uids.size()-1; iuid>=0; iuid--) { in setMemFactorLocked() 171 final LongSparseArray<ProcessStats.PackageState> vers = uids.valueAt(iuid); in setMemFactorLocked() 337 SparseArray<ProcessState> uids = procMap.valueAt(ip); in readLocked() local 338 final int NUID = uids.size(); in readLocked() 340 Slog.w(TAG, " Uid " + uids.keyAt(iu) + ": " + uids.valueAt(iu)); in readLocked() 348 SparseArray<LongSparseArray<ProcessStats.PackageState>> uids in readLocked() local 350 final int NUID = uids.size(); in readLocked() 352 Slog.w(TAG, " Uid: " + uids.keyAt(iu)); in readLocked() 353 LongSparseArray<ProcessStats.PackageState> vers = uids.valueAt(iu); in readLocked()
|
/frameworks/ml/nn/runtime/packageinfo/ |
D | PackageInfo.cpp | 41 std::vector<int> uids{static_cast<int>(uid)}; in ANeuralNetworks_fetch_PackageInfo() local 43 ::android::binder::Status status = packageMgr->getNamesForUids(uids, &names); in ANeuralNetworks_fetch_PackageInfo()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkCapabilitiesTest.java | 238 final Set<UidRange> uids = new ArraySet<>(); in testSetUids() local 239 uids.add(new UidRange(50, 100)); in testSetUids() 240 uids.add(new UidRange(3000, 4000)); in testSetUids() 241 netCap.setUids(uids); in testSetUids() 268 netCap2.setUids(uids); in testSetUids() 273 uids.add(new UidRange(600, 700)); in testSetUids() 274 netCap2.setUids(uids); in testSetUids() 294 final Set<UidRange> uids = new ArraySet<>(); in testParcelNetworkCapabilities() local 295 uids.add(new UidRange(50, 100)); in testParcelNetworkCapabilities() 296 uids.add(new UidRange(3000, 4000)); in testParcelNetworkCapabilities() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 559 private void removeBypassingUids(Set<Integer> uids, int vpnAppUid) { in removeBypassingUids() argument 560 uids.remove(vpnAppUid); in removeBypassingUids() 561 uids.removeIf(uid -> mApps.getOrDefault(uid, NETWORK) == SYSTEM); in removeBypassingUids() 575 private void updateVpnUids(String iface, Set<Integer> uids, boolean add) { in updateVpnUids() argument 576 if (uids.size() == 0) { in updateVpnUids() 581 mNetd.firewallAddUidInterfaceRules(iface, toIntArray(uids)); in updateVpnUids() 583 mNetd.firewallRemoveUidInterfaceRules(toIntArray(uids)); in updateVpnUids()
|
/frameworks/base/cmds/statsd/tools/dogfood/src/com/android/statsd/dogfood/ |
D | MainActivity.java | 319 int[] uids = new int[]{mUids[id]}; in onWakeLockAcquire() local 321 StatsLog.write(StatsLog.WAKELOCK_STATE_CHANGED, uids, tags, in onWakeLockAcquire() 335 int[] uids = new int[]{mUids[id]}; in onWakeLockRelease() local 337 StatsLog.write(StatsLog.WAKELOCK_STATE_CHANGED, uids, tags, in onWakeLockRelease()
|
/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/packages/SettingsLib/src/com/android/settingslib/net/ |
D | ChartDataLoader.java | 96 final int size = app.uids.size(); in loadInBackground() 98 final int uid = app.uids.keyAt(i); in loadInBackground()
|
/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/native/libs/binder/aidl/android/content/pm/ |
D | IPackageManagerNative.aidl | 40 @utf8InCpp String[] getNamesForUids(in int[] uids); in getNamesForUids() argument
|