Home
last modified time | relevance | path

Searched refs:sourceRecord (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DBackgroundActivityStartController.java1024 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 …]
DActivityRecordInputSink.java45 ActivityRecordInputSink(ActivityRecord activityRecord, ActivityRecord sourceRecord) { in ActivityRecordInputSink() argument
51 if (sourceRecord != null) { in ActivityRecordInputSink()
52 sourceRecord.mAllowedTouchUid = mActivityRecord.getUid(); in ActivityRecordInputSink()
DActivityStarter.java995 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 …]
DActivityRecord.java2114 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 …]
DActivityTaskManagerService.java1625 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 …]
DTask.java5270 boolean isTaskSwitch, ActivityOptions options, @Nullable ActivityRecord sourceRecord) {
5381 isTaskSwitch, sourceRecord);
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityStarterTests.java1241 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 …]
DDisplayWindowPolicyControllerTests.java177 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()
DActivityRecordTests.java2824 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()