Home
last modified time | relevance | path

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

123

/cts/tests/input/src/android/input/cts/
DOverrideSystemKeyBehaviorTest.kt66 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
80 PollingCheck.waitFor(WindowUtil.WINDOW_FOCUS_TIMEOUT_MILLIS) { !activity.hasWindowFocus() } in testStemPrimaryKeyNotDeliveredToAppWithoutPermission()
82 assertFalse(activity.hasWindowFocus()) in testStemPrimaryKeyNotDeliveredToAppWithoutPermission()
104 PollingCheck.waitFor(WindowUtil.WINDOW_FOCUS_TIMEOUT_MILLIS) { !activity.hasWindowFocus() } in testStemPrimaryKeyUnhandledByApp()
125 assertTrue(activity.hasWindowFocus()) in testStemPrimaryKeyHandledByApp()
DIncompleteMotionTest.kt94 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
157 { !activity.hasWindowFocus() } in testIncompleteMotion()
DPointerCancelTest.kt65 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
148 view.hasWindowFocus() in addFloatingWindow()
DVerifyHardwareKeyEventTest.kt58 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
DBackKeyShortcutsTest.kt64 PollingCheck.waitFor { activity.hasWindowFocus() } in <lambda>()
DKeyboardLayoutTest.kt57 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
DAppKeyCombinationsTest.kt47 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingFocusTests.java90 assertTrue("primaryActivity must be focused.", primaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_tab()
98 assertTrue("secondaryActivity must be focused.", secondaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_tab()
120 assertTrue("primaryActivity must be focused.", primaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_backTab()
128 assertTrue("secondaryActivity must be focused.", secondaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_backTab()
149 assertTrue("primaryActivity must be focused.", primaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_dpadArrows()
155 assertTrue("secondaryActivity must be focused.", secondaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_dpadArrows()
166 assertFalse("primaryActivity must not be focused.", primaryActivity.hasWindowFocus()); in testMoveFocusToAdjacentWindow_dpadArrows()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWindowUtil.java36 activity::hasWindowFocus); in waitForFocus()
45 window.getDecorView()::hasWindowFocus); in waitForFocus()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowLoginActivityTest.java148 assertThat(emptyActivity.hasWindowFocus()).isTrue();
151 assertThat(mActivity.hasWindowFocus()).isFalse();
156 assertThat(emptyActivity.hasWindowFocus()).isFalse();
165 assertThat(emptyActivity.hasWindowFocus()).isTrue();
168 assertThat(mActivity.hasWindowFocus()).isFalse();
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java181 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
182 Log.i(TAG, TEST_PREFIX + "onWindowFocusChanged_" + hasWindowFocus); in onWindowFocusChanged()
183 if (hasWindowFocus) { in onWindowFocusChanged()
191 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DTestActivity.java61 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
62 if (hasWindowFocus) { in onWindowFocusChanged()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DWindowFocusStealerService.java72 public void onWindowFocusChanged(boolean hasWindowFocus) { in handleStealWindowFocus()
73 if (!mWindowInitiallyFocused && hasWindowFocus) { in handleStealWindowFocus()
DWindowFocusHandleService.java100 public void onWindowFocusChanged(boolean hasWindowFocus) { in createPopupTextView()
103 + ", hasWindowfocus: " + hasWindowFocus); in createPopupTextView()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/
DGarageModeTestActivity.java115 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
116 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
117 if (hasWindowFocus) { in onWindowFocusChanged()
/cts/tests/app/src/android/app/cts/
DToolbarActionBarTest.kt63 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
83 PollingCheck.waitFor { !activity.getToolbar().hasWindowFocus() } in testOptionsMenuKey()
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/
DLayoutTests.java209 public void onWindowFocusChanged(boolean hasWindowFocus) { in testChangingFocusableFlag()
210 super.onWindowFocusChanged(hasWindowFocus); in testChangingFocusableFlag()
211 childWindowHasFocus[0] = hasWindowFocus; in testChangingFocusableFlag()
/cts/tests/app/app/src/android/app/stubs/
DKeyboardShortcutsActivity.java46 while (hasWindowFocus() && stillWaiting) { in waitForMenuToBeOpen()
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DClipboardTestActivity.java42 if (hasWindowFocus()) { in onResume()
/cts/tests/tests/security/src/android/security/cts/
DFlagSlipperyTest.kt188 view.hasWindowFocus() in addWindow()
243 surfaceView.hasWindowFocus() in addEmbeddedHostWindow()
336 activityHasWindowFocus.set(activity.hasWindowFocus()) in waitForWindowFocusOnBottomActivity()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCtsWindowInfoUtils.java591 public static boolean waitForWindowFocus(final View view, boolean hasWindowFocus) { in waitForWindowFocus() argument
595 if (view.hasWindowFocus() == hasWindowFocus) { in waitForWindowFocus()
603 if (hasWindowFocus == newFocusState) { in waitForWindowFocus()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java160 outEditHasWindowFocusRef.set(editText.hasWindowFocus())); in launchTestActivity()
161 outEditHasWindowFocusRef.set(editText.hasWindowFocus()); in launchTestActivity()
367 TestUtils.waitOnMainUntil(() -> layoutRef.get().hasWindowFocus(), TIMEOUT); in testDelayedAddEditorStartsInput()
465 && editTextRef.get().hasWindowFocus())); in testSoftInputStateAlwaysVisibleFocusEditorAfterLaunch()
521 TestUtils.waitOnMainUntil(() -> !editText.hasWindowFocus(), TIMEOUT); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
556 TestUtils.waitOnMainUntil(editText::hasWindowFocus, TIMEOUT); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
656 TestUtils.waitOnMainUntil(() -> !editText.hasWindowFocus(), TIMEOUT); in testRestartInputWhileOtherProcessHasWindowFocus()
667 TestUtils.waitOnMainUntil(editText::hasWindowFocus, TIMEOUT); in testRestartInputWhileOtherProcessHasWindowFocus()
761 TestUtils.waitOnMainUntil(editText::hasWindowFocus, TIMEOUT); in testMultiWindowFocusHandleOnDifferentUiThread()
814 && editText.hasWindowFocus())); in testKeyboardStateAfterImeFocusableFlagChanged()
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureTest.java233 PollingCheck.waitFor(TIMEOUT_DELTA, mActivity::hasWindowFocus); in setup()
263 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture()
268 PollingCheck.waitFor(TIMEOUT_DELTA, () -> mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture()
280 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mActivity.hasWindowFocus()); in testActivityFocusChangeEndsCapture()
DSearchEventTest.java67 PollingCheck.waitFor(5000, mActivity::hasWindowFocus); in setup()
/cts/tests/tests/widget/src/android/widget/cts/
DSearchView_CursorTest.java232 PollingCheck.waitFor(() -> mSearchView.hasWindowFocus()); in testSuggestionSelection()
233 assertTrue(mSearchView.hasWindowFocus()); in testSuggestionSelection()

123