/cts/tests/input/src/android/input/cts/ |
D | OverrideSystemKeyBehaviorTest.kt | 66 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()
|
D | IncompleteMotionTest.kt | 94 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp() 157 { !activity.hasWindowFocus() } in testIncompleteMotion()
|
D | PointerCancelTest.kt | 65 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp() 148 view.hasWindowFocus() in addFloatingWindow()
|
D | VerifyHardwareKeyEventTest.kt | 58 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
|
D | BackKeyShortcutsTest.kt | 64 PollingCheck.waitFor { activity.hasWindowFocus() } in <lambda>()
|
D | KeyboardLayoutTest.kt | 57 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
|
D | AppKeyCombinationsTest.kt | 47 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp()
|
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/ |
D | ActivityEmbeddingFocusTests.java | 90 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/ |
D | WindowUtil.java | 36 activity::hasWindowFocus); in waitForFocus() 45 window.getDecorView()::hasWindowFocus); in waitForFocus()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/ |
D | MultiWindowLoginActivityTest.java | 148 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/ |
D | TestTileService.java | 181 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/ |
D | TestActivity.java | 61 public void onWindowFocusChanged(boolean hasWindowFocus) { in onWindowFocusChanged() argument 62 if (hasWindowFocus) { in onWindowFocusChanged()
|
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/ |
D | WindowFocusStealerService.java | 72 public void onWindowFocusChanged(boolean hasWindowFocus) { in handleStealWindowFocus() 73 if (!mWindowInitiallyFocused && hasWindowFocus) { in handleStealWindowFocus()
|
D | WindowFocusHandleService.java | 100 public void onWindowFocusChanged(boolean hasWindowFocus) { in createPopupTextView() 103 + ", hasWindowfocus: " + hasWindowFocus); in createPopupTextView()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/car/ |
D | GarageModeTestActivity.java | 115 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/ |
D | ToolbarActionBarTest.kt | 63 PollingCheck.waitFor { activity.hasWindowFocus() } in setUp() 83 PollingCheck.waitFor { !activity.getToolbar().hasWindowFocus() } in testOptionsMenuKey()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/animations/ |
D | LayoutTests.java | 209 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/ |
D | KeyboardShortcutsActivity.java | 46 while (hasWindowFocus() && stillWaiting) { in waitForMenuToBeOpen()
|
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/ |
D | ClipboardTestActivity.java | 42 if (hasWindowFocus()) { in onResume()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | FlagSlipperyTest.kt | 188 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/ |
D | CtsWindowInfoUtils.java | 591 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/ |
D | FocusHandlingTest.java | 160 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/ |
D | PointerCaptureTest.java | 233 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()
|
D | SearchEventTest.java | 67 PollingCheck.waitFor(5000, mActivity::hasWindowFocus); in setup()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | SearchView_CursorTest.java | 232 PollingCheck.waitFor(() -> mSearchView.hasWindowFocus()); in testSuggestionSelection() 233 assertTrue(mSearchView.hasWindowFocus()); in testSuggestionSelection()
|