Home
last modified time | relevance | path

Searched refs:callerPid (Results 1 – 25 of 27) sorted by relevance

12

/aosp14/frameworks/base/services/core/java/com/android/server/firewall/
H A DSenderFilter.java37 static boolean isPrivilegedApp(PackageManagerInternal pmi, int callerUid, int callerPid) { in isPrivilegedApp() argument
39 callerPid == Process.myPid() || callerPid == 0) { in isPrivilegedApp()
70 int callerUid, int callerPid, String resolvedType, int receivingUid) {
78 int callerUid, int callerPid, String resolvedType, int receivingUid) {
79 return isPrivilegedApp(ifw.getPackageManager(), callerUid, callerPid);
86 int callerUid, int callerPid, String resolvedType, int receivingUid) {
87 return isPrivilegedApp(ifw.getPackageManager(), callerUid, callerPid)
95 int callerUid, int callerPid, String resolvedType, int receivingUid) {
100 return ifw.checkComponentPermission(null, callerPid, callerUid, receivingUid, false);
H A DAndFilter.java29 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
31 if (!children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid, in matches()
H A DOrFilter.java29 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
31 if (children.get(i).matches(ifw, resolvedComponent, intent, callerUid, callerPid, in matches()
H A DSenderPermissionFilter.java37 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
41 return ifw.checkComponentPermission(mPermission, callerPid, callerUid, receivingUid, in matches()
H A DNotFilter.java36 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
37 return !mChild.matches(ifw, resolvedComponent, intent, callerUid, callerPid, resolvedType, in matches()
H A DIntentFirewall.java144 public boolean checkStartActivity(Intent intent, int callerUid, int callerPid, in checkStartActivity() argument
147 callerUid, callerPid, resolvedType, resolvedApp.uid); in checkStartActivity()
151 int callerPid, String resolvedType, ApplicationInfo resolvedApp) { in checkService() argument
153 callerPid, resolvedType, resolvedApp.uid); in checkService()
156 public boolean checkBroadcast(Intent intent, int callerUid, int callerPid, in checkBroadcast() argument
159 callerUid, callerPid, resolvedType, receivingUid); in checkBroadcast()
163 int intentType, Intent intent, int callerUid, int callerPid, String resolvedType, in checkIntent() argument
182 if (rule.matches(this, resolvedComponent, intent, callerUid, callerPid, resolvedType, in checkIntent()
H A DFilter.java35 int callerUid, int callerPid, String resolvedType, int receivingUid); in matches() argument
H A DCategoryFilter.java38 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
H A DSenderPackageFilter.java43 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
H A DPortFilter.java45 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
H A DStringFilter.java122 int callerUid, int callerPid, String resolvedType, int receivingUid) { in matches() argument
/aosp14/frameworks/base/core/java/android/app/
H A DForegroundServiceTypePolicy.java1045 final int result = perm.checkPermission(context, callerUid, callerPid, in checkPermissions()
1055 final int result = perm.checkPermission(context, callerUid, callerPid, in checkPermissions()
1138 public int checkPermission(@NonNull Context context, int callerUid, int callerPid, in checkPermission() argument
1140 return checkPermission(context, mName, callerUid, callerPid, packageName, in checkPermission()
1147 int callerPid, String packageName, boolean allowWhileInUse) { in checkPermission() argument
1150 callerPid, callerUid, packageName); in checkPermission()
1278 if (usbManager.hasPermission(accessory, callerPid, callerUid)) { in checkPermission()
1364 int callerUid, int callerPid, boolean allowWhileInUse, in checkForegroundServiceTypePolicy() argument
1374 callerUid, callerPid, packageName, allowWhileInUse); in checkForegroundServiceTypePolicy()
1382 callerUid, callerPid, packageName, allowWhileInUse); in checkForegroundServiceTypePolicy()
[all …]
H A DActivityManagerInternal.java609 public abstract void tempAllowlistForPendingIntent(int callerPid, int callerUid, int targetUid, in tempAllowlistForPendingIntent() argument
/aosp14/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java782 public SpeechItem(Object caller, int callerUid, int callerPid) { in SpeechItem() argument
785 mCallerPid = callerPid; in SpeechItem()
859 super(caller, callerUid, callerPid); in UtteranceSpeechItem()
945 int callerPid, in UtteranceSpeechItemWithParams() argument
948 super(callerIdentity, callerUid, callerPid); in UtteranceSpeechItemWithParams()
989 int callerPid, in SynthesisSpeechItem() argument
1099 int callerPid, in SynthesisToFileOutputStreamSpeechItem() argument
1130 int callerPid, in AudioSpeechItem() argument
1171 super(callerIdentity, callerUid, callerPid); in SilenceSpeechItem()
1208 super(callerIdentity, callerUid, callerPid); in LoadLanguageItem()
[all …]
H A DAbstractEventLogger.java40 AbstractEventLogger(int callerUid, int callerPid, String serviceApp) { in AbstractEventLogger() argument
42 mCallerPid = callerPid; in AbstractEventLogger()
H A DEventLogger.java28 EventLogger(SynthesisRequest request, int callerUid, int callerPid, String serviceApp) { in EventLogger() argument
29 super(callerUid, callerPid, serviceApp); in EventLogger()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DDragDropController.java99 IBinder performDrag(int callerPid, int callerUid, IWindow window, int flags, in performDrag() argument
157 mDragState.mPid = callerPid; in performDrag()
H A DWindowOrganizerController.java1789 final int callerPid = Binder.getCallingPid(); in registerTransitionPlayer() local
1795 mService.getProcessController(callerPid, callerUid); in registerTransitionPlayer()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DLauncherAppsService.java186 public abstract boolean startShortcut(int callerUid, int callerPid, String callingPackage, in startShortcut() argument
880 private void ensureShortcutPermission(int callerUid, int callerPid, in ensureShortcutPermission() argument
884 callingPackage, callerPid, callerUid)) { in ensureShortcutPermission()
1175 private boolean startShortcutInner(int callerUid, int callerPid, int callingUserId, in startShortcutInner() argument
1186 ensureShortcutPermission(callerUid, callerPid, callingPackage); in startShortcutInner()
2187 public boolean startShortcut(int callerUid, int callerPid, String callingPackage, in startShortcut() argument
2190 return LauncherAppsImpl.this.startShortcutInner(callerUid, callerPid, in startShortcut()
/aosp14/frameworks/base/services/core/java/com/android/server/
H A DTelephonyRegistry.java165 int callerPid; field in TelephonyRegistry.Record
198 context, subId, callerPid, callerUid, callingPackage, callingFeatureId); in canReadCallLog()
945 r.callerPid = Binder.getCallingPid(); in addOnSubscriptionsChangedListener()
1001 r.callerPid = Binder.getCallingPid(); in addOnOpportunisticSubscriptionsChangedListener()
1142 r.callerPid = Binder.getCallingPid(); in listen()
1513 if (r.callerPid == callingPid) { in add()
3087 r.callerPid = Binder.getCallingPid(); in addCarrierPrivilegesCallback()
3227 r.callerPid = Binder.getCallingPid(); in addCarrierConfigChangeListener()
3964 .setCallingPid(r.callerPid) in checkFineLocationAccess()
3993 .setCallingPid(r.callerPid) in checkCoarseLocationAccess()
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DMediaSessionService.java654 private MediaSessionRecord createSessionInternal(int callerPid, int callerUid, int userId, in createSessionInternal() argument
671 && !hasMediaControlPermission(callerPid, callerUid)) { in createSessionInternal()
678 session = new MediaSessionRecord(callerPid, callerUid, userId, in createSessionInternal()
/aosp14/frameworks/base/services/core/java/com/android/server/am/
H A DAppProfiler.java879 void dumpHeapFinished(String path, int callerPid) { in dumpHeapFinished() argument
881 if (callerPid != mMemWatchDumpPid) { in dumpHeapFinished()
H A DActivityManagerService.java16763 void tempAllowlistForPendingIntentLocked(int callerPid, int callerUid, int targetUid, in tempAllowlistForPendingIntentLocked() argument
16766 Slog.d(TAG, "tempAllowlistForPendingIntentLocked(" + callerPid + ", " + callerUid + ", " in tempAllowlistForPendingIntentLocked()
16771 final ProcessRecord pr = mPidsSelfLocked.get(callerPid); in tempAllowlistForPendingIntentLocked()
16774 + callerPid); in tempAllowlistForPendingIntentLocked()
16778 if (checkPermission(CHANGE_DEVICE_IDLE_TEMP_WHITELIST, callerPid, callerUid) in tempAllowlistForPendingIntentLocked()
16780 && checkPermission(START_ACTIVITIES_FROM_BACKGROUND, callerPid, callerUid) in tempAllowlistForPendingIntentLocked()
16782 && checkPermission(START_FOREGROUND_SERVICES_FROM_BACKGROUND, callerPid, in tempAllowlistForPendingIntentLocked()
16786 + ": pid " + callerPid + " is not allowed"); in tempAllowlistForPendingIntentLocked()
18197 public void tempAllowlistForPendingIntent(int callerPid, int callerUid, int targetUid, in tempAllowlistForPendingIntent() argument
18201 callerPid, callerUid, targetUid, duration, type, reasonCode, reason); in tempAllowlistForPendingIntent()
/aosp14/frameworks/base/services/core/java/com/android/server/inputmethod/
H A DInputMethodManagerService.java2269 final int callerPid = Binder.getCallingPid(); in addClient() local
2275 if (state.mUid == callerUid && state.mPid == callerPid in addClient()
2277 throw new SecurityException("uid=" + callerUid + "/pid=" + callerPid in addClient()
2300 callerUid, callerPid, selfReportedDisplayId, deathRecipient)); in addClient()
/aosp14/frameworks/base/apex/jobscheduler/service/java/com/android/server/job/
H A DJobSchedulerService.java4539 final int callerPid = Binder.getCallingPid();
4556 enforceValidJobRequest(callerUid, callerPid, job);
4558 int result = validateJob(job, callerUid, callerPid, userId, packageName, null);

12