Home
last modified time | relevance | path

Searched refs:WindowState (Results 1 – 25 of 56) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DWindowStateTests.java71 final WindowState parentWindow = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testIsParentWindowHidden()
72 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsParentWindowHidden()
73 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsParentWindowHidden()
90 final WindowState parentWindow = createWindow(null, TYPE_APPLICATION, "parentWindow"); in testIsChildWindow()
91 final WindowState child1 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child1"); in testIsChildWindow()
92 final WindowState child2 = createWindow(parentWindow, FIRST_SUB_WINDOW, "child2"); in testIsChildWindow()
93 final WindowState randomWindow = createWindow(null, TYPE_APPLICATION, "randomWindow"); in testIsChildWindow()
103 final WindowState win1 = createWindow(null, TYPE_APPLICATION, "win1"); in testHasChild()
104 final WindowState win11 = createWindow(win1, FIRST_SUB_WINDOW, "win11"); in testHasChild()
105 final WindowState win12 = createWindow(win1, FIRST_SUB_WINDOW, "win12"); in testHasChild()
[all …]
DWindowTestsBase.java80 WindowState mWallpaperWindow;
81 WindowState mImeWindow;
82 WindowState mImeDialogWindow;
83 WindowState mStatusBarWindow;
84 WindowState mDockedDividerWindow;
85 WindowState mNavBarWindow;
86 WindowState mAppWindow;
87 WindowState mChildAppWindowAbove;
88 WindowState mChildAppWindowBelow;
89 HashSet<WindowState> mCommonWindows;
[all …]
DZOrderingTests.java180 void assertWindowHigher(WindowState left, WindowState right) throws Exception { in assertWindowHigher()
184 WindowState createWindow(String name) { in createWindow()
207 final WindowState imeAppTarget = createWindow("imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTarget()
226 final WindowState imeAppTarget = createWindow("imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows()
227 final WindowState imeAppTargetChildAboveWindow = createWindow(imeAppTarget, in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows()
230 final WindowState imeAppTargetChildBelowWindow = createWindow(imeAppTarget, in testAssignWindowLayers_ForImeWithAppTargetWithChildWindows()
252 final WindowState appBelowImeTarget = createWindow("appBelowImeTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove()
253 final WindowState imeAppTarget = createWindow("imeAppTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove()
254 final WindowState appAboveImeTarget = createWindow("appAboveImeTarget"); in testAssignWindowLayers_ForImeWithAppTargetAndAppAbove()
275 final WindowState imeSystemOverlayTarget = createWindow(null, TYPE_SYSTEM_OVERLAY, in testAssignWindowLayers_ForImeNonAppImeTarget()
[all …]
DTestWindowManagerPolicy.java96 public void adjustWindowParamsLw(WindowState win, WindowManager.LayoutParams attrs, in adjustWindowParamsLw()
141 public boolean canBeHiddenByKeyguardLw(WindowState win) { in canBeHiddenByKeyguardLw()
157 final com.android.server.wm.WindowState window; in addSplashScreen()
180 public int prepareAddWindowLw(WindowState win,
186 public void removeWindowLw(WindowState win) {
191 public int selectAnimationLw(WindowState win, int transit) {
228 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event,
234 public KeyEvent dispatchUnhandledKey(WindowState win, KeyEvent event,
250 public void applyPostLayoutPolicyLw(WindowState win,
251 WindowManager.LayoutParams attrs, WindowState attached, WindowState imeTarget) {
[all …]
DWindowTokenTests.java56 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testAddWindow()
57 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); in testAddWindow()
58 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12"); in testAddWindow()
59 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); in testAddWindow()
60 final WindowState window3 = createWindow(null, TYPE_APPLICATION, token, "window3"); in testAddWindow()
86 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testChildRemoval()
87 final WindowState window2 = createWindow(null, TYPE_APPLICATION, token, "window2"); in testChildRemoval()
111 final WindowState window1 = createWindow(null, TYPE_TOAST, token, "window1"); in testTokenRemovalProcess()
112 final WindowState window2 = createWindow(null, TYPE_TOAST, token, "window2"); in testTokenRemovalProcess()
DAppWindowTokenTests.java77 final WindowState win1 = createWindow(null, TYPE_APPLICATION, mToken, "win1"); in testAddWindow_Order()
78 final WindowState startingWin = createWindow(null, TYPE_APPLICATION_STARTING, mToken, in testAddWindow_Order()
80 final WindowState baseWin = createWindow(null, TYPE_BASE_APPLICATION, mToken, "baseWin"); in testAddWindow_Order()
81 final WindowState win4 = createWindow(null, TYPE_APPLICATION, mToken, "win4"); in testAddWindow_Order()
103 final WindowState window1 = createWindow(null, TYPE_BASE_APPLICATION, mToken, "window1"); in testFindMainWindow()
104 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, mToken, "window11"); in testFindMainWindow()
105 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, mToken, "window12"); in testFindMainWindow()
109 … final WindowState window2 = createWindow(null, TYPE_APPLICATION_STARTING, mToken, "window2"); in testFindMainWindow()
119 final WindowState window1 = createWindow(null, TYPE_BASE_APPLICATION, mToken, "window1"); in testGetTopFullscreenWindow()
120 final WindowState window11 = createWindow(null, TYPE_APPLICATION, mToken, "window11"); in testGetTopFullscreenWindow()
[all …]
DTaskSnapshotControllerTest.java48 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, in testGetClosingApps_closing()
62 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, in testGetClosingApps_notClosing()
64 final WindowState openingWindow = createAppWindow(closingWindow.getTask(), in testGetClosingApps_notClosing()
79 final WindowState closingWindow = createWindow(null, FIRST_APPLICATION_WINDOW, in testGetClosingApps_skipClosingAppsSnapshotTasks()
94 final WindowState disabledWindow = createWindow(null, in testGetSnapshotMode()
100 final WindowState normalWindow = createWindow(null, in testGetSnapshotMode()
105 final WindowState secureWindow = createWindow(null, in testGetSnapshotMode()
DDisplayContentTests.java80 final WindowState exitingAppWindow = createWindow(null, TYPE_BASE_APPLICATION, in testForAllWindows()
101 final WindowState imeAppTarget = in testForAllWindows_WithAppImeTarget()
155 final WindowState voiceInteractionWindow = createWindow(null, TYPE_VOICE_INTERACTION, in testForAllWindows_WithInBetweenWindowToken()
174 final WindowState appWin = createWindow(null, TYPE_APPLICATION, mDisplayContent, "appWin"); in testComputeImeTarget()
177 WindowState imeTarget = mDisplayContent.computeImeTarget(false /* updateImeTarget */); in testComputeImeTarget()
182 final WindowState childWin = createWindow(appWin, in testComputeImeTarget()
315 final WindowState window1 = in testFocusedWindowMultipleDisplays()
324 final WindowState window2 = createWindow(null, TYPE_BASE_APPLICATION, dc, "window2"); in testFocusedWindowMultipleDisplays()
334 final WindowState keyguard = createWindow(null, TYPE_STATUS_BAR, in testKeyguard_preventsSecondaryDisplayFocus()
340 final WindowState win = createWindow(null, TYPE_BASE_APPLICATION, dc, "win"); in testKeyguard_preventsSecondaryDisplayFocus()
[all …]
DTaskSnapshotCacheTest.java51 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testAppRemoved()
62 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testAppDied()
73 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testTaskRemoved()
84 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testReduced_notCached()
101 final WindowState window = createWindow(null, FIRST_APPLICATION_WINDOW, "window"); in testRestoreFromDisk()
DRemoteAnimationControllerTest.java87 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testRun()
122 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testCancel()
134 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testTimeout()
151 … final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testTimeout_scaled()
181 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testNotReallyStarted()
190 final WindowState win1 = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin1"); in testOneNotStarted()
191 final WindowState win2 = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin2"); in testOneNotStarted()
210 final WindowState win = createWindow(null /* parent */, TYPE_BASE_APPLICATION, "testWin"); in testRemovedBeforeStarted()
DWindowContainerTraversalTests.java48 final WindowState splitScreenWindow = createWindowOnStack(null, in testDockedDividerPosition()
51 final WindowState splitScreenSecondaryWindow = createWindowOnStack(null, in testDockedDividerPosition()
57 Consumer<WindowState> c = mock(Consumer.class); in testDockedDividerPosition()
DDragDropControllerTests.java62 private WindowState mWindow;
91 private WindowState createDropTargetWindow(String name, int ownerId) { in createDropTargetWindow()
99 final WindowState window = createWindow( in createDropTargetWindow()
155 final WindowState otherUsersWindow = in testPerformDrag_NullDataToOtherUser()
DWindowTestUtils.java137 boolean hasWindow(WindowState w) { in hasWindow()
141 WindowState getFirstChild() { in getFirstChild()
145 WindowState getLastChild() { in getLastChild()
186 boolean hasWindow(WindowState w) { in hasWindow()
326 public static class TestWindowState extends WindowState {
/frameworks/base/services/core/java/com/android/server/wm/
DWindowToken.java48 class WindowToken extends WindowContainer<WindowState> {
94 private final Comparator<WindowState> mWindowComparator =
95 (WindowState newWindow, WindowState existingWindow) -> {
139 final WindowState win = mChildren.get(i); in removeAllWindowsIfPossible()
164 final WindowState win = mChildren.get(i); in setExiting()
187 protected boolean isFirstChildWindowGreaterThanSecond(WindowState newWindow, in isFirstChildWindowGreaterThanSecond()
188 WindowState existingWindow) { in isFirstChildWindowGreaterThanSecond()
193 void addWindow(final WindowState win) { in addWindow()
214 WindowState getReplacingWindow() { in getReplacingWindow()
216 final WindowState win = mChildren.get(i); in getReplacingWindow()
[all …]
DAppWindowToken.java188 WindowState startingWindow;
197 private final WindowState.UpdateReportedVisibilityResults mReportedVisibilityResults =
198 new WindowState.UpdateReportedVisibilityResults();
297 void onFirstWindowDrawn(WindowState win, WindowStateAnimator winAnimator) { in onFirstWindowDrawn()
328 final WindowState win = mChildren.get(i); in updateReportedVisibilityLocked()
414 final WindowState window = findMainWindow(); in setVisibility()
425 final WindowState win = mChildren.get(i); in setVisibility()
535 WindowState getTopFullscreenWindow() { in getTopFullscreenWindow()
537 final WindowState win = mChildren.get(i); in getTopFullscreenWindow()
545 WindowState findMainWindow() { in findMainWindow()
[all …]
DWallpaperController.java68 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 -> {
200 WindowState getWallpaperTarget() { in getWallpaperTarget()
204 boolean isWallpaperTarget(WindowState win) { in isWallpaperTarget()
208 boolean isBelowWallpaperTarget(WindowState win) { in isBelowWallpaperTarget()
226 private final boolean isWallpaperVisible(WindowState wallpaperTarget) { in isWallpaperVisible()
[all …]
DWallpaperWindowToken.java53 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()
DDragState.java107 WindowState mTargetWindow;
108 ArrayList<WindowState> mNotifiedWindows;
129 mNotifiedWindows = new ArrayList<WindowState>(); in DragState()
156 for (WindowState ws : mNotifiedWindows) { in closeLocked()
344 private void sendDragStartedLocked(WindowState newWin, float touchX, float touchY, in sendDragStartedLocked()
364 private boolean isValidDropTarget(WindowState targetWin) { in isValidDropTarget()
382 private boolean targetWindowSupportsGlobalDrag(WindowState targetWin) { in targetWindowSupportsGlobalDrag()
393 void sendDragStartedIfNeededLocked(WindowState newWin) { in sendDragStartedIfNeededLocked()
406 private boolean isWindowNotified(WindowState newWin) { in isWindowNotified()
407 for (WindowState ws : mNotifiedWindows) { in isWindowNotified()
[all …]
DInputMonitor.java66 private WindowState mInputFocus;
214 WindowState windowState = (WindowState) inputWindowHandle.windowState; in notifyInputChannelBroken()
231 WindowState windowState = null; in notifyANR()
235 windowState = (WindowState) inputWindowHandle.windowState; in notifyANR()
310 final WindowState child, int flags, final int type, final boolean isVisible, in addInputWindowHandle()
476 WindowState windowState = focus != null ? (WindowState) focus.windowState : null; in interceptKeyBeforeDispatching()
485 WindowState windowState = focus != null ? (WindowState) focus.windowState : null; in dispatchUnhandledKey()
500 public void setInputFocusLw(WindowState newWindow, boolean updateInputWindows) { in setInputFocusLw()
612 private final class UpdateInputForAllWindowsConsumer implements Consumer<WindowState> {
651 public void accept(WindowState w) { in accept()
DWindowState.java215 class WindowState extends WindowContainer<WindowState> implements WindowManagerPolicy.WindowState { class
577 private WindowState mReplacementWindow = null;
645 private static final Comparator<WindowState> sWindowSubLayerComparator =
646 new Comparator<WindowState>() {
648 public int compare(WindowState w1, WindowState w2) {
677 WindowState(WindowManagerService service, Session s, IWindow c, WindowToken token, in WindowState() method in WindowState
678 WindowState parentWindow, int appOp, int seq, WindowManager.LayoutParams a, in WindowState()
694 WindowState(WindowManagerService service, Session s, IWindow c, WindowToken token, in WindowState() method in WindowState
695 WindowState parentWindow, int appOp, int seq, WindowManager.LayoutParams a, in WindowState()
907 final WindowState imeWin = mService.mInputMethodWindow; in computeFrameLw()
[all …]
DAccessibilityController.java172 public void onAppWindowTransitionLocked(WindowState windowState, int transition) { in onAppWindowTransitionLocked()
179 public void onWindowTransitionLocked(WindowState windowState, int transition) { in onWindowTransitionLocked()
217 public MagnificationSpec getMagnificationSpecForWindowLocked(WindowState windowState) { in getMagnificationSpecForWindowLocked()
236 private static void populateTransformationMatrixLocked(WindowState windowState, in populateTransformationMatrixLocked()
340 public void onAppWindowTransitionLocked(WindowState windowState, int transition) { in onAppWindowTransitionLocked()
361 public void onWindowTransitionLocked(WindowState windowState, int transition) { in onWindowTransitionLocked()
415 public MagnificationSpec getMagnificationSpecForWindowLocked(WindowState windowState) { in getMagnificationSpecForWindowLocked()
448 private final SparseArray<WindowState> mTempWindowStates =
449 new SparseArray<WindowState>();
530 SparseArray<WindowState> visibleWindows = mTempWindowStates; in recomputeBoundsLocked()
[all …]
DWindowManagerService.java470 final ArrayList<WindowState> mResizingWindows = new ArrayList<>();
475 final ArrayList<WindowState> mPendingRemove = new ArrayList<>();
480 WindowState[] mPendingRemoveTmp = new WindowState[20];
485 final ArrayList<WindowState> mDestroySurface = new ArrayList<>();
492 final ArrayList<WindowState> mDestroyPreservedSurface = new ArrayList<>();
498 ArrayList<WindowState> mLosingFocus = new ArrayList<>();
504 final ArrayList<WindowState> mForceRemoves = new ArrayList<>();
509 ArrayList<WindowState> mWaitingForDrawn = new ArrayList<>();
516 private ArrayList<WindowState> mHidingNonSystemOverlayWindows = new ArrayList<>();
545 WindowState mLastWakeLockHoldingWindow = null;
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DKeyboardInterceptorTest.java50 import com.android.server.policy.WindowManagerPolicy.WindowState;
86 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysUseIt_eventGoesToAms()
95 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDropIt_eventDropped()
105 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms()
112 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenUse_eventQueuedThenSentToAms()
122 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
129 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenVolumeKeyArrives_andPolicySaysDelayThenDrop_eventQueuedThenDropped()
144 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder()
146 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder()
153 when(mMockPolicy.interceptKeyBeforeDispatching((WindowState) argThat(nullValue()), in whenSomeEventsGetDelayed_allEventsStillInOrder()
[all …]
/frameworks/base/services/core/java/com/android/server/policy/
DWindowManagerPolicy.java185 public interface WindowState { interface
322 public boolean getNeedsMenuLw(WindowState bottom); in getNeedsMenuLw()
612 WindowState getInputMethodWindowLw(); in getInputMethodWindowLw()
748 public void adjustWindowParamsLw(WindowState win, WindowManager.LayoutParams attrs, in adjustWindowParamsLw()
777 default int getWindowLayerLw(WindowState win) { in getWindowLayerLw()
989 public boolean canBeHiddenByKeyguardLw(WindowState win); in canBeHiddenByKeyguardLw()
1029 public int prepareAddWindowLw(WindowState win, in prepareAddWindowLw()
1038 public void removeWindowLw(WindowState win); in removeWindowLw()
1052 public int selectAnimationLw(WindowState win, int transit); in selectAnimationLw()
1135 public long interceptKeyBeforeDispatching(WindowState win, KeyEvent event, int policyFlags); in interceptKeyBeforeDispatching()
[all …]
DBarController.java33 import com.android.server.policy.WindowManagerPolicy.WindowState;
64 protected WindowState mWin;
88 public void setWindow(WindowState win) { in setWindow()
139 public int applyTranslucentFlagLw(WindowState win, int vis, int oldVis) { in applyTranslucentFlagLw()
163 boolean isTransparentAllowed(WindowState win) { in isTransparentAllowed()
202 private int computeStateLw(boolean wasVis, boolean wasAnim, WindowState win, boolean change) { in computeStateLw()

123