/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | NameSplitter.java | 321 public int tokenize(String[] tokens, String fullName) { in tokenize() argument 335 tokens[count++] = tokenizer.mTokens[i]; in tokenize() 395 NameTokenizer tokens = new NameTokenizer(fullName); in splitWesternName() local 396 parsePrefix(name, tokens); in splitWesternName() 400 if (tokens.mEndPointer > 2) { in splitWesternName() 401 parseSuffix(name, tokens); in splitWesternName() 404 if (name.prefix == null && tokens.mEndPointer - tokens.mStartPointer == 1) { in splitWesternName() 405 name.givenNames = tokens.mTokens[tokens.mStartPointer]; in splitWesternName() 407 parseLastName(name, tokens); in splitWesternName() 408 parseMiddleName(name, tokens); in splitWesternName() [all …]
|
D | HanziToPinyin.java | 137 ArrayList<Token> tokens = new ArrayList<Token>(); in getTokens() local 140 return tokens; in getTokens() 156 addToken(sb, tokens, tokenType); in getTokens() 162 addToken(sb, tokens, tokenType); in getTokens() 164 tokens.add(token); in getTokens() 168 addToken(sb, tokens, tokenType); in getTokens() 176 addToken(sb, tokens, tokenType); in getTokens() 178 return tokens; in getTokens() 182 final StringBuilder sb, final ArrayList<Token> tokens, final int tokenType) { in addToken() argument 184 tokens.add(new Token(tokenType, str, str)); in addToken()
|
D | ProfileAwareUriMatcher.java | 75 String[] tokens = PATH_SPLIT_PATTERN.split(newPath); in addURI() local 77 if (tokens != null) { in addURI() 83 for (int i = 0; i < tokens.length; i++) { in addURI() 84 String token = tokens[i]; in addURI()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | HanziToPinyinTest.java | 43 ArrayList<Token> tokens = HanziToPinyin.getInstance().getTokens(hanziString); in test() local 44 assertEquals(tokens.size(), 1); in test() 45 final String newString = tokens.get(0).target; in test() 49 tokens.get(0).type, Token.UNKNOWN); in test() 56 tokens.get(0).type, Token.PINYIN); in test() 68 ArrayList<Token> tokens = HanziToPinyin.getInstance().getTokens(ONE_HANZI); in testGetToken() local 69 assertEquals(tokens.size(), 1); in testGetToken() 70 assertEquals(tokens.get(0).type, Token.PINYIN); in testGetToken() 71 assertTrue(tokens.get(0).target.equalsIgnoreCase("DU")); in testGetToken() 73 tokens = HanziToPinyin.getInstance().getTokens(TWO_HANZI); in testGetToken() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
D | BluetoothMapContent.java | 807 Rfc822Token tokens[] = Rfc822Tokenizer.tokenize(toAddress); in getRecipientNameEmail() local 808 if (tokens.length != 0) { in getRecipientNameEmail() 809 if(D) Log.d(TAG, "toName count= " + tokens.length); in getRecipientNameEmail() 812 while (i < tokens.length) { in getRecipientNameEmail() 813 if(V) Log.d(TAG, "ToName = " + tokens[i].toString()); in getRecipientNameEmail() 814 String name = tokens[i].getName(); in getRecipientNameEmail() 827 Rfc822Token tokens[] = Rfc822Tokenizer.tokenize(ccAddress); in getRecipientNameEmail() local 828 if (tokens.length != 0) { in getRecipientNameEmail() 829 if(D) Log.d(TAG, "ccName count= " + tokens.length); in getRecipientNameEmail() 832 while (i < tokens.length) { in getRecipientNameEmail() [all …]
|
D | BluetoothMapbMessageMime.java | 525 Rfc822Token tokens[] = Rfc822Tokenizer.tokenize(headerValue); in parseMimeHeaders() local 526 from = new ArrayList<Rfc822Token>(Arrays.asList(tokens)); in parseMimeHeaders() 529 Rfc822Token tokens[] = Rfc822Tokenizer.tokenize(headerValue); in parseMimeHeaders() local 530 to = new ArrayList<Rfc822Token>(Arrays.asList(tokens)); in parseMimeHeaders() 533 Rfc822Token tokens[] = Rfc822Tokenizer.tokenize(headerValue); in parseMimeHeaders() local 534 cc = new ArrayList<Rfc822Token>(Arrays.asList(tokens)); in parseMimeHeaders() 537 Rfc822Token tokens[] = Rfc822Tokenizer.tokenize(headerValue); in parseMimeHeaders() local 538 bcc = new ArrayList<Rfc822Token>(Arrays.asList(tokens)); in parseMimeHeaders() 541 Rfc822Token tokens[] = Rfc822Tokenizer.tokenize(headerValue); in parseMimeHeaders() local 542 replyTo = new ArrayList<Rfc822Token>(Arrays.asList(tokens)); in parseMimeHeaders()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/ |
D | Address.java | 137 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(rawAddress); in getEmailAddress() local 138 if (tokens.length > 0) { in getEmailAddress() 139 final String tokenizedName = tokens[0].getName(); in getEmailAddress() 142 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress() 205 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addressList); in isAllValid() local 206 for (int i = 0, length = tokens.length; i < length; ++i) { in isAllValid() 207 Rfc822Token token = tokens[i]; in isAllValid() 228 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addressList); in parse() local 230 for (int i = 0, length = tokens.length; i < length; ++i) { in parse() 231 Rfc822Token token = tokens[i]; in parse()
|
/packages/services/Telephony/src/com/android/phone/common/mail/ |
D | Address.java | 136 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(rawAddress); in getEmailAddress() local 137 if (tokens.length > 0) { in getEmailAddress() 138 final String tokenizedName = tokens[0].getName(); in getEmailAddress() 141 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress() 204 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addressList); in isAllValid() local 205 for (int i = 0, length = tokens.length; i < length; ++i) { in isAllValid() 206 Rfc822Token token = tokens[i]; in isAllValid() 227 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addressList); in parse() local 229 for (int i = 0, length = tokens.length; i < length; ++i) { in parse() 230 Rfc822Token token = tokens[i]; in parse()
|
/packages/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | SuggestionsProvider.java | 76 String[] tokens = TextUtils.split(query, in query() local 79 if (tokens != null && tokens.length > 1) { in query() 80 query = tokens[tokens.length - 1]; in query() 84 for (int i = 0, size = tokens.length - 1; i < size; i++) { in query() 85 mFullQueryTerms.add(tokens[i]); in query()
|
D | ReplyFromAccount.java | 115 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(possibleCustomFrom); in matchesAccountOrCustomFrom() local 116 if (tokens != null && tokens.length > 0) { in matchesAccountOrCustomFrom() 117 String parsedFromAddress = Utils.normalizeEmailAddress(tokens[0].getAddress()); in matchesAccountOrCustomFrom()
|
D | Message.java | 632 Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(addresses); in tokenizeAddresses() local 633 String[] strings = new String[tokens.length]; in tokenizeAddresses() 634 for (int i = 0; i < tokens.length;i++) { in tokenizeAddresses() 635 strings[i] = tokens[i].toString(); in tokenizeAddresses()
|
/packages/apps/UnifiedEmail/src/com/android/emailcommon/internet/ |
D | MimeMessage.java | 493 final String[] tokens = header.split(":", 2); in setExtendedHeaders() local 494 if (tokens.length != 2) { in setExtendedHeaders() 497 mExtendedHeader.setHeader(tokens[0].trim(), tokens[1].trim()); in setExtendedHeaders() 583 final String[] tokens = fieldData.split(":", 2); in field() local 584 ((Part)stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
|
/packages/services/Telephony/src/com/android/phone/common/mail/internet/ |
D | MimeMessage.java | 492 final String[] tokens = header.split(":", 2); in setExtendedHeaders() local 493 if (tokens.length != 2) { in setExtendedHeaders() 496 mExtendedHeader.setHeader(tokens[0].trim(), tokens[1].trim()); in setExtendedHeaders() 582 final String[] tokens = fieldData.split(":", 2); in field() local 583 ((Part)stack.peek()).addHeader(tokens[0], tokens[1].trim()); in field()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | StringUtils.java | 15 public static String joinAndBidiFormat(String delimiter, Iterable<String> tokens) { in joinAndBidiFormat() argument 16 return joinAndBidiFormat(delimiter, tokens, BidiFormatter.getInstance()); in joinAndBidiFormat() 25 String delimiter, Iterable<String> tokens, BidiFormatter bidiFormatter) { in joinAndBidiFormat() argument 28 for (String token : tokens) { in joinAndBidiFormat()
|
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/ |
D | TextUtils.java | 70 public static String join(CharSequence delimiter, Object[] tokens) { in join() argument 73 for (Object token: tokens) { in join() 89 public static String join(CharSequence delimiter, Iterable<?> tokens) { in join() argument 92 for (Object token: tokens) { in join()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ |
D | EmailAddress.java | 82 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(rawAddress); in getEmailAddress() local 83 if (tokens.length > 0) { in getEmailAddress() 84 final String tokenizedName = tokens[0].getName(); in getEmailAddress() 86 address = Html.fromHtml(tokens[0].getAddress()).toString(); in getEmailAddress()
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 1716 String[] tokens = new String[] {"red"}; in testConstructSearchWhere() local 1722 assertEquals(expected, mProvider.constructSearchWhere(tokens)); in testConstructSearchWhere() 1724 tokens = new String[] {}; in testConstructSearchWhere() 1726 assertEquals(expected, mProvider.constructSearchWhere(tokens)); in testConstructSearchWhere() 1728 tokens = new String[] {"red", "green"}; in testConstructSearchWhere() 1739 assertEquals(expected, mProvider.constructSearchWhere(tokens)); in testConstructSearchWhere() 1741 tokens = new String[] {"red blue", "green"}; in testConstructSearchWhere() 1752 assertEquals(expected, mProvider.constructSearchWhere(tokens)); in testConstructSearchWhere() 1757 String[] tokens = new String[] {"red"}; in testConstructSearchArgs() local 1760 assertArrayEquals(expected, mProvider.constructSearchArgs(tokens)); in testConstructSearchArgs() [all …]
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
D | ComposeActivity.java | 1297 Rfc822Token[] tokens; in getMatchingRecipient() local 1300 tokens = Rfc822Tokenizer.tokenize(address); in getMatchingRecipient() 1301 for (final Rfc822Token token : tokens) { in getMatchingRecipient() 2126 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList() 2127 for (final Rfc822Token token : tokens) { in addCcAddressesToList() 2134 for (final Rfc822Token[] tokens : addresses) { in addCcAddressesToList() 2135 for (final Rfc822Token token : tokens) { in addCcAddressesToList() 2149 for (final Rfc822Token[] tokens : list) { in convertToHashSet() 2150 for (final Rfc822Token token : tokens) { in convertToHashSet() 2178 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(address); in addAddressToList() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | WordInputEventForPersonalization.java | 58 final List<String> tokens, final int timestamp, in createInputEventFrom() argument 61 final int N = tokens.size(); in createInputEventFrom() 64 final String tempWord = tokens.get(i); in createInputEventFrom()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 400 String[] tokens = entry.split(","); in updateInteropDatabase() local 401 if (tokens.length != 2) continue; in updateInteropDatabase() 406 feature = Integer.parseInt(tokens[1]); in updateInteropDatabase() 408 Log.e(TAG, "updateInteropDatabase: Invalid feature '" + tokens[1] + "'"); in updateInteropDatabase() 413 int length = (tokens[0].length() + 1) / 3; in updateInteropDatabase() 415 Log.e(TAG, "updateInteropDatabase: Malformed address string '" + tokens[0] + "'"); in updateInteropDatabase() 421 for (int i = 0; i < tokens[0].length(); ) { in updateInteropDatabase() 422 if (tokens[0].charAt(i) == ':') { in updateInteropDatabase() 426 addr[offset++] = (byte) Integer.parseInt(tokens[0].substring(i, i + 2), 16); in updateInteropDatabase()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/ |
D | LevenshteinDistanceTest.java | 60 Token[] tokens = new Token[strings.length]; in makeTokens() local 63 tokens[i] = new Token(str.toCharArray(), 0, str.length()); in makeTokens() 65 return tokens; in makeTokens()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | LevenshteinSuggestionFormatter.java | 104 Token[] tokens = new Token[len]; in tokenize() local 116 tokens[tokenCount++] = new Token(chars, start, end); in tokenize() 121 System.arraycopy(tokens, 0, ret, 0, tokenCount); in tokenize()
|
/packages/apps/Messaging/src/com/android/messaging/ui/contact/ |
D | ContactRecipientAdapter.java | 255 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(inAddresses.get(i).toLowerCase()); 256 addresses.add(tokens.length > 0 ? tokens[0].getAddress() : inAddresses.get(i));
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | LevenshteinFormatterTest.java | 44 Token[] tokens = mFormatter.tokenize(input); in verifyTokenizeResult() local 45 assertEquals(output.length, tokens.length); in verifyTokenizeResult() 47 assertEquals(output[i], tokens[i].toString()); in verifyTokenizeResult()
|
/packages/apps/Email/provider_src/com/android/email/provider/ |
D | EmailConversationCursor.java | 186 final Rfc822Token[] tokens = Rfc822Tokenizer.tokenize(fromString); in generateConversationInfo() local 187 if (tokens.length > 0) { in generateConversationInfo() 188 senderEmail = tokens[0].getAddress(); in generateConversationInfo()
|