Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/view/
DImeFocusController.java67 void onTraversal(boolean hasWindowFocus, WindowManager.LayoutParams windowAttribute) { in onTraversal() argument
70 if (!hasWindowFocus || isInLocalFocusMode(windowAttribute)) { in onTraversal()
86 void onPreWindowFocus(boolean hasWindowFocus, WindowManager.LayoutParams windowAttribute) { in onPreWindowFocus() argument
88 if (!hasWindowFocus || !mHasImeFocus || isInLocalFocusMode(windowAttribute)) { in onPreWindowFocus()
89 if (!hasWindowFocus) { in onPreWindowFocus()
98 void onPostWindowFocus(View focusedView, boolean hasWindowFocus, in onPostWindowFocus() argument
100 if (!hasWindowFocus || !mHasImeFocus || isInLocalFocusMode(windowAttribute)) { in onPostWindowFocus()
DActionMode.java273 public void onWindowFocusChanged(boolean hasWindowFocus) {} in onWindowFocusChanged() argument
DViewRootImpl.java4230 final boolean hasWindowFocus = mAttachInfo.mHasWindowFocus && isViewVisible; in performTraversals()
4231 mImeFocusController.onTraversal(hasWindowFocus, mWindowAttributes); in performTraversals()
4585 final boolean hasWindowFocus; in handleWindowFocusChanged()
4591 hasWindowFocus = mUpcomingWindowFocus; in handleWindowFocusChanged()
4593 if (hasWindowFocus) { in handleWindowFocusChanged()
4601 dispatchFocusEvent(hasWindowFocus, false /* fakeFocus */); in handleWindowFocusChanged()
4605 getFocusedViewOrNull(), hasWindowFocus, mWindowAttributes); in handleWindowFocusChanged() local
4607 if (hasWindowFocus) { in handleWindowFocusChanged()
4628 mFirstInputStage.onWindowFocusChanged(hasWindowFocus); in handleWindowFocusChanged()
4633 if (hasWindowFocus) { in handleWindowFocusChanged()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/lifecycle/
DRepeatWhenAttachedTest.kt74 whenever(view.hasWindowFocus()).thenReturn(false) in setUp()
151 whenever(view.hasWindowFocus()).thenReturn(true) in repeatWhenAttached_startsWithFocusButInvisible_CREATED()
165 whenever(view.hasWindowFocus()).thenReturn(true) in repeatWhenAttached_startsVisibleAndWithFocus_RESUMED()
198 whenever(view.hasWindowFocus()).thenReturn(true) in repeatWhenAttached_gainsFocusButInvisible_CREATED()
218 whenever(view.hasWindowFocus()).thenReturn(true) in repeatWhenAttached_becomesVisibleAndGainsFocus_RESUMED()
/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/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/tests/coretests/src/android/view/
DImeInsetsSourceConsumerTest.java202 private void verifyImeGetAndClearSkipAnimationOnce(boolean hasWindowFocus, boolean hasViewFocus, in verifyImeGetAndClearSkipAnimationOnce() argument
206 mImeConsumer.onWindowFocusGained(hasWindowFocus); in verifyImeGetAndClearSkipAnimationOnce()
207 final boolean imeVisible = hasWindowFocus && hasViewFocus; in verifyImeGetAndClearSkipAnimationOnce()
DViewInputConnectionTest.java89 PollingCheck.waitFor(5 * DateUtils.SECOND_IN_MILLIS, mActivity::hasWindowFocus); in before()
90 assertTrue(mActivity.hasWindowFocus()); in before()
DViewRootImplTest.java391 assertThat(mView.hasWindowFocus()).isFalse(); in whenDispatchFakeFocus_focusDoesNotPersist()
396 assertThat(mView.hasWindowFocus()).isFalse(); in whenDispatchFakeFocus_focusDoesNotPersist()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/
DKeyguardPasswordView.java314 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
315 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
316 if (hasWindowFocus) { in onWindowFocusChanged()
/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/tests/inputmethod/ConcurrentMultiSessionImeTest/src/com/android/server/inputmethod/multisessiontest/
DMainActivity.java91 mEditor.isFocused(), mEditor.hasWindowFocus())); in showMyImeAndWait()
/frameworks/base/core/java/com/android/internal/view/
DFloatingActionMode.java273 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
274 mFloatingToolbarVisibilityHelper.setWindowFocused(hasWindowFocus); in onWindowFocusChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/lifecycle/
DRepeatWhenAttached.kt190 !view.hasWindowFocus() -> Lifecycle.State.STARTED in updateState()
/frameworks/base/tests/InputMethodStressTest/src/com/android/inputmethod/stresstest/
DImeStressTestUtil.java195 .that(callOnMainSync(view::hasWindowFocus)) in waitOnMainUntilWindowGainsFocus()
226 .that(callOnMainSync(view::hasWindowFocus)) in verifyWindowNeverGainsFocus()
/frameworks/base/core/java/com/android/internal/inputmethod/
DInputMethodDebug.java350 sb.append(",windowFocus=" + view.hasWindowFocus()); in dumpViewInfo()
/frameworks/base/core/java/com/android/internal/policy/
DDecorView.java1760 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
1761 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
1765 if (mWindow.hasFeature(Window.FEATURE_OPTIONS_PANEL) && !hasWindowFocus in onWindowFocusChanged()
1772 cb.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
1776 mPrimaryActionMode.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
1779 mFloatingActionMode.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
2222 elevation = hasWindowFocus() ? in updateElevation()
/frameworks/base/core/java/android/webkit/
DWebViewProvider.java437 public void onWindowFocusChanged(boolean hasWindowFocus); in onWindowFocusChanged() argument
DWebView.java2982 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
2983 mProvider.getViewDelegate().onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
2984 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
/frameworks/base/media/java/android/media/tv/
DTvView.java235 if (hasWindowFocus() && mSession != null) { in setMain()
1401 if (hasWindowFocus() && TvView.this == sMainTvView.get() in onSessionCreated()
/frameworks/base/core/java/android/view/inputmethod/
DInputMethodManager.java807 return servedView.hasWindowFocus() || isAutofillUIShowing(servedView); in canStartInput()
2519 final boolean isFocusedAndWindowFocused = view.hasWindowFocus() && view.isFocused(); in hideSoftInputFromView()
3568 if (!view.hasImeFocus() || !view.hasWindowFocus()) { in onViewFocusChangedInternal()

12