/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStack.java | 334 private final ArrayList<ActivityRecord> mLRUActivities = new ArrayList<>(); 340 ActivityRecord mPausingActivity = null; 347 ActivityRecord mLastPausedActivity = null; 354 ActivityRecord mLastNoHistoryActivity = null; 359 ActivityRecord mResumedActivity = null; 367 ActivityRecord mTranslucentActivityWaiting = null; 368 ArrayList<ActivityRecord> mUndrawnActivitiesBelowTopTranslucent = new ArrayList<>(); 406 private final ArrayList<ActivityRecord> mTmpActivities = new ArrayList<>(); 413 private ActivityRecord mTopDismissingKeyguardActivity; 446 ActivityRecord r = (ActivityRecord)msg.obj; in handleMessage() [all …]
|
D | AppWarnings.java | 105 public void showUnsupportedDisplaySizeDialogIfNeeded(ActivityRecord r) { in showUnsupportedDisplaySizeDialogIfNeeded() 118 public void showUnsupportedCompileSdkDialogIfNeeded(ActivityRecord r) { in showUnsupportedCompileSdkDialogIfNeeded() 155 public void showDeprecatedTargetDialogIfNeeded(ActivityRecord r) { in showDeprecatedTargetDialogIfNeeded() 166 public void onStartActivity(ActivityRecord r) { in onStartActivity() 177 public void onResumeActivity(ActivityRecord r) { in onResumeActivity() 239 private void showUnsupportedDisplaySizeDialogUiThread(ActivityRecord ar) { in showUnsupportedDisplaySizeDialogUiThread() 260 private void showUnsupportedCompileSdkDialogUiThread(ActivityRecord ar) { in showUnsupportedCompileSdkDialogUiThread() 281 private void showDeprecatedTargetSdkDialogUiThread(ActivityRecord ar) { in showDeprecatedTargetSdkDialogUiThread() 386 final ActivityRecord ar = (ActivityRecord) msg.obj; in handleMessage() 393 final ActivityRecord ar = (ActivityRecord) msg.obj; in handleMessage() [all …]
|
D | ActivityStackSupervisor.java | 280 final ArrayList<ActivityRecord> mStoppingActivities = new ArrayList<>(); 284 final ArrayList<ActivityRecord> mFinishingActivities = new ArrayList<>(); 287 final ArrayList<ActivityRecord> mGoingToSleepActivities = new ArrayList<>(); 291 final ArrayList<ActivityRecord> mMultiWindowModeChangedActivities = new ArrayList<>(); 295 final ArrayList<ActivityRecord> mPipModeChangedActivities = new ArrayList<>(); 301 final ArrayList<ActivityRecord> mNoAnimActivities = new ArrayList<>(); 307 private ActivityRecord mTopResumedActivity; 408 final ActivityRecord r; 409 final ActivityRecord sourceRecord; 414 PendingActivityLaunch(ActivityRecord _r, ActivityRecord _sourceRecord, in PendingActivityLaunch() [all …]
|
D | ActivityTaskManagerService.java | 629 ActivityRecord mLastResumedActivity; 636 private @Nullable ActivityRecord mTracedResumedActivity; 1104 final ActivityRecord r = ActivityRecord.isInStackLocked(callingActivity); in startNextMatchingActivity() 1177 final ActivityRecord resultTo = r.resultTo; in startNextMatchingActivity() 1300 final ActivityRecord sourceRecord; in startActivityAsCaller() 1565 ActivityRecord r = ActivityRecord.isInStackLocked(token); in finishActivity() 1571 ActivityRecord rootR = tr.getRootActivity(); in finishActivity() 1585 final ActivityRecord next = r.getActivityStack().topRunningActivityLocked(token, 0); in finishActivity() 1647 ActivityRecord r = ActivityRecord.isInStackLocked(token); in finishActivityAffinity() 1671 ActivityStack stack = ActivityRecord.getStackLocked(token); in activityIdle() [all …]
|
D | RootActivityContainer.java | 206 private final ArrayList<ActivityRecord> mTmpActivityList = new ArrayList<>(); 210 ActivityRecord mRecord; 325 ActivityRecord getDefaultDisplayHomeActivity() { in getDefaultDisplayHomeActivity() 329 ActivityRecord getDefaultDisplayHomeActivityForUser(int userId) { in getDefaultDisplayHomeActivityForUser() 515 boolean resumeHomeActivity(ActivityRecord prev, String reason, int displayId) { in resumeHomeActivity() 525 final ActivityRecord r = getActivityDisplay(displayId).getHomeActivity(); in resumeHomeActivity() 630 boolean ensureVisibilityAndConfig(ActivityRecord starting, int displayId, in ensureVisibilityAndConfig() 679 final ActivityRecord top = stack.getTopActivity(); in getTopVisibleActivities() 703 ActivityRecord getTopResumedActivity() { in getTopResumedActivity() 708 final ActivityRecord resumedActivity = focusedStack.getResumedActivity(); in getTopResumedActivity() [all …]
|
D | TaskRecord.java | 69 import static com.android.server.wm.ActivityRecord.STARTING_WINDOW_SHOWN; 268 final ArrayList<ActivityRecord> mActivities; 402 int _effectiveUid, String _lastDescription, ArrayList<ActivityRecord> activities, in TaskRecord() 595 final ActivityRecord r = topRunningActivityLocked(); in resize() 708 final ActivityRecord topActivity = getTopActivity(); in reparent() 727 final ActivityRecord r = topRunningActivityLocked(); in reparent() 871 void setIntent(ActivityRecord r) { in setIntent() 975 boolean isSameIntentFilter(ActivityRecord r) { in isSameIntentFilter() 1020 final ActivityRecord activity = getChildAt(i); in setStack() 1048 protected ActivityRecord getChildAt(int index) { in getChildAt() [all …]
|
D | WindowProcessController.java | 163 private final ArrayList<ActivityRecord> mActivities = new ArrayList<>(); 167 private ActivityRecord mPreQTopResumedActivity = null; 498 void addActivityIfNeeded(ActivityRecord r) { in addActivityIfNeeded() 507 void removeActivity(ActivityRecord r) { in removeActivity() 532 final ActivityRecord r = mActivities.get(i); in hasVisibleActivities() 554 ActivityRecord topActivity = task.getTopActivity(); in hasActivityInVisibleTask() 570 boolean updateTopResumingActivityInProcessIfNeeded(@NonNull ActivityRecord activity) { in updateTopResumingActivityInProcessIfNeeded() 631 ArrayList<ActivityRecord> activities = new ArrayList<>(mActivities); in finishActivities() 633 final ActivityRecord r = activities.get(i); in finishActivities() 645 ActivityRecord r = mActivities.get(i); in isInterestingToUser() [all …]
|
D | ActivityStarter.java | 155 private ActivityRecord mStartActivity; 170 private ActivityRecord mNotTop; 173 private ActivityRecord mSourceRecord; 202 private final ActivityRecord[] mLastStartActivityRecord = new ActivityRecord[1]; 329 ActivityRecord[] outActivity; 497 ActivityRecord getStartActivity() { in getStartActivity() 549 int startResolvedActivity(final ActivityRecord r, ActivityRecord sourceRecord, in startResolvedActivity() 574 ActivityRecord[] outActivity, TaskRecord inTask, String reason, in startActivity() 619 boolean ignoreTargetSecurity, boolean componentSpecified, ActivityRecord[] outActivity, in startActivity() 650 ActivityRecord sourceRecord = null; in startActivity() [all …]
|
D | LaunchParamsController.java | 77 void calculate(TaskRecord task, WindowLayout layout, ActivityRecord activity, in calculate() 78 ActivityRecord source, ActivityOptions options, int phase, LaunchParams result) { in calculate() 127 boolean layoutTask(TaskRecord task, WindowLayout layout, ActivityRecord activity, in layoutTask() 128 ActivityRecord source, ActivityOptions options) { in layoutTask() 307 int onCalculate(TaskRecord task, WindowLayout layout, ActivityRecord activity, in onCalculate() 308 ActivityRecord source, ActivityOptions options, @Phase int phase, in onCalculate()
|
D | ActivityDisplay.java | 133 private ActivityRecord mLastCompatModeActivity; 391 <T extends ActivityStack> T getOrCreateStack(@Nullable ActivityRecord r, in getOrCreateStack() 527 ActivityRecord getResumedActivity() { in getResumedActivity() 534 ActivityRecord resumedActivity = focusedStack.getResumedActivity(); in getResumedActivity() 554 final ActivityRecord r = mStacks.get(stackNdx).getResumedActivity(); in allResumedActivitiesComplete() 580 boolean pauseBackStacks(boolean userLeaving, ActivityRecord resuming, boolean dontWait) { in pauseBackStacks() 584 final ActivityRecord resumedActivity = stack.getResumedActivity(); in pauseBackStacks() 600 void findTaskLocked(final ActivityRecord r, final boolean isPreferredDisplay, in findTaskLocked() 844 int resolveWindowingMode(@Nullable ActivityRecord r, @Nullable ActivityOptions options, in resolveWindowingMode() 880 int validateWindowingMode(int windowingMode, @Nullable ActivityRecord r, in validateWindowingMode() [all …]
|
D | ActivityResult.java | 26 final ActivityRecord mFrom; 28 public ActivityResult(ActivityRecord from, String resultWho, in ActivityResult()
|
D | TaskLaunchParamsModifier.java | 107 int onCalculate(TaskRecord task, ActivityInfo.WindowLayout layout, ActivityRecord activity, in onCalculate() 108 ActivityRecord source, ActivityOptions options, LaunchParams currentParams, in onCalculate() 116 ActivityRecord activity, ActivityRecord source, ActivityOptions options, in onCalculate() 126 ActivityRecord activity, ActivityRecord source, ActivityOptions options, int phase, in calculate() 128 final ActivityRecord root; in calculate() 294 @Nullable ActivityOptions options, ActivityRecord source, LaunchParams currentParams) { in getPreferredLaunchDisplay() 347 private void getLayoutBounds(@NonNull ActivityDisplay display, @NonNull ActivityRecord root, in getLayoutBounds() 427 private boolean isTaskForcedMaximized(@NonNull ActivityRecord root) { in isTaskForcedMaximized() 448 private int resolveOrientation(@NonNull ActivityRecord activity) { in resolveOrientation() 488 private void getTaskBounds(@NonNull ActivityRecord root, @NonNull ActivityDisplay display, in getTaskBounds() [all …]
|
D | ActivityStartController.java | 78 private ActivityRecord mLastHomeActivityStartRecord; 81 private ActivityRecord[] tmpOutRecord = new ActivityRecord[1]; 162 void postStartActivityProcessingForLastStarter(ActivityRecord r, int result, in postStartActivityProcessingForLastStarter() 174 if (!ActivityRecord.isResolverActivity(aInfo.name)) { in startHomeActivity() 429 final ActivityRecord[] outActivity = new ActivityRecord[1]; in startActivities() 482 final ActivityRecord r = pal.r; in clearPendingActivityLaunches()
|
D | ActivityRecord.java | 239 final class ActivityRecord extends ConfigurationContainer { class 312 ActivityRecord resultTo; // who started this entry, so will get our reply 875 private final WeakReference<ActivityRecord> weakActivity; 878 Token(ActivityRecord activity, Intent intent) { in Token() 883 private static @Nullable ActivityRecord tokenToActivityRecordLocked(Token token) { in tokenToActivityRecordLocked() 887 ActivityRecord r = token.weakActivity.get(); in tokenToActivityRecordLocked() 911 static @Nullable ActivityRecord forTokenLocked(IBinder token) { in forTokenLocked() 941 ActivityRecord(ActivityTaskManagerService _service, WindowProcessController _caller, in ActivityRecord() method in ActivityRecord 944 ActivityRecord _resultTo, String _resultWho, int _reqCode, boolean _componentSpecified, in ActivityRecord() 946 ActivityOptions options, ActivityRecord sourceRecord) { in ActivityRecord() [all …]
|
D | KeyguardController.java | 203 final ActivityRecord activityRecord = ActivityRecord.forTokenLocked(token); in dismissKeyguard() 271 boolean canShowActivityWhileKeyguardShowing(ActivityRecord r, boolean dismissKeyguard) { in canShowActivityWhileKeyguardShowing() 453 private ActivityRecord mDismissingKeyguardActivity; 483 final ActivityRecord lastDismissActivity = mDismissingKeyguardActivity; in visibilitiesUpdated() 490 final ActivityRecord topDismissing = stack.getTopDismissingKeyguardActivity(); in visibilitiesUpdated()
|
D | ActivityServiceConnectionsHolder.java | 39 private final ActivityRecord mActivity; 49 ActivityServiceConnectionsHolder(ActivityTaskManagerService service, ActivityRecord activity) { in ActivityServiceConnectionsHolder()
|
D | LaunchWarningWindow.java | 30 public LaunchWarningWindow(Context context, ActivityRecord cur, ActivityRecord next) { in LaunchWarningWindow()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityStackTests.java | 103 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testOccupiedTaskCleanupOnRemove() 111 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testResumedActivity() 121 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testResumedActivityFromTaskReparenting() 139 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testResumedActivityFromActivityReparenting() 238 final ActivityRecord r = new ActivityBuilder(mService).setTask(mTask).build(); in testStopActivityWhenActivityDestroyed() 248 final ActivityRecord r = new ActivityBuilder(mService) in testFindTaskWithOverlay() 255 final ActivityRecord taskOverlay = new ActivityBuilder(mService).setTask(task) in testFindTaskWithOverlay() 283 final ActivityRecord r1 = new ActivityBuilder(mService).setComponent( in testFindTaskAlias() 290 final ActivityRecord r2 = new ActivityBuilder(mService).setComponent( in testFindTaskAlias() 565 final ActivityRecord topRunningHomeActivity = homeStack.topRunningActivityLocked(); in testShouldBeVisible_Finishing() [all …]
|
D | ActivityMetricsLaunchObserverTests.java | 66 private ActivityRecord mActivityRecord; 67 private ActivityRecord mActivityRecordTrampoline; 98 public ActivityRecordMatcher(ActivityRecord activityRecord) { in ActivityRecordMatcher() 107 static @ActivityRecordProto byte[] activityRecordToProto(ActivityRecord record) { in activityRecordToProto() 111 static @ActivityRecordProto byte[] eqProto(ActivityRecord record) { in eqProto() 134 ActivityRecord activityRecord = null; in testOnIntentFailed()
|
D | LaunchParamsControllerTests.java | 87 final ActivityRecord record = new ActivityBuilder(mService).build(); in testArgumentPropagation() 88 final ActivityRecord source = new ActivityBuilder(mService).build(); in testArgumentPropagation() 108 final ActivityRecord activity = new ActivityBuilder(mService).setComponent(name) in testStoredParamsRecovery() 231 final ActivityRecord vrActivity = new ActivityBuilder(mService).build(); in testVrPreferredDisplay() 240 final ActivityRecord vr2dActivity = new ActivityBuilder(mService).build(); in testVrPreferredDisplay() 261 final ActivityRecord record = new ActivityBuilder(mService).build(); in testCalculatePhase() 262 final ActivityRecord source = new ActivityBuilder(mService).build(); in testCalculatePhase() 372 public int onCalculate(TaskRecord task, WindowLayout layout, ActivityRecord activity, in onCalculate() 373 ActivityRecord source, ActivityOptions options, int phase, in onCalculate() 436 void getLaunchParams(TaskRecord task, ActivityRecord activity, LaunchParams params) { in getLaunchParams()
|
D | ActivityStackSupervisorTests.java | 70 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testStoppingActivityRemovedWhenResumed() 85 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testReportWaitingActivityLaunchedIfNeeded() 120 final ActivityRecord unresizableActivity = stack.getTopActivity(); in testHandleNonResizableTaskOnSecondaryDisplay() 138 final ActivityRecord resizableActivity = new ActivityBuilder(mService) in testHandleNonResizableTaskOnSecondaryDisplay()
|
D | TaskRecordTests.java | 249 private void setActivityRequestedOrientation(ActivityRecord activity, int orientation) { in setActivityRequestedOrientation() 277 ActivityRecord root = task.getTopActivity(); in testFullscreenBoundsForcedOrientation() 290 ActivityRecord top = new ActivityBuilder(mService).setTask(task).setStack(stack).build(); in testFullscreenBoundsForcedOrientation() 342 ActivityRecord root = task.getTopActivity(); in testIgnoresForcedOrientationWhenParentHandles() 398 final ActivityRecord.CompatDisplayInsets compatIntsets = in testComputeConfigResourceOverrides() 399 new ActivityRecord.CompatDisplayInsets(displayContent); in testComputeConfigResourceOverrides() 431 ActivityRecord aliasActivity = new ActivityBuilder(mService).setComponent( in testTaskIntentActivityAlias() 436 ActivityRecord targetActivity = new ActivityBuilder(mService).setComponent( in testTaskIntentActivityAlias() 441 ActivityRecord defaultActivity = new ActivityBuilder(mService).build(); in testTaskIntentActivityAlias() 521 ArrayList<ActivityRecord> activities, long lastTimeMoved, in create()
|
D | RecentsAnimationTest.java | 91 ActivityRecord recentActivity = new ActivityBuilder(mService) in testRecentsActivityVisiblility() 96 ActivityRecord topActivity = new ActivityBuilder(mService).setCreateTask(true).build(); in testRecentsActivityVisiblility() 146 ActivityRecord recentsActivity = recentsStack.getTopActivity(); in testPreloadRecentsActivity() 173 ActivityRecord recentActivity = new ActivityBuilder(mService).setComponent( in testRestartRecentsActivity() 206 ActivityRecord targetActivity = homeStack.getTopActivity(); in testSetLaunchTaskBehindOfTargetActivity() 208 ActivityRecord anotherHomeActivity = new ActivityBuilder(mService) in testSetLaunchTaskBehindOfTargetActivity() 326 ActivityRecord otherUserHomeActivity = new ActivityBuilder(mService) in testMultipleUserHomeActivity_findUserHomeTask()
|
D | ActivityStarterTests.java | 242 final ActivityRecord source = builder.build(); in verifyStartActivityPreconditions() 421 final ActivityRecord focusActivity = new ActivityBuilder(mService) in testSplitScreenDeliverToTop() 427 final ActivityRecord reusableActivity = new ActivityBuilder(mService) in testSplitScreenDeliverToTop() 458 final ActivityRecord reusableActivity = new ActivityBuilder(mService) in testSplitScreenTaskToFront() 464 final ActivityRecord focusActivity = new ActivityBuilder(mService) in testSplitScreenTaskToFront() 700 final ActivityRecord activity = new ActivityBuilder(mService) in testBringTaskToFrontWhenFocusedStackIsFinising() 707 final ActivityRecord finishingTopActivity = new ActivityBuilder(mService) in testBringTaskToFrontWhenFocusedStackIsFinising() 740 final ActivityRecord topActivityOnSecondaryDisplay = createSingleTaskActivityOn(stack); in testDeliverIntentToTopActivityOfNonTopDisplay() 774 final ActivityRecord singleTaskActivity = createSingleTaskActivityOn( in testBringTaskToFrontOnSecondaryDisplay() 799 private ActivityRecord createSingleTaskActivityOn(ActivityStack stack) { in createSingleTaskActivityOn() [all …]
|
D | RootActivityContainerTests.java | 114 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testReplacingTaskInPinnedStack() 118 final ActivityRecord secondActivity = new ActivityBuilder(mService).setCreateTask(true) in testReplacingTaskInPinnedStack() 226 final ActivityRecord firstActivity = new ActivityBuilder(mService).setCreateTask(true) in testRemovingStackOnAppCrash() 243 final ActivityRecord activity = new ActivityBuilder(mService).setCreateTask(true) in testFocusability() 258 final ActivityRecord pinnedActivity = new ActivityBuilder(mService).setCreateTask(true) in testFocusability() 290 final ActivityRecord r = new ActivityBuilder(mService).setTask(task).build(); in testSplitScreenPrimaryChosenWhenTopActivityLaunchedToSecondary() 386 final ActivityRecord activity = new ActivityBuilder(mService).setTask(task).build(); in testResumeActivityWhenNonTopmostStackIsTopFocused() 466 final ActivityRecord activity = new ActivityBuilder(mService).setTask(task).build(); in testResumeActivityLingeringTransition() 486 final ActivityRecord activity = new ActivityBuilder(mService).setTask(task).build(); in testResumeActivityLingeringTransition_notExecuted() 628 final ActivityRecord resolverActivity = mRootActivityContainer.topRunningActivity(); in testStartResolverActivityForHome() [all …]
|