Home
last modified time | relevance | path

Searched refs:hasWindowFocus (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/view/
DImeFocusController.java75 void onTraversal(boolean hasWindowFocus, WindowManager.LayoutParams windowAttribute) { in onTraversal() argument
77 if (!hasWindowFocus || isInLocalFocusMode(windowAttribute)) { in onTraversal()
92 void onPreWindowFocus(boolean hasWindowFocus, WindowManager.LayoutParams windowAttribute) { in onPreWindowFocus() argument
96 if (hasWindowFocus) { in onPreWindowFocus()
112 void onPostWindowFocus(View focusedView, boolean hasWindowFocus, in onPostWindowFocus() argument
114 if (!hasWindowFocus || !mHasImeFocus || isInLocalFocusMode(windowAttribute)) { in onPostWindowFocus()
181 if (!view.hasImeFocus() || !view.hasWindowFocus()) { in onViewFocusChanged()
DActionMode.java273 public void onWindowFocusChanged(boolean hasWindowFocus) {} in onWindowFocusChanged() argument
DViewRootImpl.java3623 final boolean hasWindowFocus = mAttachInfo.mHasWindowFocus && isViewVisible; in performTraversals()
3624 final boolean regainedFocus = hasWindowFocus && mLostWindowFocus; in performTraversals()
3627 } else if (!hasWindowFocus && mHadWindowFocus) { in performTraversals()
3644 mHadWindowFocus = hasWindowFocus; in performTraversals()
3646 mImeFocusController.onTraversal(hasWindowFocus, mWindowAttributes); in performTraversals()
3815 final boolean hasWindowFocus; in handleWindowFocusChanged()
3821 hasWindowFocus = mUpcomingWindowFocus; in handleWindowFocusChanged()
3825 if (hasWindowFocus) { in handleWindowFocusChanged()
3833 dispatchFocusEvent(hasWindowFocus, false /* fakeFocus */); in handleWindowFocusChanged()
3837 getFocusedViewOrNull(), hasWindowFocus, mWindowAttributes); in handleWindowFocusChanged() local
[all …]
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DImeOpenCloseStressTest.java76 waitOnMainUntil("activity should gain focus", editText::hasWindowFocus); in testShowHide_waitingVisibilityChange()
92 waitOnMainUntil("activity should gain focus", editText::hasWindowFocus); in testShowHide_waitingAnimationEnd()
114 waitOnMainUntil("activity should gain focus", editText::hasWindowFocus); in testShowHide_intervalAfterHide()
131 waitOnMainUntil("activity should gain focus", editText::hasWindowFocus); in testShowHideInSameFrame()
DAutoShowTest.java65 waitOnMainUntil("activity should gain focus", editText::hasWindowFocus); in autoShow()
/frameworks/base/core/tests/coretests/src/android/view/
DImeInsetsSourceConsumerTest.java149 private void verifyImeGetAndClearSkipAnimationOnce(boolean hasWindowFocus, boolean hasViewFocus, in verifyImeGetAndClearSkipAnimationOnce() argument
153 mImeConsumer.onWindowFocusGained(hasWindowFocus); in verifyImeGetAndClearSkipAnimationOnce()
154 final boolean imeVisible = hasWindowFocus && hasViewFocus; in verifyImeGetAndClearSkipAnimationOnce()
DViewRootImplTest.java306 assertThat(view.hasWindowFocus()).isFalse(); in whenDispatchFakeFocus_focusDoesNotPersist()
311 assertThat(view.hasWindowFocus()).isFalse(); in whenDispatchFakeFocus_focusDoesNotPersist()
DViewInputConnectionTest.java89 PollingCheck.waitFor(5 * DateUtils.SECOND_IN_MILLIS, mActivity::hasWindowFocus); in before()
90 assertTrue(mActivity.hasWindowFocus()); in before()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lifecycle/
DRepeatWhenAttachedTest.kt63 whenever(view.hasWindowFocus()).thenReturn(false) in setUp()
126 whenever(view.hasWindowFocus()).thenReturn(true) in <lambda>()
138 whenever(view.hasWindowFocus()).thenReturn(true) in <lambda>()
167 whenever(view.hasWindowFocus()).thenReturn(true) in <lambda>()
185 whenever(view.hasWindowFocus()).thenReturn(true) in <lambda>()
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/
DIllustrationVideoView.java139 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
140 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
141 if (hasWindowFocus) { in onWindowFocusChanged()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPasswordView.java259 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
260 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
261 if (hasWindowFocus) { in onWindowFocusChanged()
/frameworks/base/core/java/android/inputmethodservice/
DExtractButton.java47 @Override public boolean hasWindowFocus() { in hasWindowFocus() method in ExtractButton
DExtractEditText.java139 @Override public boolean hasWindowFocus() { in hasWindowFocus() method in ExtractEditText
/frameworks/base/core/java/android/widget/
DDropDownListView.java326 public boolean hasWindowFocus() { in hasWindowFocus() method in DropDownListView
327 return mHijackFocus || super.hasWindowFocus(); in hasWindowFocus()
DAutoCompleteTextView.java1154 if (hasFocus() && hasWindowFocus() && mPopupCanBeUpdated) { in updateDropDownForFilter()
1167 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
1168 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
1169 if (!hasWindowFocus && !mPopup.isDropDownAlwaysVisible()) { in onWindowFocusChanged()
DSearchView.java1387 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
1388 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
2013 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
2014 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
2016 if (hasWindowFocus && mSearchView.hasFocus() && getVisibility() == VISIBLE) { in onWindowFocusChanged()
/frameworks/base/core/java/com/android/internal/view/menu/
DIconMenuView.java581 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
583 if (!hasWindowFocus) { in onWindowFocusChanged()
587 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
/frameworks/base/core/java/com/android/internal/view/
DFloatingActionMode.java272 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
273 mFloatingToolbarVisibilityHelper.setWindowFocused(hasWindowFocus); in onWindowFocusChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/lifecycle/
DRepeatWhenAttached.kt178 !view.hasWindowFocus() -> Lifecycle.State.STARTED in updateState()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/
DTvPipMenuView.java498 public void onWindowFocusChanged(boolean hasWindowFocus) {
499 super.onWindowFocusChanged(hasWindowFocus);
500 if (!hasWindowFocus) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthContainerView.java451 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
452 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
453 if (!hasWindowFocus) { in onWindowFocusChanged()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java1781 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
1782 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
1786 if (mWindow.hasFeature(Window.FEATURE_OPTIONS_PANEL) && !hasWindowFocus in onWindowFocusChanged()
1793 cb.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
1797 mPrimaryActionMode.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
1800 mFloatingActionMode.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
2543 elevation = hasWindowFocus() ? in updateElevation()
/frameworks/base/core/java/android/webkit/
DWebView.java2970 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
2971 mProvider.getViewDelegate().onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
2972 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
DWebViewProvider.java436 public void onWindowFocusChanged(boolean hasWindowFocus); in onWindowFocusChanged() argument
/frameworks/base/media/java/android/media/tv/
DTvView.java225 if (hasWindowFocus() && mSession != null) { in setMain()
1155 if (hasWindowFocus() && TvView.this == sMainTvView.get() in onSessionCreated()

12