/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowManagerTestBase.java | 51 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 …]
|
D | WindowFocusTests.java | 489 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/ |
D | View_FocusHandlingTest.java | 123 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 …]
|
D | View_UsingViewsTest.java | 273 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 …]
|
D | ContentPaneFocusTest.java | 78 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/ |
D | OverlayActivity.kt | 25 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/ |
D | LifecycleActivity.java | 41 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()
|
D | FocusChangeActivity.java | 27 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/ |
D | ActionBarActivity.java | 46 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 47 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged() 48 if (hasFocus) { in onWindowFocusChanged()
|
D | KeyboardShortcutsActivity.java | 57 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 58 if (!hasFocus) { in onWindowFocusChanged() 66 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
|
D | TestDialog.java | 128 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/ |
D | VrTestActivity.java | 52 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/ |
D | MockVrActivity2.java | 55 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 56 Log.i(TAG, "onWindowFocusChanged called with " + hasFocus); in onWindowFocusChanged() 57 super.onWindowFocusChanged(hasFocus); in onWindowFocusChanged()
|
D | MockVrActivity.java | 71 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/ |
D | MultiWindowLoginActivity.java | 44 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 45 if (hasFocus) { in onWindowFocusChanged()
|
D | MultiWindowEmptyActivity.java | 46 public void onWindowFocusChanged(boolean hasFocus) { in onWindowFocusChanged() argument 47 if (hasFocus) { in onWindowFocusChanged()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TimePickerTest.java | 439 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 …]
|
D | ZoomControlsTest.java | 126 assertFalse(zoomControls.hasFocus()); in testHasFocus() 129 assertTrue(zoomControls.hasFocus()); in testHasFocus()
|
D | TabHostTest.java | 421 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()
|
D | BackwardNavigationTest.java | 83 assertTrue(mFocusedViews.get(i).hasFocus()); in testBackwardNavigation()
|
D | SearchView_CursorTest.java | 184 assertTrue(mSearchView.hasFocus()); in testSuggestionFiltering() 211 assertTrue(mSearchView.hasFocus()); in testSuggestionSelection()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/util/ |
D | WindowFocusHandleService.java | 119 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/ |
D | MultiWindowLoginActivityTest.java | 151 assertThat(loginActivity.getUsername().hasFocus()).isTrue(); 167 assertThat(loginActivity.getUsername().hasFocus()).isTrue();
|
/cts/libs/deviceutillegacy/src/android/webkit/cts/ |
D | WebViewOnUiThread.java | 196 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/ |
D | ImeInsetsVisibilityTest.java | 114 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()
|