Home
last modified time | relevance | path

Searched refs:password (Results 1 – 25 of 33) sorted by relevance

12

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWifiConfigCreator.java73 String password) throws InterruptedException, SecurityException { in addNetwork() argument
76 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork()
136 int securityType, String password) throws InterruptedException, SecurityException { in updateNetwork() argument
142 WifiConfiguration conf = createConfig(ssid, hidden, securityType, password); in updateNetwork()
161 int securityType, String password) throws InterruptedException, SecurityException { in updateNetwork() argument
172 return updateNetwork(wifiConf, ssid, hidden, securityType, password); in updateNetwork()
189 String password) { in createConfig() argument
201 updateForWPAConfiguration(wifiConf, password); in createConfig()
204 updateForWEPConfiguration(wifiConf, password); in createConfig()
217 private void updateForWEPConfiguration(WifiConfiguration wifiConf, String password) { in updateForWEPConfiguration() argument
[all …]
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWifiConfigCreator.java73 String password) throws InterruptedException, SecurityException { in addNetwork() argument
76 WifiConfiguration wifiConf = createConfig(ssid, hidden, securityType, password); in addNetwork()
136 int securityType, String password) throws InterruptedException, SecurityException { in updateNetwork() argument
142 WifiConfiguration conf = createConfig(ssid, hidden, securityType, password); in updateNetwork()
161 int securityType, String password) throws InterruptedException, SecurityException { in updateNetwork() argument
172 return updateNetwork(wifiConf, ssid, hidden, securityType, password); in updateNetwork()
189 String password) { in createConfig() argument
201 updateForWPAConfiguration(wifiConf, password); in createConfig()
204 updateForWEPConfiguration(wifiConf, password); in createConfig()
217 private void updateForWEPConfiguration(WifiConfiguration wifiConf, String password) { in updateForWEPConfiguration() argument
[all …]
/cts/tests/autofillservice/src/android/autofillservice/cts/
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
84 this.mExpectedPassword = password; in FillExpectation()
92 void setPassword(String password) { in setPassword() argument
93 mActualPassword = password; in setPassword()
127 public void onPasswordChanged(String password) { in onPasswordChanged() argument
128 Log.d(TAG, "onPasswordChanged():" + password); in onPasswordChanged()
130 mExpectation.setPassword(password); in onPasswordChanged()
DLoginActivity.java107 mPasswordEditText = findViewById(R.id.password); in onCreate()
132 final String password = mPasswordEditText.getText().toString(); in login() local
133 final boolean valid = username.equals(password) in login()
134 || (TextUtils.isEmpty(username) && TextUtils.isEmpty(password)) in login()
135 || password.contains(BACKDOOR_PASSWORD_SUBSTRING) in login()
175 public void expectAutoFill(String username, String password) { in expectAutoFill() argument
176 mExpectation = new FillExpectation(username, password); in expectAutoFill()
194 public void expectPasswordAutoFill(String password) { in expectPasswordAutoFill() argument
195 mExpectation = new FillExpectation(null, password); in expectPasswordAutoFill()
332 private FillExpectation(String username, String password) { in FillExpectation() argument
[all …]
DSimpleSaveActivity.java65 mPassword = findViewById(R.id.password); in onCreate()
112 public FillExpectation expectAutoFill(String input, String password) { in expectAutoFill() argument
113 final FillExpectation expectation = new FillExpectation(input, password); in expectAutoFill()
127 private FillExpectation(String input, String password) { in FillExpectation() argument
129 mPasswordWatcher = password == null in FillExpectation()
131 : new OneTimeTextWatcher("password", mPassword, password); in FillExpectation()
DPasswordOnlyActivity.java43 mPasswordEditText = findViewById(R.id.password); in onCreate()
66 void setPassword(String password) { in setPassword() argument
67 syncRunOnUiThread(() -> mPasswordEditText.setText(password)); in setPassword()
71 final String password = mPasswordEditText.getText().toString(); in login() local
72 Log.i(TAG, "Login as " + mUsername + "/" + password); in login()
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
106 mCcPasswordWatcher = password == null ? null in FillExpectation()
107 : new OneTimeTextWatcher("password", mDialog.mPasswordEditText, password); in FillExpectation()
130 mPasswordEditText = findViewById(R.id.password); 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
107 ccPasswordWatcher = mPassword.new OneTimeLineWatcher(password); in FillExpectation()
DLoginActivityTest.java328 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets() local
329 assertTextAndValue(password, "malkovich"); in testAutofillAutomaticallyAndSaveAfterServiceReturnedNoDatasets()
532 final View password = mActivity.getPassword(); in testDatasetPickerPosition() local
559 callback.assertUiShownEvent(password); in testDatasetPickerPosition()
572 callback.assertUiHiddenEvent(password); in testDatasetPickerPosition()
582 callback.assertUiShownEvent(password); in testDatasetPickerPosition()
875 final View password = mActivity.getPassword(); in testAutofillCallbacks() local
881 callback.assertUiShownEvent(password); in testAutofillCallbacks()
1116 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in testAutoFillOneDatasetAndSaveHidingOverlays() local
1117 assertTextAndValue(password, "dude"); in testAutoFillOneDatasetAndSaveHidingOverlays()
[all …]
DVirtualContainerActivityTest.java196 final ViewNode password = findNodeByResourceId(request.structure, ID_PASSWORD); in autofillTest() local
200 assertTextIsSanitized(password); in autofillTest()
207 assertThat(password.getClassName()).isEqualTo(TEXT_CLASS); in autofillTest()
210 assertThat(password.getIdEntry()).isEqualTo(ID_PASSWORD); in autofillTest()
215 assertThat(password.getInputType()) in autofillTest()
226 assertThat(password.getHtmlInfo()).isNull(); in autofillTest()
235 VirtualContainerView.assertHtmlInfo(password); in autofillTest()
244 assertWithMessage("Password node is focused").that(password.isFocused()).isFalse(); in autofillTest()
592 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_PASSWORD); in saveTest() local
595 assertTextAndValue(password, "bar"); in saveTest()
DAuthenticationTest.java96 final View password = mActivity.getPassword(); in datasetAuthTwoFields() local
99 callback.assertUiShownEvent(password); in datasetAuthTwoFields()
104 callback.assertUiHiddenEvent(password); in datasetAuthTwoFields()
119 callback.assertUiShownEvent(password); in datasetAuthTwoFields()
124 callback.assertUiHiddenEvent(password); in datasetAuthTwoFields()
789 final View password = mActivity.getPassword(); in fillResponseAuthBothFields() local
792 callback.assertUiShownEvent(password); in fillResponseAuthBothFields()
797 callback.assertUiHiddenEvent(password); in fillResponseAuthBothFields()
811 callback.assertUiShownEvent(password); in fillResponseAuthBothFields()
816 callback.assertUiHiddenEvent(password); in fillResponseAuthBothFields()
DLoginWithStringsActivityTest.java129 final ViewNode password = findNodeByResourceId(saveRequest.structure, ID_USERNAME);
130 assertTextAndValue(password, "dude");
/cts/hostsidetests/devicepolicy/app/WifiConfigCreator/src/com/android/cts/deviceowner/wificonfigcreator/
DWifiConfigCreatorActivity.java51 String password = intent.getStringExtra(EXTRA_PASSWORD); in onCreate() local
52 configCreator.addNetwork(ssid, false, securityType, password); in onCreate()
57 String password = intent.getStringExtra(EXTRA_PASSWORD); in onCreate() local
58 configCreator.updateNetwork(netId, ssid, false, securityType, password); in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceAdmin/src/com.android.cts.deviceadmin/
DDeviceOwnerPasswordTest.java364 private void assertPasswordFails(String password, String restriction) { in assertPasswordFails() argument
366 boolean passwordResetResult = dpm.resetPassword(password, /* flags= */0); in assertPasswordFails()
367 assertFalse("Password '" + password + "' should have failed on " + restriction, in assertPasswordFails()
374 private void assertPasswordSucceeds(String password, String restriction) { in assertPasswordSucceeds() argument
375 boolean passwordResetResult = dpm.resetPassword(password, /* flags= */0); in assertPasswordSucceeds()
376 assertTrue("Password '" + password + "' failed on " + restriction, passwordResetResult); in assertPasswordSucceeds()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DResetPasswordTest.java75 private void assertResetPasswordEnabled(boolean enabled, String password) { in assertResetPasswordEnabled() argument
78 passwordChanged = mDevicePolicyManager.resetPassword(password, 0); in assertResetPasswordEnabled()
DFbeHelper.java79 private void enterPassword(String password) throws Exception { in enterPassword() argument
84 pressNumericKeys(password); in enterPassword()
DResetPasswordWithTokenTest.java541 private void assertPasswordFails(String password, String restriction) { in assertPasswordFails() argument
544 ADMIN_RECEIVER_COMPONENT, password, TOKEN0, /* flags= */0); in assertPasswordFails()
545 assertFalse("Password '" + password + "' should have failed on " + restriction, in assertPasswordFails()
552 private void assertPasswordSucceeds(String password, String restriction) { in assertPasswordSucceeds() argument
554 ADMIN_RECEIVER_COMPONENT, password, TOKEN0, /* flags= */0); in assertPasswordSucceeds()
555 assertTrue("Password '" + password + "' failed on " + restriction, passwordResetResult); in assertPasswordSucceeds()
/cts/hostsidetests/devicepolicy/app/PasswordComplexity/src/com.android.cts.passwordcomplexity/
DGetPasswordComplexityTest.java147 private void setPassword(String password) throws Exception { in setPassword() argument
149 mDevice.executeShellCommand("cmd lock_settings set-password " + password); in setPassword()
153 mScreenLock = password; in setPassword()
/cts/tests/tests/content/src/android/content/cts/
DContentResolverSyncTestCase.java82 private void addAccountExplicitly(Account account, String password, Bundle userdata) { in addAccountExplicitly() argument
83 assertTrue(sAccountManager.addAccountExplicitly(account, password, userdata)); in addAccountExplicitly()
105 private void addAccountAndVerifyInitSync(Account account, String password, in addAccountAndVerifyInitSync() argument
110 addAccountExplicitly(account, password, null /* userData */); in addAccountAndVerifyInitSync()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiEnterpriseConfigTest.java789 final String password = "PasswordIsNotOkayToBeDisplayedHere"; in testEnterpriseConfigDoesNotPrintPassword() local
791 enterpriseConfig.setPassword(password); in testEnterpriseConfigDoesNotPrintPassword()
794 assertFalse(stringRepresentation.contains(password)); in testEnterpriseConfigDoesNotPrintPassword()
/cts/tests/tests/webkit/src/android/webkit/cts/
DHttpAuthHandlerTest.java76 ProceedHttpAuthClient(int maxAuthAttempts, String user, String password) { in ProceedHttpAuthClient() argument
80 mPassword = password; in ProceedHttpAuthClient()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileTest.java1380 String password = "0000"; in testUnlockWorkProfile_deviceWidePassword() local
1383 changeUserCredential(password, /* oldCredential= */ null, mPrimaryUserId); in testUnlockWorkProfile_deviceWidePassword()
1387 verifyUserCredential(password, mPrimaryUserId); in testUnlockWorkProfile_deviceWidePassword()
1394 changeUserCredential(/* newCredential= */ null, password, mPrimaryUserId); in testUnlockWorkProfile_deviceWidePassword()
1404 String password = "0000"; in testRebootDevice_unifiedPassword() local
1405 changeUserCredential(password, /* oldCredential= */ null, mPrimaryUserId); in testRebootDevice_unifiedPassword()
1408 verifyUserCredential(password, mPrimaryUserId); in testRebootDevice_unifiedPassword()
1413 changeUserCredential(/* newCredential= */ null, password, mPrimaryUserId); in testRebootDevice_unifiedPassword()
/cts/hostsidetests/backup/SyncAdapterSettingsApp/src/android/cts/backup/syncadaptersettingsapp/
DSyncAdapterSettingsTest.java234 final String password = "password"; in addAccount() local
240 am.addAccountExplicitly(mAccount, password, new Bundle()); in addAccount()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DWifiConfigLockdownTest.java166 String password) throws InterruptedException { in startRegularActivity() argument
171 createRegularConfig.putExtra(EXTRA_PASSWORD, password); in startRegularActivity()
/cts/tests/autofillservice/src/android/autofillservice/cts/augmented/
DAugmentedLoginActivityTest.java521 final EditText password = mActivity.getPassword();
522 final AutofillId passwordId = password.getAutofillId();
523 final AutofillValue passwordValue = password.getAutofillValue();
637 final EditText password = mActivity.getPassword();
638 final AutofillId passwordId = password.getAutofillId();
639 final AutofillValue passwordValue = password.getAutofillValue();

12