/external/compiler-rt/test/msan/Linux/ |
getresid.cc | 11 uid_t uids[6]; local 12 assert(0 == __msan_test_shadow(uids, 6 * sizeof(uid_t))); 13 assert(0 == getresuid(&uids[0], &uids[2], &uids[4])); 16 __msan_test_shadow(uids + 2 * i, 2 * sizeof(uid_t)));
|
/frameworks/base/core/java/com/android/internal/app/ |
ProcessMap.java | 27 SparseArray<E> uids = mMap.get(name); local 28 if (uids == null) return null; 29 return uids.get(uid); 33 SparseArray<E> uids = mMap.get(name); local 34 if (uids == null) { 35 uids = new SparseArray<E>(2); 36 mMap.put(name, uids); 38 uids.put(uid, value); 43 SparseArray<E> uids = mMap.get(name); local 44 if (uids != null) [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
KernelUidCpuActiveTimeReaderTest.java | 62 final int[] uids = {1, 22, 333, 4444, 5555}; local 64 final long[][] times = increaseTime(new long[uids.length][cores]); 65 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times)); 67 for (int i = 0; i < uids.length; i++) { 68 verify(mCallback).onUidCpuActiveTime(uids[i], getTotal(times[i])); 75 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times1)); 77 for (int i = 0; i < uids.length; i++) { 78 verify(mCallback).onUidCpuActiveTime(uids[i], getTotal(subtract(times1[i], times[i]))); 84 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times1)); 91 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times2)) 109 final int[] uids = {1, 22, 333, 4444, 5555}; local 133 final int[] uids = {1, 22, 333, 4444, 5555}; local [all...] |
KernelUidCpuClusterTimeReaderTest.java | 67 final int[] uids = {1, 22, 333, 4444, 5555}; local 70 final long[][] times = increaseTime(new long[uids.length][cores]); 71 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times)); 73 for (int i = 0; i < uids.length; i++) { 74 cb.verify(uids[i], getTotal(clusters, times[i])); 82 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1)); 84 for (int i = 0; i < uids.length; i++) { 85 cb.verify(uids[i], getTotal(clusters, subtract(times1[i], times[i]))); 92 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times1)); 99 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, clusters, times2)) 121 final int[] uids = {1, 22, 333, 4444, 5555}; local 148 final int[] uids = {1, 22, 333, 4444, 5555}; local [all...] |
KernelUidCpuFreqTimeReaderTest.java | 150 final int[] uids = {1, 22, 333, 444, 555}; local 151 final long[][] times = new long[uids.length][freqs.length]; 152 for (int i = 0; i < uids.length; ++i) { 154 times[i][j] = uids[i] * freqs[j] * 10; 161 when(mProcReader.readBytes()).thenReturn(getUidTimesBytes(uids, times)); 163 for (int i = 0; i < uids.length; ++i) { 164 cb.verify(uids[i], times[i]); 171 final long[][] newTimes1 = new long[uids.length][freqs.length]; 172 for (int i = 0; i < uids.length; ++i) { 174 newTimes1[i][j] = times[i][j] + (uids[i] + freqs[j]) * 50 226 final int[] uids = {1, 22, 333, 444, 555}; local [all...] |
/system/core/storaged/tools/ |
ranker.py | 17 This module parses output from dumpsys storaged by ranking uids based on 56 help="set number of uids to display for each rank, " 59 action="store_true", help="add io stats for same uids, " 60 "default to take io stats of last appearing uids") 65 action="store_true", help="display task io under uids, " 81 Either args.combine io stats for the same uids 83 the same uids before it. 89 The structure for the return value uids is as follows: 90 uids: {uid -> [UID_STATS, TASK_STATS(optional)]} 95 uids = { [all...] |
/frameworks/native/libs/binder/aidl/android/content/pm/ |
IPackageManagerNative.aidl | 35 * Returns a set of names for the given UIDs. 36 * IMPORTANT: Unlike the Java version of this API, unknown UIDs are 40 @utf8InCpp String[] getNamesForUids(in int[] uids);
|
/system/core/storaged/include/ |
storaged_utils.h | 37 void sort_running_uids_info(std::vector<UidInfo> &uids); 40 void log_console_running_uids_info(const std::vector<UidInfo>& uids, bool flag_dump_task);
|
/frameworks/base/core/java/android/os/health/ |
SystemHealthManager.java | 108 * metrics for the given uids (user-id, which in usually corresponds to application). 115 * @param uids An array of User IDs to retrieve. 117 * the requested uids. The keys for this HealthStats object will be from the 120 public HealthStats[] takeUidSnapshots(int[] uids) { 122 final HealthStatsParceler[] parcelers = mBatteryStats.takeUidSnapshots(uids); 123 final HealthStats[] results = new HealthStats[uids.length]; 124 final int N = uids.length;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
AppItem.java | 32 public SparseBooleanArray uids = new SparseBooleanArray(); field in class:AppItem 45 uids = parcel.readSparseBooleanArray(); 50 uids.put(uid, true); 56 dest.writeSparseBooleanArray(uids);
|
/cts/tests/tests/os/src/android/os/cts/ |
WorkSourceTest.java | 55 private WorkSource wsNew(int[] uids) throws IllegalArgumentException, 58 for (int i=0; i<uids.length; i++) { 59 wsAdd(ws, uids[i]); 61 checkWorkSource("Constructed", ws, uids); 65 private WorkSource wsNew(int[] uids, String[] names) throws IllegalArgumentException, 68 for (int i=0; i<uids.length; i++) { 69 wsAdd(ws, uids[i], names[i]); 71 checkWorkSource("Constructed", ws, uids, names); 100 private void printArrays(StringBuilder sb, int[] uids, String[] names) { 102 for (int i=0; i<uids.length; i++) [all...] |
/frameworks/base/cmds/statsd/tests/ |
UidMap_test.cpp | 70 vector<int32_t> uids; local 74 uids.push_back(1000); 75 uids.push_back(1000); 80 m.updateMap(1, uids, versions, apps); 96 vector<int32_t> uids; local 100 uids.push_back(1000); 101 uids.push_back(1000); 106 m.updateMap(1, uids, versions, apps); 184 vector<int32_t> uids; local 187 uids.push_back(1000) 209 vector<int32_t> uids; local 233 vector<int32_t> uids; local 272 vector<int32_t> uids; local 334 vector<int32_t> uids; local 361 vector<int32_t> uids; local [all...] |
/packages/services/Car/tools/ioanalyze/ |
analyzer.py | 25 self.uids = {} 41 self.uids[uid] = snapshot 155 self.uids = {} 172 for uid in snapshot.uids: 173 if uid not in self.uids: self.uids[uid] = UserActivity(uid) 174 self.uids[uid].addSnapshot(snapshot.uids[uid]) 181 return sorted(self.uids.values(), key=f, reverse=True) 186 A = [(K, self.uids[K].totalWrittenBytes) for K in self.uids [all...] |
/external/chromium-trace/catapult/devil/devil/android/ |
battery_utils.py | 255 # If device_utils clears cache, cache['uids'] doesn't exist 256 if 'uids' not in self._cache: 257 self._cache['uids'] = {} 258 if package not in self._cache['uids']: 260 if package not in self._cache['uids']: 265 network_data_path = '/proc/uid_stat/%s/' % self._cache['uids'][package] 301 if 'uids' not in self._cache: 302 self._cache['uids'] = {} 317 if (self._cache['uids'].get(current_package) 318 and self._cache['uids'].get(current_package [all...] |
/external/libmojo/third_party/catapult/devil/devil/android/ |
battery_utils.py | 211 # If device_utils clears cache, cache['uids'] doesn't exist 212 if 'uids' not in self._cache: 213 self._cache['uids'] = {} 214 if package not in self._cache['uids']: 216 if package not in self._cache['uids']: 221 network_data_path = '/proc/uid_stat/%s/' % self._cache['uids'][package] 257 if 'uids' not in self._cache: 258 self._cache['uids'] = {} 273 if (self._cache['uids'].get(current_package) 274 and self._cache['uids'].get(current_package [all...] |
/system/core/storaged/ |
storaged_utils.cpp | 64 void sort_running_uids_info(std::vector<UidInfo> &uids) { 65 std::sort(uids.begin(), uids.end(), cmp_uid_info); 69 void log_console_running_uids_info(const std::vector<UidInfo>& uids, bool flag_dump_task) { 73 for (const auto& uid : uids) {
|
/system/netd/server/ |
FirewallController.cpp | 278 bool isWhitelist, const std::vector<int32_t>& uids) { 282 // Whitelist chains have UIDs at the beginning, and new UIDs are added with '-I'. 284 for (auto uid : uids) { 288 // Always whitelist system UIDs. 292 // This rule inverts the match for all UIDs; ie, if there is no UID match here, 313 // Blacklist chains have UIDs at the end, and new UIDs are added with '-A'. 315 for (auto uid : uids) { 332 const char *name, bool isWhitelist, const std::vector<int32_t>& uids) { [all...] |
NetdNativeService.h | 41 const std::vector<int32_t>& uids, bool *ret) override; 55 binder::Status networkAddUidRanges(int32_t netId, const std::vector<UidRange>& uids) 57 binder::Status networkRemoveUidRanges(int32_t netId, const std::vector<UidRange>& uids) 59 binder::Status networkRejectNonSecureVpn(bool enable, const std::vector<UidRange>& uids) 63 binder::Status socketDestroy(const std::vector<UidRange>& uids,
|
/frameworks/base/media/java/android/media/ |
AudioManagerInternal.java | 49 public abstract void setAccessibilityServiceUids(IntArray uids);
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/ |
WifiRtt2ManagerFacade.java | 158 @Rpc(description = "Cancel ranging requests for the specified UIDs") 159 public void wifiRttCancelRanging(@RpcParameter(name = "uids", description = "List of UIDs") 160 @RpcOptional JSONArray uids) throws JSONException { 162 mMgr.cancelRanging(getWorkSource(uids)); 216 private static WorkSource getWorkSource(JSONArray uids) throws JSONException { 217 if (uids == null) { 221 for (int i = 0; i < uids.length(); ++i) { 222 ws.add(uids.getInt(i));
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
ProcessStats.java | 244 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); local 245 for (int iu=0; iu<uids.size(); iu++) { 246 final int uid = uids.keyAt(iu); 247 final LongSparseArray<PackageState> versions = uids.valueAt(iu); 286 SparseArray<ProcessState> uids = procMap.valueAt(ip); local 287 for (int iu=0; iu<uids.size(); iu++) { 288 int uid = uids.keyAt(iu); 289 ProcessState otherProc = uids.valueAt(iu); 420 SparseArray<ProcessState> uids = procMap.valueAt(iproc); local 421 for (int iu=0; iu<uids.size(); iu++) 446 final SparseArray<ProcessState> uids = procMap.valueAt(ip); local 457 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); local 496 final SparseArray<ProcessState> uids = procMap.valueAt(ip); local 766 SparseArray<ProcessState> uids = procMap.valueAt(ip); local 776 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); local 830 final SparseArray<ProcessState> uids = procMap.valueAt(ip); local 844 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); local 1298 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); local 1405 SparseArray<ProcessState> uids = procMap.valueAt(ip); local 1702 final SparseArray<LongSparseArray<PackageState>> uids = pkgMap.valueAt(ip); local 1729 SparseArray<ProcessState> uids = procMap.valueAt(ip); local 1840 SparseArray<ProcessState> uids = procMap.valueAt(ip); local [all...] |
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsRecorder.java | 212 * across all UIDs (e.g. contains UID_ALL buckets), regardless of VPN state. 331 public void removeUidsLocked(int[] uids) { 335 mRotator.rewriteAll(new RemoveUidRewriter(mBucketDuration, uids)); 337 Log.wtf(TAG, "problem removing UIDs " + Arrays.toString(uids), e); 340 Log.wtf(TAG, "problem removing UIDs " + Arrays.toString(uids), e); 347 mPending.removeUids(uids); 350 mSinceBoot.removeUids(uids); 355 mLastSnapshot = mLastSnapshot.withoutUids(uids); [all...] |
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
NetdEventListenerServiceTest.java | 106 int[] uids = {10001, 10002, 10004, 1000, 10052, 10023, 10002, 10123, 10004}; local 107 wakeupEvent(iface, uids[0], v4, tcp, mac, srcIp, dstIp, sport, dport, now); 108 wakeupEvent(iface, uids[1], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); 109 wakeupEvent(iface, uids[2], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); 110 wakeupEvent(iface, uids[3], v4, icmp6, mac, srcIp, dstIp, sport, dport, now); 111 wakeupEvent(iface, uids[4], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); 112 wakeupEvent(iface, uids[5], v4, tcp, mac, srcIp, dstIp, sport, dport, now); 113 wakeupEvent(iface, uids[6], v6, udp, mac, srcIp6, dstIp6, sport, dport, now); 114 wakeupEvent(iface, uids[7], v6, tcp, mac, srcIp6, dstIp6, sport, dport, now); 115 wakeupEvent(iface, uids[8], v6, udp, mac, srcIp6, dstIp6, sport, dport, now) [all...] |
/frameworks/base/cmds/statsd/tests/condition/ |
SimpleConditionTracker_test.cpp | 60 void writeAttributionNodesToEvent(LogEvent* event, const std::vector<int> &uids) { 62 for (size_t i = 0; i < uids.size(); ++i) { 64 node.set_uid(uids[i]); 71 LogEvent* event, const std::vector<int> &uids, const string& wl, int acquire) { 72 writeAttributionNodesToEvent(event, uids); 80 const std::vector<int> &uids, const string& conditionName) { 91 uid_indexes.push_back(uids.size() - 1); 95 uid_indexes.resize(uids.size()); 104 Value value((int32_t)uids[idx]); 288 std::vector<int> uids = {111, 222, 333} local [all...] |
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
ImapFolder.java | 131 // * OK [UIDVALIDITY 1125022061] UIDs valid 278 // Process response to get the new UIDs 383 final ArrayList<String> uids = new ArrayList<String>(); local 392 uids.add(s.getString()); 396 return uids.toArray(Utility.EMPTY_STRINGS); 445 final String[] uids = searchForUids(ImapConstants.UID + " " + uid); local 446 for (int i = 0; i < uids.length; i++) { 447 if (uids[i].equals(uid)) { 559 String [] uids = null; local 564 uids = searchForUids(command.toString(), false) 1141 String[] uids = searchForUids( local [all...] |