Lines Matching refs:token

554                     // This token was already tokenized, so skip past the ending token.
559 // and commit the whole token.
1057 // When we have a valid token, include it with the token
1153 String token = editable.toString().substring(tokenStart, tokenEnd);
1154 final String trimmedToken = token.trim();
1157 token = trimmedToken.substring(0, trimmedToken.length() - 1);
1159 RecipientEntry entry = createTokenizedEntry(token);
1176 chip.setOriginalText(token);
1195 RecipientEntry createTokenizedEntry(final String token) {
1196 if (TextUtils.isEmpty(token)) {
1199 if (isPhoneQuery() && isPhoneNumber(token)) {
1200 return RecipientEntry.constructFakePhoneEntry(token, true);
1202 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(token);
1204 boolean isValid = isValid(token);
1219 // Unable to validate the token or to create a valid token from it.
1224 validatedToken = mValidator.fixText(token).toString();
1226 if (validatedToken.contains(token)) {
1229 // which doesn't add a domain to the token
1236 // We ran into a case where the token was invalid and
1239 // token
1248 !TextUtils.isEmpty(validatedToken) ? validatedToken : token, isValid);
1334 * tokenizer should search for a token to turn into a chip.
1349 // and commit the whole token.
1576 // Check to see if this is a completed token before filtering.
1579 String token = text.toString().substring(start, end).trim();
1580 if (!TextUtils.isEmpty(token)) {
1581 char atEnd = token.charAt(token.length() - 1);
1806 Rfc822Token token = new Rfc822Token(display, address, null);
1807 trimmedDisplayText = token.toString().trim();
2006 start = end; // move to the next token and get its end.
2120 String token;
2122 token = (String) chip.getOriginalText();
2127 chipStart = editable.toString().indexOf(token, end);
2128 end = chipEnd = Math.min(editable.length(), chipStart + token.length());
2129 // Only set the span if we found a matching token.
2451 // Add the separator token.
2605 // Take a look at the last token. If the token has been completed with a
2625 // This token had not only an end token character, but also a space
2626 // separating it from the next token.