Searched refs:imeSource (Results 1 – 6 of 6) sorted by relevance
146 final InsetsSource imeSource = pd.mInsetsState.peekSource(InsetsSource.ID_IME); in isImeShowing() local147 return imeSource != null && pd.mImeSourceControl != null && imeSource.isVisible(); in isImeShowing()425 private boolean calcIsFloating(InsetsSource imeSource) { in calcIsFloating() argument426 final Rect frame = imeSource.getFrame(); in calcIsFloating()441 final var imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation() local442 if (imeSource == null || mImeSourceControl == null) { in startAnimation()460 final InsetsSource imeSource = mInsetsState.peekSource(InsetsSource.ID_IME); in startAnimation() local461 if (imeSource == null || mImeSourceControl == null) { in startAnimation()465 final Rect newFrame = imeSource.getFrame(); in startAnimation()466 final boolean isFloating = calcIsFloating(imeSource) && show; in startAnimation()
516 final InsetsSource imeSource = state.peekSource(ID_IME); in testImeMinimalSourceFrame() local520 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() local541 assertNotNull(imeSource); in testImeInsetsGivenContentFrame()542 assertFalse(imeSource.getFrame().isEmpty()); in testImeInsetsGivenContentFrame()544 imeSource.getFrame().height()); in testImeInsetsGivenContentFrame()
446 final InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testConsumeImeInsets() local447 imeSource.setVisible(true); in testConsumeImeInsets()453 win1.mAboveInsetsState.addSource(imeSource); in testConsumeImeInsets()455 win2.mAboveInsetsState.addSource(imeSource); in testConsumeImeInsets()
3253 InsetsSource imeSource = new InsetsSource(ID_IME, ime()); in testImeInsetsFrozenFlag_resetWhenReportedToBeImeInputTarget() local3254 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()
397 final InsetsSource imeSource = new InsetsSource(originalImeSource); in adjustVisibilityForIme() local398 imeSource.setVisible(imeVisibility); in adjustVisibilityForIme()399 state.addSource(imeSource); in adjustVisibilityForIme()409 final InsetsSource imeSource = new InsetsSource(originalImeSource); in adjustVisibilityForIme() local410 imeSource.setVisible(false); in adjustVisibilityForIme()411 state.addSource(imeSource); in adjustVisibilityForIme()
3403 final InsetsSource imeSource = state.peekSource(ID_IME); in getInputMethodWindowVisibleHeight() local3404 if (imeSource == null || !imeSource.isVisible()) { in getInputMethodWindowVisibleHeight()3407 final Rect imeFrame = imeSource.getVisibleFrame() != null in getInputMethodWindowVisibleHeight()3408 ? imeSource.getVisibleFrame() : imeSource.getFrame(); in getInputMethodWindowVisibleHeight()