Home
last modified time | relevance | path

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

12

/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/login/
DLoginViewModel.java71 public void loginDataChanged(String username, String password) { in loginDataChanged() argument
72 if (!isUserNameValid(username)) { in loginDataChanged()
82 private boolean isUserNameValid(String username) { in isUserNameValid() argument
83 if (username == null) { in isUserNameValid()
86 if (username.contains("@")) { in isUserNameValid()
87 return Patterns.EMAIL_ADDRESS.matcher(username).matches(); in isUserNameValid()
89 return !username.trim().isEmpty(); in isUserNameValid()
DLoginActivity.java67 final EditText usernameEditText = findViewById(R.id.username); in onCreate()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapStore.java39 private final String username; field in ImapStore
55 String username, in ImapStore() argument
63 this.username = username; in ImapStore()
77 return username; in getUsername()
/packages/apps/Car/DebuggingRestrictionController/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/
DLoginTest.java94 onView(withId(R.id.username)).perform(typeText(INVALID_EMAIL), ViewActions.closeSoftKeyboard()); in invalidEmail()
95 onView(withId(R.id.username)) in invalidEmail()
103 onView(withId(R.id.username)).perform(typeText(TEST_EMAIL), ViewActions.closeSoftKeyboard()); in invalidPassword()
121 onView(withId(R.id.username)).perform(typeText(TEST_EMAIL), ViewActions.closeSoftKeyboard()); in wrongPassword()
130 onView(withId(R.id.username)).perform(typeText(TEST_EMAIL), ViewActions.closeSoftKeyboard()); in userLogout()
146 onView(withId(R.id.username)).perform(typeText(TEST_EMAIL), ViewActions.closeSoftKeyboard()); in startTokenActivity()
174 onView(withId(R.id.username)).perform(typeText(TEST_EMAIL), ViewActions.closeSoftKeyboard()); in returnedFromTokenActivityOK()
197 onView(withId(R.id.username)).perform(typeText(TEST_EMAIL), ViewActions.closeSoftKeyboard()); in returnedFromTokenActivityCancelled()
/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapMsChapV2MethodStateMachine.java500 static byte[] usernameToBytes(String username) { in usernameToBytes() argument
501 return username.getBytes(StandardCharsets.US_ASCII); in usernameToBytes()
516 byte[] authenticatorChallenge, byte[] peerChallenge, String username, String password) in generateNtResponse() argument
518 byte[] challenge = challengeHash(peerChallenge, authenticatorChallenge, username); in generateNtResponse()
526 byte[] peerChallenge, byte[] authenticatorChallenge, String username) in challengeHash() argument
531 sha1.update(usernameToBytes(username)); in challengeHash()
604 String username) in generateAuthenticatorResponse() argument
615 byte[] challenge = challengeHash(peerChallenge, authenticatorChallenge, username); in generateAuthenticatorResponse()
/packages/modules/Connectivity/tests/unit/java/com/android/internal/net/
DVpnProfileTest.java60 assertEquals("", p.username); in testDefaults()
87 p.username = "baz"; in getSampleIkev2Profile()
194 decoded.username = profile.username; in testEncodeDecodeLoginsNotSaved()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DDigestMd5Utils.java59 public String username; field in DigestMd5Utils.Data
74 username = imapStore.getUsername(); in Data()
111 .appendQuoted(DIGEST_USERNAME, username) in createResponse()
162 getMd5(data.username + ":" + data.realm + ":" + data.password), in getResponse()
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DMetaBugReport.java158 String username = in.readString();
170 .setUserName(username)
199 public abstract Builder setUserName(String username); in setUserName() argument
DBugReportActivity.java620 String username = getCurrentUserName(context); in createBugReport() local
621 String title = BugReportTitleGenerator.generateBugReportTitle(timestamp, username); in createBugReport()
622 return BugStorageUtils.createBugReport(context, title, timestamp, username, type); in createBugReport()
637 static String generateBugReportTitle(String timestamp, String username) { in generateBugReportTitle() argument
640 return "[" + lookupString + "] Feedback from user " + username + " at " + timestamp; in generateBugReportTitle()
DBugStorageUtils.java100 @NonNull String username, in createBugReport() argument
106 values.put(COLUMN_USERNAME, username); in createBugReport()
/packages/modules/Connectivity/tests/unit/java/android/net/
DIkev2VpnProfileTest.java293 assertEquals("", profile.username); in testPskConvertToVpnProfile()
307 assertEquals(USERNAME_STRING, profile.username); in testUsernamePasswordConvertToVpnProfile()
333 assertEquals("", profile.username); in testRsaConvertToVpnProfile()
343 profile.username = USERNAME_STRING; in testPskFromVpnProfileDiscardsIrrelevantValues()
377 profile.username = USERNAME_STRING; in testRsaFromVpnProfileDiscardsIrrelevantValues()
/packages/modules/IPsec/src/java/android/net/eap/
DEapSessionConfig.java300 public Builder setEapMsChapV2Config(@NonNull String username, @NonNull String password) { in setEapMsChapV2Config() argument
302 EapMethodConfig.EAP_TYPE_MSCHAP_V2, new EapMsChapV2Config(username, password)); in setEapMsChapV2Config()
752 public EapMsChapV2Config(String username, String password) { in EapMsChapV2Config() argument
755 Objects.requireNonNull(username, "username must not be null"); in EapMsChapV2Config()
758 mUsername = username; in EapMsChapV2Config()
/packages/services/Telephony/tests/src/com/android/phone/callcomposer/
DCallComposerAuthTest.java28 String username = "test1"; in testResponseGeneration() local
38 String response = DigestAuthUtils.computeResponse(sNonce, cNonce, qop, username, in testResponseGeneration()
/packages/apps/Dialer/java/com/android/voicemail/impl/protocol/
DVvm3Protocol.java292 String username = message.getImapUserName(); in getDefaultPin() local
294 String number = username.substring(0, username.indexOf('@')); in getDefaultPin()
/packages/apps/Dialer/java/com/android/incallui/
DCallerInfo.java342 String username = PhoneNumberHelper.getUsernameFromUriNumber(number); in doSecondaryLookupIfNecessary() local
343 if (PhoneNumberUtils.isGlobalPhoneNumber(username)) { in doSecondaryLookupIfNecessary()
348 PhoneLookup.ENTERPRISE_CONTENT_FILTER_URI, Uri.encode(username))); in doSecondaryLookupIfNecessary()
/packages/services/Telephony/src/com/android/phone/callcomposer/
DDigestAuthUtils.java96 String username, String realm, byte[] password, String method, String uri) { in computeResponse() argument
97 String a1Hash = generateA1Hash(username, realm, password); in computeResponse()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialog.java118 mUsername = (TextView) mView.findViewById(R.id.username); in onCreate()
150 mUsername.setText(mProfile.username); in onCreate()
617 profile.username = mUsername.getText().toString(); in getProfile()
675 final boolean hasLogin = !profile.username.isEmpty() || !profile.password.isEmpty(); in getProfile()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/pps/
DUpdateParameter.java141 public void setUsername(String username) { in setUsername() argument
142 mUsername = username; in setUsername()
DCredential.java180 public void setUsername(String username) { in setUsername() argument
181 mUsername = username; in setUsername()
/packages/apps/Dialer/java/com/android/dialer/phonenumbercache/
DContactInfoHelper.java222 String username = PhoneNumberHelper.getUsernameFromUriNumber(number); in lookupNumber() local
223 if (PhoneNumberUtils.isGlobalPhoneNumber(username)) { in lookupNumber()
224 info = queryContactInfoForPhoneNumber(username, countryIso, directoryId); in lookupNumber()
/packages/apps/Settings/src/com/android/settings/users/
DUserSettings.java816 String username;
819 username = mAddingUserName;
824 user = mUserManager.createUser(username, 0);
826 user = mUserManager.createRestrictedProfile(username);
/packages/modules/Wifi/framework/tests/src/android/net/wifi/hotspot2/
DPasspointConfigurationTest.java563 private static Credential createCredentialWithUserCredential(String username, String password) { in createCredentialWithUserCredential() argument
565 userCred.setUsername(username); in createCredentialWithUserCredential()
/packages/apps/Dialer/java/com/android/voicemail/impl/imap/
DImapHelper.java117 String username = prefs.getString(OmtpConstants.IMAP_USER_NAME, null); in ImapHelper() local
129 imapStore = new ImapStore(context, this, username, password, port, serverName, auth, network); in ImapHelper()
/packages/modules/Wifi/framework/java/android/net/wifi/hotspot2/omadm/
DPpsMoParser.java1374 String username = null; in parseUpdateUserCredential() local
1379 username = getPpsNodeValue(child); in parseUpdateUserCredential()
1389 return Pair.create(username, password); in parseUpdateUserCredential()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java1662 String username = "username"; in addLegacyPasspointConfigWithUserCredential() local
1674 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredential()
1690 userCredential.setUsername(username); in addLegacyPasspointConfigWithUserCredential()
1715 String username = "username"; in addLegacyPasspointConfigWithUserCredentialWithoutCaCert() local
1726 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()

12