/frameworks/ex/common/java/com/android/common/ |
D | LegacyHttpDateTime.java | 125 return (dateString.charAt(0) - '0') * 10 in getDate() 126 + (dateString.charAt(1) - '0'); in getDate() 128 return (dateString.charAt(0) - '0'); in getDate() 147 int hash = Character.toLowerCase(monthString.charAt(0)) + in getMonth() 148 Character.toLowerCase(monthString.charAt(1)) + in getMonth() 149 Character.toLowerCase(monthString.charAt(2)) - 3 * 'a'; in getMonth() 182 int year = (yearString.charAt(0) - '0') * 10 in getYear() 183 + (yearString.charAt(1) - '0'); in getYear() 191 int year = (yearString.charAt(0) - '0') * 100 in getYear() 192 + (yearString.charAt(1) - '0') * 10 in getYear() [all …]
|
/frameworks/base/core/java/android/text/util/ |
D | Rfc822Tokenizer.java | 54 char c = text.charAt(i); in tokenize() 59 while (i < cursor && text.charAt(i) == ' ') { in tokenize() 82 c = text.charAt(i); in tokenize() 89 name.append(text.charAt(i + 1)); in tokenize() 102 c = text.charAt(i); in tokenize() 117 comment.append(text.charAt(i + 1)); in tokenize() 129 c = text.charAt(i); in tokenize() 182 char c = sb.charAt(i); in crunch() 186 sb.charAt(i - 1) == ' ' || in crunch() 187 sb.charAt(i - 1) == '\0' || in crunch() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | ATResponseParser.java | 49 char c = mLine.charAt(mTokStart); in nextBoolean() 67 char c = mLine.charAt(i); in nextInt() 111 char c = mLine.charAt(mNext++); in nextTok() 120 c = mLine.charAt(mNext++); in nextTok() 123 c = mLine.charAt(mNext++); in nextTok() 129 if (mNext < len && mLine.charAt(mNext++) != ',') { in nextTok() 142 c = mLine.charAt(mNext++); in nextTok() 158 c = mLine.charAt(mNext++); in skipWhiteSpace() 176 char c = mLine.charAt(mNext++); in skipPrefix()
|
/frameworks/base/core/java/android/os/ |
D | PatternMatcher.java | 193 char nextChar = pattern.charAt(0); in matchGlobPattern() 197 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchGlobPattern() 202 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchGlobPattern() 212 nextChar = pattern.charAt(ip); in matchGlobPattern() 217 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchGlobPattern() 220 if (match.charAt(im) == nextChar) { in matchGlobPattern() 231 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchGlobPattern() 236 if (match.charAt(im) != c) { in matchGlobPattern() 242 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchGlobPattern() 245 if (c != '.' && match.charAt(im) != c) return false; in matchGlobPattern() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | CharSequences.java | 34 public char charAt(int index) { in forAsciiBytes() 67 public char charAt(int index) { 106 if (a.charAt(i) != b.charAt(i)) { 128 if ((result = Character.toLowerCase(me.charAt(myPos++)) 129 - Character.toLowerCase(another.charAt(anotherPos++))) != 0) {
|
/frameworks/base/wifi/java/android/net/wifi/ |
D | WifiSsid.java | 97 char c = asciiEncoded.charAt(i); in convertToBytes() 101 switch(asciiEncoded.charAt(i)) { in convertToBytes() 136 val = Character.digit(asciiEncoded.charAt(i), HEX_RADIX); in convertToBytes() 153 val = asciiEncoded.charAt(i) - '0'; in convertToBytes() 155 if (asciiEncoded.charAt(i) >= '0' && asciiEncoded.charAt(i) <= '7') { in convertToBytes() 156 val = val * 8 + asciiEncoded.charAt(i) - '0'; in convertToBytes() 159 if (asciiEncoded.charAt(i) >= '0' && asciiEncoded.charAt(i) <= '7') { in convertToBytes() 160 val = val * 8 + asciiEncoded.charAt(i) - '0'; in convertToBytes()
|
/frameworks/base/telephony/java/android/service/carrier/ |
D | CarrierIdentifier.java | 106 mMcc = new String(new char[] {hex.charAt(1), hex.charAt(0), hex.charAt(3)}); in CarrierIdentifier() 107 if (hex.charAt(2) == 'F') { in CarrierIdentifier() 108 mMnc = new String(new char[] {hex.charAt(5), hex.charAt(4)}); in CarrierIdentifier() 110 mMnc = new String(new char[] {hex.charAt(5), hex.charAt(4), hex.charAt(2)}); in CarrierIdentifier()
|
/frameworks/layoutlib/bridge/src/com/android/internal/util/ |
D | XmlUtils_Delegate.java | 47 if ('-' == nm.charAt(0)) { in convertValueToInt() 52 if ('0' == nm.charAt(index)) { in convertValueToInt() 57 char c = nm.charAt(index + 1); in convertValueToInt() 67 else if ('#' == nm.charAt(index)) { in convertValueToInt()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PhoneNumberUtils.java | 284 char c = phoneNumber.charAt(i); in extractNetworkPortion() 325 char c = phoneNumber.charAt(i); in extractNetworkPortionAlt() 355 char c = phoneNumber.charAt(i); in stripSeparators() 397 char c = phoneNumber.charAt(i); in convertPreDial() 469 char c = phoneNumber.charAt(i); in extractPostDialPortion() 543 ca = a.charAt(ia); in compareLoosely() 551 cb = b.charAt(ib); in compareLoosely() 688 final char chA = a.charAt(backwardIndexA); in compareStrictly() 689 final char chB = b.charAt(backwardIndexB); in compareStrictly() 746 final char chA = a.charAt(backwardIndexA); in compareStrictly() [all …]
|
D | JapanesePhoneNumberFormatter.java | 168 } else if (length < 1 || text.charAt(0) != '0') { in format() 177 if (text.charAt(i) == '-') { in format() 190 char ch = text.charAt(i); in format()
|
/frameworks/base/graphics/java/android/graphics/fonts/ |
D | FontVariationAxis.java | 112 final char c1 = tagString.charAt(0); in makeTag() 113 final char c2 = tagString.charAt(1); in makeTag() 114 final char c3 = tagString.charAt(2); in makeTag() 115 final char c4 = tagString.charAt(3); in makeTag() 147 final char c = settings.charAt(i); in fromFontVariationSettings() 151 if (!(c == '\'' || c == '"') || length < i + 6 || settings.charAt(i + 5) != c) { in fromFontVariationSettings()
|
/frameworks/base/core/java/android/text/ |
D | CharSequenceCharacterIterator.java | 53 return mCharSeq.charAt(mIndex); in last() 58 return (mIndex == mEndIndex) ? DONE : mCharSeq.charAt(mIndex); in current() 67 return mCharSeq.charAt(mIndex); in next() 76 return mCharSeq.charAt(mIndex); in previous()
|
D | BidiFormatter.java | 844 lastChar = text.charAt(charIndex); in dirTypeForward() 874 lastChar = text.charAt(charIndex - 1); in dirTypeBackward() 902 lastChar = text.charAt(charIndex++); in skipTagForward() 910 while (charIndex < length && (lastChar = text.charAt(charIndex++)) != quote) {} in skipTagForward() 931 lastChar = text.charAt(--charIndex); in skipTagBackward() 942 while (charIndex > 0 && (lastChar = text.charAt(--charIndex)) != quote) {} in skipTagBackward() 957 while (charIndex < length && (lastChar = text.charAt(charIndex++)) != ';') {} in skipEntityForward() 974 lastChar = text.charAt(--charIndex); in skipEntityBackward()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneFilterTypeAdapter.java | 194 if (prefixString.charAt(0) == '+' || prefixString.charAt(0) == '-') { in performFiltering() 206 && prefixString.charAt(startParsePosition) == '+'; in performFiltering() 220 || (lowerCaseCountry.charAt(0) == prefixString.charAt(0) && in performFiltering() 279 if (!Character.isLetter(string.charAt(i))) { in isStartingInitialsFor() 285 if (prefixString.charAt(initialIdx++) != string.charAt(i)) { in isStartingInitialsFor() 353 char ch = str.charAt(idx++); in parseNum() 364 ch = str.charAt(idx++); in parseNum() 378 ch = str.charAt(idx++); in parseNum()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | GsmAlphabet.java | 233 return sLanguageTables[0].charAt(gsmChar); in gsmToChar() 257 char c = sLanguageShiftTables[0].charAt(gsmChar); in gsmExtendedToChar() 259 return sLanguageTables[0].charAt(gsmChar); in gsmExtendedToChar() 416 char c = data.charAt(i); in stringToGsm7BitPacked() 542 char c = shiftTableToChar.charAt(gsmVal); in gsm7BitPackedToString() 544 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString() 553 ret.append(languageTableToChar.charAt(gsmVal)); in gsm7BitPackedToString() 634 c < shiftTableToChar.length() ? shiftTableToChar.charAt(c) : ' '; in gsm8BitUnpackedToString() 638 ret.append(languageTableToChar.charAt(c)); in gsm8BitUnpackedToString() 648 ret.append(languageTableToChar.charAt(c)); in gsm8BitUnpackedToString() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | NumberKeyListener.java | 62 if (!ok(accept, source.charAt(i))) { in filter() 85 if (!ok(accept, source.charAt(j))) { in filter() 138 content.charAt(selStart - 1) == '0') { in onKeyDown() 160 collection.add(Character.valueOf(digits[i].charAt(0))); in addDigits() 180 final char ch = pattern.charAt(i); in addFormatCharsFromSkeleton() 187 if (i == 0 || pattern.charAt(i - 1) != SINGLE_QUOTE) { in addFormatCharsFromSkeleton() 232 final char ch = amPm[i].charAt(j); in addAmPmChars()
|
D | QwertyKeyListener.java | 121 char c = content.charAt(selStart - 1); in onKeyDown() 148 Character.digit(content.charAt(start - 1), 16) >= 0) { in onKeyDown() 182 char accent = content.charAt(selStart); in onKeyDown() 259 char c = content.charAt(x - 1); in onKeyDown() 287 if (content.charAt(selEnd - 1) == ' ' && in onKeyDown() 288 content.charAt(selEnd - 2) == ' ') { in onKeyDown() 289 char c = content.charAt(selEnd - 3); in onKeyDown() 294 c = content.charAt(j - 1); in onKeyDown() 321 if (content.charAt(selStart - 1) != '\n') in onKeyDown() 385 if (Character.isUpperCase(src.charAt(j))) in getReplacement() [all …]
|
D | DigitsKeyListener.java | 141 final char c = sign.charAt(i); in stripBidiControls() 180 final char minus = minusString.charAt(0); in DigitsKeyListener() 181 final char plus = plusString.charAt(0); in DigitsKeyListener() 200 final Character separatorChar = Character.valueOf(separatorString.charAt(0)); in DigitsKeyListener() 362 char c = dest.charAt(i); in filter() 371 char c = dest.charAt(i); in filter() 390 char c = source.charAt(i); in filter()
|
/frameworks/opt/calendar/src/com/android/calendarcommon2/ |
D | Duration.java | 64 c = str.charAt(0); in parse() 77 c = str.charAt(index); in parse() 87 c = str.charAt(index); in parse() 94 c = str.charAt(index); in parse()
|
/frameworks/base/core/java/com/google/android/util/ |
D | AbstractMessageParser.java | 141 Character.isWhitespace(text.charAt(3))) { in parse() 272 char ch = text.charAt(nextChar++); in parseText() 356 while ((index < text.length()) && isDomainChar(text.charAt(index))) { in parseURL() 365 } else if (text.charAt(index) == ':') { in parseURL() 371 } else if (text.charAt(index) == '.') { in parseURL() 374 char ch = text.charAt(index); in parseURL() 391 if ((index + 1 < text.length()) && (text.charAt(index) == ':')) { in parseURL() 392 char ch = text.charAt(index + 1); in parseURL() 396 Character.isDigit(text.charAt(index))) { in parseURL() 411 char ch = text.charAt(index); in parseURL() [all …]
|
/frameworks/base/test-base/src/junit/framework/ |
D | ComparisonCompactor.java | 52 if (fExpected.charAt(fPrefix) != fActual.charAt(fPrefix)) in findCommonPrefix() 61 if (fExpected.charAt(expectedSuffix) != fActual.charAt(actualSuffix)) in findCommonSuffix()
|
/frameworks/base/core/java/android/widget/ |
D | MultiAutoCompleteTextView.java | 236 while (i > 0 && text.charAt(i - 1) != ',') { in findTokenStart() 239 while (i < cursor && text.charAt(i) == ' ') { in findTokenStart() 251 if (text.charAt(i) == ',') { in findTokenEnd() 264 while (i > 0 && text.charAt(i - 1) == ' ') { in terminateToken() 268 if (i > 0 && text.charAt(i - 1) == ',') { in terminateToken()
|
/frameworks/base/telephony/java/com/android/internal/telephony/uicc/ |
D | IccUtils.java | 122 bytes[j] = (byte) (charToByte(bcd.charAt(i + 1)) << 4 | charToByte(bcd.charAt(i))); in bcdToBytes() 156 char digit6 = (plmn.length() > 5) ? plmn.charAt(5) : 'F'; in stringToBcdPlmn() 157 data[offset] = (byte) (charToByte(plmn.charAt(1)) << 4 | charToByte(plmn.charAt(0))); in stringToBcdPlmn() 158 data[offset + 1] = (byte) (charToByte(digit6) << 4 | charToByte(plmn.charAt(2))); in stringToBcdPlmn() 159 data[offset + 2] = (byte) (charToByte(plmn.charAt(4)) << 4 | charToByte(plmn.charAt(3))); in stringToBcdPlmn() 318 while (ucslen > 0 && ret.charAt(ucslen - 1) == '\uFFFF') in adnStringFieldToString() 420 ret[i/2] = (byte) ((hexCharToInt(s.charAt(i)) << 4) in hexStringToBytes() 421 | hexCharToInt(s.charAt(i+1))); in hexStringToBytes() 659 if (!Character.isDigit(iccId.charAt(position))) break; in getDecimalSubstring()
|
/frameworks/base/core/java/android/view/ |
D | AccessibilityIterators.java | 281 while (start < textLength && mText.charAt(start) == '\n' in following() 308 while(end > 0 && mText.charAt(end - 1) == '\n' && !isEndBoundary(end)) { in preceding() 322 return (mText.charAt(index) != '\n' in isStartBoundary() 323 && (index == 0 || mText.charAt(index - 1) == '\n')); in isStartBoundary() 327 return (index > 0 && mText.charAt(index - 1) != '\n' in isEndBoundary() 328 && (index == mText.length() || mText.charAt(index) == '\n')); in isEndBoundary()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardParserImpl_V30.java | 96 } else if (line.charAt(0) == ' ' || line.charAt(0) == '\t') { in getNonEmptyLine() 214 final char ch = paramValue.charAt(i); in splitAndPutParam() 331 char ch = text.charAt(i); in unescapeText() 333 final char next_ch = text.charAt(++i); in unescapeText()
|