Home
last modified time | relevance | path

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

1234567

/packages/apps/Dialer/java/com/android/dialer/smartdial/util/
DSmartDialNameMatcher.java71 char ch = number.charAt(i); in normalizeNumber()
175 char ch = phoneNumber.charAt(i); in matchesNumberWithOffset()
177 if (ch != query.charAt(queryAt)) { in matchesNumberWithOffset()
266 char ch = displayName.charAt(nameStart); in matchesCombination()
273 if (ch != query.charAt(queryStart)) { in matchesCombination()
294 context, displayName.charAt(nameStart - 1)))) { in matchesCombination()
300 context, displayName.charAt(nameStart)))) { in matchesCombination()
330 CompositeSmartDialMap.normalizeCharacter(context, displayName.charAt(j)))) { in matchesCombination()
/packages/apps/Bluetooth/src/com/android/bluetooth/util/
DGsmAlphabet.java191 char c = shiftTableToChar.charAt(gsmVal); in gsm7BitPackedToString()
193 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString()
202 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString()
249 char c = s.charAt(i); in stringToGsm8BitUnpackedField()
294 char c = s.charAt(i); in countGsmSeptetsUsingTables()
696 char c = table.charAt(j);
714 char c = shiftTable.charAt(j);
/packages/apps/Dialer/java/com/android/incallui/rtt/protocol/
DRttChatMessage.java52 char c = text.charAt(i); in append()
53 if (c == '\b' && content.length() > 0 && content.charAt(content.length() - 1) != '\b') { in append()
81 && oldMessage.charAt(indexChangeStart) == newMesssage.charAt(indexChangeStart)) { in computeChangedString()
88 modify.append(newMesssage.charAt(i)); in computeChangedString()
137 while (content.length() > 0 && content.charAt(0) == '\b') { in updateRemoteRttChatMessage()
143 while (content.length() > 0 && content.charAt(0) == '\b') { in updateRemoteRttChatMessage()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactLookupKey.java135 c = string.charAt(offset++); in parse()
166 c = string.charAt(offset++); in parse()
173 c = string.charAt(offset); in parse()
189 c = string.charAt(offset++); in parse()
205 c = string.charAt(offset++); in parse()
221 c = string.charAt(offset); in parse()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCapsModeUtils.java135 final char c = cs.charAt(i - 1); in getCapsMode()
154 prevChar = cs.charAt(j - 1); in getCapsMode()
167 prevChar = cs.charAt(j); in getCapsMode()
206 final char c = cs.charAt(j - 1); in getCapsMode()
215 char c = cs.charAt(--j); in getCapsMode()
279 c = cs.charAt(--j); in getCapsMode()
/packages/apps/Dialer/java/com/android/dialer/enrichedcall/
DFuzzyPhoneNumberMatcher.java47 if (!Character.isDigit(lhs.charAt(lhsIndex))) { in lastSevenDigitsCharacterByCharacterMatches()
51 if (!Character.isDigit(rhs.charAt(rhsIndex))) { in lastSevenDigitsCharacterByCharacterMatches()
55 if (lhs.charAt(lhsIndex) != rhs.charAt(rhsIndex)) { in lastSevenDigitsCharacterByCharacterMatches()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmAlphabet.java599 char c = table.charAt(j);
617 char c = shiftTable.charAt(j);
705 char c = shiftTableToChar.charAt(gsmVal); in gsm7BitPackedToString()
707 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString()
716 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString()
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/
DQueryBoldingUtil.java83 if (!Character.isLetter(name.charAt(i))) { in getNameWithQueryBolded()
102 if ((nameIndex == 0 || name.charAt(nameIndex - 1) == ' ') in getNameWithInitialsBolded()
103 && QueryFilteringUtil.getDigit(name.charAt(nameIndex), context) in getNameWithInitialsBolded()
104 == query.charAt(initialsBolded)) { in getNameWithInitialsBolded()
144 if (!Character.isDigit(number.charAt(i))) { in getNumberWithQueryBolded()
DQueryFilteringUtil.java86 if (getDigit(names[i].charAt(0), context) == query.charAt(queryIndex)) { in nameMatchesT9Query()
116 char cur = t9Name.charAt(i); in getIndexOfT9Substring()
123 char prev = t9Name.charAt(i - 1); in getIndexOfT9Substring()
188 char c = s.charAt(i); in digitsOnly()
/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/Contacts/src/com/android/contacts/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/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DUtf8ByteLengthFilter.java54 char c = source.charAt(i); in filter()
62 char c = dest.charAt(i); in filter()
74 char c = source.charAt(i); in filter()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DUtf8ByteLengthFilter.java55 char c = source.charAt(i); in filter()
63 char c = dest.charAt(i); in filter()
75 char c = source.charAt(i); in filter()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilter.java55 char c = source.charAt(i); in filter()
63 char c = dest.charAt(i); in filter()
75 char c = source.charAt(i); in filter()
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DStringUtils.java101 if (a.charAt(i) != b.charAt(i)) { in equals()
582 bytes[i / 2] = (byte) ((Character.digit(hexString.charAt(i), 16) << 4) in hexStringToByteArray()
583 + Character.digit(hexString.charAt(i + 1), 16)); in hexStringToByteArray()
622 while (i >= 0 && charSequence.charAt(i) == Constants.CODE_SINGLE_QUOTE) { in getTrailingSingleQuotesCount()
690 final char c = text.charAt(i); in hasLineBreakCharacter()
/packages/apps/Dialer/java/com/android/contacts/common/util/
DSearchUtil.java42 if (contents.charAt(start) == '\n') { in findMatchingLine()
49 if (contents.charAt(end) == '\n') { in findMatchingLine()
173 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java149 if (host.charAt(0) == '.') { in isValidInternal()
156 if (host.charAt(host.length() - 1) == '.' && secondDot == -1) { in isValidInternal()
201 final char ch = user.charAt(i); in isQuotedUserValid()
/packages/apps/Contacts/src/com/android/contacts/util/
DSearchUtil.java59 if (contents.charAt(start) == '\n') { in findMatchingLine()
66 if (contents.charAt(end) == '\n') { in findMatchingLine()
190 if (Character.isLowSurrogate(query.charAt(end))) { in cleanStartAndEndOfSearchQuery()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DDigestMd5Utils.java215 .append(HEX_CHARS.charAt(unsignedByte / 16)) in toHex()
216 .append(HEX_CHARS.charAt(unsignedByte % 16)); in toHex()
265 throw new IllegalStateException("unexpected character " + message.charAt(position)); in expect()
276 return message.charAt(position); in peek()
/packages/apps/Car/libs/car-messenger-common/src/com/android/car/messenger/common/
DUtils.java297 if (!TextUtils.isEmpty(name) && Character.isLetter(name.charAt(0))) { in getInitials()
298 initials.append(Character.toUpperCase(name.charAt(0))); in getInitials()
302 && Character.isLetter(nameAlt.charAt(0))) { in getInitials()
303 initials.append(Character.toUpperCase(nameAlt.charAt(0))); in getInitials()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneNumberUtilsCompat.java59 char c = phoneNumber.charAt(i); in normalizeNumberInternal()
178 sb.append(PhoneNumberUtils.isISODigit(number.charAt(i)) in splitAtNonNumerics()
179 ? number.charAt(i) in splitAtNonNumerics()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeySpecParser.java86 final char c = text.charAt(pos); in parseEscape()
90 sb.append(text.charAt(pos)); in parseEscape()
112 final char c = keySpec.charAt(pos); in indexOfLabelEnd()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpClientTest.java648 assertTrue(InitialConfiguration.all(list2, (x) -> x.charAt(0) == 'f')); in testAll()
649 assertFalse(InitialConfiguration.all(list4, (x) -> x.charAt(0) == 'f')); in testAll()
661 assertTrue(InitialConfiguration.any(list2, (x) -> x.charAt(0) == 'f')); in testAny()
662 assertFalse(InitialConfiguration.any(list3, (x) -> x.charAt(0) == 'f')); in testAny()
663 assertTrue(InitialConfiguration.any(list4, (x) -> x.charAt(0) == 'f')); in testAny()
675 assertEquals(list2, IpClient.findAll(list3, (x) -> x.charAt(0) == 'f')); in testFindAll()
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DICU.java17 char ch = pattern.charAt(i); in getDateFormatOrder()
35 if (i < pattern.length() - 1 && pattern.charAt(i + 1) == '\'') { in getDateFormatOrder()
/packages/inputmethods/LatinIME/tools/dicttool/compat/android/text/
DTextUtils.java47 if (a.charAt(i) != b.charAt(i)) return false; in equals()

1234567