Home
last modified time | relevance | path

Searched refs:hasFocus (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowManagerTestBase.java51 Class<T> cls, int displayId, boolean hasFocus) { in startActivity() argument
52 return startActivity(cls, displayId, hasFocus, WINDOWING_MODE_UNDEFINED); in startActivity()
66 boolean hasFocus, int windowingMode) { in startActivity() argument
81 activity[0].waitAndAssertWindowFocusState(hasFocus); in startActivity()
97 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
99 mHasWindowFocus = hasFocus; in onWindowFocusChanged()
104 void assertWindowFocusState(boolean hasFocus) { in assertWindowFocusState() argument
106 assertEquals(getLogTag() + " must" + (hasFocus ? "" : " not") in assertWindowFocusState()
107 + " have window focus.", hasFocus, mHasWindowFocus); in assertWindowFocusState()
111 void waitAndAssertWindowFocusState(boolean hasFocus) { in waitAndAssertWindowFocusState() argument
[all …]
DWindowFocusTests.java489 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
490 if (!hasFocus && !mChildWindowHasDrawn) { in onWindowFocusChanged()
495 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
507 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
508 if (hasFocus) { in onWindowFocusChanged()
511 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
586 private static SecondaryActivity startActivityAndFocus(int displayId, boolean hasFocus) { in startActivityAndFocus() argument
589 SecondaryActivity.class, displayId, hasFocus); in startActivityAndFocus()
/cts/tests/tests/view/src/android/view/cts/
DView_FocusHandlingTest.java123 assertTrue(v1.hasFocus()); in testFocusHandling()
124 assertFalse(v2.hasFocus()); in testFocusHandling()
125 assertFalse(v3.hasFocus()); in testFocusHandling()
126 assertFalse(v4.hasFocus()); in testFocusHandling()
129 assertFalse(v1.hasFocus()); in testFocusHandling()
130 assertTrue(v2.hasFocus()); in testFocusHandling()
131 assertFalse(v3.hasFocus()); in testFocusHandling()
132 assertFalse(v4.hasFocus()); in testFocusHandling()
135 assertFalse(v1.hasFocus()); in testFocusHandling()
136 assertFalse(v2.hasFocus()); in testFocusHandling()
[all …]
DView_UsingViewsTest.java273 boolean focusWasOnEditText = mEditText.hasFocus(); in testSetFocus()
291 assertTrue(mEditText.hasFocus()); in testSetFocus()
292 assertFalse(mButtonOk.hasFocus()); in testSetFocus()
293 assertFalse(mButtonCancel.hasFocus()); in testSetFocus()
294 assertFalse(mSymbolTextView.hasFocus()); in testSetFocus()
295 assertFalse(mWarningTextView.hasFocus()); in testSetFocus()
308 assertTrue(mButtonOk.hasFocus()); in testSetFocus()
310 assertFalse(mEditText.hasFocus()); in testSetFocus()
320 assertTrue(mButtonCancel.hasFocus()); in testSetFocus()
322 assertFalse(mButtonOk.hasFocus()); in testSetFocus()
[all …]
DContentPaneFocusTest.java78 assertFalse(v1.hasFocus()); in testAccessActionBar()
79 assertTrue(actionBar.hasFocus()); in testAccessActionBar()
89 mActivityRule.runOnUiThread(() -> assertTrue(actionBar.hasFocus())); in testAccessActionBar()
96 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
103 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
126 assertTrue(getActionBarView().hasFocus()); in testNoFocusablesInContent()
/cts/tests/input/src/android/input/cts/
DOverlayActivity.kt25 override fun onWindowFocusChanged(hasFocus: Boolean) { in onWindowFocusChanged()
26 super.onWindowFocusChanged(hasFocus) in onWindowFocusChanged()
27 if (hasFocus) { in onWindowFocusChanged()
/cts/tests/tests/assist/testapp/src/android/assist/testapp/
DLifecycleActivity.java41 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
42 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
43 Log.i(TAG, "Activity focus changed: " + hasFocus); in onWindowFocusChanged()
44 if (hasFocus) { in onWindowFocusChanged()
DFocusChangeActivity.java27 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
28 if (hasFocus && !mGainedFocus) { in onWindowFocusChanged()
32 } else if (!hasFocus && mGainedFocus) { in onWindowFocusChanged()
/cts/tests/app/app/src/android/app/stubs/
DActionBarActivity.java46 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
47 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
48 if (hasFocus) { in onWindowFocusChanged()
DKeyboardShortcutsActivity.java57 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
58 if (!hasFocus) { in onWindowFocusChanged()
66 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
DTestDialog.java128 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
129 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DVrTestActivity.java52 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
53 if (DEBUG) Log.i(TAG, "onWindowFocusChanged called with " + hasFocus); in onWindowFocusChanged()
54 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/vr/
DMockVrActivity2.java55 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
56 Log.i(TAG, "onWindowFocusChanged called with " + hasFocus); in onWindowFocusChanged()
57 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
DMockVrActivity.java71 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
72 Log.i(TAG, "onWindowFocusChanged called with " + hasFocus); in onWindowFocusChanged()
73 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/
DMultiWindowLoginActivity.java44 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
45 if (hasFocus) { in onWindowFocusChanged()
DMultiWindowEmptyActivity.java46 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
47 if (hasFocus) { in onWindowFocusChanged()
/cts/tests/tests/widget/src/android/widget/cts/
DTimePickerTest.java439 assertTrue(mTimePicker.getMinuteView().hasFocus()); in testKeyboardInputModeClockAmPm()
447 assertTrue(mTimePicker.getAmView().hasFocus()); in testKeyboardInputModeClockAmPm()
456 assertTrue(mTimePicker.getPmView().hasFocus()); in testKeyboardInputModeClockAmPm()
467 assertTrue(mTimePicker.getAmView().hasFocus()); in testKeyboardInputModeClockAmPm()
476 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClockAmPm()
489 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClockAmPm()
518 assertTrue(mTimePicker.getMinuteView().hasFocus()); in testKeyboardInputModeClock24H()
529 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClock24H()
542 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClock24H()
584 assertFalse(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeSpinnerAmPm()
[all …]
DZoomControlsTest.java126 assertFalse(zoomControls.hasFocus()); in testHasFocus()
129 assertTrue(zoomControls.hasFocus()); in testHasFocus()
DTabHostTest.java421 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
424 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
427 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
429 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
435 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
DBackwardNavigationTest.java83 assertTrue(mFocusedViews.get(i).hasFocus()); in testBackwardNavigation()
DSearchView_CursorTest.java184 assertTrue(mSearchView.hasFocus()); in testSuggestionFiltering()
211 assertTrue(mSearchView.hasFocus()); in testSuggestionSelection()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/
DWindowFocusHandleService.java119 editText.setOnFocusChangeListener((v, hasFocus) -> { in createPopupTextView() argument
123 if (hasFocus) { in createPopupTextView()
175 observerForPopupTextView.addOnWindowFocusChangeListener((hasFocus) -> in getPopupTextView()
176 outPopupTextHasWindowFocusRef.set(hasFocus)); in getPopupTextView()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowLoginActivityTest.java151 assertThat(loginActivity.getUsername().hasFocus()).isTrue();
167 assertThat(loginActivity.getUsername().hasFocus()).isTrue();
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java196 return hasFocus(); in requestFocus()
207 private boolean hasFocus() { in hasFocus() method
209 return mWebView.hasFocus(); in hasFocus()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DImeInsetsVisibilityTest.java114 TestUtils.waitOnMainUntil(() -> editText.hasFocus(), TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopup()
168 TestUtils.waitOnMainUntil(editText::hasFocus, TIMEOUT); in testImeVisibilityWhenImeFocusableGravityBottomChildPopup()
217 TestUtils.waitOnMainUntil(editText::hasFocus, TIMEOUT); in testImeVisibilityWhenImeFocusableChildPopupOverlaps()
277 TestUtils.waitOnMainUntil(() -> editText.hasFocus(), TIMEOUT); in testEditTextPositionAndPersistWhenAboveImeWindowShown()
396 () -> editText.getVisibility() == View.VISIBLE && editText.hasFocus(), in testEditorWontCoveredByImeWhenInputWindowBehindPanel()

12