Home
last modified time | relevance | path

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

123

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DWifiConfig.java49 public int addNetwork(String ssid, boolean hidden, String type, String password, in addNetwork() argument
69 if (securityType.equals(SecurityType.NONE) && !TextUtils.isEmpty(password)) { in addNetwork()
83 updateForWPAConfiguration(wifiConf, password); in addNetwork()
86 updateForWEPConfiguration(wifiConf, password); in addNetwork()
117 protected void updateForWEPConfiguration(WifiConfiguration wifiConf, String password) { in updateForWEPConfiguration() argument
125 int length = password.length(); in updateForWEPConfiguration()
126 if ((length == 10 || length == 26 || length == 58) && password.matches("[0-9A-Fa-f]*")) { in updateForWEPConfiguration()
127 wifiConf.wepKeys[0] = password; in updateForWEPConfiguration()
129 wifiConf.wepKeys[0] = '"' + password + '"'; in updateForWEPConfiguration()
DProvisioningParams.java51 public String password; field in ProvisioningParams.WifiInfo
61 out.writeString(password); in writeToParcel()
72 password = in.readString(); in readFromParcel()
/packages/apps/Settings/src/com/android/settings/
DChooseLockPassword.java86 int minLength, final int maxLength, boolean requirePasswordToDecrypt, String password) { in createIntent() argument
89 intent.putExtra(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD, password); in createIntent()
392 private String validatePassword(String password) { in validatePassword() argument
393 if (password.length() < mPasswordMinLength) { in validatePassword()
398 if (password.length() > mPasswordMaxLength) { in validatePassword()
409 for (int i = 0; i < password.length(); i++) { in validatePassword()
410 char c = password.charAt(i); in validatePassword()
437 final int sequence = LockPatternUtils.maxLengthSequence(password); in validatePassword()
480 if(mLockPatternUtils.checkPasswordHistory(password, UserHandle.myUserId())) { in validatePassword()
562 String password = mPasswordEntry.getText().toString(); in updateUi() local
[all …]
DCryptKeeperSettings.java188 String password = data.getStringExtra(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD); in onActivityResult() local
189 if (!TextUtils.isEmpty(password)) { in onActivityResult()
190 showFinalConfirmation(type, password); in onActivityResult()
195 private void showFinalConfirmation(int type, String password) { in showFinalConfirmation() argument
199 addEncryptionInfoToPreference(preference, type, password); in showFinalConfirmation()
203 private void addEncryptionInfoToPreference(Preference preference, int type, String password) { in addEncryptionInfoToPreference() argument
212 preference.getExtras().putString(PASSWORD, password); in addEncryptionInfoToPreference()
DCryptKeeper.java869 final String password = v.getText().toString(); in onEditorAction() local
871 if (TextUtils.isEmpty(password)) { in onEditorAction()
883 if (password.length() >= LockPatternUtils.MIN_LOCK_PATTERN_SIZE) { in onEditorAction()
884 new DecryptTask().execute(password); in onEditorAction()
DApnEditor.java732 char[] password = new char[value.length()]; in starify() local
733 for (int i = 0; i < password.length; i++) { in starify()
734 password[i] = '*'; in starify()
736 return new String(password); in starify()
DCredentialStorage.java474 String password = data.getStringExtra(ChooseLockSettingsHelper.EXTRA_KEY_PASSWORD); in onActivityResult() local
475 if (!TextUtils.isEmpty(password)) { in onActivityResult()
477 mKeyStore.unlock(password); in onActivityResult()
/packages/apps/Settings/tests/src/com/android/settings/vpn2/
DVpnTests.java166 Log.v(TAG, "password: " + profile.password); in printVpnProfile()
336 private void installCertificatesFromFile(VpnProfile profile, String fileName, String password) in installCertificatesFromFile() argument
338 if (profile == null || fileName == null || password == null) { in installCertificatesFromFile()
343 mCertHelper.installCertificate(profile, fileName, password); in installCertificatesFromFile()
394 String password = curVpnInfo.getPassword(); in testL2tpIpsecRsaConnection() local
395 installCertificatesFromFile(vpnProfile, certFile, password); in testL2tpIpsecRsaConnection()
412 String password = curVpnInfo.getPassword(); in testIpsecXauthRsaConnection() local
413 installCertificatesFromFile(vpnProfile, certFile, password); in testIpsecXauthRsaConnection()
DVpnProfileParser.java48 boolean password;
86 password = true;
157 if (password) {
158 profile.password = strValue;
159 password = false;
DVpnInfo.java32 public VpnInfo(VpnProfile vpnProfile, String certFile, String password) { in VpnInfo() argument
35 mPassword = password; in VpnInfo()
50 public void setPassword(String password) { in setPassword() argument
51 mPassword = password; in setPassword()
DCertInstallerHelper.java77 private void extractCertificate(String certFile, String password) { in extractCertificate() argument
88 PasswordProtection passwordProtection = new PasswordProtection(password.toCharArray()); in extractCertificate()
172 public void installCertificate(VpnProfile profile, String certFile, String password) { in installCertificate() argument
174 extractCertificate(certFile, password); in installCertificate()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWifiMultiPagedFormActivity.java142 WifiConfiguration wifiConfiguration, WifiSecurity wifiSecurity, String password) { in setWifiConfigurationPassword() argument
144 int length = password.length(); in setWifiConfigurationPassword()
147 && password.matches("[0-9A-Fa-f]*")) { in setWifiConfigurationPassword()
148 wifiConfiguration.wepKeys[0] = password; in setWifiConfigurationPassword()
150 wifiConfiguration.wepKeys[0] = '"' + password + '"'; in setWifiConfigurationPassword()
153 wifiConfiguration.preSharedKey = '"' + password + '"'; in setWifiConfigurationPassword()
/packages/apps/Settings/src/com/android/settings/wifi/
DWriteWifiConfigToNfcDialog.java117 mPasswordView = (TextView) mView.findViewById(R.id.password); in onCreate()
137 String password = mPasswordView.getText().toString(); in onClick() local
140 String passwordHex = byteArrayToHexString(password.getBytes()); in onClick()
142 String passwordLength = password.length() >= HEX_RADIX in onClick()
143 ? Integer.toString(password.length(), HEX_RADIX) in onClick()
144 : "0" + Character.forDigit(password.length(), HEX_RADIX); in onClick()
DWifiConfigController.java400 String password = mPasswordView.getText().toString(); in getConfig() local
403 password.matches("[0-9A-Fa-f]*")) { in getConfig()
404 config.wepKeys[0] = password; in getConfig()
406 config.wepKeys[0] = '"' + password + '"'; in getConfig()
414 String password = mPasswordView.getText().toString(); in getConfig() local
415 if (password.matches("[0-9A-Fa-f]{64}")) { in getConfig()
416 config.preSharedKey = password; in getConfig()
418 config.preSharedKey = '"' + password + '"'; in getConfig()
628 mPasswordView = (TextView) mView.findViewById(R.id.password); in showSecurityFields()
1029 TextView passwdView = (TextView) mView.findViewById(R.id.password); in updatePassword()
DWifiApDialog.java111 String password = mPassword.getText().toString(); in getConfig() local
112 config.preSharedKey = password; in getConfig()
134 mPassword = (EditText) mView.findViewById(R.id.password); in onCreate()
/packages/apps/CertInstaller/src/com/android/certinstaller/
DCertInstaller.java293 void extractPkcs12InBackground(final String password) { in extractPkcs12InBackground() argument
299 return mCredentials.extractPkcs12(password); in extractPkcs12InBackground()
343 String password = mView.getText(R.id.credential_password); in createPkcs12PasswordDialog()
344 mNextAction = new Pkcs12ExtractAction(password); in createPkcs12PasswordDialog()
476 Pkcs12ExtractAction(String password) { in Pkcs12ExtractAction() argument
477 mPassword = password; in Pkcs12ExtractAction()
DCredentialHelper.java320 boolean extractPkcs12(String password) { in extractPkcs12() argument
322 return extractPkcs12Internal(password); in extractPkcs12()
329 private boolean extractPkcs12Internal(String password) in extractPkcs12Internal() argument
333 PasswordProtection passwordProtection = new PasswordProtection(password.toCharArray()); in extractPkcs12Internal()
/packages/apps/Browser/src/com/android/browser/
DPageDialogsHandler.java92 public void onOk(String host, String realm, String username, String password) { in showHttpAuthentication()
93 setHttpAuthUsernamePassword(host, realm, username, password); in showHttpAuthentication()
94 handler.proceed(username, password); in showHttpAuthentication()
119 String password) { in setHttpAuthUsernamePassword() argument
122 w.setHttpAuthUsernamePassword(host, realm, username, password); in setHttpAuthUsernamePassword()
DHttpAuthenticationDialog.java92 String password = getPassword(); in reshow() local
100 if (password != null) { in reshow()
101 mPasswordView.setText(password); in reshow()
157 void onOk(String host, String realm, String username, String password); in onOk() argument
/packages/apps/Email/src/com/android/email/activity/setup/
DAuthenticationView.java120 public void setPassword(final String password) { in setPassword() argument
121 mPasswordEdit.setText(password); in setPassword()
238 final String password = bundle.getString(SAVE_PASSWORD); in onRestoreInstanceState() local
239 mPasswordEdit.setText(password); in onRestoreInstanceState()
DAccountSetupCredentialsFragment.java339 final String password = results.getString(AccountSetupCredentialsFragment.EXTRA_PASSWORD); in populateHostAuthWithResults() local
340 if (!TextUtils.isEmpty(password)) { in populateHostAuthWithResults()
341 hostAuth.mPassword = password; in populateHostAuthWithResults()
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java292 private void saslAuthLogin(String username, String password) throws MessagingException, in saslAuthLogin() argument
300 Base64.encodeToString(password.getBytes(), Base64.NO_WRAP), in saslAuthLogin()
311 private void saslAuthPlain(String username, String password) throws MessagingException, in saslAuthPlain() argument
313 byte[] data = ("\000" + username + "\000" + password).getBytes(); in saslAuthPlain()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DSSLSocketFactory.java248 private static KeyManager[] createKeyManagers(final KeyStore keystore, final String password) in createKeyManagers() argument
255 kmfactory.init(keystore, password != null ? password.toCharArray(): null); in createKeyManagers()
/packages/services/Telephony/src/com/android/phone/settings/fdn/
DFdnSetting.java113 String password = mButtonEnableFDN.getText(); in toggleFDNEnable() local
114 if (validatePin (password, false)) { in toggleFDNEnable()
120 mPhone.getIccCard().setIccFdnEnabled(!isEnabled, password, onComplete); in toggleFDNEnable()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java98 mPassword = (TextView) mView.findViewById(R.id.password); in onCreate()
118 mPassword.setText(mProfile.password); in onCreate()
373 profile.password = mPassword.getText().toString(); in getProfile()

123