Home
last modified time | relevance | path

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

123

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowManagerTestBase.java52 Class<T> cls, int displayId, boolean hasFocus) { in startActivity() argument
53 return startActivity(cls, displayId, hasFocus, WINDOWING_MODE_UNDEFINED); in startActivity()
67 Class<T> cls, int displayId, boolean hasFocus, int windowingMode) { in startActivity() argument
68 return startActivity(cls, displayId, hasFocus, windowingMode, INVALID_STACK_ID); in startActivity()
72 Class<T> cls, int displayId, boolean hasFocus, int windowingMode, int taskId) { in startActivity() argument
89 activity[0].waitAndAssertWindowFocusState(hasFocus); in startActivity()
105 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
106 StateLogger.logAlways(getLogTag() + " onWindowFocusChanged: " + hasFocus); in onWindowFocusChanged()
108 mHasWindowFocus = hasFocus; in onWindowFocusChanged()
113 void assertWindowFocusState(boolean hasFocus) { in assertWindowFocusState() argument
[all …]
/cts/tests/tests/view/src/android/view/cts/
DView_FocusHandlingTest.java134 assertTrue(v1.hasFocus()); in testFocusHandling()
135 assertFalse(v2.hasFocus()); in testFocusHandling()
136 assertFalse(v3.hasFocus()); in testFocusHandling()
137 assertFalse(v4.hasFocus()); in testFocusHandling()
140 assertFalse(v1.hasFocus()); in testFocusHandling()
141 assertTrue(v2.hasFocus()); in testFocusHandling()
142 assertFalse(v3.hasFocus()); in testFocusHandling()
143 assertFalse(v4.hasFocus()); in testFocusHandling()
146 assertFalse(v1.hasFocus()); in testFocusHandling()
147 assertFalse(v2.hasFocus()); in testFocusHandling()
[all …]
DView_UsingViewsTest.java287 boolean focusWasOnEditText = mEditText.hasFocus(); in testSetFocus()
305 assertTrue(mEditText.hasFocus()); in testSetFocus()
306 assertFalse(mButtonOk.hasFocus()); in testSetFocus()
307 assertFalse(mButtonCancel.hasFocus()); in testSetFocus()
308 assertFalse(mSymbolTextView.hasFocus()); in testSetFocus()
309 assertFalse(mWarningTextView.hasFocus()); in testSetFocus()
322 assertTrue(mButtonOk.hasFocus()); in testSetFocus()
324 assertFalse(mEditText.hasFocus()); in testSetFocus()
334 assertTrue(mButtonCancel.hasFocus()); in testSetFocus()
336 assertFalse(mButtonOk.hasFocus()); in testSetFocus()
[all …]
DContentPaneFocusTest.java89 assertFalse(v1.hasFocus()); in testAccessActionBar()
90 assertTrue(actionBar.hasFocus()); in testAccessActionBar()
100 mActivityRule.runOnUiThread(() -> assertTrue(actionBar.hasFocus())); in testAccessActionBar()
107 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
114 mActivityRule.runOnUiThread(() -> assertTrue(v1.hasFocus())); in testAccessActionBar()
137 assertTrue(getActionBarView().hasFocus()); in testNoFocusablesInContent()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/activity/
DActivityManagerTestActivityBase.java32 public boolean hasFocus() { in hasFocus() method in ActivityManagerTestActivityBase
37 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
38 mHasFocus = hasFocus; in onWindowFocusChanged()
39 Log.d(TAG, "hasFocus: " + hasFocus); in onWindowFocusChanged()
/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()
/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.java451 assertTrue(mTimePicker.getMinuteView().hasFocus()); in testKeyboardInputModeClockAmPm()
459 assertTrue(mTimePicker.getAmView().hasFocus()); in testKeyboardInputModeClockAmPm()
468 assertTrue(mTimePicker.getPmView().hasFocus()); in testKeyboardInputModeClockAmPm()
479 assertTrue(mTimePicker.getAmView().hasFocus()); in testKeyboardInputModeClockAmPm()
488 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClockAmPm()
501 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClockAmPm()
530 assertTrue(mTimePicker.getMinuteView().hasFocus()); in testKeyboardInputModeClock24H()
541 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClock24H()
554 assertTrue(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeClock24H()
596 assertFalse(mTimePicker.getHourView().hasFocus()); in testKeyboardInputModeSpinnerAmPm()
[all …]
DZoomControlsTest.java135 assertFalse(zoomControls.hasFocus()); in testHasFocus()
138 assertTrue(zoomControls.hasFocus()); in testHasFocus()
DTabHostTest.java431 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
434 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
437 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
439 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
445 assertTrue(tabs.hasFocus()); in testKeyboardNavigation()
/cts/tests/input/InputInjectionApp/src/com/android/test/inputinjection/
DInputInjectionActivity.kt90 override fun onWindowFocusChanged(hasFocus: Boolean) { in <lambda>()
91 super.onWindowFocusChanged(hasFocus) in <lambda>()
92 if (hasFocus) { in <lambda>()
/cts/tests/inputmethod/util/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/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DTestFocusActivity.java57 button.setOnFocusChangeListener((v , hasFocus) -> Log.d(getClass().getSimpleName(), in onCreate()
58 "onFocusChange text=" + text + " hasFocus=" + hasFocus)); in onCreate() local
/cts/tests/tests/virtualdevice/app/src/android/virtualdevice/streamedtestapp/
DClipboardTestActivity.java48 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
49 if (hasFocus) { in onWindowFocusChanged()
/cts/tests/tests/dreams/CtsDreamOverlayTestApp/src/android/app/dream/cts/app/
DControlledTestDreamService.java100 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
101 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
105 listener.onFocusChanged(mProxy, hasFocus); in onWindowFocusChanged()
DIDreamLifecycleListener.aidl39 void onFocusChanged(IControlledDream dream, boolean hasFocus); in onFocusChanged() argument
/cts/tests/framework/base/windowmanager/src/android/server/wm/input/
DWindowFocusTests.java640 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
641 if (!hasFocus && !mChildWindowHasDrawn) { in onWindowFocusChanged()
646 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
658 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument
659 if (hasFocus) { in onWindowFocusChanged()
662 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
809 boolean hasFocus, Class<T> cls) { in startActivityAndFocus() argument
812 cls, displayId, hasFocus); in startActivityAndFocus()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DSpellCheckerTest.kt135 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
177 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
207 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
232 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
450 waitOnMainUntil({ editText.hasFocus() && in <lambda>()
478 waitOnMainUntil({ editText.hasFocus() && in <lambda>()
501 waitOnMainUntil({ editText.hasFocus() && in <lambda>()
532 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
604 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
647 waitOnMainUntil({ editText.hasFocus() }, TIMEOUT) in <lambda>()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
DMultiWindowLoginActivityTest.java150 assertThat(mActivity.getUsername().hasFocus()).isTrue();
167 assertThat(mActivity.getUsername().hasFocus()).isTrue();

123