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()
129 checkPermissions(intent, aInfo, callerApp, supervisor, mCallerOptions, in getOptions()
192 @Nullable WindowProcessController callerApp, ActivityStackSupervisor supervisor, in checkPermissions() argument
202 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
216 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
228 + " from " + callerApp + " (pid=" + callingPid in checkPermissions()
240 + " 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.java628 WindowProcessController callerApp = null; in startActivity() local
630 callerApp = mService.getProcessController(caller); in startActivity()
631 if (callerApp != null) { in startActivity()
632 callingPid = callerApp.getPid(); in startActivity()
633 callingUid = callerApp.mInfo.uid; in startActivity()
764 inTask != null, callerApp, resultRecord, resultStack); in startActivity()
776 callingPid, callingPackage, realCallingUid, realCallingPid, callerApp, in startActivity()
785 ? options.getOptions(intent, aInfo, callerApp, mSupervisor) : null; in startActivity()
901 ActivityRecord r = new ActivityRecord(mService, callerApp, callingPid, callingUid, in startActivity()
925 sourceRecord, startFlags, stack, callerApp)); in startActivity()
[all …]
DActivityStackSupervisor.java412 final WindowProcessController callerApp; field in ActivityStackSupervisor.PendingActivityLaunch
420 callerApp = app; in PendingActivityLaunch()
425 if (callerApp != null && callerApp.hasThread()) { in sendErrorResult()
426 callerApp.getThread().scheduleCrash(message); in sendErrorResult()
1005 WindowProcessController callerApp, ActivityRecord resultRecord, in checkStartAnyActivityPermission() argument
1031 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1036 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1041 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1051 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
1059 + " from " + callerApp + " (pid=" + callingPid in checkStartAnyActivityPermission()
DActivityTaskManagerService.java2385 WindowProcessController callerApp = null; in moveTaskToFrontLocked() local
2387 callerApp = getProcessController(appThread); in moveTaskToFrontLocked()
2392 -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.java430 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in startServiceLocked() local
431 if (callerApp == null) { in startServiceLocked()
437 callerFg = callerApp.setSchedGroup != ProcessList.SCHED_GROUP_BACKGROUND; in startServiceLocked()
770 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in stopServiceLocked() local
771 if (caller != null && callerApp == null) { in stopServiceLocked()
1588 final ProcessRecord callerApp = mAm.getRecordForAppLocked(caller); in bindServiceLocked() local
1589 if (callerApp == null) { in bindServiceLocked()
1607 final boolean isCallerSystem = callerApp.info.uid == Process.SYSTEM_UID; in bindServiceLocked()
1654 final boolean callerFg = callerApp.setSchedGroup != ProcessList.SCHED_GROUP_BACKGROUND; in bindServiceLocked()
1749 if (unscheduleServiceRestartLocked(s, callerApp.info.uid, false)) { in bindServiceLocked()
[all …]
DBroadcastQueue.java857 final boolean callerForeground = receiverRecord.callerApp != null in requestStartTargetPermissionsReviewIfNeededLocked()
858 ? receiverRecord.callerApp.setSchedGroup != ProcessList.SCHED_GROUP_BACKGROUND in requestStartTargetPermissionsReviewIfNeededLocked()
1134 + r.intent.getAction() + " app=" + r.callerApp); in processNextBroadcastLocked()
1136 performReceiveLocked(r.callerApp, r.resultTo, in processNextBroadcastLocked()
1893 record.callerApp == null ? "process unknown" : record.callerApp.toShortString(), in createBroadcastTraceTitle()
DActivityManagerService.java14492 ProcessRecord callerApp = null; in registerReceiver() local
14500 callerApp = getRecordForAppLocked(caller); in registerReceiver()
14501 if (callerApp == null) { in registerReceiver()
14507 if (callerApp.info.uid != SYSTEM_UID && in registerReceiver()
14508 !callerApp.pkgList.containsKey(callerPackage) && in registerReceiver()
14511 + " is not running in process " + callerApp); in registerReceiver()
14513 callingUid = callerApp.info.uid; in registerReceiver()
14514 callingPid = callerApp.pid; in registerReceiver()
14521 instantApp = isInstantApp(callerApp, callerPackage, callingUid); in registerReceiver()
14583 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()