/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowTestsBase.java | 91 WindowState mWallpaperWindow; 92 WindowState mImeWindow; 93 WindowState mImeDialogWindow; 94 WindowState mStatusBarWindow; 95 WindowState mDockedDividerWindow; 96 WindowState mNavBarWindow; 97 WindowState mAppWindow; 98 WindowState mChildAppWindowAbove; 99 WindowState mChildAppWindowBelow; 100 HashSet<WindowState> mCommonWindows; [all …]
|
D | WindowStateTests.java | 121 final WindowState parentWindow = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testIsParentWindowHidden() 122 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsParentWindowHidden() 123 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsParentWindowHidden() 139 final WindowState parentWindow = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testIsChildWindow() 140 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsChildWindow() 141 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsChildWindow() 142 final WindowState randomWindow = createWindow(null, TYPE_APPLICATION, "randomWindow"); in testIsChildWindow() 152 final WindowState win1 = createWindow(null, TYPE_APPLICATION, "win1"); in testHasChild() 153 final WindowState win11 = createWindow(win1, FIRST_SUB_WINDOW, "win11"); in testHasChild() 154 final WindowState win12 = createWindow(win1, FIRST_SUB_WINDOW, "win12"); in testHasChild() [all …]
|
D | ZOrderingTests.java | 206 void assertWindowHigher(WindowState left, WindowState right) { in assertWindowHigher() 210 WindowState createWindow(String name) { in createWindow() 233 final WindowState imeAppTarget = createWindow("imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTarget() 252 final WindowState imeAppTarget = createWindow("imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows() 253 final WindowState imeAppTargetChildAboveWindow = createWindow(imeAppTarget, in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows() 256 final WindowState imeAppTargetChildBelowWindow = createWindow(imeAppTarget, in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows() 278 final WindowState appBelowImeTarget = createWindow("appBelowImeTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 279 final WindowState imeAppTarget = createWindow("imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 280 final WindowState appAboveImeTarget = createWindow("appAboveImeTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove() 301 final WindowState imeSystemOverlayTarget = createWindow(null, TYPE_SYSTEM_OVERLAY, in testAssignWindowLayers_ForImeNonAppImeTarget() [all …]
|
D | InsetsStateControllerTest.java | 63 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_notOwn() 64 final WindowState app = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_notOwn() 73 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_own() 83 final WindowState navBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_navBar() 84 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_navBar() 85 final WindowState ime = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testStripForDispatch_navBar() 95 final WindowState navBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testBarControllingWinChanged() 96 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testBarControllingWinChanged() 97 final WindowState app = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testBarControllingWinChanged() 108 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testControlRevoked() [all …]
|
D | DisplayPolicyTests.java | 64 private WindowState createOpaqueFullscreen(boolean hasLightNavBar) { in createOpaqueFullscreen() 65 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, "opaqueFullscreen"); in createOpaqueFullscreen() 77 private WindowState createDimmingDialogWindow(boolean canBeImTarget) { in createDimmingDialogWindow() 78 final WindowState win = spy(createWindow(null, TYPE_APPLICATION, "dimmingDialog")); in createDimmingDialogWindow() 88 private WindowState createInputMethodWindow(boolean visible, boolean drawNavBar, in createInputMethodWindow() 90 final WindowState win = createWindow(null, TYPE_INPUT_METHOD, "inputMethod"); in createInputMethodWindow() 105 final WindowState opaque = createOpaqueFullscreen(false); in testChooseNavigationColorWindowLw() 107 final WindowState dimmingImTarget = createDimmingDialogWindow(true); in testChooseNavigationColorWindowLw() 108 final WindowState dimmingNonImTarget = createDimmingDialogWindow(false); in testChooseNavigationColorWindowLw() 110 final WindowState visibleIme = createInputMethodWindow(true, true, false); in testChooseNavigationColorWindowLw() [all …]
|
D | WindowTokenTests.java | 52 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testAddWindow() 53 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); in testAddWindow() 54 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12"); in testAddWindow() 55 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); in testAddWindow() 56 final WindowState window3 = createWindow(null, TYPE_APPLICATION, token, "window3"); in testAddWindow() 82 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testChildRemoval() 83 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); in testChildRemoval() 107 final WindowState window1 = createWindow(null, TYPE_TOAST, token, "window1"); in testTokenRemovalProcess() 108 final WindowState window2 = createWindow(null, TYPE_TOAST, token, "window2"); in testTokenRemovalProcess()
|
D | InsetsSourceProviderTest.java | 56 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testPostLayout() 69 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testPostLayout_invisible() 79 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testPostLayout_frameProvider() 91 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testUpdateControlForTarget() 92 final WindowState target = createWindow(null, TYPE_APPLICATION, "target"); in testUpdateControlForTarget() 103 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testInsetsModified() 104 final WindowState target = createWindow(null, TYPE_APPLICATION, "target"); in testInsetsModified() 116 final WindowState topBar = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testInsetsModified_noControl() 117 final WindowState target = createWindow(null, TYPE_APPLICATION, "target"); in testInsetsModified_noControl()
|
D | RootWindowContainerTests.java | 49 final WindowState toastyToast = createWindow(null, TYPE_TOAST, "toast", FAKE_CALLING_UID); in testIsAnyNonToastWindowVisibleForUid_oneToastOneAppStartOneNonToastBothVisible() 50 final WindowState app = createWindow(null, TYPE_APPLICATION, "app", FAKE_CALLING_UID); in testIsAnyNonToastWindowVisibleForUid_oneToastOneAppStartOneNonToastBothVisible() 51 final WindowState appStart = createWindow(null, TYPE_APPLICATION_STARTING, "appStarting", in testIsAnyNonToastWindowVisibleForUid_oneToastOneAppStartOneNonToastBothVisible() 65 final WindowState toastyToast = createWindow(null, TYPE_TOAST, "toast", FAKE_CALLING_UID); in testIsAnyNonToastWindowVisibleForUid_onlyToastVisible() 74 final WindowState appStart = createWindow(null, TYPE_APPLICATION_STARTING, "appStarting", in testIsAnyNonToastWindowVisibleForUid_onlyAppStartingVisible() 84 final WindowState topBar = createWindow(null, TYPE_STATUS_BAR, "topBar", FAKE_CALLING_UID); in testIsAnyNonToastWindowVisibleForUid_aFewNonToastButNoneVisible() 85 final WindowState app = createWindow(null, TYPE_APPLICATION, "app", FAKE_CALLING_UID); in testIsAnyNonToastWindowVisibleForUid_aFewNonToastButNoneVisible()
|
D | TaskSnapshotControllerTest.java | 49 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, in testGetClosingApps_closing() 63 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, in testGetClosingApps_notClosing() 65 final WindowState openingWindow = createAppWindow(closingWindow.getTask(), in testGetClosingApps_notClosing() 80 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, in testGetClosingApps_skipClosingAppsSnapshotTasks() 95 final WindowState disabledWindow = createWindow(null, in testGetSnapshotMode() 101 final WindowState normalWindow = createWindow(null, in testGetSnapshotMode() 106 final WindowState secureWindow = createWindow(null, in testGetSnapshotMode()
|
D | RefreshRatePolicyTest.java | 65 final WindowState cameraUsingWindow = createWindow(null, TYPE_BASE_APPLICATION, in testCamera() 77 final WindowState blacklistedWindow = createWindow(null, TYPE_BASE_APPLICATION, in testBlacklist() 86 final WindowState overrideWindow = createWindow(null, TYPE_BASE_APPLICATION, in testAppOverride_blacklist() 95 final WindowState overrideWindow = createWindow(null, TYPE_BASE_APPLICATION, in testAppOverride_camera() 105 final WindowState overrideWindow = createWindow(null, TYPE_BASE_APPLICATION, in testAnimatingAppOverride() 118 final WindowState cameraUsingWindow = createWindow(null, TYPE_BASE_APPLICATION, in testAnimatingCamera()
|
D | DisplayContentTests.java | 113 final WindowState exitingAppWindow = createWindow(null, TYPE_BASE_APPLICATION, in testForAllWindows() 138 final WindowState imeAppTarget = in testForAllWindows_WithAppImeTarget() 192 final WindowState voiceInteractionWindow = createWindow(null, TYPE_VOICE_INTERACTION, in testForAllWindows_WithInBetweenWindowToken() 211 final WindowState appWin = createWindow(null, TYPE_APPLICATION, mDisplayContent, "appWin"); in testComputeImeTarget() 214 WindowState imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget() 219 final WindowState childWin = createWindow(appWin, in testComputeImeTarget() 363 final WindowState window1 = in doTestFocusedWindowMultipleDisplays() 377 final WindowState window2 = createWindow(null, TYPE_BASE_APPLICATION, dc, "window2"); in doTestFocusedWindowMultipleDisplays() 504 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, dc, "w"); in testLayoutSeq_assignedDuringLayout() 526 final WindowState window = createWindow(null /* parent */, TYPE_BASE_APPLICATION, dc, "w"); in testOrientationDefinedByKeyguard() [all …]
|
D | TaskSnapshotCacheTest.java | 53 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testAppRemoved() 64 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testAppDied() 75 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testTaskRemoved() 86 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testReduced_notCached() 103 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testRestoreFromDisk()
|
D | WindowFrameTests.java | 61 static class FrameTestWindowState extends WindowState { 91 private void assertContentInset(WindowState w, int left, int top, int right, int bottom) { in assertContentInset() 95 private void assertVisibleInset(WindowState w, int left, int top, int right, int bottom) { in assertVisibleInset() 99 private void assertStableInset(WindowState w, int left, int top, int right, int bottom) { in assertStableInset() 103 private void assertFrame(WindowState w, int left, int top, int right, int bottom) { in assertFrame() 107 private void assertContentFrame(WindowState w, Rect expectedRect) { in assertContentFrame() 112 private void assertVisibleFrame(WindowState w, Rect expectedRect) { in assertVisibleFrame() 117 private void assertStableFrame(WindowState w, Rect expectedRect) { in assertStableFrame() 132 WindowState w = createWindow(MATCH_PARENT, MATCH_PARENT); in testLayoutInFullscreenTaskInsets() 189 WindowState w = createWindow(MATCH_PARENT, MATCH_PARENT); in testLayoutInFullscreenTaskNoInsets() [all …]
|
D | TestWindowManagerPolicy.java | 99 public boolean canBeHiddenByKeyguardLw(WindowState win) { in canBeHiddenByKeyguardLw() 115 final com.android.server.wm.WindowState window; in addSplashScreen() 140 public void setKeyguardCandidateLw(WindowState win) { 166 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags) { 171 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags) { 180 public void applyKeyguardPolicyLw(WindowState win, WindowState imeTarget) {
|
D | WindowTestUtils.java | 83 boolean hasWindow(WindowState w) { in hasWindow() 87 WindowState getFirstChild() { in getFirstChild() 91 WindowState getLastChild() { in getLastChild() 125 boolean hasWindow(WindowState w) { in hasWindow() 174 static class TestWindowState extends WindowState {
|
D | WindowContainerTraversalTests.java | 49 final WindowState splitScreenWindow = createWindowOnStack(null, in testDockedDividerPosition() 52 final WindowState splitScreenSecondaryWindow = createWindowOnStack(null, in testDockedDividerPosition() 58 Consumer<WindowState> c = mock(Consumer.class); in testDockedDividerPosition()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InsetsStateController.java | 50 private final ArrayMap<WindowState, ArrayList<Integer>> mWinControlTypeMap = new ArrayMap<>(); 51 private final SparseArray<WindowState> mTypeWinControlMap = new SparseArray<>(); 52 private final ArraySet<WindowState> mPendingControlChanged = new ArraySet<>(); 54 private final Consumer<WindowState> mDispatchInsetsChanged = w -> { 71 InsetsState getInsetsForDispatch(WindowState target) { in getInsetsForDispatch() 90 @Nullable InsetsSourceControl[] getControlsForDispatch(WindowState target) { in getControlsForDispatch() 125 void onInsetsModified(WindowState windowState, InsetsState state) { in onInsetsModified() 140 void onImeTargetChanged(@Nullable WindowState imeTarget) { in onImeTargetChanged() 151 void onBarControllingWindowChanged(@Nullable WindowState controllingWindow) { in onBarControllingWindowChanged() 161 void notifyControlRevoked(@NonNull WindowState previousControllingWin, in notifyControlRevoked() [all …]
|
D | WindowToken.java | 49 class WindowToken extends WindowContainer<WindowState> { 92 private final Comparator<WindowState> mWindowComparator = 93 (WindowState newWindow, WindowState existingWindow) -> { 137 final WindowState win = mChildren.get(i); in removeAllWindowsIfPossible() 162 final WindowState win = mChildren.get(i); in setExiting() 193 protected boolean isFirstChildWindowGreaterThanSecond(WindowState newWindow, in isFirstChildWindowGreaterThanSecond() 194 WindowState existingWindow) { in isFirstChildWindowGreaterThanSecond() 199 void addWindow(final WindowState win) { in addWindow() 220 WindowState getReplacingWindow() { in getReplacingWindow() 222 final WindowState win = mChildren.get(i); in getReplacingWindow() [all …]
|
D | WallpaperController.java | 68 private WindowState mWallpaperTarget = null; 71 private WindowState mPrevWallpaperTarget = null; 82 private WindowState mWaitingOnWallpaper; 95 WindowState mDeferredHideWallpaper = null; 108 private WindowState mTmpTopWallpaper; 112 private final ToBooleanFunction<WindowState> mFindWallpaperTargetFunction = w -> { 195 WindowState getWallpaperTarget() { in getWallpaperTarget() 199 boolean isWallpaperTarget(WindowState win) { in isWallpaperTarget() 203 boolean isBelowWallpaperTarget(WindowState win) { in isBelowWallpaperTarget() 221 private final boolean isWallpaperVisible(WindowState wallpaperTarget) { in isWallpaperVisible() [all …]
|
D | WallpaperWindowToken.java | 53 final WindowState wallpaper = mChildren.get(j); in hideWallpaperToken() 62 final WindowState wallpaper = mChildren.get(wallpaperNdx); in sendWindowWallpaperCommand() 75 final WindowState wallpaper = mChildren.get(wallpaperNdx); in updateWallpaperOffset() 97 final WindowState wallpaper = mChildren.get(wallpaperNdx); in updateWallpaperVisibility() 111 final WindowState windowState = mChildren.get(ndx); in startAnimation() 131 final WindowState wallpaper = mChildren.get(wallpaperNdx); in updateWallpaperWindows() 147 final WindowState wallpaper = mChildren.get(j); in hasVisibleNotDrawnWallpaper()
|
D | InsetsSourceProvider.java | 55 private @Nullable WindowState mControllingWin; 57 private WindowState mWin; 58 private TriConsumer<DisplayFrames, WindowState, Rect> mFrameProvider; 105 void setWindow(@Nullable WindowState win, in setWindow() argument 106 @Nullable TriConsumer<DisplayFrames, WindowState, Rect> frameProvider) { in setWindow() 148 void updateControlForTarget(@Nullable WindowState target, boolean force) { in updateControlForTarget() 170 boolean onInsetsModified(WindowState caller, InsetsSource modifiedSource) { in onInsetsModified()
|
D | AppWindowToken.java | 81 import static com.android.server.wm.WindowState.LEGACY_POLICY_VISIBILITY; 210 WindowState startingWindow; 219 private final WindowState.UpdateReportedVisibilityResults mReportedVisibilityResults = 220 new WindowState.UpdateReportedVisibilityResults(); 378 void onFirstWindowDrawn(WindowState win, WindowStateAnimator winAnimator) { in onFirstWindowDrawn() 407 final WindowState win = mChildren.get(i); in updateReportedVisibilityLocked() 587 final WindowState win = getDisplayContent().findFocusedWindow(); in setVisibility() 641 final WindowState window = findMainWindow(); in commitVisibility() 650 final WindowState win = mChildren.get(i); in commitVisibility() 783 WindowState getTopFullscreenWindow() { in getTopFullscreenWindow() [all …]
|
D | AccessibilityController.java | 195 public void onAppWindowTransitionLocked(WindowState windowState, int transition) { in onAppWindowTransitionLocked() 204 public void onWindowTransitionLocked(WindowState windowState, int transition) { in onWindowTransitionLocked() 245 public MagnificationSpec getMagnificationSpecForWindowLocked(WindowState windowState) { in getMagnificationSpecForWindowLocked() 268 private static void populateTransformationMatrixLocked(WindowState windowState, in populateTransformationMatrixLocked() 378 public void onAppWindowTransitionLocked(WindowState windowState, int transition) { in onAppWindowTransitionLocked() 399 public void onWindowTransitionLocked(WindowState windowState, int transition) { in onWindowTransitionLocked() 453 public MagnificationSpec getMagnificationSpecForWindowLocked(WindowState windowState) { in getMagnificationSpecForWindowLocked() 486 private final SparseArray<WindowState> mTempWindowStates = 487 new SparseArray<WindowState>(); 568 SparseArray<WindowState> visibleWindows = mTempWindowStates; in recomputeBoundsLocked() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | KeyboardInterceptorTest.java | 36 import com.android.server.policy.WindowManagerPolicy.WindowState; 82 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms() 91 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped() 101 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 108 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms() 118 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped() 125 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped() 140 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder() 142 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder() 149 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder() [all …]
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | WindowManagerPolicy.java | 179 public interface WindowState { interface 289 public boolean getNeedsMenuLw(WindowState bottom); in getNeedsMenuLw() 580 WindowState getInputMethodWindowLw(); in getInputMethodWindowLw() 763 default int getWindowLayerLw(WindowState win) { in getWindowLayerLw() 943 public boolean canBeHiddenByKeyguardLw(WindowState win); in canBeHiddenByKeyguardLw() 977 void setKeyguardCandidateLw(@Nullable WindowState win); in setKeyguardCandidateLw() 1037 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching() 1053 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event, int policyFlags); in dispatchUnhandledKey() 1068 void applyKeyguardPolicyLw(WindowState win, WindowState imeTarget); in applyKeyguardPolicyLw() 1496 default void onDefaultDisplayFocusChangedLw(WindowState newFocus) {} in onDefaultDisplayFocusChangedLw()
|