/frameworks/base/services/core/java/com/android/server/wm/ |
D | BackgroundActivityStartController.java | 1024 boolean checkActivityAllowedToStart(@Nullable ActivityRecord sourceRecord, in checkActivityAllowedToStart() argument 1051 if (sourceRecord != null) { in checkActivityAllowedToStart() 1052 Task sourceTask = sourceRecord.getTask(); in checkActivityAllowedToStart() 1055 bas = checkTopActivityForAsm(taskToCheck, sourceRecord.getUid(), in checkActivityAllowedToStart() 1056 sourceRecord, bas); in checkActivityAllowedToStart() 1094 return logAsmFailureAndCheckFeatureEnabled(sourceRecord, callingUid, realCallingUid, in checkActivityAllowedToStart() 1099 private boolean logAsmFailureAndCheckFeatureEnabled(ActivityRecord sourceRecord, int callingUid, in logAsmFailureAndCheckFeatureEnabled() argument 1107 int action = newTask || sourceRecord == null in logAsmFailureAndCheckFeatureEnabled() 1109 : (sourceRecord.getTask().equals(targetTask) in logAsmFailureAndCheckFeatureEnabled() 1116 boolean allowedByGracePeriod = allowedByAsmGracePeriod(callingUid, sourceRecord, targetTask, in logAsmFailureAndCheckFeatureEnabled() [all …]
|
D | ActivityRecordInputSink.java | 45 ActivityRecordInputSink(ActivityRecord activityRecord, ActivityRecord sourceRecord) { in ActivityRecordInputSink() argument 51 if (sourceRecord != null) { in ActivityRecordInputSink() 52 sourceRecord.mAllowedTouchUid = mActivityRecord.getUid(); in ActivityRecordInputSink()
|
D | ActivityStarter.java | 995 ActivityRecord sourceRecord = null; in executeRequest() local 998 sourceRecord = ActivityRecord.isInAnyTask(resultTo); in executeRequest() 1000 Slog.v(TAG_RESULTS, "Will send result to " + resultTo + " " + sourceRecord); in executeRequest() 1002 if (sourceRecord != null) { in executeRequest() 1003 if (requestCode >= 0 && !sourceRecord.finishing) { in executeRequest() 1004 resultRecord = sourceRecord; in executeRequest() 1010 if ((launchFlags & Intent.FLAG_ACTIVITY_FORWARD_RESULT) != 0 && sourceRecord != null) { in executeRequest() 1017 resultRecord = sourceRecord.resultTo; in executeRequest() 1021 resultWho = sourceRecord.resultWho; in executeRequest() 1022 requestCode = sourceRecord.requestCode; in executeRequest() [all …]
|
D | ActivityRecord.java | 2114 ActivityOptions options, ActivityRecord sourceRecord, PersistableBundle persistentState, in ActivityRecord() argument 2212 if (sourceRecord != null) { in ActivityRecord() 2213 adjustPictureInPictureParamsIfNeeded(sourceRecord.getBounds()); in ActivityRecord() 2281 setActivityType(_componentSpecified, _launchedFromUid, _intent, options, sourceRecord); in ActivityRecord() 2324 mActivityRecordInputSink = new ActivityRecordInputSink(this, sourceRecord); in ActivityRecord() 3074 boolean canLaunchHomeActivity(int uid, ActivityRecord sourceRecord) { in canLaunchHomeActivity() argument 3085 return sourceRecord != null && sourceRecord.isResolverOrDelegateActivity(); in canLaunchHomeActivity() 3101 ActivityOptions options, ActivityRecord sourceRecord) { in setActivityType() argument 3103 if ((!componentSpecified || canLaunchHomeActivity(launchedFromUid, sourceRecord)) in setActivityType() 7518 private boolean shouldUseSolidColorSplashScreen(ActivityRecord sourceRecord, in shouldUseSolidColorSplashScreen() argument [all …]
|
D | ActivityTaskManagerService.java | 1625 final ActivityRecord sourceRecord; in startActivityAsCaller() local 1635 sourceRecord = ActivityRecord.isInAnyTask(resultTo); in startActivityAsCaller() 1636 if (sourceRecord == null) { in startActivityAsCaller() 1639 if (sourceRecord.app == null) { in startActivityAsCaller() 1647 if (!sourceRecord.info.packageName.equals("android")) { in startActivityAsCaller() 1651 if (UserHandle.getAppId(sourceRecord.app.mUid) != SYSTEM_UID) { in startActivityAsCaller() 1654 if (sourceRecord.app.mUid != sourceRecord.launchedFromUid) { in startActivityAsCaller() 1656 "Calling activity in uid " + sourceRecord.app.mUid in startActivityAsCaller() 1658 + sourceRecord.launchedFromUid); in startActivityAsCaller() 1672 targetUid = sourceRecord.launchedFromUid; in startActivityAsCaller() [all …]
|
D | Task.java | 5270 boolean isTaskSwitch, ActivityOptions options, @Nullable ActivityRecord sourceRecord) { 5381 isTaskSwitch, sourceRecord);
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStarterTests.java | 1241 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testStartActivityInner_inTaskFragment_failsByDefault() local 1242 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_failsByDefault() 1244 sourceRecord.getTask().addChild(taskFragment, POSITION_TOP); in testStartActivityInner_inTaskFragment_failsByDefault() 1246 startActivityInner(starter, targetRecord, sourceRecord, null /* options */, in testStartActivityInner_inTaskFragment_failsByDefault() 1257 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testStartActivityInner_inTaskFragment_allowedForSystemUid() local 1258 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_allowedForSystemUid() 1260 sourceRecord.getTask().addChild(taskFragment, POSITION_TOP); in testStartActivityInner_inTaskFragment_allowedForSystemUid() 1265 startActivityInner(starter, targetRecord, sourceRecord, null /* options */, in testStartActivityInner_inTaskFragment_allowedForSystemUid() 1275 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setCreateTask(true).build(); in testStartActivityInner_inTaskFragment_allowedForSameUid() local 1276 final TaskFragment taskFragment = new TaskFragment(mAtm, sourceRecord.token, in testStartActivityInner_inTaskFragment_allowedForSameUid() [all …]
|
D | DisplayWindowPolicyControllerTests.java | 177 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setTask(task).build(); in testCanActivityBeLaunched() local 183 sourceRecord, in testCanActivityBeLaunched() 207 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm).setTask(task).build(); in testCanActivityBeLaunched_requiredDisplayCategory() local 213 sourceRecord, in testCanActivityBeLaunched_requiredDisplayCategory()
|
D | ActivityRecordTests.java | 2824 final ActivityRecord sourceRecord = new ActivityBuilder(mAtm) in testTrackingStartingWindowThroughTrampoline() local 2826 sourceRecord.showStartingWindow(null /* prev */, true /* newTask */, false, in testTrackingStartingWindowThroughTrampoline() 2830 .setTask(sourceRecord.getTask()).build(); in testTrackingStartingWindowThroughTrampoline() 2832 true /* startActivity */, sourceRecord); in testTrackingStartingWindowThroughTrampoline() 2837 .setTask(sourceRecord.getTask()).build(); in testTrackingStartingWindowThroughTrampoline()
|