Home
last modified time | relevance | path

Searched refs:charAt (Results 1 – 25 of 113) 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/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/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/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/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/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()
/packages/apps/Mms/src/com/android/mms/ui/
DRecipientsEditor.java109 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/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/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/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
DCandidateFilter.java48 if (str.charAt(i) < 0x20 || 0x7E < str.charAt(i)) { in isAllowed()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DPath.java123 if (s.charAt(0) != '/') { in split()
132 char c = s.charAt(j); in split()
152 if (s.charAt(0) != '{' || s.charAt(n-1) != '}') { in splitSequence()
161 char c = s.charAt(j); in splitSequence()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DEditingUtils.java100 while (start > 0 && !isWhitespace(before.charAt(start - 1), sep)) start--; in getWordRangeAtCursor()
104 while (++end < after.length() && !isWhitespace(after.charAt(end), sep)) { in getWordRangeAtCursor()
150 char lastChar = w[w.length - 2].charAt(w[w.length - 2].length() - 1); in getPreviousWord()
177 char lastChar = w[w.length - 1].charAt(w[w.length - 1].length() - 1); in getThisWord()
DStringUtils.java92 if (!equalsIgnoreCase(a.charAt(i), b.charAt(i))) in equalsIgnoreCase()
119 if (!equalsIgnoreCase(a.charAt(i), b[offset + i])) in equalsIgnoreCase()
180 return s.toUpperCase(locale).charAt(0) + s.substring(1); in toTitleCase()
/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/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()
/packages/apps/Contacts/src/com/android/contacts/format/
DFormatUtils.java158 while (i < textLength && !Character.isLetterOrDigit(text.charAt(i))) { in indexOfWordPrefix()
169 if (Character.toUpperCase(text.charAt(i + j)) != prefix[j]) { in indexOfWordPrefix()
178 while (i < textLength && Character.isLetterOrDigit(text.charAt(i))) { in indexOfWordPrefix()
/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/apps/Email/src/org/apache/james/mime4j/field/datetime/parser/
DTokenMgrError.java59 switch (str.charAt(i)) in addEscapes()
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DHex.java88 int c1 = hexString.charAt(j++); in decodeHex()
100 int c2 = hexString.charAt(j++); in decodeHex()
/packages/apps/Email/src/org/apache/james/mime4j/field/contenttype/parser/
DTokenMgrError.java59 switch (str.charAt(i)) in addEscapes()
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
/packages/apps/Email/src/org/apache/james/mime4j/field/address/parser/
DTokenMgrError.java59 switch (str.charAt(i)) in addEscapes()
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
/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/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/Contacts/src/com/android/contacts/
DContactsUtils.java144 !PhoneNumberUtils.isNonSeparator(number1.charAt(index1))) { in shouldCollapsePhoneNumbers()
148 !PhoneNumberUtils.isNonSeparator(number2.charAt(index2))) { in shouldCollapsePhoneNumbers()
160 if (number1.charAt(index1) != number2.charAt(index2)) return false; in shouldCollapsePhoneNumbers()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java105 final char c = text.charAt(pos); in parseEscape()
109 sb.append(text.charAt(pos)); in parseEscape()
127 final char c = moreKeySpec.charAt(pos); in indexOfLabelEnd()
361 final char c = text.charAt(pos); in resolveTextReference()
392 final char c = text.charAt(pos); in searchTextNameEnd()
415 final char c = text.charAt(pos); in parseCsvString()

12345