/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | InsetsStateControllerTest.java | 22 import static android.view.InsetsSource.ID_IME; 89 getController().getOrCreateSourceProvider(ID_IME, ime()) in testStripForDispatch_navBar() 92 assertNull(navBar.getInsetsState().peekSource(ID_IME)); in testStripForDispatch_navBar() 110 assertNull(app.getInsetsState().peekSource(ID_IME)); in testStripForDispatch_pip() 149 getController().getOrCreateSourceProvider(ID_IME, ime()) in testStripForDispatch_independentSources() 155 app1.mAboveInsetsState.addSource(getController().getRawInsetsState().peekSource(ID_IME)); in testStripForDispatch_independentSources() 157 getController().getRawInsetsState().setSourceVisible(ID_IME, true); in testStripForDispatch_independentSources() 158 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testStripForDispatch_independentSources() 159 assertTrue(app1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testStripForDispatch_independentSources() 165 getController().getOrCreateSourceProvider(ID_IME, ime()) in testStripForDispatch_belowIme() [all …]
|
D | InsetsPolicyTest.java | 22 import static android.view.InsetsSource.ID_IME; 446 final InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testConsumeImeInsets() 463 assertTrue(win1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets() 464 assertTrue(win2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets() 474 assertTrue(win2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets() 475 assertFalse(win1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets() 487 assertTrue(win1.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets() 488 assertTrue(win2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testConsumeImeInsets()
|
D | WindowStateTests.java | 25 import static android.view.InsetsSource.ID_IME; 1128 assertTrue(app.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps() 1129 assertTrue(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps() 1137 assertTrue(app.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps() 1138 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps() 1167 assertTrue(app.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode() 1168 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode() 1178 assertTrue(app.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode() 1179 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testAdjustImeInsetsVisibilityWhenSwitchingApps_toAppInMultiWindowMode() 1224 mDisplayContent.getInsetsStateController().getOrCreateSourceProvider(ID_IME, ime()) in testNotificationShadeHasImeInsetsWhenMultiWindow() [all …]
|
D | WindowTokenTests.java | 19 import static android.view.InsetsSource.ID_IME; 267 .getOrCreateSourceProvider(ID_IME, WindowInsets.Type.ime()) in testSetInsetsFrozen_notAffectImeWindowState()
|
D | InsetsSourceProviderTest.java | 19 import static android.view.InsetsSource.ID_IME; 51 private InsetsSource mImeSource = new InsetsSource(ID_IME, ime());
|
D | DisplayPolicyTests.java | 21 import static android.view.InsetsSource.ID_IME; 516 final InsetsSource imeSource = state.peekSource(ID_IME); in testImeMinimalSourceFrame() 539 final InsetsSource imeSource = state.peekSource(ID_IME); in testImeInsetsGivenContentFrame()
|
D | DisplayPolicyLayoutTests.java | 204 realInsetsState.removeSource(InsetsSource.ID_IME); in assertSimulateLayoutSameDisplayFrames()
|
D | ActivityRecordTests.java | 52 import static android.view.InsetsSource.ID_IME; 3253 InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget() 3283 assertTrue(state.peekSource(ID_IME).isVisible()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget() 3284 assertEquals(state.peekSource(ID_IME).getFrame(), imeSource.getFrame()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget() 3309 assertTrue(app1.getInsetsState().peekSource(ID_IME).isVisible()); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3335 assertFalse(app2.getInsetsState().isSourceOrDefaultVisible(ID_IME, ime())); in testImeInsetsFrozenFlag_noDispatchVisibleInsetsWhenAppNotRequest() 3386 assertTrue(app1.getInsetsState().peekSource(ID_IME).isVisible()); in testImeInsetsFrozenFlag_multiWindowActivities() 3387 assertTrue(app2.getInsetsState().peekSource(ID_IME).isVisible()); in testImeInsetsFrozenFlag_multiWindowActivities()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | InsetsSourceConsumerTest.java | 21 import static android.view.InsetsSource.ID_IME; 152 ID_IME, ime(), state, null, controller); in testPendingStates() 154 InsetsSource source = new InsetsSource(ID_IME, ime()); in testPendingStates() 161 assertEquals(new Rect(0, 1, 2, 3), state.peekSource(ID_IME).getFrame()); in testPendingStates() 165 assertEquals(new Rect(4, 5, 6, 7), state.peekSource(ID_IME).getFrame()); in testPendingStates() 170 assertEquals(new Rect(4, 5, 6, 7), state.peekSource(ID_IME).getFrame()); in testPendingStates() 178 assertEquals(new Rect(4, 5, 6, 7), state.peekSource(ID_IME).getFrame()); in testPendingStates() 224 return new InsetsSourceConsumer(ID_IME, ime(), state, in testWontUpdateImeLeashVisibility_whenAnimation() 235 InsetsSourceConsumer imeConsumer = insetsController.getSourceConsumer(ID_IME, ime()); in testWontUpdateImeLeashVisibility_whenAnimation() 238 imeConsumer.setControl(new InsetsSourceControl(ID_IME, ime(), mLeash, in testWontUpdateImeLeashVisibility_whenAnimation() [all …]
|
D | InsetsControllerTest.java | 26 import static android.view.InsetsSource.ID_IME; 165 mImeSource = new InsetsSource(ID_IME, ime()); in setup() 260 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusGained(true); in testSystemDrivenInsetsAnimationLoggingListener_onReady() 277 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusGained(true); in testAnimationEndState() 290 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusLost(); in testAnimationEndState() 297 InsetsSourceControl ime = createControl(ID_IME, ime()); in testApplyImeVisibility() 300 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusGained(true); in testApplyImeVisibility() 307 mController.getSourceConsumer(ID_IME, ime()).onWindowFocusLost(); in testApplyImeVisibility() 468 assertFalse(mController.getState().peekSource(ID_IME).isVisible()); in testStartImeAnimationAfterGettingControl() 474 mController.onControlsChanged(createSingletonControl(ID_IME, ime())); in testStartImeAnimationAfterGettingControl() [all …]
|
D | InsetsStateTest.java | 22 import static android.view.InsetsSource.ID_IME; 104 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets() 114 assertEquals(SIDE_BOTTOM, typeSideMap.get(ID_IME)); in testCalculateInsets() 124 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets_imeAndNav() 173 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets_imeIgnoredWithoutAdjustResize() 189 mState.getOrCreateSource(ID_IME, ime()) in testCalculateInsets_systemUiFlagLayoutStable() 303 mState.getOrCreateSource(ID_IME, ime()); in testCalculateInsets_emptyIme() 316 mState.getOrCreateSource(ID_IME, ime()) in testStripForDispatch() 319 mState.removeSource(ID_IME); in testStripForDispatch() 371 final InsetsSource imeSource1 = new InsetsSource(ID_IME, ime()).setVisible(true); in testEquals_excludesInvisibleIme() [all …]
|
D | ImeInsetsSourceConsumerTest.java | 20 import static android.view.InsetsSource.ID_IME; 96 final InsetsSourceControl ime = new InsetsSourceControl(ID_IME, WindowInsets.Type.ime(), in testImeVisibility() 130 InsetsSourceControl control = new InsetsSourceControl(ID_IME, in testImeRequestedVisibleAwaitingControl() 161 InsetsSourceControl control = new InsetsSourceControl(ID_IME, in testImeRequestedVisibleAwaitingLeash() 174 InsetsSourceControl controlWithLeash = new InsetsSourceControl(ID_IME, in testImeRequestedVisibleAwaitingLeash() 218 InsetsSourceControl control = Mockito.spy(new InsetsSourceControl(ID_IME, in verifyImeGetAndClearSkipAnimationOnce()
|
D | WindowLayoutTests.java | 19 import static android.view.InsetsSource.ID_IME; 290 mState.getOrCreateSource(ID_IME, ime()) in insetParentFrameByIme()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/ |
D | DisplayImeControllerTest.java | 20 import static android.view.InsetsSource.ID_IME; 148 ID_IME, ime(), mock(SurfaceControl.class), false, new Point(0, 0), in insetsSourceControl() 155 state.addSource(new InsetsSource(ID_IME, ime())); in insetsStateWithIme() 156 state.setSourceVisible(ID_IME, visible); in insetsStateWithIme()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | DisplayImeController.java | 146 final InsetsSource imeSource = pd.mInsetsState.peekSource(InsetsSource.ID_IME); in isImeShowing() 253 updateImeVisibility(insetsState.isSourceOrDefaultVisible(InsetsSource.ID_IME, in insetsChanged() 257 final InsetsSource newSource = insetsState.peekSource(InsetsSource.ID_IME); in insetsChanged() 260 final InsetsSource oldSource = mInsetsState.peekSource(InsetsSource.ID_IME); in insetsChanged() 410 mInsetsState.setSourceVisible(InsetsSource.ID_IME, visible); in setVisibleDirectly() 441 final var imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation() 460 final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | InsetsStateController.java | 21 import static android.view.InsetsSource.ID_IME; 125 provider = id == ID_IME in getOrCreateSourceProvider() 138 return (ImeInsetsSourceProvider) getOrCreateSourceProvider(ID_IME, ime()); in getImeSourceProvider() 142 if (id != ID_IME) { in removeSourceProvider()
|
D | InsetsPolicy.java | 24 import static android.view.InsetsSource.ID_IME; 273 state.removeSource(ID_IME); in enforceInsetsPolicyForTarget() 390 final InsetsSource originalImeSource = originalState.peekSource(ID_IME); in adjustVisibilityForIme() 404 final InsetsSource originalImeSource = originalState.peekSource(ID_IME); in adjustVisibilityForIme()
|
D | ImeInsetsSourceProvider.java | 20 import static android.view.InsetsSource.ID_IME; 64 private final InsetsSource mLastSource = new InsetsSource(ID_IME, WindowInsets.Type.ime());
|
/frameworks/base/core/java/android/view/ |
D | WindowLayout.java | 19 import static android.view.InsetsSource.ID_IME; 92 final InsetsSource source = state.peekSource(ID_IME); in computeFrames()
|
D | InsetsAnimationControlImpl.java | 36 import static android.view.InsetsSource.ID_IME; 144 idSideMap.put(ID_IME, SIDE_BOTTOM); in InsetsAnimationControlImpl()
|
D | InsetsSource.java | 71 public static final int ID_IME = createId(null, 0, ime()); field in InsetsSource
|
D | InsetsController.java | 23 import static android.view.InsetsSource.ID_IME; 831 mImeSourceConsumer = getSourceConsumer(ID_IME, ime()); in InsetsController()
|
D | InsetsState.java | 671 final InsetsSource source = mSources.get(InsetsSource.ID_IME); in dumpDebug()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/sysui/ |
D | ShellController.java | 95 InsetsSource oldSource = mInsetsState.peekSource(InsetsSource.ID_IME); 99 InsetsSource newSource = insetsState.peekSource(InsetsSource.ID_IME);
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/ |
D | DividerView.java | 241 if (!insetsState.isSourceOrDefaultVisible(InsetsSource.ID_IME, WindowInsets.Type.ime())) { in onInsetsChanged()
|