/frameworks/base/services/core/java/com/android/server/wm/ |
D | Dimmer.java | 38 protected final WindowContainer mHost; 40 protected Dimmer(WindowContainer host) { in Dimmer() 45 static Dimmer create(WindowContainer host) { in create() 50 WindowContainer<?> getHost() { in getHost() 68 protected abstract void adjustRelativeLayer(WindowContainer container, int relativeLayer); in adjustRelativeLayer() 81 WindowContainer container, float alpha, int blurRadius); in adjustAppearance()
|
D | WindowContainer.java | 54 import static com.android.server.wm.WindowContainer.AnimationFlags.CHILDREN; 55 import static com.android.server.wm.WindowContainer.AnimationFlags.PARENTS; 56 import static com.android.server.wm.WindowContainer.AnimationFlags.TRANSITION; 139 class WindowContainer<E extends WindowContainer> extends ConfigurationContainer<E> class 140 implements Comparable<WindowContainer>, Animatable, SurfaceFreezer.Freezable, 153 private WindowContainer<WindowContainer> mParent = null; 193 protected WindowContainer mLastOrientationSource; 232 private final ArraySet<WindowContainer> mSurfaceAnimationSources = new ArraySet<>(); 358 WindowContainer(WindowManagerService wms) { in WindowContainer() method in WindowContainer 566 final protected WindowContainer getParent() { in getParent() [all …]
|
D | AppTransitionController.java | 73 import static com.android.server.wm.WindowContainer.AnimationFlags.PARENTS; 129 private final ArrayMap<WindowContainer, Integer> mTempTransitionReasons = new ArrayMap<>(); 130 private final ArrayList<WindowContainer> mTempTransitionWindows = new ArrayList<>(); 152 final ArraySet<WindowContainer> openingWcs = getAnimationTargets( in getOldWallpaper() 188 final ArraySet<WindowContainer> participants = new ArraySet<>(); in handleAppTransitionReady() 193 WindowContainer wc = participants.valueAt(i); in handleAppTransitionReady() 361 ArraySet<WindowContainer> changingContainers, @Nullable WindowState wallpaperTarget, in getTransitCompatType() 492 final ArraySet<WindowContainer> openingWcs = getAnimationTargets( in getTransitCompatType() 494 final ArraySet<WindowContainer> closingWcs = getAnimationTargets( in getTransitCompatType() 496 final WindowContainer<?> openingContainer = !openingWcs.isEmpty() in getTransitCompatType() [all …]
|
D | SmoothDimmer.java | 44 final WindowContainer mHostContainer; 46 private WindowContainer mLastRequestedDimContainer; 119 void prepareReparent(WindowContainer relativeParent, int relativeLayer) { in prepareReparent() 148 protected SmoothDimmer(WindowContainer host) { in SmoothDimmer() 153 SmoothDimmer(WindowContainer host, in SmoothDimmer() 167 protected void adjustAppearance(WindowContainer container, float alpha, int blurRadius) { in adjustAppearance() 173 protected void adjustRelativeLayer(WindowContainer container, int relativeLayer) { in adjustRelativeLayer() 203 private DimState obtainDimState(WindowContainer container) { in obtainDimState()
|
D | Transition.java | 72 import static com.android.server.wm.WindowContainer.AnimationFlags.PARENTS; 200 final ArrayMap<WindowContainer, ChangeInfo> mChanges = new ArrayMap<>(); 203 final ArraySet<WindowContainer> mParticipants = new ArraySet<>(); 388 final WindowContainer<?> parent = restoreBelow != null ? restoreBelow.getParent() in setTransientLaunch() 422 boolean isInTransientHide(@NonNull WindowContainer wc) { in isInTransientHide() 441 final WindowContainer<?> rootParent = transientRoot.getParent(); in isTransientVisible() 494 Task getTransientLaunchRestoreTarget(@NonNull WindowContainer container) { in getTransientLaunchRestoreTarget() 508 void setConfigAtEnd(@NonNull WindowContainer<?> wc) { in setConfigAtEnd() 527 void setSeamlessRotation(@NonNull WindowContainer wc) { in setSeamlessRotation() 571 private void setTransientLaunchToChanges(@NonNull WindowContainer wc) { in setTransientLaunchToChanges() [all …]
|
D | BackNavigationController.java | 91 private final ArrayList<WindowContainer> mTmpOpenApps = new ArrayList<>(); 92 private final ArrayList<WindowContainer> mTmpCloseApps = new ArrayList<>(); 141 WindowContainer<?> removedWindowContainer = null; in startBackNavigation() 258 final WindowContainer parent = currentActivity.getParent(); in startBackNavigation() 451 final WindowContainer commonParent = currTF.getParent(); in getAnimatablePrevActivities() 485 final WindowContainer next = currentTask.mChildren.get(topIndex - 1); in findNextTaskFragment() 725 private void onTransitionReadyWhileNavigate(ArrayList<WindowContainer> opening, in onTransitionReadyWhileNavigate() 726 ArrayList<WindowContainer> closing) { in onTransitionReadyWhileNavigate() 730 final ArrayList<WindowContainer> all = new ArrayList<>(opening); in onTransitionReadyWhileNavigate() 778 final WindowContainer wc = targets.get(i).mContainer; in onTransactionReady() [all …]
|
D | LegacyDimmer.java | 42 private WindowContainer mLastRequestedDimContainer; 162 protected LegacyDimmer(WindowContainer host) { in LegacyDimmer() 166 LegacyDimmer(WindowContainer host, SurfaceAnimatorStarter surfaceAnimatorStarter) { in LegacyDimmer() 171 private DimState obtainDimState(WindowContainer container) { in obtainDimState() 222 protected void adjustAppearance(WindowContainer container, float alpha, int blurRadius) { in adjustAppearance() 238 protected void adjustRelativeLayer(WindowContainer container, int relativeLayer) { in adjustRelativeLayer() 283 private long getDimDuration(WindowContainer container) { in getDimDuration() 291 private void startDimEnter(WindowContainer container, SurfaceAnimator animator, in startDimEnter() 296 private void startDimExit(WindowContainer container, SurfaceAnimator animator, in startDimExit() 301 private void startAnim(WindowContainer container, SurfaceAnimator animator, in startAnim()
|
D | WindowOrganizerController.java | 81 import static com.android.server.wm.WindowContainer.POSITION_BOTTOM; 82 import static com.android.server.wm.WindowContainer.POSITION_TOP; 625 final ArraySet<WindowContainer<?>> haveConfigChanges = new ArraySet<>(); in applyTransaction() 643 final WindowContainer wc = WindowContainer.fromBinder(entry.getKey()); in applyTransaction() 651 final WindowContainer wc = WindowContainer.fromBinder(entry.getKey()); in applyTransaction() 683 final WindowContainer hopWc = WindowContainer.fromBinder( in applyTransaction() 728 final WindowContainer wc = WindowContainer.fromBinder(entry.getKey()); in applyTransaction() 785 private int applyChanges(@NonNull WindowContainer<?> container, in applyChanges() 1025 final WindowContainer wc = WindowContainer.fromBinder(hop.getContainer()); in applyHierarchyOp() 1044 final WindowContainer wc = WindowContainer.fromBinder(hop.getContainer()); in applyHierarchyOp() [all …]
|
D | WindowContextListenerController.java | 77 @NonNull IBinder clientToken, @NonNull WindowContainer<?> container, in registerWindowContainerListener() 100 @NonNull IBinder clientToken, @NonNull WindowContainer<?> container, in registerWindowContainerListener() 117 @NonNull WindowContainer<?> container) { in updateContainerForWindowContextListener() 184 @Nullable WindowContainer<?> getContainer(IBinder clientToken) { in getContainer() 212 private WindowContainer<?> mContainer; 229 @NonNull IBinder clientToken, @NonNull WindowContainer<?> container, in WindowContextListenerImpl() 249 WindowContainer<?> getWindowContainer() { in getWindowContainer() 257 private void updateContainer(@NonNull WindowContainer<?> newContainer) { in updateContainer()
|
D | BLASTSyncEngine.java | 125 final ArraySet<WindowContainer> mRootMembers = new ArraySet<>(); 176 boolean isIgnoring(WindowContainer wc) { in isIgnoring() 199 final WindowContainer wc = mRootMembers.valueAt(i); in tryFinish() 219 for (WindowContainer wc : mRootMembers) { in finishNow() 223 final ArraySet<WindowContainer> wcAwaitingCommit = new ArraySet<>(); in finishNow() 224 for (WindowContainer wc : mRootMembers) { in finishNow() 242 for (WindowContainer wc : wcAwaitingCommit) { in finishNow() 315 private void addToSync(WindowContainer wc) { in addToSync() 378 void onCancelSync(WindowContainer wc) { in onCancelSync() 386 final WindowContainer<?> wc = mRootMembers.valueAt(i); in onTimeout() [all …]
|
D | TransitionController.java | 430 boolean isCollecting(@NonNull WindowContainer wc) { in isCollecting() 443 boolean inCollectingTransition(@NonNull WindowContainer wc) { in inCollectingTransition() 463 boolean inPlayingTransition(@NonNull WindowContainer wc) { in inPlayingTransition() 471 boolean inFinishingTransition(WindowContainer<?> wc) { in inFinishingTransition() 482 boolean inTransition(@NonNull WindowContainer wc) { in inTransition() 581 boolean shouldKeepFocus(@NonNull WindowContainer wc) { in shouldKeepFocus() 621 boolean canAssignLayers(@NonNull WindowContainer wc) { in canAssignLayers() 634 int getWindowingModeAtStart(@NonNull WindowContainer wc) { in getWindowingModeAtStart() 653 boolean hasCollectingRotationChange(@NonNull WindowContainer<?> wc, int targetRotation) { in hasCollectingRotationChange() 696 @WindowManager.TransitionFlags int flags, @Nullable WindowContainer trigger, in requestTransitionIfNeeded() [all …]
|
D | TaskDisplayArea.java | 74 final class TaskDisplayArea extends DisplayArea<WindowContainer> { 99 private final ArrayList<WindowContainer> mTmpAlwaysOnTopChildren = new ArrayList<>(); 100 private final ArrayList<WindowContainer> mTmpNormalChildren = new ArrayList<>(); 101 private final ArrayList<WindowContainer> mTmpHomeChildren = new ArrayList<>(); 301 void addChild(WindowContainer child, int position) { 338 protected void removeChild(WindowContainer child) { 364 void positionChildAt(int position, WindowContainer child, boolean includingParents) { 470 void onChildPositionChanged(WindowContainer child) { 539 private int getPriority(WindowContainer child) { 579 final WindowContainer curr = mChildren.get(i); [all …]
|
D | RootDisplayArea.java | 51 Map<Feature, List<DisplayArea<WindowContainer>>> mFeatureToDisplayAreas; 91 List<DisplayArea<WindowContainer>> imeDisplayAreas = in placeImeContainer() 150 Map<Feature, List<DisplayArea<WindowContainer>>> featureToDisplayAreas) { in onHierarchyBuilt()
|
D | DisplayAreaPolicyBuilder.java | 439 final TaskDisplayArea tda = WindowContainer.fromBinder(tdaToken.asBinder()) in apply() 510 final Map<Feature, List<DisplayArea<WindowContainer>>> featureAreas = in build() 870 public List<DisplayArea<? extends WindowContainer>> getDisplayAreas(int featureId) { in getDisplayAreas() 871 List<DisplayArea<? extends WindowContainer>> displayAreas = new ArrayList<>(); in getDisplayAreas() 880 List<DisplayArea<? extends WindowContainer>> displayAreas) { in getDisplayAreas() 891 public DisplayArea<? extends WindowContainer> getWindowingArea() { in getWindowingArea() 897 final List<DisplayArea<WindowContainer>> areas = in getWindowingArea() 953 int level, Map<Feature, List<DisplayArea<WindowContainer>>> areas) { in instantiateChildren() 963 parent.addChild(area, WindowContainer.POSITION_TOP); in instantiateChildren()
|
D | DisplayArea.java | 72 public class DisplayArea<T extends WindowContainer> extends WindowContainer<T> { 114 void onChildPositionChanged(WindowContainer child) { in onChildPositionChanged() 127 final WindowContainer top = getChildAt(i - 1); in onChildPositionChanged() 128 final WindowContainer bottom = getChildAt(i); in onChildPositionChanged() 146 final WindowContainer parent = getParent(); in positionChildAt() 172 boolean onDescendantOrientationChanged(@Nullable WindowContainer requestingContainer) { in onDescendantOrientationChanged() 212 final WindowContainer lastOrientationSource = mDisplayContent.getLastOrientationSource(); in setIgnoreOrientationRequest() 883 static Type typeOf(WindowContainer c) { in typeOf()
|
D | RotationWatcherController.java | 124 final WindowContainer<?> wc = getAssociatedWindowContainer(listener.mToken); in dispatchProposedRotation() 142 WindowContainer<?> getAssociatedWindowContainer(IBinder contextToken) { in getAssociatedWindowContainer() 143 final WindowContainer<?> wc = ActivityRecord.forTokenLocked(contextToken); in getAssociatedWindowContainer()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayAreaTest.java | 42 import static com.android.server.wm.WindowContainer.POSITION_BOTTOM; 43 import static com.android.server.wm.WindowContainer.POSITION_TOP; 96 DisplayArea<WindowContainer> parent = new DisplayArea<>(mWm, BELOW_TASKS, "Parent"); in testDisplayArea_positionChanged_throwsIfIncompatibleChild() 97 DisplayArea<WindowContainer> child = new DisplayArea<>(mWm, ANY, "Child"); in testDisplayArea_positionChanged_throwsIfIncompatibleChild() 113 assertThrows(IllegalArgumentException.class, () -> typeOf(mock(WindowContainer.class))); in testType_typeOf() 146 final WindowContainer windowContainer = new WindowContainer(mWm); in testAsDisplayArea() 147 final DisplayArea<WindowContainer> displayArea = new DisplayArea<>(mWm, ANY, "DA"); in testAsDisplayArea() 166 final DisplayArea<WindowContainer> da1 = new DisplayArea<>(mWm, BELOW_TASKS, "DA1"); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() 167 final DisplayArea<WindowContainer> da2 = new DisplayArea<>(mWm, BELOW_TASKS, "DA2"); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() 180 final DisplayArea<WindowContainer> da3 = new DisplayArea<>(mWm, ANY, "DA3"); in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() [all …]
|
D | TransitionTests.java | 52 import static com.android.server.wm.WindowContainer.POSITION_TOP; 155 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_NewTask() 156 ArraySet<WindowContainer> participants = transition.mParticipants; in testCreateInfo_NewTask() 213 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_Activity() 214 ArraySet<WindowContainer> participants = transition.mParticipants; in testCreateInfo_Activity() 243 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_NestedTasks() 244 ArraySet<WindowContainer> participants = transition.mParticipants; in testCreateInfo_NestedTasks() 299 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_DisplayArea() 300 ArraySet<WindowContainer> participants = transition.mParticipants; in testCreateInfo_DisplayArea() 468 ArrayMap<WindowContainer, Transition.ChangeInfo> changes = transition.mChanges; in testCreateInfo_PromoteSimilarClose() [all …]
|
D | AppTransitionControllerTest.java | 44 import static com.android.server.wm.WindowContainer.POSITION_BOTTOM; 338 new ArraySet<>(new WindowContainer[]{activity1.getRootTask()}), in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() 342 new ArraySet<>(new WindowContainer[]{activity2.getRootTask()}), in testGetAnimationTargets_visibilityAlreadyUpdated_butForcedTransitionRequested() 361 new ArraySet<>(new WindowContainer[]{activity.getRootTask()}), in testGetAnimationTargets_exitingBeforeTransition() 407 new ArraySet<>(new WindowContainer[]{activity1.getRootTask()}), in testGetAnimationTargets_openingClosingInDifferentTask() 411 new ArraySet<>(new WindowContainer[]{activity3.getRootTask()}), in testGetAnimationTargets_openingClosingInDifferentTask() 434 new ArraySet<>(new WindowContainer[]{activity1}), in testGetAnimationTargets_openingClosingInSameTask() 438 new ArraySet<>(new WindowContainer[]{activity2}), in testGetAnimationTargets_openingClosingInSameTask() 472 new ArraySet<>(new WindowContainer[]{activity1}), in testGetAnimationTargets_animateOnlyTranslucentApp() 476 new ArraySet<>(new WindowContainer[]{activity3}), in testGetAnimationTargets_animateOnlyTranslucentApp() [all …]
|
D | DisplayAreaPolicyBuilderTest.java | 148 Matcher<WindowContainer> fooDescendantMatcher = descendantOfOneOf( in testBuilder() 150 Matcher<WindowContainer> barDescendantMatcher = descendantOfOneOf( in testBuilder() 275 List<DisplayArea<? extends WindowContainer>> dimmableDAs = in testBuilder_createCustomizedDisplayAreaForFeature() 277 List<DisplayArea<? extends WindowContainer>> otherDAs = in testBuilder_createCustomizedDisplayAreaForFeature() 549 List<DisplayArea<? extends WindowContainer>> feature1DAs = in testBuilder_displayAreaGroup_createFeatureOnGroup() 551 List<DisplayArea<? extends WindowContainer>> feature2DAs = in testBuilder_displayAreaGroup_createFeatureOnGroup() 553 for (DisplayArea<? extends WindowContainer> da : feature1DAs) { in testBuilder_displayAreaGroup_createFeatureOnGroup() 556 for (DisplayArea<? extends WindowContainer> da : feature2DAs) { in testBuilder_displayAreaGroup_createFeatureOnGroup() 815 tdaOnSecondaryDisplay.mRemoteToken = new WindowContainer.RemoteToken(tdaOnSecondaryDisplay); in testGetTaskDisplayArea_DefaultFunction_TdaOnDifferentDisplay_ThrowException() 963 private Matcher<WindowContainer> descendantOfOneOf(List<? extends WindowContainer> expected) { in descendantOfOneOf() [all …]
|
D | WindowContainerTests.java | 51 import static com.android.server.wm.WindowContainer.AnimationFlags.CHILDREN; 52 import static com.android.server.wm.WindowContainer.AnimationFlags.PARENTS; 53 import static com.android.server.wm.WindowContainer.AnimationFlags.TRANSITION; 54 import static com.android.server.wm.WindowContainer.POSITION_BOTTOM; 55 import static com.android.server.wm.WindowContainer.POSITION_TOP; 167 WindowContainer child = new WindowContainer(mWm); in testAddChildSetsSurfacePosition() 270 final WindowContainer<WindowContainer> child1 = new WindowContainer(mWm); in testRemoveImmediatelyClearsLastSurfacePosition() 277 WindowContainer child11 = new WindowContainer(mWm); in testRemoveImmediatelyClearsLastSurfacePosition() 497 WindowContainer parent = windowState.getParent(); in testIsAnimating_typesToCheck() 963 private static void addLocalInsets(WindowContainer wc) { in addLocalInsets() [all …]
|
D | TaskDisplayAreaTests.java | 41 import static com.android.server.wm.WindowContainer.POSITION_TOP; 220 final WindowContainer taskContainer = rootTask1.getParent(); in testRootTaskPositionChildAt() 228 taskContainer.positionChildAt(WindowContainer.POSITION_BOTTOM, pinnedTask, false); in testRootTaskPositionChildAt() 252 final WindowContainer taskContainer = rootTask1.getParent(); in testRootTaskPositionBelowPinnedRootTask() 258 taskContainer.positionChildAt(WindowContainer.POSITION_TOP, rootTask1, false); in testRootTaskPositionBelowPinnedRootTask() 281 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testDisplayPositionWithPinnedRootTask() 285 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task, true /* includingParents */); in testDisplayPositionWithPinnedRootTask() 306 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testMovingChildTaskOnTop() 314 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task, true /* includingParents */); in testMovingChildTaskOnTop() 335 mWm.mRoot.positionChildAt(WindowContainer.POSITION_TOP, createNewDisplay(), in testDontMovingChildTaskOnTop() [all …]
|
D | ContentRecordingControllerTests.java | 57 private WindowContainer.RemoteToken mRootTaskToken; 60 private WindowContainer mTaskWindowContainer; 76 mRootTaskToken = new WindowContainer.RemoteToken(mTaskWindowContainer); in setup()
|
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/ |
D | ActivityOptionsWrapper.java | 69 TaskDisplayArea tda = (TaskDisplayArea) WindowContainer.fromBinder(daToken.asBinder()); in getLaunchTaskDisplayArea() 86 WindowContainerToken launchRootTaskToken = WindowContainer.fromBinder(windowContainerToken) in setLaunchRootTask()
|
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/ |
D | CarActivityInterceptorUpdatableTest.java | 59 private WindowContainer.RemoteToken mRootTaskToken1; 60 private WindowContainer.RemoteToken mRootTaskToken2; 111 mRootTaskToken1 = new WindowContainer.RemoteToken(mWindowContainer1); in setUp() 120 mRootTaskToken2 = new WindowContainer.RemoteToken(mWindowContainer2); in setUp() 229 .isEqualTo(WindowContainer.fromBinder(mRootTaskToken1) in interceptActivityLaunch_nullOptions_persistedActivity_setsLaunchRootTask() 267 .isEqualTo(WindowContainer.fromBinder(mRootTaskToken1) in interceptActivityLaunch_persistedActivity_setsLaunchRootTask()
|