/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationEnforcer.java | 49 public void assertInternal(int callingUid) { in assertInternal() argument 50 switch (callingUid) { in assertInternal() 57 "Caller " + callingUid + " is not allowed to change internal state"); in assertInternal() 65 public void assertApprovedQuerent(int callingUid, @NonNull DomainVerificationProxy proxy) { in assertApprovedQuerent() argument 66 switch (callingUid) { in assertApprovedQuerent() 72 if (!proxy.isCallerVerifier(callingUid)) { in assertApprovedQuerent() 74 Binder.getCallingPid(), callingUid, in assertApprovedQuerent() 75 "Caller " + callingUid in assertApprovedQuerent() 81 Binder.getCallingPid(), callingUid, in assertApprovedQuerent() 82 "Caller " + callingUid + " does not hold " in assertApprovedQuerent() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | ProviderAccessStats.java | 49 private void incrementStats(int callingUid, SparseLongArray stats) { in incrementStats() argument 51 stats.put(callingUid, stats.get(callingUid) + 1); in incrementStats() 52 mAllCallingUids.put(callingUid, true); in incrementStats() 62 private void incrementStats(int callingUid, boolean inBatch, in incrementStats() argument 64 incrementStats(callingUid, inBatch ? statsInBatch : statsNonBatch); in incrementStats() 67 public final void incrementInsertStats(int callingUid, boolean inBatch) { in incrementInsertStats() argument 68 incrementStats(callingUid, inBatch, mInsertStats, mInsertInBatchStats); in incrementInsertStats() 71 public final void incrementUpdateStats(int callingUid, boolean inBatch) { in incrementUpdateStats() argument 72 incrementStats(callingUid, inBatch, mUpdateStats, mUpdateInBatchStats); in incrementUpdateStats() 75 public final void incrementDeleteStats(int callingUid, boolean inBatch) { in incrementDeleteStats() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SafeActivityOptions.java | 90 static SafeActivityOptions fromBundle(Bundle bOptions, int callingPid, int callingUid) { in fromBundle() argument 93 callingPid, callingUid) in fromBundle() 115 private SafeActivityOptions(@Nullable ActivityOptions options, int callingPid, int callingUid) { in SafeActivityOptions() argument 117 mOriginalCallingUid = callingUid; in SafeActivityOptions() 209 int callingPid, int callingUid) { in setCallingPidUidForRemoteAnimationAdapter() argument 218 adapter.setCallingPidUid(callingPid, callingUid); in setCallingPidUidForRemoteAnimationAdapter() 272 ActivityOptions options, int callingPid, int callingUid) { in checkPermissions() argument 276 && !supervisor.mRecentTasks.isCallerRecents(callingUid)) { in checkPermissions() 278 START_TASKS_FROM_RECENTS, callingPid, callingUid); in checkPermissions() 282 + ", uid=" + callingUid + ") with launchTaskId=" in checkPermissions() [all …]
|
/frameworks/av/services/camera/libcameraservice/utils/ |
D | AttributionAndPermissionUtils.h | 125 static AttributionSourceState buildAttributionSource(int callingPid, int callingUid) { in buildAttributionSource() argument 128 attributionSource.uid = callingUid; in buildAttributionSource() 132 static AttributionSourceState buildAttributionSource(int callingPid, int callingUid, in buildAttributionSource() argument 134 AttributionSourceState attributionSource = buildAttributionSource(callingPid, callingUid); in buildAttributionSource() 139 static AttributionSourceState buildAttributionSource(int callingPid, int callingUid, in buildAttributionSource() argument 141 AttributionSourceState attributionSource = buildAttributionSource(callingPid, callingUid, in buildAttributionSource() 169 bool hasPermissionsForCamera(int callingPid, int callingUid, int32_t deviceId) const { in hasPermissionsForCamera() argument 170 return hasPermissionsForCamera(std::string(), callingPid, callingUid, deviceId); in hasPermissionsForCamera() 173 bool hasPermissionsForCamera(int callingPid, int callingUid, in hasPermissionsForCamera() argument 175 return hasPermissionsForCamera(std::string(), callingPid, callingUid, packageName, in hasPermissionsForCamera() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ComputerEngine.java | 649 int userId, int callingUid, int callingPid, in queryIntentServicesInternal() argument 652 enforceCrossUserOrProfilePermission(callingUid, in queryIntentServicesInternal() 657 final String instantAppPkgName = getInstantAppPackageName(callingUid); in queryIntentServicesInternal() 658 flags = updateFlagsForResolve(flags, userId, callingUid, includeInstantApps, in queryIntentServicesInternal() 662 false /* isReceiver */, resolveForStart, callingUid, callingPid); in queryIntentServicesInternal() 705 Process.SYSTEM_UID), callingUid, userId); in queryIntentServicesInternal() 716 userId, callingUid, instantAppPkgName); in queryIntentServicesInternal() 731 int callingUid, String instantAppPkgName) { in queryIntentServicesInternalBody() argument 741 resolveInfos, instantAppPkgName, userId, callingUid); in queryIntentServicesInternalBody() 752 resolveInfos, instantAppPkgName, userId, callingUid); in queryIntentServicesInternalBody() [all …]
|
D | Computer.java | 123 int userId, int callingUid, int callingPid, in queryIntentServicesInternal() argument 201 PackageStateInternal getPackageStateInternal(String packageName, int callingUid); in getPackageStateInternal() argument 202 PackageStateInternal getPackageStateFiltered(@NonNull String packageName, int callingUid, in getPackageStateFiltered() argument 209 String getInstantAppPackageName(int callingUid); in getInstantAppPackageName() argument 214 boolean canViewInstantApps(int callingUid, int userId); in canViewInstantApps() argument 240 boolean isInstantAppInternal(String packageName, @UserIdInt int userId, int callingUid); in isInstantAppInternal() argument 242 boolean shouldFilterApplication(@Nullable PackageStateInternal ps, int callingUid, in shouldFilterApplication() argument 245 boolean shouldFilterApplication(@Nullable PackageStateInternal ps, int callingUid, in shouldFilterApplication() argument 248 boolean shouldFilterApplication(@Nullable PackageStateInternal ps, int callingUid, in shouldFilterApplication() argument 250 boolean shouldFilterApplication(@NonNull SharedUserSetting sus, int callingUid, in shouldFilterApplication() argument [all …]
|
D | SuspendPackageHelper.java | 100 @NonNull UserPackage suspendingPackage, @UserIdInt int targetUserId, int callingUid, in setPackagesSuspended() argument 106 && !isSuspendAllowedForUser(snapshot, targetUserId, callingUid)) { in setPackagesSuspended() 122 ? canSuspendPackageForUser(snapshot, packageNames, targetUserId, callingUid) in setPackagesSuspended() 136 || snapshot.shouldFilterApplication(packageState, callingUid, targetUserId)) { in setPackagesSuspended() 227 @NonNull String[] packageNames, @UserIdInt int targetUserId, int callingUid) { in getUnsuspendablePackagesForUser() argument 228 if (!isSuspendAllowedForUser(snapshot, targetUserId, callingUid)) { in getUnsuspendablePackagesForUser() 234 callingUid); in getUnsuspendablePackagesForUser() 242 packageNames[i], callingUid, targetUserId); in getUnsuspendablePackagesForUser() 263 int callingUid) { in getSuspendedPackageAppExtras() argument 264 final PackageStateInternal ps = snapshot.getPackageStateInternal(packageName, callingUid); in getSuspendedPackageAppExtras() [all …]
|
D | AppsFilterLocked.java | 76 protected boolean isImplicitlyQueryable(int callingUid, int targetUid) { in isImplicitlyQueryable() argument 78 return super.isImplicitlyQueryable(callingUid, targetUid); in isImplicitlyQueryable() 83 protected boolean isRetainedImplicitlyQueryable(int callingUid, int targetUid) { in isRetainedImplicitlyQueryable() argument 85 return super.isRetainedImplicitlyQueryable(callingUid, targetUid); in isRetainedImplicitlyQueryable() 104 protected boolean shouldFilterApplicationUsingCache(int callingUid, int appId, int userId) { in shouldFilterApplicationUsingCache() argument 106 return super.shouldFilterApplicationUsingCache(callingUid, appId, userId); in shouldFilterApplicationUsingCache()
|
D | PackageManagerInternalBase.java | 104 @PackageManager.ApplicationInfoFlagsBits long flags, int userId, int callingUid) { in getInstalledApplications() argument 105 return snapshot().getInstalledApplications(flags, userId, callingUid, in getInstalledApplications() 112 @PackageManager.ApplicationInfoFlagsBits long flags, int userId, int callingUid) { in getInstalledApplicationsCrossUser() argument 113 return snapshot().getInstalledApplications(flags, userId, callingUid, in getInstalledApplicationsCrossUser() 131 public final boolean filterAppAccess(AndroidPackage pkg, int callingUid, int userId) { in filterAppAccess() argument 132 return snapshot().filterAppAccess(pkg, callingUid, userId); in filterAppAccess() 137 public final boolean filterAppAccess(String packageName, int callingUid, int userId, in filterAppAccess() argument 139 return snapshot().filterAppAccess(packageName, callingUid, userId, filterUninstalled); in filterAppAccess() 144 public final boolean filterAppAccess(int uid, int callingUid) { in filterAppAccess() argument 145 return snapshot().filterAppAccess(uid, callingUid); in filterAppAccess() [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/interactive/ |
D | TvInteractiveAppManagerService.java | 808 private int resolveCallingUserId(int callingPid, int callingUid, int requestedUserId, in resolveCallingUserId() argument 810 return ActivityManager.handleIncomingUser(callingPid, callingUid, requestedUserId, false, in resolveCallingUserId() 842 IBinder sessionToken, int callingUid, int userId) { in getAdSessionStateLocked() argument 844 return getAdSessionStateLocked(sessionToken, callingUid, userState); in getAdSessionStateLocked() 848 private AdSessionState getAdSessionStateLocked(IBinder sessionToken, int callingUid, in getAdSessionStateLocked() argument 855 if (callingUid != Process.SYSTEM_UID && callingUid != sessionState.mCallingUid) { in getAdSessionStateLocked() 857 + " from uid " + callingUid); in getAdSessionStateLocked() 864 IBinder sessionToken, int callingUid, int userId) { in getAdSessionLocked() argument 865 return getAdSessionLocked(getAdSessionStateLocked(sessionToken, callingUid, userId)); in getAdSessionLocked() 879 private SessionState getSessionStateLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionStateLocked() argument [all …]
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreManagerService.java | 349 int callingUid, String callingPackage) { in createSessionInternal() argument 351 final int sessionsCount = getSessionsCountLocked(callingUid, callingPackage); in createSessionInternal() 359 sessionId, blobHandle, callingUid, callingPackage, in createSessionInternal() 361 addSessionForUserLocked(session, UserHandle.getUserId(callingUid)); in createSessionInternal() 364 + "; callingUid=" + callingUid + ", callingPackage=" + callingPackage); in createSessionInternal() 372 int callingUid, String callingPackage) { in openSessionInternal() argument 376 UserHandle.getUserId(callingUid)).get(sessionId); in openSessionInternal() 377 if (session == null || !session.hasAccess(callingUid, callingPackage) in openSessionInternal() 387 int callingUid, String callingPackage) { in abandonSessionInternal() argument 390 callingUid, callingPackage); in abandonSessionInternal() [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | InstallStart.java | 87 int callingUid = getLaunchedFromUid(); in onCreate() local 88 if (callingUid == Process.INVALID_UID) { in onCreate() 96 int originatingUid = callingUid; in onCreate() 119 if (callingUid == Process.INVALID_UID && sourceInfo == null) { in onCreate() 125 -1, callingUid) == PackageManager.PERMISSION_GRANTED; in onCreate() 127 mPackageManager, callingUid) != null; in onCreate() 132 checkPermission(Manifest.permission.INSTALL_PACKAGES, /* pid= */ -1, callingUid) in onCreate() 138 && callingUid != Process.INVALID_UID) { in onCreate() 139 final int targetSdkVersion = getMaxTargetSdkVersionForUid(this, callingUid); in onCreate() 141 Log.e(TAG, "Cannot get target sdk version for uid " + callingUid); in onCreate() [all …]
|
/frameworks/base/services/core/java/com/android/server/content/ |
D | ContentService.java | 433 final int callingUid = Binder.getCallingUid(); in notifyChange() local 446 final int resolvedUserId = handleIncomingUser(uri, callingPid, callingUid, in notifyChange() 461 + callingUid + ": " + msg); in notifyChange() 495 callingUid, in notifyChange() 496 authority, getSyncExemptionForCaller(callingUid), in notifyChange() 497 callingUid, callingPid, callingPackage); in notifyChange() 612 final int callingUid = Binder.getCallingUid(); in requestSync() local 615 if (!hasAccountAccess(true, account, callingUid)) { in requestSync() 618 if (!hasAuthorityAccess(authority, callingUid, userId)) { in requestSync() 622 validateExtras(callingUid, extras); in requestSync() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | BackgroundActivityStartControllerExemptionTests.java | 210 int callingUid = REGULAR_UID_1; in testNoExemption() local 221 BackgroundActivityStartController.BalState balState = mController.new BalState(callingUid, in testNoExemption() 246 int callingUid = REGULAR_UID_1; in testCaller_appHasVisibleWindow() local 253 when(mService.hasActiveVisibleWindow(eq(callingUid))).thenReturn(true); in testCaller_appHasVisibleWindow() 261 BackgroundActivityStartController.BalState balState = mController.new BalState(callingUid, in testCaller_appHasVisibleWindow() 278 int callingUid = REGULAR_UID_1; in testRealCaller_appHasVisibleWindow() local 293 BackgroundActivityStartController.BalState balState = mController.new BalState(callingUid, in testRealCaller_appHasVisibleWindow() 317 int callingUid = REGULAR_UID_1; in testCaller_appAllowedByBLPC() local 333 BackgroundActivityStartController.BalState balState = mController.new BalState(callingUid, in testCaller_appAllowedByBLPC() 350 int callingUid = REGULAR_UID_1; in testRealCaller_appAllowedByBLPC() local [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationDelegate.java | 29 void onClearAll(int callingUid, int callingPid, int userId); in onClearAll() argument 30 void onNotificationClick(int callingUid, int callingPid, String key, in onNotificationClick() argument 32 void onNotificationActionClick(int callingUid, int callingPid, String key, int actionIndex, in onNotificationActionClick() argument 34 void onNotificationClear(int callingUid, int callingPid, in onNotificationClear() argument 39 void onNotificationError(int callingUid, int callingPid, in onNotificationError() argument 70 int callingUid); in grantInlineReplyUriPermission() argument 75 void clearInlineReplyUriPermissions(String key, int callingUid); in clearInlineReplyUriPermissions() argument
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | LegacyPermissionManagerService.java | 196 int callingUid = mInjector.getCallingUid(); in verifyCallerCanCheckAccess() local 198 if (UserHandle.getAppId(callingUid) >= Process.FIRST_APPLICATION_UID && (callingUid != uid in verifyCallerCanCheckAccess() 208 UserHandle.getAppId(callingUid) >= Process.FIRST_APPLICATION_UID in verifyCallerCanCheckAccess() 209 ? callingUid : uid, "Package uid mismatch"); in verifyCallerCanCheckAccess() 216 callingUid, callingPid, packageName, uid, pid, message); in verifyCallerCanCheckAccess() 265 final int callingUid = Binder.getCallingUid(); in grantDefaultPermissionsToActiveLuiApp() local 267 "grantDefaultPermissionsToActiveLuiApp", callingUid); in grantDefaultPermissionsToActiveLuiApp() 274 final int callingUid = Binder.getCallingUid(); in revokeDefaultPermissionsFromLuiApps() local 276 "revokeDefaultPermissionsFromLuiApps", callingUid); in revokeDefaultPermissionsFromLuiApps() 283 final int callingUid = Binder.getCallingUid(); in grantDefaultPermissionsToEnabledImsServices() local [all …]
|
/frameworks/base/services/core/java/com/android/server/tv/ |
D | TvInputManagerService.java | 723 private SessionState getSessionStateLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionStateLocked() argument 725 return getSessionStateLocked(sessionToken, callingUid, userState); in getSessionStateLocked() 730 int callingUid, UserState userState) { in getSessionStateLocked() argument 736 if (callingUid != Process.SYSTEM_UID && callingUid != sessionState.callingUid) { in getSessionStateLocked() 738 + " from uid " + callingUid); in getSessionStateLocked() 744 private ITvInputSession getSessionLocked(IBinder sessionToken, int callingUid, int userId) { in getSessionLocked() argument 745 return getSessionLocked(getSessionStateLocked(sessionToken, callingUid, userId)); in getSessionLocked() 758 private int resolveCallingUserId(int callingPid, int callingUid, int requestedUserId, in resolveCallingUserId() argument 760 return ActivityManager.handleIncomingUser(callingPid, callingUid, requestedUserId, false, in resolveCallingUserId() 873 private SessionState releaseSessionLocked(IBinder sessionToken, int callingUid, int userId) { in releaseSessionLocked() argument [all …]
|
/frameworks/av/media/module/libmediatranscoding/ |
D | TranscodingClientManager.cpp | 133 int32_t callingUid = AIBinder_getCallingUid(); in submitRequest() local 140 in_clientUid = callingUid; in submitRequest() 143 } else if (in_clientUid != callingUid && !owner->isTrustedCaller(callingPid, callingUid)) { in submitRequest() 146 in_clientPid, in_clientUid, callingUid); in submitRequest() 150 in_clientPid, in_clientUid, callingUid); in submitRequest() 159 } else if (in_clientPid != callingPid && !owner->isTrustedCaller(callingPid, callingUid)) { in submitRequest() 162 in_clientPid, in_clientUid, callingUid); in submitRequest() 166 in_clientPid, in_clientUid, callingUid); in submitRequest() 171 *_aidl_return = owner->mSessionController->submit(mClientId, sessionId, callingUid, in submitRequest() 241 int32_t callingUid = AIBinder_getCallingUid(); in addClientUid() local [all …]
|
/frameworks/base/services/core/java/com/android/server/speech/ |
D | SpeechRecognitionManagerServiceImpl.java | 221 IBinder clientToken, int callingUid, in handleClientDeath() argument 227 decrementSessionCountForUidLocked(callingUid); in handleClientDeath() 229 removeService(callingUid, service); in handleClientDeath() 273 int callingUid, ComponentName serviceComponent) { in createService() argument 276 mRemoteServicesByUid.get(callingUid); in createService() 280 Slog.w(TAG, "Number of remote services exceeded for uid: " + callingUid); in createService() 283 callingUid); in createService() 287 if (getSessionCountByUidLocked(callingUid) == MAX_CONCURRENT_CONNECTIONS_BY_CLIENT) { in createService() 288 Slog.w(TAG, "Number of sessions exceeded for uid: " + callingUid); in createService() 291 callingUid); in createService() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | BroadcastSkipPolicy.java | 114 if (!mService.validateAssociationAllowedLocked(r.callerPackage, r.callingUid, in shouldSkipMessage() 119 if (!mService.mIntentFirewall.checkBroadcast(r.intent, r.callingUid, in shouldSkipMessage() 125 r.callingPid, r.callingUid, info.activityInfo.applicationInfo.uid, in shouldSkipMessage() 140 r.callingUid, r.callerPackage, r.callerFeatureId, in shouldSkipMessage() 161 && r.callingUid != info.activityInfo.applicationInfo.uid) { in shouldSkipMessage() 166 + " (uid " + r.callingUid + ")" in shouldSkipMessage() 171 && r.callingUid != info.activityInfo.applicationInfo.uid) { in shouldSkipMessage() 177 + " (uid " + r.callingUid + ")"; in shouldSkipMessage() 286 + " (uid " + r.callingUid + ")"; in shouldSkipMessage() 325 + " (uid " + r.callingUid + ")"; in shouldSkipMessage() [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 510 int callingUid = Binder.getCallingUid(); in addAccountExplicitlyWithVisibility() local 513 Log.v(TAG, "addAccountExplicitly: caller's uid=" + callingUid + ", pid=" in addAccountExplicitlyWithVisibility() 516 if (!isAccountManagedByCaller(account.type, callingUid, userId)) { in addAccountExplicitlyWithVisibility() 518 + "accounts of type: %s", callingUid, opPackageName, account.type); in addAccountExplicitlyWithVisibility() 531 return addAccountInternal(accounts, account, password, extras, callingUid, in addAccountExplicitlyWithVisibility() 541 int callingUid = Binder.getCallingUid(); in getAccountsAndVisibilityForPackage() local 543 boolean isSystemUid = UserHandle.isSameApp(callingUid, Process.SYSTEM_UID); in getAccountsAndVisibilityForPackage() 544 List<String> managedTypes = getTypesForCaller(callingUid, userId, isSystemUid); in getAccountsAndVisibilityForPackage() 550 + callingUid + " with packageName=" + packageName); in getAccountsAndVisibilityForPackage() 560 return getAccountsAndVisibilityForPackage(packageName, managedTypes, callingUid, in getAccountsAndVisibilityForPackage() [all …]
|
/frameworks/base/telephony/common/android/telephony/ |
D | LocationAccessPolicy.java | 63 public final int callingUid; field in LocationAccessPolicy.LocationPermissionQuery 71 int callingUid, int callingPid, int minSdkVersionForCoarse, in LocationPermissionQuery() argument 75 this.callingUid = callingUid; in LocationPermissionQuery() 114 public Builder setCallingUid(int callingUid) { in setCallingUid() argument 115 mCallingUid = callingUid; in setCallingUid() 262 query.callingUid, permissionToCheck); in checkAppLocationPermissionHelper() 267 .noteOpNoThrow(getAppOpsString(permissionToCheck), query.callingUid, in checkAppLocationPermissionHelper() 313 if (query.callingUid == Process.PHONE_UID || query.callingUid == Process.SYSTEM_UID in checkLocationPermission() 314 || query.callingUid == Process.NETWORK_STACK_UID in checkLocationPermission() 315 || query.callingUid == Process.ROOT_UID) { in checkLocationPermission() [all …]
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | AmbientDisplaySuppressionController.java | 70 public void suppress(@NonNull String token, int callingUid, boolean suppress) { in suppress() argument 71 Pair<String, Integer> suppressionToken = Pair.create(requireNonNull(token), callingUid); in suppress() 100 List<String> getSuppressionTokens(int callingUid) { in getSuppressionTokens() argument 104 if (token.second == callingUid) { in getSuppressionTokens() 118 public boolean isSuppressed(@NonNull String token, int callingUid) { in isSuppressed() argument 119 return mSuppressionTokens.contains(Pair.create(requireNonNull(token), callingUid)); in isSuppressed()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 275 mServiceContext.binder.callingUid = DpmMockContext.CALLER_UID; in setUp() 305 mAdmin1Context.binder.callingUid = DpmMockContext.CALLER_UID; in setUp() 404 mServiceContext.binder.callingUid = in setAsProfileOwner() 623 mMockContext.binder.callingUid = ANOTHER_ADMIN_UID; in testSetActiveAdmin_multiUsers() 627 mMockContext.binder.callingUid = DpmMockContext.CALLER_UID; in testSetActiveAdmin_multiUsers() 631 mMockContext.binder.callingUid = ANOTHER_ADMIN_UID; in testSetActiveAdmin_multiUsers() 705 mContext.binder.callingUid = 1234567; in testRemoveActiveAdmin_SecurityException() 718 mContext.binder.callingUid = DpmMockContext.CALLER_UID; in testRemoveActiveAdmin_userNotRunningOrLocked() 767 mContext.binder.callingUid = 1234567; in testRemoveActiveAdmin_fromDifferentUserWithINTERACT_ACROSS_USERS_FULL() 906 mContext.binder.callingUid = 123456; in testForceRemoveActiveAdmin_nonShellCaller() [all …]
|
/frameworks/base/cmds/incidentd/src/ |
D | IncidentService.cpp | 66 uid_t callingUid = IPCThreadState::self()->getCallingUid(); in checkIncidentPermissions() local 68 if (callingUid == AID_ROOT || callingUid == AID_SHELL) { in checkIncidentPermissions() 83 callingPid, callingUid); in checkIncidentPermissions() 90 callingPid, callingUid); in checkIncidentPermissions() 99 if (callingUid != AID_SHELL && callingUid != AID_ROOT) { in checkIncidentPermissions() 101 callingPid, callingUid); in checkIncidentPermissions() 108 if (callingUid != AID_SHELL && callingUid != AID_ROOT && callingUid != AID_STATSD && in checkIncidentPermissions() 109 callingUid != AID_SYSTEM) { in checkIncidentPermissions() 111 callingPid, callingUid); in checkIncidentPermissions() 357 const uid_t callingUid = IPCThreadState::self()->getCallingUid(); in registerSection() local [all …]
|