Home
last modified time | relevance | path

Searched refs:charAt (Results 1 – 25 of 121) sorted by relevance

12345

/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DUriCodec.java47 char ch = uri.charAt(i); in validate()
57 int d1 = hexToInt(uri.charAt(i + 1)); in validate()
58 int d2 = hexToInt(uri.charAt(i + 2)); in validate()
78 char ch = s.charAt(i); in validateSimple()
104 char c = s.charAt(i); in appendEncoded()
158 char c = s.charAt(i); in decode()
164 int d1 = hexToInt(s.charAt(i + 1)); in decode()
165 int d2 = hexToInt(s.charAt(i + 2)); in decode()
172 } while (i < s.length() && s.charAt(i) == '%'); in decode()
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialNameMatcher.java444 char ch = number.charAt(i); in normalizeNumber()
506 char ch = phoneNumber.charAt(i); in matchesNumberWithOffset()
508 if (ch != query.charAt(queryAt)) { in matchesNumberWithOffset()
593 char ch = displayName.charAt(nameStart); in matchesCombination()
601 if (ch != query.charAt(queryStart)) { in matchesCombination()
619 displayName.charAt(nameStart - 1)))) { in matchesCombination()
623 displayName.charAt(nameStart)))) { in matchesCombination()
649 displayName.charAt(j)))) { in matchesCombination()
DSmartDialTrie.java116 char ch = prefix.charAt(i); in getAllWithPrefix()
167 if (stripped.charAt(0) == '1') { in put()
191 if (number.charAt(0) == '+') { in getOffsetWithoutCountryCode()
220 final char ch = number.charAt(i); in getOffsetForNANPNumbers()
267 c = SmartDialNameMatcher.remapAccentedChars(chars.charAt(i)); in parseToIndexes()
312 ch = phoneNumber.charAt(i); in putNumber()
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java107 char c = s.charAt(start); in RecipientsEditor()
395 if (i > 0 && ((c = text.charAt(i - 1)) == ',' || c == ';')) { in findTokenStart()
399 while (i > 0 && (c = text.charAt(i - 1)) != ',' && c != ';') { in findTokenStart()
402 while (i < cursor && text.charAt(i) == ' ') { in findTokenStart()
416 if ((c = text.charAt(i)) == ',' || c == ';') { in findTokenEnd()
430 while (i > 0 && text.charAt(i - 1) == ' ') { in terminateToken()
435 if (i > 0 && ((c = text.charAt(i - 1)) == ',' || c == ';')) { in terminateToken()
461 if ((i == len) || ((c = sp.charAt(i)) == ',') || (c == ';')) { in getNumbers()
477 while ((i < len) && (sp.charAt(i) == ' ')) { in getNumbers()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java498 final char lastChar = nthPrevWord.charAt(length - 1); in getNthPreviousWord()
583 if (!TextUtils.isEmpty(before) && !settingsValues.isWordSeparator(before.charAt(0)) in isCursorTouchingWord()
584 && !settingsValues.isWordConnector(before.charAt(0))) { in isCursorTouchingWord()
587 if (!TextUtils.isEmpty(after) && !settingsValues.isWordSeparator(after.charAt(0)) in isCursorTouchingWord()
588 && !settingsValues.isWordConnector(after.charAt(0))) { in isCursorTouchingWord()
598 && lastOne.charAt(0) == Constants.CODE_SPACE) { in removeTrailingSpace()
617 && !settings.isWordSeparator(textAfterCursor.charAt(0))) return null; in getWordBeforeCursorIfAtEndOfWord()
624 while (!TextUtils.isEmpty(word) && Constants.CODE_SINGLE_QUOTE == word.charAt(0)) { in getWordBeforeCursorIfAtEndOfWord()
637 final char firstChar = word.charAt(0); // we just tested that word is not empty in getWordBeforeCursorIfAtEndOfWord()
678 || (Constants.CODE_SPACE != textBeforeCursor.charAt(1))) { in revertSwapPunctuation()
DCapsModeUtils.java113 final char c = cs.charAt(i - 1); in getCapsMode()
133 prevChar = cs.charAt(j - 1); in getCapsMode()
172 final char c = cs.charAt(j - 1); in getCapsMode()
181 char c = cs.charAt(--j); in getCapsMode()
226 c = cs.charAt(--j); in getCapsMode()
DLatinIME.java1228 && lastTwo.charAt(0) == Constants.CODE_SPACE) { in swapSwapperAndSpace()
1230 final String text = lastTwo.charAt(1) + " "; in swapSwapperAndSpace()
1245 && canBeFollowedByDoubleSpacePeriod(lastThree.charAt(0)) in maybeDoubleSpacePeriod()
1246 && lastThree.charAt(1) == Constants.CODE_SPACE in maybeDoubleSpacePeriod()
1247 && lastThree.charAt(2) == Constants.CODE_SPACE) { in maybeDoubleSpacePeriod()
1742 if (text.length() <= 1 || text.charAt(0) != Constants.CODE_PERIOD in specificTldProcessingOnTextInput()
1743 || !Character.isLetter(text.charAt(1))) { in specificTldProcessingOnTextInput()
1753 && lastOne.charAt(0) == Constants.CODE_PERIOD) { in specificTldProcessingOnTextInput()
2311 final int primaryCode = suggestion.charAt(0); in pickSuggestionManually()
2663 if (!TextUtils.isEmpty(lastChar) && Character.isHighSurrogate(lastChar.charAt(0))) { in onReleaseKey()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DTextUtilities.java351 char c = htmlText.charAt(i); in findTagEnd()
384 char c = text.charAt(i); in makeSnippetFromText()
388 char peek = text.charAt(i + 1); in makeSnippetFromText()
469 if (text.charAt(i) == ';') { in stripHtmlEntity()
484 } else if ((entityLength > 2) && (entity.charAt(1) == '#')) { in stripHtmlEntity()
489 if ((entity.charAt(2) == 'x') && (entityLength > 3)) { in stripHtmlEntity()
593 char chr = text.charAt(i); in highlightTerms()
598 char peek = text.charAt(i + 1); in highlightTerms()
622 chr = text.charAt(i); in highlightTerms()
645 if (chrLowerCase == t.mTermLowerCase.charAt(t.mMatchLength)) { in highlightTerms()
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DCommandRecognizerEngine.java275 if (len == 2 && !(Character.isUpperCase(word.charAt(0)) && in loadOpenEntriesTable()
276 Character.isUpperCase(word.charAt(1)))) continue; in loadOpenEntriesTable()
366 if (index != -1 && (index == 0 || classList.charAt(index - 1) == ' ') && in addClassName()
367 (after == classList.length() || classList.charAt(after) == ' ')) return; in addClassName()
407 char ch = name.charAt(i); in scrubName()
423 !Character.isLetterOrDigit(name.charAt(i + 1))) break; in scrubName()
433 char ch = name.charAt(i); in scrubName()
885 final char fch = formats.charAt(f); in formatNumber()
888 final char nch = number.charAt(n); in formatNumber()
900 if (formats.charAt(f) == '\n') { in formatNumber()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java137 c = string.charAt(offset++); in parse()
165 c = string.charAt(offset++); in parse()
172 c = string.charAt(offset); in parse()
188 c = string.charAt(offset++); in parse()
204 c = string.charAt(offset++); in parse()
220 c = string.charAt(offset); in parse()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorEditable.java62 char text = delta.charAt(0); in internalReplace()
67 while (p >= 0 && Character.isDigit(charAt(p))) { in internalReplace()
70 if (p >= 0 && charAt(p) == '.') { in internalReplace()
75 char prevChar = start > 0 ? charAt(start-1) : '\0'; in internalReplace()
87 prevChar = start > 0 ? charAt(start-1) : '\0'; in internalReplace()
/packages/apps/Email/src/org/apache/james/mime4j/
DMimeStreamParser.java260 while (pos < sb.length() && sb.charAt(pos) != '\r') { in parseHeader()
263 if (pos < sb.length() - 1 && sb.charAt(pos + 1) != '\n') { in parseHeader()
268 if (pos >= sb.length() - 2 || fieldChars.get(sb.charAt(pos + 2))) { in parseHeader()
282 if (index != -1 && fieldChars.get(field.charAt(0))) { in parseHeader()
286 if (!fieldChars.get(fieldName.charAt(i))) { in parseHeader()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java129 if (s.charAt(0) != '/') { in split()
138 char c = s.charAt(j); in split()
158 if (s.charAt(0) != '{' || s.charAt(n-1) != '}') { in splitSequence()
167 char c = s.charAt(j); in splitSequence()
/packages/apps/Email/src/org/apache/commons/io/
DFileSystemUtils.java217 if (path.length() > 2 && path.charAt(1) == ':') { in freeSpaceWindows()
260 char c = line.charAt(j); in parseDir()
270 char c = line.charAt(j); in parseDir()
288 if (buf.charAt(k) == ',' || buf.charAt(k) == '.') { in parseDir()
DFilenameUtils.java408 char ch = basePath.charAt(len - 1); in concat()
500 char ch0 = filename.charAt(0); in getPrefixLength()
520 char ch1 = filename.charAt(1); in getPrefixLength()
524 if (len == 2 || isSeparator(filename.charAt(2)) == false) { in getPrefixLength()
/packages/apps/Exchange/tests/src/com/android/exchange/adapter/
DSerializerTests.java69 (byte)ID.charAt(0), in testSerializer()
70 (byte)ID.charAt(1), in testSerializer()
75 (byte)ID.charAt(0), in testSerializer()
76 (byte)ID.charAt(1), in testSerializer()
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/adapter/
DSerializerTests.java69 (byte)ID.charAt(0), in testSerializer()
70 (byte)ID.charAt(1), in testSerializer()
75 (byte)ID.charAt(0), in testSerializer()
76 (byte)ID.charAt(1), in testSerializer()
/packages/apps/Email/src/org/apache/james/mime4j/codec/
DEncoderUtil.java225 char ch = text.charAt(idx); in hasToBeEncoded()
444 char ch = str.charAt(idx); in isToken()
459 char ch = str.charAt(idx); in isAtomPhrase()
483 char ch = str.charAt(idx); in isDotAtomText()
597 char ch = text.charAt(index); in determineCharset()
/packages/apps/Email/tests/src/com/android/email/
DVendorPolicyLoaderTest.java119 assertEquals("\"", id.charAt(0)); in testGetImapIdValues()
120 assertEquals("\"", id.charAt(id.length()-1)); in testGetImapIdValues()
132 assertTrue(elements[i+1].charAt(0) != ' '); in testGetImapIdValues()
134 assertTrue(elements[i+3].charAt(0) != ' '); in testGetImapIdValues()
/packages/apps/ContactsCommon/src/com/android/contacts/common/format/
DFormatUtils.java156 while (i < textLength && !Character.isLetterOrDigit(text.charAt(i))) { in indexOfWordPrefix()
167 if (Character.toUpperCase(text.charAt(i + j)) != prefix.charAt(j)) { in indexOfWordPrefix()
176 while (i < textLength && Character.isLetterOrDigit(text.charAt(i))) { in indexOfWordPrefix()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java87 final char c = text.charAt(pos); in parseEscape()
91 sb.append(text.charAt(pos)); in parseEscape()
109 final char c = moreKeySpec.charAt(pos); in indexOfLabelEnd()
345 final char c = text.charAt(pos); in resolveTextReference()
376 final char c = text.charAt(pos); in searchTextNameEnd()
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
DPinyinIME.java701 if (digitStr.length() > 2 && digitStr.charAt(0) == '0' in tryInputRawUnicode()
702 && digitStr.charAt(1) == 'x') { in tryInputRawUnicode()
728 resultStr += "0x" + Integer.toHexString(str.charAt(pos)); in tryInputRawUnicode()
995 && keyLabel.charAt(0) == '\'') { in responseSoftKeyEvent()
1696 public char charAt(int index) { in charAt() method in PinyinIME.DecodingInfo
1697 return mSurface.charAt(index); in charAt()
1785 mPyBuf[i] = (byte) charAt(i); in chooseDecodingCandidate()
2049 if (mCursorPos > 0 && mSurface.charAt(mCursorPos - 1) == '\'') { in charBeforeCursorIsSeparator()
/packages/apps/Email/src/com/android/email/mail/transport/
DSmtpSender.java268 while (line.length() >= 4 && line.charAt(3) == '-') { in executeSensitiveCommand()
274 char c = result.charAt(0); in executeSensitiveCommand()
313 if (me.getMessage().length() > 1 && me.getMessage().charAt(1) == '3') { in saslAuthLogin()
328 if (me.getMessage().length() > 1 && me.getMessage().charAt(1) == '3') { in saslAuthPlain()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSettingsUtils.java187 char testChar = testPart.charAt(i); in matchWithWildcards()
188 char providerChar = providerPart.charAt(i); in matchWithWildcards()
309 if (password.charAt(0) == ' ' || password.charAt(length-1) == ' ') { in checkPasswordSpaces()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilter.java52 char c = source.charAt(i); in filter()
60 char c = dest.charAt(i); in filter()
72 char c = source.charAt(i); in filter()

12345