Home
last modified time | relevance | path

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

12

/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowLoginActivityTest.java137 assertThat(emptyActivity.hasWindowFocus()).isTrue();
140 assertThat(loginActivity.hasWindowFocus()).isFalse();
145 assertThat(emptyActivity.hasWindowFocus()).isFalse();
150 assertThat(emptyActivity.hasWindowFocus()).isTrue();
153 assertThat(loginActivity.hasWindowFocus()).isFalse();
/cts/hostsidetests/systemui/app/src/android/systemui/cts/
DTestTileService.java129 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
130 Log.i(TAG, TEST_PREFIX + "onWindowFocusChanged_" + hasWindowFocus); in onWindowFocusChanged()
131 if (hasWindowFocus) { in onWindowFocusChanged()
139 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
/cts/hostsidetests/testharness/app/src/android/testharness/app/
DTestHarnessModeDeviceTest.java54 PollingCheck.waitFor(activity::hasWindowFocus); in dirtyDevice()
62 PollingCheck.waitFor(activity::hasWindowFocus); in testDeviceIsClean()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DWindowFocusStealerService.java72 public void onWindowFocusChanged(boolean hasWindowFocus) { in handleStealWindowFocus()
73 if (!mWindowInitiallyFocused && hasWindowFocus) { in handleStealWindowFocus()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DLayoutTests.java176 public void onWindowFocusChanged(boolean hasWindowFocus) { in testChangingFocusableFlag()
177 super.onWindowFocusChanged(hasWindowFocus); in testChangingFocusableFlag()
178 childWindowHasFocus[0] = hasWindowFocus; in testChangingFocusableFlag()
DAspectRatioTestsBase.java48 PollingCheck.waitFor(activity::hasWindowFocus); in runAspectRatioTest()
DSurfaceViewTest.java62 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()
DLocationInWindowTests.java165 PollingCheck.waitFor(activity::hasWindowFocus); in launchAndWait()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DFocusHandlingTest.java279 TestUtils.waitOnMainUntil(() -> !editText.hasWindowFocus(), TIMEOUT); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
323 TestUtils.waitOnMainUntil(() -> editText.hasWindowFocus(), TIMEOUT); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
369 TestUtils.waitOnMainUntil(() -> !editText.hasWindowFocus(), TIMEOUT); in testRestartInputWhileOtherProcessHasWindowFocus()
380 TestUtils.waitOnMainUntil(() -> editText.hasWindowFocus(), TIMEOUT); in testRestartInputWhileOtherProcessHasWindowFocus()
/cts/tests/tests/view/src/android/view/cts/
DPointerCaptureTest.java212 PollingCheck.waitFor(TIMEOUT_DELTA, mActivity::hasWindowFocus); in setup()
241 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture()
246 PollingCheck.waitFor(TIMEOUT_DELTA, () -> mOuter.hasWindowFocus()); in testWindowFocusChangeEndsCapture()
258 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mActivity.hasWindowFocus()); in testActivityFocusChangeEndsCapture()
DSearchEventTest.java57 PollingCheck.waitFor(5000, mActivity::hasWindowFocus); in setup()
DKeyEventInterceptTest.java70 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()
DMockView.java458 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument
460 super.onWindowFocusChanged(hasWindowFocus); in onWindowFocusChanged()
DTooltipTest.java89 PollingCheck.waitFor(TIMEOUT_DELTA, mActivity::hasWindowFocus); in setup()
293 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mActivity.hasWindowFocus()); in testTooltipHidesOnActivityFocusChange()
307 PollingCheck.waitFor(TIMEOUT_DELTA, () -> !mTooltipView.hasWindowFocus()); in testTooltipHidesOnWindowFocusChange()
/cts/tests/app/app/src/android/app/stubs/
DKeyboardShortcutsActivity.java46 while (hasWindowFocus() && stillWaiting) { in waitForMenuToBeOpen()
/cts/tests/tests/text/src/android/text/method/cts/
DKeyListenerTestCase.java64 PollingCheck.waitFor(5000, mActivity::hasWindowFocus); in setup()
DTransformationMethodTest.java70 PollingCheck.waitFor(1000, mActivity::hasWindowFocus); in setup()
DForwardDeleteTest.java53 assertTrue(mTextView.hasWindowFocus()); in forwardDelete()
DBackspaceTest.java53 assertTrue(mTextView.hasWindowFocus()); in backspace()
/cts/tests/tests/widget/src/android/widget/cts/
DExpandableListViewWithHeadersTest.java59 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()
DExpandableListViewBasicTest.java65 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()
DTextViewFadingEdgeTest.java142 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()
/cts/hostsidetests/theme/app/src/android/theme/app/
DThemeDeviceActivity.java102 () -> hasWindowFocus()) in onCreate()
/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderCursorTest.java107 PollingCheck.waitFor(() -> getActivity().hasWindowFocus()); in setUp()
/cts/tests/tests/security/src/android/security/cts/
DMotionEventTest.java73 PollingCheck.waitFor(mActivity::hasWindowFocus); in setup()

12