Home
last modified time | relevance | path

Searched refs:callerApp (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DSafeActivityOptions.java120 @Nullable WindowProcessController callerApp, in getOptions() argument
123 checkPermissions(intent, aInfo, callerApp, supervisor, mOriginalOptions, in getOptions()
128 checkPermissions(intent, aInfo, callerApp, supervisor, mCallerOptions, in getOptions()
189 @Nullable WindowProcessController callerApp, ActivityStackSupervisor supervisor, in checkPermissions() argument
199 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
213 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
225 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
237 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
DActivityMetricsLogger.java857 void logAbortedBgActivityStart(Intent intent, WindowProcessController callerApp, in logAbortedBgActivityStart() argument
888 if (callerApp != null) { in logAbortedBgActivityStart()
889 builder.addTaggedData(FIELD_PROCESS_RECORD_PROCESS_NAME, callerApp.mName); in logAbortedBgActivityStart()
891 processStateAmToProto(callerApp.getCurrentProcState())); in logAbortedBgActivityStart()
893 callerApp.hasClientActivities() ? 1 : 0); in logAbortedBgActivityStart()
895 callerApp.hasForegroundServices() ? 1 : 0); in logAbortedBgActivityStart()
897 callerApp.hasForegroundActivities() ? 1 : 0); in logAbortedBgActivityStart()
898 builder.addTaggedData(FIELD_PROCESS_RECORD_HAS_TOP_UI, callerApp.hasTopUi() ? 1 : 0); in logAbortedBgActivityStart()
900 callerApp.hasOverlayUi() ? 1 : 0); in logAbortedBgActivityStart()
902 callerApp.hasPendingUiClean() ? 1 : 0); in logAbortedBgActivityStart()
[all …]
DAppTaskImpl.java113 WindowProcessController callerApp = null; in moveToFront() local
115 callerApp = mService.getProcessController(appThread); in moveToFront()
120 callingPackage, -1, -1, callerApp, null, false, null)) { in moveToFront()
DActivityStarter.java626 WindowProcessController callerApp = null; in startActivity() local
628 callerApp = mService.getProcessController(caller); in startActivity()
629 if (callerApp != null) { in startActivity()
630 callingPid = callerApp.getPid(); in startActivity()
631 callingUid = callerApp.mInfo.uid; in startActivity()
762 inTask != null, callerApp, resultRecord, resultStack); in startActivity()
774 callingPid, callingPackage, realCallingUid, realCallingPid, callerApp, in startActivity()
783 ? options.getOptions(intent, aInfo, callerApp, mSupervisor) : null; in startActivity()
899 ActivityRecord r = new ActivityRecord(mService, callerApp, callingPid, callingUid, in startActivity()
923 sourceRecord, startFlags, stack, callerApp)); in startActivity()
[all …]
DActivityStackSupervisor.java405 final WindowProcessController callerApp; field in ActivityStackSupervisor.PendingActivityLaunch
413 callerApp = app; in PendingActivityLaunch()
418 if (callerApp != null && callerApp.hasThread()) { in sendErrorResult()
419 callerApp.getThread().scheduleCrash(message); in sendErrorResult()
1002 WindowProcessController callerApp, ActivityRecord resultRecord, in checkStartAnyActivityPermission() argument
1028 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1033 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1038 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1048 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1056 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
DActivityTaskManagerService.java2370 WindowProcessController callerApp = null; in moveTaskToFrontLocked() local
2372 callerApp = getProcessController(appThread); in moveTaskToFrontLocked()
2377 -1, callerApp, null, false, null)) { in moveTaskToFrontLocked()
/frameworks/base/services/core/java/com/android/server/am/
DBroadcastRecord.java52 final ProcessRecord callerApp; // process that sent this field in BroadcastRecord
131 pw.print(callerApp != null ? callerApp.toShortString() : "null"); in dump()
247 callerApp = _callerApp; in BroadcastRecord()
281 callerApp = from.callerApp; in BroadcastRecord()
346 BroadcastRecord split = new BroadcastRecord(queue, intent, callerApp, in splitRecipientsLocked()
DActiveServices.java417 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in startServiceLocked() local
418 if (callerApp == null) { in startServiceLocked()
424 callerFg = callerApp.setSchedGroup != ProcessList.SCHED_GROUP_BACKGROUND; in startServiceLocked()
757 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in stopServiceLocked() local
758 if (caller != null && callerApp == null) { in stopServiceLocked()
1555 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in bindServiceLocked() local
1556 if (callerApp == null) { in bindServiceLocked()
1574 final boolean isCallerSystem = callerApp.info.uid == Process.SYSTEM_UID; in bindServiceLocked()
1621 final boolean callerFg = callerApp.setSchedGroup != ProcessList.SCHED_GROUP_BACKGROUND; in bindServiceLocked()
1716 if (unscheduleServiceRestartLocked(s, callerApp.info.uid, false)) { in bindServiceLocked()
[all …]
DBroadcastQueue.java852 final boolean callerForeground = receiverRecord.callerApp != null in requestStartTargetPermissionsReviewIfNeededLocked()
853 ? receiverRecord.callerApp.setSchedGroup != ProcessList.SCHED_GROUP_BACKGROUND in requestStartTargetPermissionsReviewIfNeededLocked()
1129 + r.intent.getAction() + " app=" + r.callerApp); in processNextBroadcastLocked()
1131 performReceiveLocked(r.callerApp, r.resultTo, in processNextBroadcastLocked()
1885 record.callerApp == null ? "process unknown" : record.callerApp.toShortString(), in createBroadcastTraceTitle()
DActivityManagerService.java14400 ProcessRecord callerApp = null; in registerReceiver() local
14408 callerApp = getRecordForAppLocked(caller); in registerReceiver()
14409 if (callerApp == null) { in registerReceiver()
14415 if (callerApp.info.uid != SYSTEM_UID && in registerReceiver()
14416 !callerApp.pkgList.containsKey(callerPackage) && in registerReceiver()
14419 + " is not running in process " + callerApp); in registerReceiver()
14421 callingUid = callerApp.info.uid; in registerReceiver()
14422 callingPid = callerApp.pid; in registerReceiver()
14429 instantApp = isInstantApp(callerApp, callerPackage, callingUid); in registerReceiver()
14491 if (callerApp != null && (callerApp.thread == null in registerReceiver()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStarterTests.java662 final WindowProcessController callerApp = in runAndVerifyBackgroundActivityStartsSubtest() local
664 callerApp.setHasForegroundActivities(hasForegroundActivities); in runAndVerifyBackgroundActivityStartsSubtest()
665 doReturn(callerApp).when(mService).getProcessController(caller); in runAndVerifyBackgroundActivityStartsSubtest()
671 callerApp.setAllowBackgroundActivityStarts(callerIsTempWhitelisted); in runAndVerifyBackgroundActivityStartsSubtest()
673 callerApp.setInstrumenting(callerIsInstrumentingWithBackgroundActivityStartPrivileges, in runAndVerifyBackgroundActivityStartsSubtest()