/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
D | WifiPermissionsUtil.java | 113 public CallerIdentity(int uid, int pid, String packageName, String featureId) { in CallerIdentity() argument 114 mUid = uid; in CallerIdentity() 154 public boolean checkConfigOverridePermission(int uid) { in checkConfigOverridePermission() argument 155 return mWifiPermissionsWrapper.getOverrideWifiConfigPermission(uid) in checkConfigOverridePermission() 166 public void enforceLocationPermission(String pkgName, @Nullable String featureId, int uid) { in enforceLocationPermission() argument 168 uid, /* coarseForTargetSdkLessThanQ */ true, null)) { in enforceLocationPermission() 170 "UID " + uid + " does not have Coarse/Fine Location permission"); in enforceLocationPermission() 218 int uid = attributionSource.getUid(); in enforceNearbyDevicesPermission() local 219 checkPackage(uid, packageName); in enforceNearbyDevicesPermission() 222 if (checkNetworkSettingsPermission(uid) || checkNetworkSetupWizardPermission(uid) in enforceNearbyDevicesPermission() [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/util/ |
D | PermissionUtils.java | 69 public static boolean checkPermissionSelf(@NonNull Context context, int pid, int uid) { in checkPermissionSelf() argument 70 return UserHandle.getAppId(android.os.Process.myUid()) == UserHandle.getAppId(uid); in checkPermissionSelf() 73 public static boolean checkPermissionShell(@NonNull Context context, int pid, int uid) { in checkPermissionShell() argument 74 switch (uid) { in checkPermissionShell() 88 int uid, @NonNull String packageName, @Nullable String attributionTag) { in checkPermissionManager() argument 89 return checkPermissionForDataDelivery(context, MANAGE_EXTERNAL_STORAGE, pid, uid, in checkPermissionManager() 106 public static boolean checkPermissionDelegator(@NonNull Context context, int pid, int uid) { in checkPermissionDelegator() argument 107 return (context.checkPermission(BACKUP, pid, uid) == PERMISSION_GRANTED) in checkPermissionDelegator() 108 || (context.checkPermission(UPDATE_DEVICE_STATS, pid, uid) == PERMISSION_GRANTED); in checkPermissionDelegator() 111 public static boolean checkPermissionWriteStorage(@NonNull Context context, int pid, int uid, in checkPermissionWriteStorage() argument [all …]
|
/packages/modules/Connectivity/service/src/com/android/server/connectivity/ |
D | PermissionMonitor.java | 166 final int uid = intent.getIntExtra(Intent.EXTRA_UID, -1); 170 onPackageAdded(packageName, uid); 172 final int uid = intent.getIntExtra(Intent.EXTRA_UID, -1); 176 onPackageRemoved(packageName, uid); 290 ? UserHandle.getAppId(app.applicationInfo.uid) : INVALID_UID; in updateAllApps() 298 private static boolean hasSdkSandbox(final int uid) { in hasSdkSandbox() argument 299 return SdkLevel.isAtLeastT() && Process.isApplicationUid(uid); in hasSdkSandbox() 307 final int uid = app.applicationInfo != null ? app.applicationInfo.uid : INVALID_UID; in makeUidsNetworkPerm() local 308 if (uid < 0) { in makeUidsNetworkPerm() 312 if (isHigherNetworkPermission(permission, uidsPerm.get(uid, PERMISSION_NONE))) { in makeUidsNetworkPerm() [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/ |
D | NotificationBackend.java | 91 row.uid = app.uid; in loadAppRow() 99 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow() 100 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow() 101 row.bubblePreference = getBubblePreference(row.pkg, row.uid); in loadAppRow() 102 row.userId = UserHandle.getUserId(row.uid); in loadAppRow() 103 row.blockedChannelCount = getBlockedChannelCount(row.pkg, row.uid); in loadAppRow() 104 row.channelCount = getChannelCount(row.pkg, row.uid); in loadAppRow() 118 sINM.isImportanceLocked(app.packageName, app.applicationInfo.uid); in recordCanBeBlocked() 179 public boolean getNotificationsBanned(String pkg, int uid) { in getNotificationsBanned() argument 181 final boolean enabled = sINM.areNotificationsEnabledForPackage(pkg, uid); in getNotificationsBanned() [all …]
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataSaverBackend.java | 81 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/ |
D | StorageAccessMetrics.java | 73 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/ |
D | PackageInfoResolver.cpp | 56 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 …]
|
D | UidStatsCollector.cpp | 37 uid_t UidStats::uid() const { in uid() function in android::automotive::watchdog::UidStats 38 return static_cast<uid_t>(packageInfo.packageIdentifier.uid); in uid() 45 return std::to_string(packageInfo.packageIdentifier.uid); in genericPackageName() 82 for (const auto& [uid, _] : uidIoStatsByUid) { in process() 83 uidSet.insert(uid); in process() 85 for (const auto& [uid, _] : uidProcStatsByUid) { in process() 86 uidSet.insert(uid); in process() 88 for (const auto& [uid, _] : cpuTimeMillisByUid) { in process() 89 uidSet.insert(uid); in process() 92 for (const auto& uid : uidSet) { in process() local [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/ |
D | WifiAwareServiceImpl.java | 186 int uid = getMockableCallingUid(); in enableInstantCommunicationMode() local 187 if (uid != Process.SHELL_UID && uid != Process.ROOT_UID) { in enableInstantCommunicationMode() 188 mWifiPermissionsUtil.checkPackage(uid, callingPackage); in enableInstantCommunicationMode() 189 if (!mWifiPermissionsUtil.isSystem(callingPackage, uid) in enableInstantCommunicationMode() 190 && !mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in enableInstantCommunicationMode() 191 Log.i(TAG, "enableInstantCommunicationMode not allowed for uid=" + uid); in enableInstantCommunicationMode() 213 int uid = getMockableCallingUid(); in setAwareParams() local 214 if (!mWifiPermissionsUtil.checkConfigOverridePermission(uid)) { in setAwareParams() 216 + "(uid = " + uid + ")"); in setAwareParams() 228 final int uid = getMockableCallingUid(); in connect() local [all …]
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ForegroundUtils.java | 59 void onUidToBackground(int uid); in onUidToBackground() argument 86 public boolean registerUidToBackgroundCallback(Callback callback, int uid) { in registerUidToBackgroundCallback() argument 88 if (!isInForegroundLocked(uid)) { in registerUidToBackgroundCallback() 93 List<Callback> callbacks = mBackgroundCallbacks.get(uid, new ArrayList<Callback>()); in registerUidToBackgroundCallback() 95 mBackgroundCallbacks.put(uid, callbacks); in registerUidToBackgroundCallback() 104 public boolean isInForeground(int uid) { in isInForeground() argument 106 return isInForegroundLocked(uid); in isInForeground() 126 private boolean isInForegroundLocked(int uid) { in isInForegroundLocked() argument 127 if (mForegroundUids.get(uid)) { in isInForegroundLocked() 130 if (DBG) Log.d(TAG, "Checking UID:" + Integer.toString(uid)); in isInForegroundLocked() [all …]
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/ |
D | BatteryUtils.java | 133 public long getProcessTimeMs(@StatusType int type, @Nullable BatteryStats.Uid uid, in getProcessTimeMs() argument 135 if (uid == null) { in getProcessTimeMs() 141 return getScreenUsageTimeMs(uid, which); in getProcessTimeMs() 143 return getProcessForegroundTimeMs(uid, which); in getProcessTimeMs() 145 return getProcessBackgroundTimeMs(uid, which); in getProcessTimeMs() 147 return getProcessForegroundTimeMs(uid, which) in getProcessTimeMs() 148 + getProcessBackgroundTimeMs(uid, which); in getProcessTimeMs() 153 private long getScreenUsageTimeMs(BatteryStats.Uid uid, int which, long rawRealTimeUs) { in getScreenUsageTimeMs() argument 155 Log.v(TAG, "package: " + mPackageManager.getNameForUid(uid.getUid())); in getScreenUsageTimeMs() 159 final long localTime = uid.getProcessStateTime(type, rawRealTimeUs, which); in getScreenUsageTimeMs() [all …]
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/ |
D | EventLogHelper.java | 147 public static void writeCarUserServiceSetLifecycleListener(int uid, in writeCarUserServiceSetLifecycleListener() argument 149 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_SET_LIFECYCLE_LISTENER, uid, packageName); in writeCarUserServiceSetLifecycleListener() 153 public static void writeCarUserServiceResetLifecycleListener(int uid, in writeCarUserServiceResetLifecycleListener() argument 155 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_RESET_LIFECYCLE_LISTENER, uid, packageName); in writeCarUserServiceResetLifecycleListener() 194 public static void writeCarUserServiceGetUserAuthReq(int uid, int userId, int numberTypes) { in writeCarUserServiceGetUserAuthReq() argument 195 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_GET_USER_AUTH_REQ, uid, userId, numberTypes); in writeCarUserServiceGetUserAuthReq() 209 public static void writeCarUserServiceSwitchUserFromHalReq(int requestId, int uid) { in writeCarUserServiceSwitchUserFromHalReq() argument 210 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_SWITCH_USER_FROM_HAL_REQ, requestId, uid); in writeCarUserServiceSwitchUserFromHalReq() 214 public static void writeCarUserServiceSetUserAuthReq(int uid, int userId, in writeCarUserServiceSetUserAuthReq() argument 216 EventLog.writeEvent(EventLogTags.CAR_USER_SVC_SET_USER_AUTH_REQ, uid, userId, in writeCarUserServiceSetUserAuthReq() [all …]
|
D | EventLogTags.logtags | 72 150104 car_user_svc_set_lifecycle_listener (uid|1),(package_name|3) 73 150105 car_user_svc_reset_lifecycle_listener (uid|1),(package_name|3) 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),(package_name|3),(event_type|1),(from_use… 116 150171 car_user_mgr_add_listener (uid|1),(package_name|3),(has_filter|1) 117 150172 car_user_mgr_remove_listener (uid|1),(package_name|3) 118 150173 car_user_mgr_disconnected (uid|1) 119 150174 car_user_mgr_switch_user_req (uid|1),(user_id|1) [all …]
|
/packages/providers/MediaProvider/jni/ |
D | MediaProviderWrapper.cpp | 53 inline bool shouldBypassMediaProvider(uid_t uid) { in shouldBypassMediaProvider() argument 54 return uid == SHELL_UID || uid == ROOT_UID; in shouldBypassMediaProvider() 80 const string& path, uid_t uid) { in insertFileInternal() argument 82 int res = env->CallIntMethod(media_provider_object, mid_insert_file, j_path.get(), uid); in insertFileInternal() 91 const string& path, uid_t uid) { in deleteFileInternal() argument 93 int res = env->CallIntMethod(media_provider_object, mid_delete_file, j_path.get(), uid); in deleteFileInternal() 102 jmethodID mid_is_diraccess_allowed, const string& path, uid_t uid, in isDirAccessAllowedInternal() argument 105 int res = env->CallIntMethod(media_provider_object, mid_is_diraccess_allowed, j_path.get(), uid, in isDirAccessAllowedInternal() 115 jmethodID mid_is_uid_allowed_path_access_, uid_t uid, in isUidAllowedAccessToDataOrObbPathInternal() argument 118 bool res = env->CallBooleanMethod(media_provider_object, mid_is_uid_allowed_path_access_, uid, in isUidAllowedAccessToDataOrObbPathInternal() [all …]
|
D | MediaProviderWrapper.h | 41 FileOpenResult(const int status, const int uid, const uid_t transforms_uid, const int fd, in FileOpenResult() 44 uid(uid), in FileOpenResult() 50 const int uid; member 61 FileLookupResult(int transforms, int transforms_reason, uid_t uid, bool transforms_complete, in FileLookupResult() 65 uid(uid), in FileLookupResult() 80 const uid_t uid; member 105 const std::string& io_path, uid_t uid, 116 int InsertFile(const std::string& path, uid_t uid); 125 int DeleteFile(const std::string& path, uid_t uid); 140 std::vector<std::shared_ptr<DirectoryEntry>> GetDirectoryEntries(uid_t uid, [all …]
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | LocalCallingIdentity.java | 71 public final int uid; field in LocalCallingIdentity 79 private LocalCallingIdentity(Context context, int pid, int uid, UserHandle user, in LocalCallingIdentity() argument 83 this.uid = uid; in LocalCallingIdentity() 142 int uid) { in fromExternal() argument 143 final String[] sharedPackageNames = context.getPackageManager().getPackagesForUid(uid); in fromExternal() 145 throw new IllegalArgumentException("UID " + uid + " has no associated package"); in fromExternal() 147 LocalCallingIdentity ident = fromExternal(context, userCache, uid, sharedPackageNames[0], in fromExternal() 151 if (uid == Process.SHELL_UID) { in fromExternal() 163 int uid, String packageName, @Nullable String attributionTag) { in fromExternal() argument 164 UserHandle user = UserHandle.getUserHandleForUid(uid); in fromExternal() [all …]
|
/packages/services/Car/tools/ioanalyze/ |
D | analyzer.py | 11 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/tests/cts/net/src/android/net/cts/ |
D | NetworkStatsBinderTest.java | 70 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/Connectivity/framework-t/src/android/net/ |
D | TrafficStats.java | 252 + Integer.toHexString(tagInfo.tag) + ", statsUid=" + tagInfo.uid); in tag() 258 if (tagInfo.tag == -1 && tagInfo.uid == -1) return; in tag() 259 final int errno = native_tagSocketFd(fd, tagInfo.tag, tagInfo.uid); in tag() 263 + tagInfo.uid + ") failed with errno" + errno); in tag() 274 if (tagInfo.tag == -1 && tagInfo.uid == -1) return; in untag() 283 private static native int native_tagSocketFd(FileDescriptor fd, int tag, int uid); in native_tagSocketFd() argument 288 public int uid = -1; field in TrafficStats.UidTag 421 public static void setThreadStatsUid(int uid) { in setThreadStatsUid() argument 422 sThreadUidTag.get().uid = uid; in setThreadStatsUid() 433 return sThreadUidTag.get().uid; in getThreadStatsUid() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | SystemActivityMonitoringService.java | 92 public boolean isInForeground(int pid, int uid) { in isInForeground() argument 94 Set<Integer> pids = mForegroundUidPids.get(uid); in isInForeground() 105 private void handleForegroundActivitiesChanged(int pid, int uid, boolean foregroundActivities) { in handleForegroundActivitiesChanged() argument 108 Set<Integer> pids = mForegroundUidPids.get(uid); in handleForegroundActivitiesChanged() 111 mForegroundUidPids.put(uid, pids); in handleForegroundActivitiesChanged() 115 doHandlePidGoneLocked(pid, uid); in handleForegroundActivitiesChanged() 120 private void handleProcessDied(int pid, int uid) { in handleProcessDied() argument 122 doHandlePidGoneLocked(pid, uid); in handleProcessDied() 127 private void doHandlePidGoneLocked(int pid, int uid) { in doHandlePidGoneLocked() argument 128 Set<Integer> pids = mForegroundUidPids.get(uid); in doHandlePidGoneLocked() [all …]
|
/packages/modules/Connectivity/service/native/ |
D | TrafficControllerTest.cpp | 113 void populateFakeStats(uint64_t cookie, uint32_t uid, uint32_t tag, StatsKey* key) { in populateFakeStats() argument 114 UidTagValue cookieMapkey = {.uid = (uint32_t)uid, .tag = tag}; in populateFakeStats() 116 *key = {.uid = uid, .tag = tag, .counterSet = TEST_COUNTERSET, .ifaceIndex = 1}; in populateFakeStats() 121 EXPECT_RESULT_OK(mFakeAppUidStatsMap.writeValue(uid, statsMapValue, BPF_ANY)); in populateFakeStats() 127 uint32_t uid = TEST_UID; in checkUidOwnerRuleForChain() local 128 EXPECT_EQ(0, mTc.changeUidOwnerRule(chain, uid, DENY, DENYLIST)); in checkUidOwnerRuleForChain() 129 Result<UidOwnerValue> value = mFakeUidOwnerMap.readValue(uid); in checkUidOwnerRuleForChain() 133 uid = TEST_UID2; in checkUidOwnerRuleForChain() 134 EXPECT_EQ(0, mTc.changeUidOwnerRule(chain, uid, ALLOW, ALLOWLIST)); in checkUidOwnerRuleForChain() 135 value = mFakeUidOwnerMap.readValue(uid); in checkUidOwnerRuleForChain() [all …]
|
D | TrafficController.cpp | 114 bool TrafficController::hasUpdateDeviceStatsPermission(uid_t uid) { in hasUpdateDeviceStatsPermission() argument 117 uint32_t appId = uid % PER_USER_RANGE; in hasUpdateDeviceStatsPermission() 263 Status TrafficController::updateOwnerMapEntry(UidOwnerMatchType match, uid_t uid, FirewallRule rule, in updateOwnerMapEntry() argument 267 RETURN_IF_NOT_OK(addRule(uid, match)); in updateOwnerMapEntry() 269 RETURN_IF_NOT_OK(removeRule(uid, match)); in updateOwnerMapEntry() 277 Status TrafficController::removeRule(uint32_t uid, UidOwnerMatchType match) { in removeRule() argument 278 auto oldMatch = mUidOwnerMap.readValue(uid); in removeRule() 285 RETURN_IF_NOT_OK(mUidOwnerMap.deleteValue(uid)); in removeRule() 287 RETURN_IF_NOT_OK(mUidOwnerMap.writeValue(uid, newMatch, BPF_ANY)); in removeRule() 290 return statusFromErrno(ENOENT, StringPrintf("uid: %u does not exist in map", uid)); in removeRule() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 942 private boolean checkNetworkSettingsPermission(int pid, int uid) { in checkNetworkSettingsPermission() argument 943 return mContext.checkPermission(android.Manifest.permission.NETWORK_SETTINGS, pid, uid) in checkNetworkSettingsPermission() 947 private boolean checkNetworkSetupWizardPermission(int pid, int uid) { in checkNetworkSetupWizardPermission() argument 948 return mContext.checkPermission(android.Manifest.permission.NETWORK_SETUP_WIZARD, pid, uid) in checkNetworkSetupWizardPermission() 952 private boolean checkMainlineNetworkStackPermission(int pid, int uid) { in checkMainlineNetworkStackPermission() argument 953 return mContext.checkPermission(NetworkStack.PERMISSION_MAINLINE_NETWORK_STACK, pid, uid) in checkMainlineNetworkStackPermission() 957 private boolean checkNetworkStackPermission(int pid, int uid) { in checkNetworkStackPermission() argument 958 return mContext.checkPermission(android.Manifest.permission.NETWORK_STACK, pid, uid) in checkNetworkStackPermission() 962 private boolean checkNetworkManagedProvisioningPermission(int pid, int uid) { in checkNetworkManagedProvisioningPermission() argument 964 pid, uid) == PackageManager.PERMISSION_GRANTED; in checkNetworkManagedProvisioningPermission() [all …]
|
/packages/services/Car/service/src/com/android/car/watchdog/ |
D | PackageInfoHandler.java | 78 for (int uid : uids) { in getNamesForUids() 79 String genericPackageName = mGenericPackageNameByUid.get(uid, null); in getNamesForUids() 81 genericPackageNameByUid.append(uid, genericPackageName); in getNamesForUids() 83 unmappedUids.add(uid); in getNamesForUids() 97 int uid = unmappedUids.get(i); in getNamesForUids() local 99 mGenericPackageNameByUid.append(uid, genericPackageName); in getNamesForUids() 100 genericPackageNameByUid.append(uid, genericPackageName); in getNamesForUids() 105 populateSharedPackagesLocked(uid, genericPackageName); in getNamesForUids() 134 public List<String> getPackagesForUid(int uid, String genericPackageName) { in getPackagesForUid() argument 139 populateSharedPackagesLocked(uid, genericPackageName); in getPackagesForUid() [all …]
|
/packages/modules/StatsD/statsd/src/ |
D | StatsService.cpp | 72 uid_t uid = AIBinder_getCallingUid(); in checkPermission() local 73 return checkPermissionForIds(permission, pid, uid); in checkPermission() 77 uid_t uid = AIBinder_getCallingUid(); in checkUid() local 78 if (uid == expectedUid || uid == AID_ROOT) { in checkUid() 82 StringPrintf("UID %d is not expected UID %d", uid, expectedUid)); in checkUid() 86 #define ENFORCE_UID(uid) { \ argument 87 Status status = checkUid((uid)); \ 147 [this](const int& uid, const vector<int64_t>& activeConfigs) { in __anon7d48030d0702() argument 149 mConfigManager->GetActiveConfigsChangedReceiver(uid); in __anon7d48030d0702() 151 VLOG("Could not find receiver for uid %d", uid); in __anon7d48030d0702() [all …]
|