Home
last modified time | relevance | path

Searched refs:username (Results 1 – 18 of 18) sorted by relevance

/cts/tests/autofillservice/src/android/autofillservice/cts/
DAuthenticationTest.java91 final View username = mActivity.getUsername(); in datasetAuthTwoFields() local
92 callback.assertUiShownEvent(username); in datasetAuthTwoFields()
98 callback.assertUiHiddenEvent(username); in datasetAuthTwoFields()
105 callback.assertUiShownEvent(username); in datasetAuthTwoFields()
112 callback.assertUiHiddenEvent(username); in datasetAuthTwoFields()
113 callback.assertUiShownEvent(username); in datasetAuthTwoFields()
118 callback.assertUiHiddenEvent(username); in datasetAuthTwoFields()
125 callback.assertUiShownEvent(username); in datasetAuthTwoFields()
131 callback.assertUiHiddenEvent(username); in datasetAuthTwoFields()
178 final View username = mActivity.getUsername(); in testDatasetAuthTwoFieldsReplaceResponse() local
[all …]
DLoginActivity.java80 public static String getWelcomeMessage(String username) { in getWelcomeMessage() argument
81 return String.format(WELCOME_TEMPLATE, username); in getWelcomeMessage()
105 mUsernameEditText = findViewById(R.id.username); in onCreate()
131 final String username = mUsernameEditText.getText().toString(); in login() local
133 final boolean valid = username.equals(password) in login()
134 || (TextUtils.isEmpty(username) && TextUtils.isEmpty(password)) in login()
136 || username.equals(BACKDOOR_USERNAME); in login()
139 Log.d(TAG, "login ok: " + username); in login()
141 final String message = getWelcomeMessage(username); in login()
175 public void expectAutoFill(String username, String password) { in expectAutoFill() argument
[all …]
DMyWebView.java55 public void expectAutofill(String username, String password) { in expectAutofill() argument
56 mExpectation = new FillExpectation(username, password); in expectAutofill()
82 FillExpectation(String username, String password) { in FillExpectation() argument
83 this.mExpectedUsername = username; in FillExpectation()
87 void setUsername(String username) { in setUsername() argument
88 mActualUsername = username; in setUsername()
119 public void onUsernameChanged(String username) { in onUsernameChanged() argument
120 Log.d(TAG, "onUsernameChanged():" + username); in onUsernameChanged()
122 mExpectation.setUsername(username); in onUsernameChanged()
DUsernameOnlyActivity.java38 mUsernameEditText = findViewById(R.id.username); in onCreate()
51 void setUsername(String username) { in setUsername() argument
52 syncRunOnUiThread(() -> mUsernameEditText.setText(username)); in setUsername()
68 final String username = mUsernameEditText.getText().toString(); in next() local
69 Log.v(TAG, "Going to next screen as user " + username + " and aid " + mPasswordAutofillId); in next()
71 .putExtra(PasswordOnlyActivity.EXTRA_USERNAME, username) in next()
DDialogLauncherActivity.java81 void expectAutofill(String username, String password) { in expectAutofill() argument
84 mExpectation = new FillExpectation(username, password); in expectAutofill()
103 private FillExpectation(String username, String password) { in FillExpectation() argument
104 mCcUsernameWatcher = username == null ? null in FillExpectation()
105 : new OneTimeTextWatcher("username", mDialog.mUsernameEditText, username); in FillExpectation()
110 private FillExpectation(String username) { in FillExpectation() argument
111 this(username, null); in FillExpectation()
129 mUsernameEditText = findViewById(R.id.username); in onCreate()
DVirtualContainerActivity.java82 void expectAutoFill(String username, String password) { in expectAutoFill() argument
83 mExpectation = new FillExpectation(username, password); in expectAutoFill()
105 private FillExpectation(String username, String password) { in FillExpectation() argument
106 ccUsernameWatcher = mUsername.new OneTimeLineWatcher(username); in FillExpectation()
DValidatorTest.java57 final String username = willSaveBeShown ? "7992739871-3" : "4815162342-108"; in integrationTest() local
67 assertValidator(validator, usernameId, username, willSaveBeShown); in integrationTest()
79 mActivity.onUsername((v) -> v.setText(username)); in integrationTest()
DLoginActivityTest.java326 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() local
327 assertTextAndValue(username, "malkovich"); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
531 final View username = mActivity.getUsername(); in testDatasetPickerPosition() local
545 callback.assertUiShownEvent(username); in testDatasetPickerPosition()
558 callback.assertUiHiddenEvent(username); in testDatasetPickerPosition()
573 callback.assertUiShownEvent(username); in testDatasetPickerPosition()
581 callback.assertUiHiddenEvent(username); in testDatasetPickerPosition()
845 final View username = mActivity.getUsername(); in testAutofillTapOutside() local
847 callback.assertUiShownEvent(username); in testAutofillTapOutside()
852 callback.assertUiHiddenEvent(username); in testAutofillTapOutside()
[all …]
DVirtualContainerActivityTest.java194 final ViewNode username = findNodeByResourceId(request.structure, ID_USERNAME); in autofillTest() local
199 assertTextIsSanitized(username); in autofillTest()
205 assertThat(username.getClassName()).isEqualTo(TEXT_CLASS); in autofillTest()
209 assertThat(username.getIdEntry()).isEqualTo(ID_USERNAME); in autofillTest()
212 assertThat(username.getInputType()) in autofillTest()
219 final String[] autofillHints = username.getAutofillHints(); in autofillTest()
225 assertThat(username.getHtmlInfo()).isNull(); in autofillTest()
234 VirtualContainerView.assertHtmlInfo(username); in autofillTest()
243 assertWithMessage("Username node is not focused").that(username.isFocused()).isTrue(); in autofillTest()
591 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in saveTest() local
[all …]
DDatasetFilteringTest.java58 private void changeUsername(CharSequence username) { in changeUsername() argument
59 mActivity.onUsername((v) -> v.setText(username)); in changeUsername()
620 final EditText username = mActivity.getUsername(); in resetFilterTest() local
624 callback.assertUiShownEvent(username); in resetFilterTest()
641 callback.assertUiHiddenEvent(username); in resetFilterTest()
646 callback.assertUiShownEvent(username); in resetFilterTest()
659 callback.assertUiHiddenEvent(username); in resetFilterTest()
DSessionLifecycleTest.java260 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, in testDatasetAuthResponseWhileAutofilledAppIsLifecycled() local
262 assertTextAndValue(username, "autofilled username"); in testDatasetAuthResponseWhileAutofilledAppIsLifecycled()
496 final AssistStructure.ViewNode username = findNodeByResourceId(saveRequest.structure, in testSaveRemainsWhenAutofilledAppIsKilled() local
498 assertTextAndValue(username, "dude"); in testSaveRemainsWhenAutofilledAppIsKilled()
DLoginWithStringsActivityTest.java127 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME);
128 assertTextAndValue(username, "dude");
DVirtualContainerActivityCompatModeTest.java217 final ViewNode username = findNodeByResourceId(saveRequest.structure, ID_USERNAME); in testUrlBarChangeIgnoredWhenServiceCanSave() local
221 assertTextAndValue(username, "foo"); in testUrlBarChangeIgnoredWhenServiceCanSave()
DWebViewMultiScreenLoginActivityTest.java104 .addChild(R.id.username, usernameTrans)
251 .addChild(R.id.username, usernameTrans)
DCustomDescriptionTest.java558 final String username = matchFirst ? "marco" : "MARCO"; in multipleTransformationsForSameFieldTest() local
559 mActivity.onUsername((v) -> v.setText(username)); in multipleTransformationsForSameFieldTest()
DMultiScreenLoginTest.java387 .addChild(R.id.username, usernameTrans)
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAbstractLoginNotImportantForAutofillTestCase.java46 final EditText username = mActivity.getUsername(); in testAutofill_none() local
47 final AutofillValue expectedFocusedValue = username.getAutofillValue(); in testAutofill_none()
48 final AutofillId expectedFocusedId = username.getAutofillId(); in testAutofill_none()
72 final EditText username = mActivity.getUsername(); in testAutofill_oneField() local
73 final AutofillId usernameId = username.getAutofillId(); in testAutofill_oneField()
74 final AutofillValue expectedFocusedValue = username.getAutofillValue(); in testAutofill_oneField()
108 final EditText username = mActivity.getUsername(); in testAutofill_twoFields() local
109 final AutofillId usernameId = username.getAutofillId(); in testAutofill_twoFields()
110 final AutofillValue expectedFocusedValue = username.getAutofillValue(); in testAutofill_twoFields()
145 final EditText username = mActivity.getUsername(); in testAutofill_manualRequest() local
[all …]
DAugmentedLoginActivityTest.java101 final EditText username = mActivity.getUsername();
102 final AutofillValue expectedFocusedValue = username.getAutofillValue();
103 final AutofillId usernameId = username.getAutofillId();
130 final EditText username = mActivity.getUsername();
131 final AutofillValue expectedFocusedValue = username.getAutofillValue();
132 final AutofillId usernameId = username.getAutofillId();
159 final EditText username = mActivity.getUsername();
160 final AutofillValue expectedFocusedValue = username.getAutofillValue();
161 final AutofillId expectedFocusedId = username.getAutofillId();
228 final EditText username = mActivity.getUsername();
[all …]