Home
last modified time | relevance | path

Searched refs:uid (Results 1 – 25 of 640) sorted by relevance

12345678910>>...26

/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DWifiPermissionsUtil.java82 public boolean checkConfigOverridePermission(int uid) { in checkConfigOverridePermission() argument
83 int permission = mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid); in checkConfigOverridePermission()
94 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() argument
96 uid, /* coarseForTargetSdkLessThanQ */ true, null)) { in enforceLocationPermission()
98 "UID " + uid + " does not have Coarse/Fine Location permission"); in enforceLocationPermission()
145 int uid, boolean coarseForTargetSdkLessThanQ, @Nullable String message) { in checkCallersLocationPermission() argument
146 boolean isTargetSdkLessThanQ = isTargetSdkLessThan(pkgName, Build.VERSION_CODES.Q, uid); in checkCallersLocationPermission()
153 if (mWifiPermissionsWrapper.getUidPermission(permissionType, uid) in checkCallersLocationPermission()
156 Log.v(TAG, "checkCallersLocationPermission(" + pkgName + "): uid " + uid in checkCallersLocationPermission()
165 AppOpsManager.OPSTR_FINE_LOCATION, pkgName, featureId, uid, message); in checkCallersLocationPermission()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DPermissionUtils.java63 public static boolean checkPermissionSelf(@NonNull Context context, int pid, int uid) { in checkPermissionSelf() argument
64 return android.os.Process.myUid() == uid; in checkPermissionSelf()
67 public static boolean checkPermissionShell(@NonNull Context context, int pid, int uid) { in checkPermissionShell() argument
68 switch (uid) { in checkPermissionShell()
82 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManager() argument
83 return checkPermissionForDataDelivery(context, MANAGE_EXTERNAL_STORAGE, pid, uid, in checkPermissionManager()
100 public static boolean checkPermissionDelegator(@NonNull Context context, int pid, int uid) { in checkPermissionDelegator() argument
101 return (context.checkPermission(BACKUP, pid, uid) == PERMISSION_GRANTED) in checkPermissionDelegator()
102 || (context.checkPermission(UPDATE_DEVICE_STATS, pid, uid) == PERMISSION_GRANTED); in checkPermissionDelegator()
105 public static boolean checkPermissionWriteStorage(@NonNull Context context, int pid, int uid, in checkPermissionWriteStorage() argument
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java82 row.uid = app.uid; in loadAppRow()
90 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow()
91 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow()
92 row.bubblePreference = getBubblePreference(row.pkg, row.uid); in loadAppRow()
93 row.userId = UserHandle.getUserId(row.uid); in loadAppRow()
94 row.blockedChannelCount = getBlockedChannelCount(row.pkg, row.uid); in loadAppRow()
95 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow()
101 final boolean blocked = getNotificationsBanned(info.packageName, info.uid); in isBlockable()
187 public boolean getNotificationsBanned(String pkg, int uid) { in getNotificationsBanned() argument
189 final boolean enabled = sINM.areNotificationsEnabledForPackage(pkg, uid); in getNotificationsBanned()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/
DDataSaverBackend.java81 public void setIsAllowlisted(int uid, String packageName, boolean allowlisted) { in setIsAllowlisted() argument
83 mPolicyManager.setUidPolicy(uid, policy); in setIsAllowlisted()
84 mUidPolicies.put(uid, policy); in setIsAllowlisted()
91 public boolean isAllowlisted(int uid) { in isAllowlisted() argument
93 return mUidPolicies.get(uid, POLICY_NONE) == POLICY_ALLOW_METERED_BACKGROUND; in isAllowlisted()
101 for (int uid : mPolicyManager.getUidsWithPolicy(POLICY_ALLOW_METERED_BACKGROUND)) { in loadAllowlist()
102 mUidPolicies.put(uid, POLICY_ALLOW_METERED_BACKGROUND); in loadAllowlist()
111 public void setIsDenylisted(int uid, String packageName, boolean denylisted) { in setIsDenylisted() argument
113 mPolicyManager.setUidPolicy(uid, policy); in setIsDenylisted()
114 mUidPolicies.put(uid, policy); in setIsDenylisted()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/metrics/
DStorageAccessMetrics.java73 void logMimeType(int uid, @NonNull String mimeType) { in logMimeType() argument
80 getOrGeneratePackageStatsObjectLocked(uid).mMimeTypes.add(mimeType); in logMimeType()
89 void logAccessViaFuse(int uid, @NonNull String file) { in logAccessViaFuse() argument
91 if (mMyUid == uid) { in logAccessViaFuse()
95 incrementFilePathAccesses(uid); in logAccessViaFuse()
98 logGeneralExternalStorageAccess(uid, volumeName); in logAccessViaFuse()
99 logMimeTypeFromFile(uid, file); in logAccessViaFuse()
106 void logAccessViaMediaProvider(int uid, @NonNull String volumeName) { in logAccessViaMediaProvider() argument
108 if (mMyUid == uid) { in logAccessViaMediaProvider()
112 logGeneralExternalStorageAccess(uid, volumeName); in logAccessViaMediaProvider()
[all …]
/packages/services/Car/cpp/watchdog/server/src/
DPackageInfoResolver.cpp56 ComponentType getComponentTypeForNativeUid(uid_t uid, std::string_view packageName, in getComponentTypeForNativeUid() argument
63 if ((uid >= AID_OEM_RESERVED_START && uid <= AID_OEM_RESERVED_END) || in getComponentTypeForNativeUid()
64 (uid >= AID_OEM_RESERVED_2_START && uid <= AID_OEM_RESERVED_2_END) || in getComponentTypeForNativeUid()
65 (uid >= AID_ODM_RESERVED_START && uid <= AID_ODM_RESERVED_END)) { in getComponentTypeForNativeUid()
76 uid_t uid, const std::vector<std::string>& vendorPackagePrefixes, in getPackageInfoForNativeUid() argument
79 passwd* usrpwd = getpwuidHandler(uid); in getPackageInfoForNativeUid()
85 packageInfo.packageIdentifier.uid = uid; in getPackageInfoForNativeUid()
88 getComponentTypeForNativeUid(uid, packageName, vendorPackagePrefixes); in getPackageInfoForNativeUid()
139 for (const uid_t uid : uids) { in updatePackageInfos() local
140 if (mUidToPackageInfoMapping.find(uid) != mUidToPackageInfoMapping.end()) { in updatePackageInfos()
[all …]
/packages/providers/MediaProvider/jni/
DMediaProviderWrapper.cpp46 inline bool shouldBypassMediaProvider(uid_t uid) { in shouldBypassMediaProvider() argument
47 return uid == SHELL_UID || uid == ROOT_UID; in shouldBypassMediaProvider()
73 const string& path, uid_t uid) { in insertFileInternal() argument
75 int res = env->CallIntMethod(media_provider_object, mid_insert_file, j_path.get(), uid); in insertFileInternal()
84 const string& path, uid_t uid) { in deleteFileInternal() argument
86 int res = env->CallIntMethod(media_provider_object, mid_delete_file, j_path.get(), uid); in deleteFileInternal()
96 uid_t uid, bool forCreate) { in isMkdirOrRmdirAllowedInternal() argument
99 uid, forCreate); in isMkdirOrRmdirAllowedInternal()
108 jmethodID mid_is_opendir_allowed, const string& path, uid_t uid, in isOpendirAllowedInternal() argument
111 int res = env->CallIntMethod(media_provider_object, mid_is_opendir_allowed, j_path.get(), uid, in isOpendirAllowedInternal()
[all …]
DMediaProviderWrapper.h41 FileOpenResult(const int status, const int uid, uid_t transforms_uid, in FileOpenResult()
43 … : status(status), uid(uid), transforms_uid(transforms_uid), redaction_info(redaction_info) {} in FileOpenResult()
46 const int uid; member
56 FileLookupResult(int transforms, int transforms_reason, uid_t uid, bool transforms_complete, in FileLookupResult()
60 uid(uid), in FileLookupResult()
75 const uid_t uid; member
100 const std::string& io_path, uid_t uid,
111 int InsertFile(const std::string& path, uid_t uid);
120 int DeleteFile(const std::string& path, uid_t uid);
135 std::vector<std::shared_ptr<DirectoryEntry>> GetDirectoryEntries(uid_t uid,
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java58 void onUidToBackground(int uid); in onUidToBackground() argument
76 public boolean registerUidToBackgroundCallback(Callback callback, int uid) { in registerUidToBackgroundCallback() argument
78 if (!isInForegroundLocked(uid)) { in registerUidToBackgroundCallback()
83 List<Callback> callbacks = mBackgroundCallbacks.get(uid, new ArrayList<Callback>()); in registerUidToBackgroundCallback()
85 mBackgroundCallbacks.put(uid, callbacks); in registerUidToBackgroundCallback()
94 public boolean isInForeground(int uid) { in isInForeground() argument
96 return isInForegroundLocked(uid); in isInForeground()
114 private boolean isInForegroundLocked(int uid) { in isInForegroundLocked() argument
115 if (mForegroundUidPids.get(uid) != null) in isInForegroundLocked()
117 if (DBG) Log.d(TAG, "Checking UID:" + Integer.toString(uid)); in isInForegroundLocked()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryUtils.java108 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs() argument
110 if (uid == null) { in getProcessTimeMs()
116 return getScreenUsageTimeMs(uid, which); in getProcessTimeMs()
118 return getProcessForegroundTimeMs(uid, which); in getProcessTimeMs()
120 return getProcessBackgroundTimeMs(uid, which); in getProcessTimeMs()
122 return getProcessForegroundTimeMs(uid, which) in getProcessTimeMs()
123 + getProcessBackgroundTimeMs(uid, which); in getProcessTimeMs()
128 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs() argument
130 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs()
134 final long localTime = uid.getProcessStateTime(type, rawRealTimeUs, which); in getScreenUsageTimeMs()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DLocalCallingIdentity.java72 public final int uid; field in LocalCallingIdentity
80 private LocalCallingIdentity(Context context, int pid, int uid, UserHandle user, in LocalCallingIdentity() argument
84 this.uid = uid; in LocalCallingIdentity()
143 int uid) { in fromExternal() argument
144 final String[] sharedPackageNames = context.getPackageManager().getPackagesForUid(uid); in fromExternal()
146 throw new IllegalArgumentException("UID " + uid + " has no associated package"); in fromExternal()
148 LocalCallingIdentity ident = fromExternal(context, userCache, uid, sharedPackageNames[0], in fromExternal()
152 if (uid == Process.SHELL_UID) { in fromExternal()
164 int uid, String packageName, @Nullable String attributionTag) { in fromExternal() argument
165 UserHandle user = UserHandle.getUserHandleForUid(uid); in fromExternal()
[all …]
DTranscodeHelperImpl.java345 public void onAnrDelayStarted(String packageName, int uid, int tid, int reason) { in onAnrDelayStarted() argument
350 if (uid == MY_UID) { in onAnrDelayStarted()
363 if (session.isUidBlocked(uid)) { in onAnrDelayStarted()
365 Log.i(TAG, "Package: " + packageName + " with uid: " + uid in onAnrDelayStarted()
374 private String getMetricsSafeNameForUid(int uid) { in getMetricsSafeNameForUid() argument
375 String name = mPackageManager.getNameForUid(uid); in getMetricsSafeNameForUid()
377 Log.w(TAG, "null package name received from getNameForUid for uid " + uid in getMetricsSafeNameForUid()
379 return Integer.toString(uid); in getMetricsSafeNameForUid()
381 Log.w(TAG, "empty package name received from getNameForUid for uid " + uid in getMetricsSafeNameForUid()
383 return ":empty_package_name:" + uid; in getMetricsSafeNameForUid()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareServiceImpl.java199 final int uid = getMockableCallingUid(); in connect() local
200 mAppOps.checkPackage(uid, callingPackage); in connect()
229 Log.v(TAG, "connect: uid=" + uid + ", clientId=" + clientId + ", configRequest" in connect()
262 mUidByClientId.put(clientId, uid); in connect()
265 mStateManager.connect(clientId, uid, pid, callingPackage, callingFeatureId, callback, in connect()
274 int uid = getMockableCallingUid(); in disconnect() local
275 enforceClientValidity(uid, clientId); in disconnect()
276 if (mDbg) Log.v(TAG, "disconnect: uid=" + uid + ", clientId=" + clientId); in disconnect()
299 int uid = getMockableCallingUid(); in terminateSession() local
300 enforceClientValidity(uid, clientId); in terminateSession()
[all …]
/packages/services/Car/tools/ioanalyze/
Danalyzer.py11 self.uid = activity['uid']
33 uid = entry['uid']
41 self.uids[uid] = snapshot
99 def __init__(self, uid): argument
100 self.uid = uid
102 self.appPackages = wellKnownUids.get(uid, [])
111 assert snapshot.uid == self.uid
123 plt.title("I/O activity for UID %s" % (self.uid))
172 for uid in snapshot.uids:
173 if uid not in self.uids: self.uids[uid] = UserActivity(uid)
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DPermissionMonitor.java126 final int uid = intent.getIntExtra(Intent.EXTRA_UID, -1);
130 onPackageAdded(packageName, uid);
132 final int uid = intent.getIntExtra(Intent.EXTRA_UID, -1);
136 onPackageRemoved(packageName, uid);
237 int uid = app.applicationInfo != null ? app.applicationInfo.uid : INVALID_UID; in startMonitoring() local
238 if (uid < 0) { in startMonitoring()
241 mAllApps.add(UserHandle.getAppId(uid)); in startMonitoring()
247 Boolean permission = mApps.get(UserHandle.getAppId(uid)); in startMonitoring()
251 mApps.put(UserHandle.getAppId(uid), hasRestrictedPermission); in startMonitoring()
258 netdPermsUids.put(uid, netdPermsUids.get(uid) | otherNetdPerms); in startMonitoring()
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/common/
DEventLogTags.logtags72 150104 car_user_svc_set_lifecycle_listener (uid|1)
73 150105 car_user_svc_reset_lifecycle_listener (uid|1)
77 150109 car_user_svc_get_user_auth_req (uid|1),(user_id|1),(number_types|1)
80 150112 car_user_svc_switch_user_from_hal_req (request_id|1),(uid|1)
81 150113 car_user_svc_set_user_auth_req (uid|1),(user_id|1),(number_associations|1)
89 150121 car_user_svc_notify_app_lifecycle_listener (uid|1),(event_type|1),(from_user_id|1),(to_user_…
114 150171 car_user_mgr_add_listener (uid|1)
115 150172 car_user_mgr_remove_listener (uid|1)
116 150173 car_user_mgr_disconnected (uid|1)
117 150174 car_user_mgr_switch_user_req (uid|1),(user_id|1)
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkStatsBinderTest.java70 mUidStatsQueryOpArray.put(TYPE_RX_BYTES, uid -> TrafficStats.getUidRxBytes(uid)); in setUp()
71 mUidStatsQueryOpArray.put(TYPE_RX_PACKETS, uid -> TrafficStats.getUidRxPackets(uid)); in setUp()
72 mUidStatsQueryOpArray.put(TYPE_TX_BYTES, uid -> TrafficStats.getUidTxBytes(uid)); in setUp()
73 mUidStatsQueryOpArray.put(TYPE_TX_PACKETS, uid -> TrafficStats.getUidTxPackets(uid)); in setUp()
76 private long getUidStatsFromBinder(int uid, int type) throws Exception { in getUidStatsFromBinder() argument
81 return nss.getUidStats(uid, type); in getUidStatsFromBinder()
88 it -> it.applicationInfo != null && predicate.test(it.applicationInfo.uid)); in getFirstAppUidThat()
89 if (match != null) return match.applicationInfo.uid; in getFirstAppUidThat()
107 final int notMyUid = getFirstAppUidThat(uid -> uid >= 0 && !testUidList.contains(uid)); in testAccessUidStatsFromBinder()
110 for (final int uid : testUidList) { in testAccessUidStatsFromBinder()
[all …]
/packages/modules/StatsD/statsd/src/
DStatsService.cpp70 uid_t uid = AIBinder_getCallingUid(); in checkPermission() local
71 return checkPermissionForIds(permission, pid, uid); in checkPermission()
75 uid_t uid = AIBinder_getCallingUid(); in checkUid() local
76 if (uid == expectedUid || uid == AID_ROOT) { in checkUid()
80 StringPrintf("UID %d is not expected UID %d", uid, expectedUid)); in checkUid()
84 #define ENFORCE_UID(uid) { \ argument
85 Status status = checkUid((uid)); \
141 [this](const int& uid, const vector<int64_t>& activeConfigs) { in __anon55b448e80702() argument
143 mConfigManager->GetActiveConfigsChangedReceiver(uid); in __anon55b448e80702()
145 VLOG("Could not find receiver for uid %d", uid); in __anon55b448e80702()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiNetworkSuggestionsManager.java187 public int uid; field in WifiNetworkSuggestionsManager.PerAppInfo
213 public PerAppInfo(int uid, @NonNull String packageName, @Nullable String featureId) { in PerAppInfo() argument
214 this.uid = uid; in PerAppInfo()
222 public void setUid(int uid) { in setUid() argument
223 if (this.uid == Process.INVALID_UID) { in setUid()
224 this.uid = uid; in setUid()
263 return uid == otherPerAppInfo.uid in equals()
272 return Objects.hash(uid, packageName, extNetworkSuggestions, hasUserApproved); in hashCode()
278 .append("uid=").append(uid) in toString()
310 this.wns.wifiConfiguration.creatorUid = perAppInfo.uid; in ExtendedWifiNetworkSuggestion()
[all …]
DWifiServiceImpl.java704 private boolean checkNetworkSettingsPermission(int pid, int uid) { in checkNetworkSettingsPermission() argument
705 return mContext.checkPermission(android.Manifest.permission.NETWORK_SETTINGS, pid, uid) in checkNetworkSettingsPermission()
709 private boolean checkNetworkSetupWizardPermission(int pid, int uid) { in checkNetworkSetupWizardPermission() argument
710 return mContext.checkPermission(android.Manifest.permission.NETWORK_SETUP_WIZARD, pid, uid) in checkNetworkSetupWizardPermission()
714 private boolean checkMainlineNetworkStackPermission(int pid, int uid) { in checkMainlineNetworkStackPermission() argument
715 return mContext.checkPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, pid, uid) in checkMainlineNetworkStackPermission()
719 private boolean checkNetworkStackPermission(int pid, int uid) { in checkNetworkStackPermission() argument
720 return mContext.checkPermission(android.Manifest.permission.NETWORK_STACK, pid, uid) in checkNetworkStackPermission()
724 private boolean checkNetworkManagedProvisioningPermission(int pid, int uid) { in checkNetworkManagedProvisioningPermission() argument
726 pid, uid) == PackageManager.PERMISSION_GRANTED; in checkNetworkManagedProvisioningPermission()
[all …]
/packages/modules/Connectivity/tests/cts/net/native/src/
DNativeQtaguidTest.cpp44 int getCtrlSkInfo(int tag, uid_t uid, uint64_t* sk_addr, int* ref_cnt) { in getCtrlSkInfo() argument
49 uint64_t full_tag = (uint64_t)tag << 32 | uid; in getCtrlSkInfo()
51 snprintf(pattern, sizeof(pattern), " tag=0x%" PRIx64 " (uid=%" PRIu32 ")", full_tag, uid); in getCtrlSkInfo()
66 if (!(res == TOTAL_PARAM && k_tag == full_tag && k_uid == uid)) in getCtrlSkInfo()
77 uid_t uid = getuid(); in checkNoSocketPointerLeaks() local
83 EXPECT_EQ(0, legacy_tagSocket(sockfd, tag, uid)); in checkNoSocketPointerLeaks()
84 EXPECT_EQ(0, getCtrlSkInfo(tag, uid, &sk_addr, &ref_cnt)); in checkNoSocketPointerLeaks()
87 EXPECT_EQ(-ENOENT, getCtrlSkInfo(tag, uid, &sk_addr, &ref_cnt)); in checkNoSocketPointerLeaks()
94 uid_t uid = getuid(); in TEST() local
98 EXPECT_EQ(0, legacy_tagSocket(sockfd, tag, uid)); in TEST()
[all …]
/packages/services/Car/service/src/com/android/car/cluster/
DClusterNavigationService.java131 public void onFocusAcquired(int appType, int uid, int pid) { in onFocusAcquired() argument
132 changeNavContextOwner(appType, uid, pid, true); in onFocusAcquired()
136 public void onFocusAbandoned(int appType, int uid, int pid) { in onFocusAbandoned() argument
137 changeNavContextOwner(appType, uid, pid, false); in onFocusAbandoned()
141 int uid = Binder.getCallingUid(); in assertNavigationFocus() local
144 if (uid == mNavContextOwner.uid && pid == mNavContextOwner.pid) { in assertNavigationFocus()
150 if (afs != null && afs.isFocusOwner(uid, pid, in assertNavigationFocus()
157 private void changeNavContextOwner(int appType, int uid, int pid, boolean acquire) { in changeNavContextOwner() argument
161 ContextOwner requester = new ContextOwner(uid, pid); in changeNavContextOwner()
184 final int uid; field in ClusterNavigationService.ContextOwner
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DUpdateInteractAcrossProfilesAppOpTask.java96 final int uid = mPackageManager.getPackageUid( in grantNewConfigurableDefaultCrossProfilePackages() local
98 if (appOpIsChangedFromDefault(op, uid, crossProfilePackageName)) { in grantNewConfigurableDefaultCrossProfilePackages()
127 op, appInfo.uid, appInfo.packageName)) { in getUidsWithNonDefaultMode()
128 uids.add(appInfo.uid); in getUidsWithNonDefaultMode()
145 for (int uid : uids) { in reapplyCrossProfileAppsPermissionForUids()
146 reapplyCrossProfileAppsPermissionForUid(uid); in reapplyCrossProfileAppsPermissionForUids()
150 private void reapplyCrossProfileAppsPermissionForUid(int uid) { in reapplyCrossProfileAppsPermissionForUid() argument
153 final String[] packages = mPackageManager.getPackagesForUid(uid); in reapplyCrossProfileAppsPermissionForUid()
154 final int consolidatedUidMode = getConsolidatedModeForPackagesInUid(uid, packages, op); in reapplyCrossProfileAppsPermissionForUid()
155 setAppOpForPackagesInUid(uid, packages, consolidatedUidMode); in reapplyCrossProfileAppsPermissionForUid()
[all …]
/packages/modules/DnsResolver/
DDnsProxyListener.cpp113 bool hasPermissionToBypassPrivateDns(uid_t uid) { in hasPermissionToBypassPrivateDns() argument
116 if (uid >= 0 && uid < FIRST_APPLICATION_UID) { in hasPermissionToBypassPrivateDns()
131 if (requestingUseLocalNameservers(ctx->flags) && !hasPermissionToBypassPrivateDns(ctx->uid)) { in maybeFixupNetContext()
326 DnsQueryLog::Record record(netContext.dns_netid, netContext.uid, netContext.pid, in maybeLogQuery()
359 total_ip_addr_count, netContext.uid);
561 std::string makeThreadName(unsigned netId, uint32_t uid) { in makeThreadName() argument
563 return android::base::StringPrintf("Dns_%u_%u", netId, multiuser_get_app_id(uid)); in makeThreadName()
693 const uid_t uid = mClient->getUid(); in doDns64Synthesis() local
694 if (queryLimiter.start(uid)) { in doDns64Synthesis()
701 queryLimiter.finish(uid); in doDns64Synthesis()
[all …]
/packages/providers/DownloadProvider/tests/src/com/android/providers/downloads/
DHelpersTest.java178 for (int uid : testUids) { in testHandleRemovedUidEntries()
179 when(packageManager.getPackagesForUid(uid)).thenReturn( in testHandleRemovedUidEntries()
180 contains(unknownUids, uid) ? null : new String[] {"com.example" + uid} in testHandleRemovedUidEntries()
248 for (int uid : uids) { in prepareData()
250 final String fileName = uid + "_" + destination + ".txt"; in prepareData()
255 cursor.addRow(new Object[]{++counter, uid, destination, file.getPath()}); in prepareData()
256 if (contains(unknownUids, uid)) { in prepareData()
259 validEntries.put(counter, "com.example" + uid); in prepareData()
265 cursor.addRow(new Object[]{++counter, uid, destination, file1.getPath()}); in prepareData()
266 if (contains(unknownUids, uid)) { in prepareData()
[all …]

12345678910>>...26