Home
last modified time | relevance | path

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

12

/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()
DMockView.java389 public void dispatchWindowFocusChanged(boolean hasFocus) { in dispatchWindowFocusChanged() argument
390 super.dispatchWindowFocusChanged(hasFocus); in dispatchWindowFocusChanged()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowManagerTestBase.java74 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
76 mHasWindowFocus = hasFocus; in onWindowFocusChanged()
81 void assertWindowFocusState(boolean hasFocus) { in assertWindowFocusState() argument
83 assertEquals(getLogTag() + " must" + (hasFocus ? "" : " not") in assertWindowFocusState()
84 + " have window focus.", hasFocus, mHasWindowFocus); in assertWindowFocusState()
88 void waitAndAssertWindowFocusState(boolean hasFocus) throws InterruptedException { in waitAndAssertWindowFocusState() argument
90 if (mHasWindowFocus != hasFocus) { in waitAndAssertWindowFocusState()
94 assertWindowFocusState(hasFocus); in waitAndAssertWindowFocusState()
DWindowFocusTests.java477 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
478 if (!hasFocus && !mChildWindowHasDrawn) { in onWindowFocusChanged()
483 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
DDisplayCutoutTests.java384 public void onWindowFocusChanged(boolean hasFocus) {
385 if (hasFocus) {
DWindowTest.java676 View.OnFocusChangeListener listener = (View v, boolean hasFocus) -> in testSetLocalFocus()
677 Log.d(TAG, "view " + v + " focus " + hasFocus); in testSetLocalFocus()
/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.java125 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
126 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
/cts/hostsidetests/trustedvoice/app/src/android/trustedvoice/app/
DTrustedVoiceActivity.java55 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
56 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
57 if (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/tests/widget/src/android/widget/cts/
DTimePickerTest.java437 assertTrue(mTimePicker.getMinuteView().hasFocus()); in testKeyboardInputModeClockAmPm()
445 assertTrue(mTimePicker.getAmView().hasFocus()); in testKeyboardInputModeClockAmPm()
454 assertTrue(mTimePicker.getPmView().hasFocus()); in testKeyboardInputModeClockAmPm()
465 assertTrue(mTimePicker.getAmView().hasFocus()); in testKeyboardInputModeClockAmPm()
474 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClockAmPm()
487 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClockAmPm()
516 assertTrue(mTimePicker.getMinuteView().hasFocus()); in testKeyboardInputModeClock24H()
527 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClock24H()
540 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClock24H()
582 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()
DSearchView_CursorTest.java181 assertTrue(mSearchView.hasFocus()); in testSuggestionFiltering()
208 assertTrue(mSearchView.hasFocus()); in testSuggestionSelection()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowEmptyActivity.java41 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
42 if (hasFocus) { in onWindowFocusChanged()
DMultiWindowLoginActivity.java41 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
42 if (hasFocus) { in onWindowFocusChanged()
DMultiWindowLoginActivityTest.java139 assertThat(loginActivity.getUsername().hasFocus()).isTrue();
152 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()

12