Home
last modified time | relevance | path

Searched refs:requestFocus (Results 1 – 25 of 139) sorted by relevance

123456

/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/
DAbstractLoginActivityTestCase.java69 mUiBot.waitForWindowChange(() -> mActivity.onUsername(View::requestFocus));
78 event = mUiBot.waitForWindowChange(() -> mActivity.onUsername(View::requestFocus),
92 mUiBot.waitForWindowChange(() -> mActivity.onPassword(View::requestFocus));
DAbstractLoginNotImportantForAutofillTestCase.java54 mActivity.onUsername(View::requestFocus); in testAutofill_none()
85 mActivity.onUsername(View::requestFocus); in testAutofill_oneField()
122 mActivity.onUsername(View::requestFocus); in testAutofill_twoFields()
195 mActivity.onUsername(View::requestFocus); in testAutofill_autoThenManualRequests()
/cts/tests/tests/view/src/android/view/cts/
DView_FocusHandlingTest.java133 assertTrue(v1.requestFocus()); in testFocusHandling()
172 v1.requestFocus(); in testFocusHandling()
204 assertTrue(v2.requestFocus(View.FOCUS_UP)); in testFocusHandling()
210 assertTrue(v1.requestFocus(View.FOCUS_LEFT, null)); in testFocusHandling()
216 assertTrue(v3.requestFocus()); in testFocusHandling()
266 assertTrue(v1.requestFocus()); in testEnabledHandling()
272 v1.requestFocus(); in testEnabledHandling()
275 v1.requestFocus(); in testEnabledHandling()
283 v1.requestFocus(); in testEnabledHandling()
287 v1.requestFocus(); in testEnabledHandling()
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedLoginActivityTest.java122 mActivity.onUsername(View::requestFocus);
185 mActivity.onUsername(View::requestFocus);
253 mActivity.onUsername(View::requestFocus);
321 mActivity.onUsername(View::requestFocus);
340 mActivity.onPassword(View::requestFocus);
369 mActivity.onUsername(View::requestFocus);
407 mActivity.onUsername(View::requestFocus);
439 mActivity.onUsername(View::requestFocus);
472 mActivity.onUsername(View::requestFocus);
508 mActivity.onUsername(View::requestFocus);
[all …]
DDisableAutofillTest.java58 preSimpleActivity.syncRunOnUiThread(() -> preInput.requestFocus()); in testAugmentedAutofill_standardAutofillDisabledByService_sameActivity()
96 preSimpleActivity.syncRunOnUiThread(() -> preInput.requestFocus()); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity()
114 simpleActivity.syncRunOnUiThread(() -> input.requestFocus()); in testAugmentedAutofill_standardAutofillDisabledByService_otherActivity()
/cts/tests/autofillservice/src/android/autofillservice/cts/saveui/
DSimpleSaveActivityTest.java142 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testAutoFillOneDatasetAndSave()
187 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testAutoFillOneDatasetAndSave_largeAssistStructure()
321 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in saveTest()
365 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testPartitionedSave()
381 mActivity.syncRunOnUiThread(() -> mActivity.mPassword.requestFocus()); in testPartitionedSave()
420 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testDelayedSave()
447 mActivity.syncRunOnUiThread(() -> mActivity.mPassword.requestFocus()); in testDelayedSave()
486 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testSave_launchIntent()
521 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testSaveThenStartNewSessionRightAwayShouldKeepSaveUi()
582 mActivity.syncRunOnUiThread(() -> mActivity.mInput.requestFocus()); in testCloseSaveUiThenStartNewSessionRightAway()
[all …]
DAutofillSaveDialogTest.java79 loginActivity.onUsername(View::requestFocus); in testShowSaveUiHideIcon()
132 loginActivity.onUsername(View::requestFocus); in testShowSaveUiCustomServiceLabel()
178 loginActivity.onUsername(View::requestFocus); in testShowSaveUiWhenLaunchActivityWithFlagClearTopAndSingleTop()
223 loginActivity.onUsername(View::requestFocus); in testShowSaveUiWhenLaunchActivityWithFlagClearTaskAndNewTask()
283 loginActivity.onUsername(View::requestFocus); in testShowSaveUiAfterLoginViewReset()
334 loginActivity.onUsername(View::requestFocus); in testDontShowSaveUiIfViewIsResetToEmptyProgressively()
386 loginActivity.onUsername(View::requestFocus); in testSuppressSaveDialog_OnCredmanOnlyFields()
427 loginActivity.onUsername(View::requestFocus); in testSuppressSaveDialog_onMixedFields()
DOptionalSaveActivityTest.java124 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
181 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
313 mActivity.mAddress1.requestFocus();
410 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
627 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
665 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
702 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
749 mActivity.syncRunOnUiThread(() -> mActivity.mAddress1.requestFocus());
DPreSimpleSaveActivityTest.java85 mActivity.syncRunOnUiThread(() -> mActivity.mPreInput.requestFocus()); in saveUiRestoredAfterTappingLinkTest()
143 mActivity.syncRunOnUiThread(() -> mActivity.mPreInput.requestFocus()); in tapLinkThenTapBackThenStartOverTest()
199 newActivty.syncRunOnUiThread(() -> newActivty.mPassword.requestFocus()); in tapLinkThenTapBackThenStartOverTest()
234 mActivity.syncRunOnUiThread(() -> mActivity.mPreInput.requestFocus()); in saveUiCancelledAfterTappingLinkTest()
368 mActivity.syncRunOnUiThread(() -> mActivity.mPreInput.requestFocus()); in tapLinkAfterUpdateAppliedTest()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DSearchViewTest.java75 public SearchView launchTestActivity(boolean requestFocus) { in launchTestActivity() argument
91 if (requestFocus) { in launchTestActivity()
92 searchView.requestFocus(); in launchTestActivity()
102 private SearchView launchTestActivityWithListView(boolean requestFocus) { in launchTestActivityWithListView() argument
119 if (requestFocus) { in launchTestActivityWithListView()
120 searchView.requestFocus(); in launchTestActivityWithListView()
DFocusHandlingTest.java145 editText.requestFocus(); in launchTestActivity()
245 testActivity.runOnUiThread(() -> viewRef1.get().requestFocus()); in testSwitchingBetweenEquivalentNonEditableViews()
250 testActivity.runOnUiThread(() -> viewRef2.get().requestFocus()); in testSwitchingBetweenEquivalentNonEditableViews()
300 textView.requestFocus(); in testSoftInputStateAlwaysVisibleWithoutFocusedEditorView()
340 textView.requestFocus(); in testNoEditorNoStartInput()
375 editText.requestFocus(); in testDelayedAddEditorStartsInput()
396 editText.requestFocus(); in testEditorStartsInput()
417 editText.requestFocus(); in testSoftInputStateAlwaysVisibleFocusedEditorView()
462 instrumentation.runOnMainSync(editTextRef.get()::requestFocus); in testSoftInputStateAlwaysVisibleFocusEditorAfterLaunch()
490 instrumentation.runOnMainSync(editText::requestFocus); in testFocusableWindowDoesNotInvalidateExistingInputConnection()
[all …]
DInputConnectionLifecycleTest.java143 testEditor.requestFocus(); in testCloseConnectionWithRestartInput()
221 testEditor.requestFocus(); in testCloseConnectionWithLosingViewFocus()
236 runOnMainSync(() -> anotherEditTextRef.get().requestFocus()); in testCloseConnectionWithLosingViewFocus()
298 testEditor.requestFocus(); in testCloseConnectionWithLosingWindowFocus()
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/
DMultiScreenDifferentActivitiesTest.java58 activity1.syncRunOnUiThread(() -> activity1.mPreInput.requestFocus()); in testActivityNotDelayedIsNotMerged()
66 activity2.syncRunOnUiThread(() -> activity2.mInput.requestFocus()); in testActivityNotDelayedIsNotMerged()
101 activity1.syncRunOnUiThread(() -> activity1.mPreInput.requestFocus()); in testDelayedActivityIsMerged()
114 activity2.syncRunOnUiThread(() -> activity2.mInput.requestFocus()); in testDelayedActivityIsMerged()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DAudioFocusWithVdmTest.java119 int defaultFocusRequestResult = defaultDevicePlayback.requestFocus(); in testAudioFocusRequestOnVdmContextWithCustomDevicePolicy()
123 int vdmFocusRequestResult = vdmDevicePlayback.requestFocus(); in testAudioFocusRequestOnVdmContextWithCustomDevicePolicy()
152 int defaultFocusRequestResult = defaultDevicePlayback.requestFocus(); in testAudioFocusRequestOnVdmContextWithDefaultDevicePolicy()
156 int vdmFocusRequestResult = vdmDevicePlayback.requestFocus(); in testAudioFocusRequestOnVdmContextWithDefaultDevicePolicy()
180 public int requestFocus() { in requestFocus() method in AudioFocusWithVdmTest.PlaybackHelperForTest
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/
DLoginActivityTest.java176 mActivity.onUsername(View::requestFocus); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
195 mActivity.syncRunOnUiThread(() -> child.requestFocus()); in testAutofillAutomaticallyAfterServiceReturnedNoDatasets()
218 mActivity.onUsername(View::requestFocus); in testAutofillManuallyAfterServiceReturnedNoDatasets()
254 mActivity.onPassword(View::requestFocus); in testAutofillManuallyAndSaveAfterServiceReturnedNoDatasets()
260 mActivity.onPassword(View::requestFocus); in testAutofillManuallyAndSaveAfterServiceReturnedNoDatasets()
279 mActivity.onUsername(View::requestFocus); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
295 mActivity.syncRunOnUiThread(() -> child.requestFocus()); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
343 mActivity.onUsername(View::requestFocus); in testMultipleIterationsAfterServiceReturnedNoDatasets()
348 mActivity.onPassword(View::requestFocus); in testMultipleIterationsAfterServiceReturnedNoDatasets()
349 mActivity.onUsername(View::requestFocus); in testMultipleIterationsAfterServiceReturnedNoDatasets()
[all …]
DFillEventHistoryTest.java74 mActivity.onUsername(View::requestFocus); in testContextCommitted_whenServiceDidntDoAnything()
100 mActivity.onUsername(View::requestFocus); in textContextCommitted_withoutDatasets()
141 mActivity.onUsername(View::requestFocus); in testContextCommitted_idlessDatasets()
197 mActivity.onUsername(View::requestFocus); in testContextCommitted_idlessDatasetSelected_datasetWithIdIgnored()
261 mActivity.onUsername(View::requestFocus); in testContextCommitted_idlessDatasetIgnored_datasetWithIdSelected()
327 mActivity.onUsername(View::requestFocus); in testContextCommitted_noDatasetSelected_valuesNotManuallyEntered()
386 mActivity.onUsername(View::requestFocus); in testContextCommitted_oneDatasetSelected()
457 mActivity.onUsername(View::requestFocus); in testContextCommitted_multipleDatasetsSelected()
473 mActivity.onPassword(View::requestFocus); in testContextCommitted_multipleDatasetsSelected()
544 mActivity.onUsername(View::requestFocus); in testContextCommitted_multipleDatasetsSelected_butNotChanged()
[all …]
DCheckoutActivityTest.java121 mActivity.onCcNumber((v) -> v.requestFocus());
166 mActivity.onCcNumber((v) -> v.requestFocus());
209 mActivity.onCcNumber((v) -> v.requestFocus());
245 mActivity.onCcNumber((v) -> v.requestFocus());
335 mActivity.onCcNumber((v) -> v.requestFocus());
413 mActivity.onCcNumber((v) -> v.requestFocus());
456 mActivity.onCcNumber((v) -> v.requestFocus());
521 mActivity.onSaveCc((v) -> v.requestFocus());
563 mActivity.onCcExpiration((v) -> v.requestFocus());
642 mActivity.onCcNumber((v) -> v.requestFocus());
[all …]
DDialogLauncherActivityTest.java72 mActivity.onUsername(View::requestFocus);
114 mActivity.onUsername(View::requestFocus);
DMultipleFragmentLoginTest.java79 mActivity.syncRunOnUiThread(() -> mEditText2.requestFocus());
97 mActivity.syncRunOnUiThread(() -> mEditText1.requestFocus());
226 mActivity.syncRunOnUiThread(() -> mEditText2.requestFocus());
233 mActivity.syncRunOnUiThread(() -> mEditText1.requestFocus());
/cts/tests/tests/text/src/android/text/method/cts/
DTransformationMethodTest.java95 mEditText.requestFocus(); in setup()
116 mActivityRule.runOnUiThread(() -> mButton.requestFocus()); in testOnFocusChanged()
123 mActivityRule.runOnUiThread(() -> mEditText.requestFocus()); in testOnFocusChanged()
/cts/tests/app/CantSaveState2/src/com/android/test/cantsavestate2/
DCantSave2Activity.java27 getWindow().getDecorView().requestFocus(); in onCreate()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAutoFinishSessionTest.java91 mActivity.syncRunOnUiThread(() -> mEditText2.requestFocus());
97 mActivity.syncRunOnUiThread(() -> mEditText1.requestFocus());
221 mActivity.syncRunOnUiThread(() -> mEditText2.requestFocus());
227 mActivity.syncRunOnUiThread(() -> mEditText1.requestFocus());
/cts/tests/tests/widget/src/android/widget/cts/
DTimePickerTest.java583 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
599 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
608 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
628 mActivityRule.runOnUiThread(() -> mTimePicker.getAmView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
659 mActivityRule.runOnUiThread(() -> mTimePicker.getAmView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
664 mActivityRule.runOnUiThread(() -> mTimePicker.getAmView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
670 mActivityRule.runOnUiThread(() -> mTimePicker.getAmView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
676 mActivityRule.runOnUiThread(() -> mTimePicker.getAmView().requestFocus()); in testKeyboardInputModeSpinnerAmPm()
701 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinner24H()
716 mActivityRule.runOnUiThread(() -> mTimePicker.getHourView().requestFocus()); in testKeyboardInputModeSpinner24H()
[all …]
DSeekBarCtsActivity.java40 v.requestFocus(); in onCreate()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DShowWhenLockedAttrImeActivity.java38 editText.requestFocus(); in onCreate()

123456