/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputManagerService.java | 559 private SessionState getSessionStateLocked(IBinder sessionToken, int callingUid, int userId) { argument 566 if (callingUid != Process.SYSTEM_UID && callingUid != sessionState.callingUid) { 568 + " from uid " + callingUid); 573 private ITvInputSession getSessionLocked(IBinder sessionToken, int callingUid, int userId) { argument 574 return getSessionLocked(getSessionStateLocked(sessionToken, callingUid, userId)); 586 private int resolveCallingUserId(int callingPid, int callingUid, int requestedUserId, argument 588 return ActivityManager.handleIncomingUser(callingPid, callingUid, requestedUserId, false, 702 private void releaseSessionLocked(IBinder sessionToken, int callingUid, in argument 762 setMainLocked(IBinder sessionToken, boolean isMain, int callingUid, int userId) argument 2114 private final int callingUid; field in class:TvInputManagerService.SessionState 2122 SessionState(IBinder sessionToken, String inputId, ComponentName componentName, boolean isRecordingSession, ITvInputClient client, int seq, int callingUid, int userId) argument [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
H A D | ConnectivityServiceMock.java | 872 private void handleReleaseNetworkRequest(NetworkRequest request, int callingUid) { argument
|
/frameworks/av/services/audioflinger/ |
H A D | AudioFlinger.cpp | 594 const uid_t callingUid = IPCThreadState::self()->getCallingUid(); local 595 if (pid == -1 || !isTrustedCallingUid(callingUid)) { 599 __func__, callingUid, callingPid, pid); 1486 const uid_t callingUid = IPCThreadState::self()->getCallingUid(); local 1487 if (!isTrustedCallingUid(callingUid)) { 1488 ALOGW_IF((uid_t)clientUid != callingUid, 1489 "%s uid %d tried to pass itself off as %d", __FUNCTION__, callingUid, clientUid); 1490 clientUid = callingUid; 1498 __func__, callingUid, callingPid, pid);
|
/frameworks/av/services/camera/libcameraservice/ |
H A D | CameraService.cpp | 927 int callingUid = getCallingUid(); local 931 clientUid = callingUid; 932 } else if (!isTrustedCallingUid(callingUid)) { 934 "(don't trust clientUid %d)", callingPid, callingUid, clientUid); 938 callingPid, callingUid, cameraId.string(), 945 } else if (!isTrustedCallingUid(callingUid)) { 947 "(don't trust clientPid %d)", callingPid, callingUid, clientPid); 951 callingPid, callingUid, cameraId.string(),
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | DeviceIdleController.java | 1575 final int callingUid = Binder.getCallingUid(); 1578 callingUid, 1585 addPowerSaveTempWhitelistAppInternal(callingUid, 1596 void addPowerSaveTempWhitelistAppInternal(int callingUid, String packageName, argument 1601 addPowerSaveTempWhitelistAppDirectInternal(callingUid, appId, duration, sync, reason); 1610 void addPowerSaveTempWhitelistAppDirectInternal(int callingUid, int appId, argument 1615 int callingAppId = UserHandle.getAppId(callingUid); 1618 throw new SecurityException("Calling app " + UserHandle.formatUid(callingUid)
|
H A D | AlarmManagerService.java | 1016 int callingUid, String callingPackage) { 1050 Slog.w(TAG, "Invalid alarm trigger time! " + triggerAtTime + " from uid=" + callingUid 1081 alarmClock, callingUid, callingPackage); 1088 AlarmManager.AlarmClockInfo alarmClock, int callingUid, String callingPackage) { 1091 callingUid, callingPackage); 1093 if (ActivityManagerNative.getDefault().getAppStartMode(callingUid, callingPackage) 1095 Slog.w(TAG, "Not setting alarm from " + callingUid + ":" + a 1233 final int callingUid = Binder.getCallingUid(); 1237 mAppOps.checkPackage(callingUid, callingPackage); 1249 Binder.getCallingPid(), callingUid, "AlarmManage 1013 setImpl(int type, long triggerAtTime, long windowLength, long interval, PendingIntent operation, IAlarmListener directReceiver, String listenerTag, int flags, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock, int callingUid, String callingPackage) argument 1085 setImplLocked(int type, long when, long whenElapsed, long windowLength, long maxWhen, long interval, PendingIntent operation, IAlarmListener directReceiver, String listenerTag, int flags, boolean doValidate, WorkSource workSource, AlarmManager.AlarmClockInfo alarmClock, int callingUid, String callingPackage) argument [all...] |
H A D | MountService.java | 496 public ObbState(String rawPath, String canonicalPath, int callingUid, argument 501 this.ownerGid = UserHandle.getSharedAppGid(callingUid); 2473 final int callingUid = Binder.getCallingUid(); 2474 final ObbState obbState = new ObbState(rawPath, canonicalPath, callingUid, token, nonce); 2475 final ObbAction action = new MountObbAction(obbState, key, callingUid); 2493 final int callingUid = Binder.getCallingUid(); 2495 rawPath, existingState.canonicalPath, callingUid, token, nonce); 3404 MountObbAction(ObbState obbState, String key, int callingUid) { argument 3407 mCallingUid = callingUid;
|
H A D | ConnectivityService.java | 2364 int callingUid) { 2367 handleReleaseNetworkRequest(nri.request, callingUid); 2396 private void handleReleaseNetworkRequest(NetworkRequest request, int callingUid) { argument 2399 if (Process.SYSTEM_UID != callingUid && nri.mUid != callingUid) { 2363 handleReleaseNetworkRequestWithIntent(PendingIntent pendingIntent, int callingUid) argument
|
/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationManagerService.java | 514 public void onClearAll(int callingUid, int callingPid, int userId) { 516 cancelAllLocked(callingUid, callingPid, userId, REASON_DELEGATE_CANCEL_ALL, null, 522 public void onNotificationClick(int callingUid, int callingPid, String key) { 534 cancelNotification(callingUid, callingPid, sbn.getPackageName(), sbn.getTag(), 542 public void onNotificationActionClick(int callingUid, int callingPid, String key, 558 public void onNotificationClear(int callingUid, int callingPid, 560 cancelNotification(callingUid, callingPid, pkg, tag, id, 0, 589 public void onNotificationError(int callingUid, int callingPid, String pkg, String tag, int id, 593 cancelNotification(callingUid, callingPid, pkg, tag, id, 0, 0, false, userId, 1593 final int callingUid 2497 enqueueNotificationInternal(final String pkg, final String opPkg, final int callingUid, final int callingPid, final String tag, final int id, final Notification notification, int[] idOut, int incomingUserId) argument 2725 handleGroupedNotificationLocked(NotificationRecord r, NotificationRecord old, int callingUid, int callingPid) argument 3357 cancelNotification(final int callingUid, final int callingPid, final String pkg, final String tag, final int id, final int mustHaveFlags, final int mustNotHaveFlags, final boolean sendDelete, final int userId, final int reason, final ManagedServiceInfo listener) argument 3430 cancelAllNotificationsInt(int callingUid, int callingPid, String pkg, int mustHaveFlags, int mustNotHaveFlags, boolean doit, int userId, int reason, ManagedServiceInfo listener) argument 3483 cancelAllLocked(int callingUid, int callingPid, int userId, int reason, ManagedServiceInfo listener, boolean includeCurrentProfiles) argument 3523 cancelGroupChildrenLocked(NotificationRecord r, int callingUid, int callingPid, String listenerName, int reason, boolean sendDelete) argument [all...] |
/frameworks/base/core/java/android/app/ |
H A D | ActivityManager.java | 3365 * @param callingUid The uid of the incoming call, as per Binder.getCallingUid(). 3382 public static int handleIncomingUser(int callingPid, int callingUid, int userId, argument 3384 if (UserHandle.getUserId(callingUid) == userId) { 3389 callingUid, userId, allowAll, requireFull, name, callerPackage);
|
H A D | ActivityManagerNative.java | 300 int callingUid = data.readInt(); 313 int result = startVoiceActivity(callingPackage, callingPid, callingUid, intent, 1324 int callingUid = data.readInt(); 1330 int res = handleIncomingUser(callingPid, callingUid, userId, allowAll, 2026 int callingUid = data.readInt(); 2031 int res = checkGrantUriPermission(callingUid, targetPkg, uri, modeFlags, userId); 3248 public int startVoiceActivity(String callingPackage, int callingPid, int callingUid, argument 3257 data.writeInt(callingUid); 4678 public int handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, argument 4684 data.writeInt(callingUid); 5589 checkGrantUriPermission(int callingUid, String targetPkg, Uri uri, int modeFlags, int userId) argument [all...] |
H A D | IActivityManager.java | 92 public int startVoiceActivity(String callingPackage, int callingPid, int callingUid, argument 286 public int handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, argument 442 public int checkGrantUriPermission(int callingUid, String targetPkg, Uri uri, argument
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
H A D | AccountManagerService.java | 778 int callingUid = Binder.getCallingUid(); 786 if (!isAccountManagedByCaller(account.type, callingUid, userId)) { 789 callingUid, 872 final int callingUid = Binder.getCallingUid(); 875 account, key, callingUid, Binder.getCallingPid()); 881 if (!isAccountManagedByCaller(account.type, callingUid, userId)) { 884 callingUid, 889 Log.w(TAG, "User " + userId + " data is locked. callingUid " + callingUid); 908 int callingUid 952 isCrossUser(int callingUid, int userId) argument 1163 addAccountInternal(UserAccounts accounts, Account account, String password, Bundle extras, int callingUid) argument 1655 removeAccountInternal(UserAccounts accounts, Account account, int callingUid) argument 1920 setPasswordInternal(UserAccounts accounts, Account account, String password, int callingUid) argument 3289 GetAccountsByTypeAndFeatureSession(UserAccounts accounts, IAccountManagerResponse response, String type, String[] features, int callingUid) argument 3517 getAccountsInternal( UserAccounts userAccounts, int callingUid, String callingPackage, List<String> visibleAccountTypes) argument 3595 removeSharedAccountAsUser(Account account, int userId, int callingUid) argument 4274 logRecord(SQLiteDatabase db, String action, String tableName, long accountId, UserAccounts userAccount, int callingUid) argument 4957 isPermitted(String opPackageName, int callingUid, String... permissions) argument 4983 isPrivileged(int callingUid) argument 5026 isAccountVisibleToCaller(String accountType, int callingUid, int userId, String opPackageName) argument 5036 isAccountManagedByCaller(String accountType, int callingUid, int userId) argument 5044 getTypesVisibleToCaller(int callingUid, int userId, String opPackageName) argument 5052 getTypesManagedByCaller(int callingUid, int userId) argument 5056 getTypesForCaller( int callingUid, int userId, boolean isOtherwisePermitted) argument 5129 isSystemUid(int callingUid) argument 5157 checkReadAccountsPermitted( int callingUid, String accountType, int userId, String opPackageName) argument 5172 canUserModifyAccounts(int userId, int callingUid) argument 5184 canUserModifyAccountsForType(int userId, String accountType, int callingUid) argument 5335 filterSharedAccounts(UserAccounts userAccounts, Account[] unfiltered, int callingUid, String callingPackage) argument 5406 getAccountsFromCacheLocked(UserAccounts userAccounts, String accountType, int callingUid, String callingPackage) argument [all...] |
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ActivityStack.java | 3133 void sendActivityResultLocked(int callingUid, ActivityRecord r, argument 3136 if (callingUid > 0) { 3137 mService.grantUriPermissionFromIntentLocked(callingUid, r.packageName, 4845 void getTasksLocked(List<RunningTaskInfo> list, int callingUid, boolean allowed) { argument 4859 if (!allowed && !task.isHomeTask() && task.effectiveUid != callingUid) {
|
H A D | ActivityStackSupervisor.java | 1066 void getTasksLocked(int maxNum, List<RunningTaskInfo> list, int callingUid, boolean allowed) { argument 1077 stack.getTasksLocked(stackTaskList, callingUid, allowed); 1390 String resultWho, int requestCode, int callingPid, int callingUid, 1394 callingUid); 1399 aInfo, callingPackage, callingPid, callingUid, ignoreTargetSecurity); 1401 intent.getAction(), callingPackage, callingPid, callingUid); 1413 + ", uid=" + callingUid + ")" + " with revoked permission " 1418 + ", uid=" + callingUid + ")" 1423 + ", uid=" + callingUid + ")" 1433 + ", uid=" + callingUid 1389 checkStartAnyActivityPermission(Intent intent, ActivityInfo aInfo, String resultWho, int requestCode, int callingPid, int callingUid, String callingPackage, boolean ignoreTargetSecurity, ProcessRecord callerApp, ActivityRecord resultRecord, ActivityStack resultStack, ActivityOptions options) argument 1471 getComponentRestrictionForCallingPackage(ActivityInfo activityInfo, String callingPackage, int callingPid, int callingUid, boolean ignoreTargetSecurity) argument 1498 getActionRestrictionForCallingPackage(String action, String callingPackage, int callingPid, int callingUid) argument [all...] |
H A D | ActivityManagerService.java | 4445 public int startVoiceActivity(String callingPackage, int callingPid, int callingUid, argument 4461 userId = mUserController.handleIncomingUser(callingPid, callingUid, userId, false, 4464 return mActivityStarter.startActivityMayWait(null, callingUid, callingPackage, intent, 7037 int callingUid = Binder.getCallingUid(); 7039 userId = mUserController.handleIncomingUser(Binder.getCallingPid(), callingUid, userId, 7049 if (callingUid != 0 && callingUid != Process.SYSTEM_UID) { 7051 MATCH_DEBUG_TRIAGED_MISSING, UserHandle.getUserId(callingUid)); 7052 if (!UserHandle.isSameApp(callingUid, uid)) { 7063 return getIntentSenderLocked(type, packageName, callingUid, userI 7072 getIntentSenderLocked(int type, String packageName, int callingUid, int userId, IBinder token, String resultWho, int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle bOptions) argument 7977 checkGrantUriPermissionLocked(int callingUid, String targetPkg, GrantUri grantUri, final int modeFlags, int lastTargetUid) argument 8103 checkGrantUriPermission(int callingUid, String targetPkg, Uri uri, final int modeFlags, int userId) argument 8141 grantUriPermissionLocked(int callingUid, String targetPkg, GrantUri grantUri, final int modeFlags, UriPermissionOwner owner, int targetUserId) argument 8179 checkGrantUriPermissionFromIntentLocked(int callingUid, String targetPkg, Intent intent, int mode, NeededUriGrants needed, int targetUserId) argument 8276 grantUriPermissionFromIntentLocked(int callingUid, String targetPkg, Intent intent, UriPermissionOwner owner, int targetUserId) argument 8336 revokeUriPermissionLocked(int callingUid, GrantUri grantUri, final int modeFlags) argument 9052 isGetTasksAllowed(String caller, int callingPid, int callingUid) argument 10412 checkAuthorityGrants(int callingUid, ProviderInfo cpi, int userId, boolean checkUser) argument 11380 canClearIdentity(int callingPid, int callingUid, int userId) argument 11827 checkAppSwitchAllowedLocked(int sourcePid, int sourceUid, int callingPid, int callingUid, String name) argument 13444 handleApplicationWtfInner(int callingUid, int callingPid, IBinder app, String tag, final ApplicationErrorReport.CrashInfo crashInfo) argument 16978 handleIncomingUser(int callingPid, int callingUid, int userId, boolean allowAll, boolean requireFull, String name, String callerPackage) argument 17022 isValidSingletonCall(int callingUid, int componentUid) argument 17496 collectReceiverComponents(Intent intent, String resolvedType, int callingUid, int[] users) argument 17583 broadcastIntentLocked(ProcessRecord callerApp, String callerPackage, Intent intent, String resolvedType, IIntentReceiver resultTo, int resultCode, String resultData, Bundle resultExtras, String[] requiredPermissions, int appOp, Bundle bOptions, boolean ordered, boolean sticky, int callingPid, int callingUid, int userId) argument 21687 AppTaskImpl(int taskId, int callingUid) argument [all...] |
/frameworks/base/services/core/java/com/android/server/power/ |
H A D | PowerManagerService.java | 984 int callingUid) { 993 + " from uid " + callingUid); 3264 final int callingUid = Binder.getCallingUid(); 3267 updateWakeLockWorkSourceInternal(lock, ws, historyTag, callingUid); 983 updateWakeLockWorkSourceInternal(IBinder lock, WorkSource ws, String historyTag, int callingUid) argument
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
H A D | WifiStateMachine.java | 1418 * given to callingUid. 1420 * @param callingUid The uid initiating the wifi scan. Blame will be given here unless 1425 public void startScan(int callingUid, int scanCounter, argument 1431 sendMessage(CMD_START_SCAN, callingUid, scanCounter, bundle);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageManagerService.java | 3892 void enforceCrossUserPermission(int callingUid, int userId, boolean requireFullPermission, argument 3898 enforceShellRestriction(UserManager.DISALLOW_DEBUGGING_FEATURES, callingUid, userId); 3900 if (userId == UserHandle.getUserId(callingUid)) return; 3901 if (callingUid != Process.SYSTEM_UID && callingUid != 0) { 3917 void enforceShellRestriction(String restriction, int callingUid, int userHandle) { argument 3918 if (callingUid == Process.SHELL_UID) { 4299 int callingUid = Binder.getCallingUid(); 4300 if (callingUid != Process.SYSTEM_UID && callingUid ! 17573 enforceOwnerRights(String pkg, int callingUid) argument [all...] |