Home
last modified time | relevance | path

Searched refs:imeSource (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DDisplayImeController.java146 final InsetsSource imeSource = pd.mInsetsState.peekSource(InsetsSource.ID_IME); in isImeShowing() local
147 return imeSource != null && pd.mImeSourceControl != null && imeSource.isVisible(); in isImeShowing()
425 private boolean calcIsFloating(InsetsSource imeSource) { in calcIsFloating() argument
426 final Rect frame = imeSource.getFrame(); in calcIsFloating()
441 final var imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation() local
442 if (imeSource == null || mImeSourceControl == null) { in startAnimation()
460 final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation() local
461 if (imeSource == null || mImeSourceControl == null) { in startAnimation()
465 final Rect newFrame = imeSource.getFrame(); in startAnimation()
466 final boolean isFloating = calcIsFloating(imeSource) && show; in startAnimation()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayPolicyTests.java516 final InsetsSource imeSource = state.peekSource(ID_IME); in testImeMinimalSourceFrame() local
520 assertNotNull(imeSource); in testImeMinimalSourceFrame()
522 assertFalse(imeSource.getFrame().isEmpty()); in testImeMinimalSourceFrame()
524 assertTrue(imeSource.getFrame().contains(navBarSource.getFrame())); in testImeMinimalSourceFrame()
539 final InsetsSource imeSource = state.peekSource(ID_IME); in testImeInsetsGivenContentFrame() local
541 assertNotNull(imeSource); in testImeInsetsGivenContentFrame()
542 assertFalse(imeSource.getFrame().isEmpty()); in testImeInsetsGivenContentFrame()
544 imeSource.getFrame().height()); in testImeInsetsGivenContentFrame()
DInsetsPolicyTest.java446 final InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testConsumeImeInsets() local
447 imeSource.setVisible(true); in testConsumeImeInsets()
453 win1.mAboveInsetsState.addSource(imeSource); in testConsumeImeInsets()
455 win2.mAboveInsetsState.addSource(imeSource); in testConsumeImeInsets()
DActivityRecordTests.java3253 InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget() local
3254 app.mAboveInsetsState.addSource(imeSource); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget()
3259 assertFalse(state.getOrCreateSource(imeSource.getId(), ime()).isVisible()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget()
3260 assertTrue(state.getOrCreateSource(imeSource.getId(), ime()).getFrame().isEmpty()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget()
3276 imeSource.setVisible(true); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget()
3277 imeSource.setFrame(new Rect(100, 400, 500, 500)); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget()
3278 app.mAboveInsetsState.addSource(imeSource); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget()
3284 assertEquals(state.peekSource(ID_IME).getFrame(), imeSource.getFrame()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget()
/frameworks/base/services/core/java/com/android/server/wm/
DInsetsPolicy.java397 final InsetsSource imeSource = new InsetsSource(originalImeSource); in adjustVisibilityForIme() local
398 imeSource.setVisible(imeVisibility); in adjustVisibilityForIme()
399 state.addSource(imeSource); in adjustVisibilityForIme()
409 final InsetsSource imeSource = new InsetsSource(originalImeSource); in adjustVisibilityForIme() local
410 imeSource.setVisible(false); in adjustVisibilityForIme()
411 state.addSource(imeSource); in adjustVisibilityForIme()
DDisplayContent.java3403 final InsetsSource imeSource = state.peekSource(ID_IME); in getInputMethodWindowVisibleHeight() local
3404 if (imeSource == null || !imeSource.isVisible()) { in getInputMethodWindowVisibleHeight()
3407 final Rect imeFrame = imeSource.getVisibleFrame() != null in getInputMethodWindowVisibleHeight()
3408 ? imeSource.getVisibleFrame() : imeSource.getFrame(); in getInputMethodWindowVisibleHeight()