Home
last modified time | relevance | path

Searched refs:ch (Results 1 – 25 of 72) sorted by relevance

123

/packages/apps/Dialer/java/com/android/dialer/smartdial/
DLatinSmartDialMap.java51 public boolean isValidDialpadAlphabeticChar(char ch) { in isValidDialpadAlphabeticChar() argument
52 return (ch >= 'a' && ch <= 'z'); in isValidDialpadAlphabeticChar()
56 public boolean isValidDialpadNumericChar(char ch) { in isValidDialpadNumericChar() argument
57 return (ch >= '0' && ch <= '9'); in isValidDialpadNumericChar()
61 public boolean isValidDialpadCharacter(char ch) { in isValidDialpadCharacter() argument
62 return (isValidDialpadAlphabeticChar(ch) || isValidDialpadNumericChar(ch)); in isValidDialpadCharacter()
83 public char normalizeCharacter(char ch) { in normalizeCharacter() argument
84 switch (ch) { in normalizeCharacter()
762 return ch; in normalizeCharacter()
767 public byte getDialpadIndex(char ch) { in getDialpadIndex() argument
[all …]
DSmartDialNameMatcher.java81 char ch = number.charAt(i); in normalizeNumber() local
82 if (map.isValidDialpadNumericChar(ch)) { in normalizeNumber()
83 s.append(ch); in normalizeNumber()
201 char ch = phoneNumber.charAt(i); in matchesNumberWithOffset() local
202 if (mMap.isValidDialpadNumericChar(ch)) { in matchesNumberWithOffset()
203 if (ch != query.charAt(queryAt)) { in matchesNumberWithOffset()
291 char ch = displayName.charAt(nameStart); in matchesCombination() local
293 ch = mMap.normalizeCharacter(ch); in matchesCombination()
294 if (mMap.isValidDialpadCharacter(ch)) { in matchesCombination()
295 if (mMap.isValidDialpadAlphabeticChar(ch)) { in matchesCombination()
[all …]
DSmartDialMap.java33 boolean isValidDialpadCharacter(char ch); in isValidDialpadCharacter() argument
38 boolean isValidDialpadAlphabeticChar(char ch); in isValidDialpadAlphabeticChar() argument
43 boolean isValidDialpadNumericChar(char ch); in isValidDialpadNumericChar() argument
48 byte getDialpadIndex(char ch); in getDialpadIndex() argument
53 char getDialpadNumericCharacter(char ch); in getDialpadNumericCharacter() argument
59 char normalizeCharacter(char ch); in normalizeCharacter() argument
/packages/providers/ContactsProvider/src/com/android/providers/contacts/sqlite/
DSqlChecker.java56 private static boolean isAlpha(char ch) { in isAlpha() argument
57 return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || (ch == '_'); in isAlpha()
60 private static boolean isNum(char ch) { in isNum() argument
61 return ('0' <= ch && ch <= '9'); in isNum()
64 private static boolean isAlNum(char ch) { in isAlNum() argument
65 return isAlpha(ch) || isNum(ch); in isAlNum()
68 private static boolean isAnyOf(char ch, String set) { in isAnyOf() argument
69 return set.indexOf(ch) >= 0; in isAnyOf()
147 final char ch = peek(sql, pos); in findTokens() local
150 if (isAlpha(ch)) { in findTokens()
[all …]
/packages/apps/Contacts/src/com/android/contacts/datepicker/
DICU.java17 char ch = pattern.charAt(i); in getDateFormatOrder() local
18 if (ch == 'd' || ch == 'L' || ch == 'M' || ch == 'y') { in getDateFormatOrder()
19 if (ch == 'd' && !sawDay) { in getDateFormatOrder()
22 } else if ((ch == 'L' || ch == 'M') && !sawMonth) { in getDateFormatOrder()
25 } else if ((ch == 'y') && !sawYear) { in getDateFormatOrder()
29 } else if (ch == 'G') { in getDateFormatOrder()
31 } else if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) { in getDateFormatOrder()
33 + ch + "' in " + pattern); in getDateFormatOrder()
34 } else if (ch == '\'') { in getDateFormatOrder()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/codec/
DEncoderUtil.java72 for (char ch = 33; ch < 127; ch++) { in initChars()
73 if (specials.indexOf(ch) == -1) { in initChars()
74 bs.set(ch); in initChars()
225 char ch = text.charAt(idx); in hasToBeEncoded() local
226 if (ch == '\t' || ch == ' ') { in hasToBeEncoded()
238 if (ch < 32 || ch >= 127) { in hasToBeEncoded()
444 char ch = str.charAt(idx); in isToken() local
445 if (!TOKEN_CHARS.get(ch)) in isToken()
459 char ch = str.charAt(idx); in isAtomPhrase() local
460 if (ATEXT_CHARS.get(ch)) { in isAtomPhrase()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapResponseParser.java197 final int ch = readByte(); in readUntil() local
198 if (ch != end) { in readUntil()
199 mBufferReadUntil.append((char) ch); in readUntil()
225 final int ch = peek(); in parseResponse() local
226 if (ch == '+') { // Continuation request in parseResponse()
240 if (ch == '*') { in parseResponse()
331 final int ch = peek(); in parseBareString() local
334 if (ch == '(' in parseBareString()
335 || ch == ')' in parseBareString()
336 || ch == '{' in parseBareString()
[all …]
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapResponseParser.java227 final int ch = readByte(); in readUntil() local
228 if (ch != end) { in readUntil()
229 mBufferReadUntil.append((char) ch); in readUntil()
259 final int ch = peek(); in parseResponse() local
260 if (ch == '+') { // Continuation request in parseResponse()
274 if (ch == '*') { in parseResponse()
366 final int ch = peek(); in parseBareString() local
369 if (ch == '(' || ch == ')' || ch == '{' || ch == ' ' || in parseBareString()
371 ch == ']' || in parseBareString()
376 ch == '%' || in parseBareString()
[all …]
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/html/parser/
DHtmlParser.java324 char ch = html.charAt(pos); in scanText() local
325 if (ch == '<' && pos + 1 < end) { in scanText()
327 ch = html.charAt(pos + 1); in scanText()
328 if (ch == '/' || Character.isLetter(ch) || ch == '!' || ch == '?') { in scanText()
405 char ch = html.charAt(pos); in scanName() local
408 if ((ch == '>') || (ch == '/') || Character.isWhitespace(ch)) { in scanName()
481 char ch = html.charAt(pos); in scanName() local
484 if ((ch == '>') || (ch == '=') || (ch == '/') || Character.isWhitespace(ch)) { in scanName()
521 char ch = html.charAt(pos); in scanValue() local
522 if (ch == '\'' || ch == '\"') { in scanValue()
[all …]
/packages/apps/Email/src/com/beetstra/jutf7/
DUTF7StyleCharsetEncoder.java148 char ch = in.get(); in encodeLoop() local
149 if (cs.canEncodeDirectly(ch)) { in encodeLoop()
150 unshift(out, ch); in encodeLoop()
151 out.put((byte)ch); in encodeLoop()
152 } else if (!base64mode && ch == shift) { in encodeLoop()
156 encodeBase64(ch, out); in encodeLoop()
180 private void unshift(ByteBuffer out, char ch) { in unshift() argument
185 if (base64.contains(ch) || ch == unshift || strict) in unshift()
203 private void encodeBase64(char ch, ByteBuffer out) { in encodeBase64() argument
210 sextet += (ch >> bitsToOutput); in encodeBase64()
[all …]
DBase64Util.java75 final char ch = this.alphabet[i]; in Base64Util() local
76 if (ch >= 128) in Base64Util()
77 throw new IllegalArgumentException("invalid character in alphabet: " + ch); in Base64Util()
78 inverseAlphabet[ch] = i; in Base64Util()
90 int getSextet(final byte ch) { in getSextet() argument
91 if (ch >= 128) in getSextet()
93 return inverseAlphabet[ch]; in getSextet()
102 boolean contains(final char ch) { in contains() argument
103 if (ch >= 128) in contains()
105 return inverseAlphabet[ch] >= 0; in contains()
/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DStringUtil.java283 char ch = s.charAt(trimCount); in trimStart() local
284 if (Character.isWhitespace(ch) in trimStart()
285 || (extraChars != null && extraChars.indexOf(ch) >= 0)) { in trimStart()
324 char ch = s.charAt(s.length() - trimCount - 1); in trimEnd() local
325 if (Character.isWhitespace(ch) in trimEnd()
326 || (extraChars != null && extraChars.indexOf(ch) >= 0)) { in trimEnd()
1340 char ch = chars[j]; in unescapeHTML() local
1341 boolean isDigit = Character.isDigit(ch); in unescapeHTML()
1348 if (isHexEntity && !isDigit && !HEX_LETTERS.contains(ch)) { in unescapeHTML()
1353 if (!isDigit && !Character.isLetter(ch)) { in unescapeHTML()
[all …]
/packages/inputmethods/LatinIME/dictionaries/
Dcs_wordlist.combined.gz
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java110 float ch = s.height() * scale; in drawEntry() local
115 mTarget.set(cx - ch / 2, cy - ch / 2, cx + ch / 2, cy + ch / 2); in drawEntry()
123 mTarget.set(cx - cw / 2, cy - ch / 2, cx - ch / 2, cy + ch / 2); in drawEntry()
128 mTarget.set(cx + ch / 2, cy - ch / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
143 mTarget.set(cx - cw / 2, cy - ch / 2, cx + cw / 2, cy - cw / 2); in drawEntry()
148 mTarget.set(cx - cw / 2, cy + cw / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
/packages/apps/Messaging/src/com/android/messaging/util/
DEmailAddress.java201 final char ch = user.charAt(i); in isQuotedUserValid() local
202 if (ch == '"' || ch == 127 in isQuotedUserValid()
204 || (ch < 32 && !ANY_WHITESPACE.matches(ch)) in isQuotedUserValid()
206 || (ch >= 128 && !allowI18n)) { in isQuotedUserValid()
208 } else if (ch == '\\') { in isQuotedUserValid()
/packages/apps/Dialer/java/com/android/dialer/common/
DLogUtil.java159 public static char sanitizeDialPadChar(char ch) { in sanitizeDialPadChar() argument
161 return ch; in sanitizeDialPadChar()
163 if (is12Key(ch)) { in sanitizeDialPadChar()
166 return ch; in sanitizeDialPadChar()
192 private static boolean is12Key(char ch) { in is12Key() argument
193 return PhoneNumberUtils.is12Key(ch); in is12Key()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/contenttype/parser/
DTokenMgrError.java57 char ch; in addEscapes() local
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
89 String s = "0000" + Integer.toString(ch, 16); in addEscapes()
92 retval.append(ch); in addEscapes()
DParseException.java164 char ch; in add_escapes() local
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
196 String s = "0000" + Integer.toString(ch, 16); in add_escapes()
199 retval.append(ch); in add_escapes()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/address/parser/
DTokenMgrError.java57 char ch; in addEscapes() local
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
89 String s = "0000" + Integer.toString(ch, 16); in addEscapes()
92 retval.append(ch); in addEscapes()
DParseException.java164 char ch; in add_escapes() local
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
196 String s = "0000" + Integer.toString(ch, 16); in add_escapes()
199 retval.append(ch); in add_escapes()
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/field/datetime/parser/
DTokenMgrError.java57 char ch; in addEscapes() local
88 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in addEscapes()
89 String s = "0000" + Integer.toString(ch, 16); in addEscapes()
92 retval.append(ch); in addEscapes()
DParseException.java164 char ch; in add_escapes() local
195 if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { in add_escapes()
196 String s = "0000" + Integer.toString(ch, 16); in add_escapes()
199 retval.append(ch); in add_escapes()
/packages/apps/Camera2/src/com/android/camera/util/
DCaptureDataSerializer.java193 for (int ch = 0; ch < numChannels; ch++) { in toString()
194 str.append(channelName[ch]); in toString()
200 float gain = lensShading.getGainFactor(ch, c, r); in toString()
213 if (ch < numChannels - 1) { in toString()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
DDbQueryUtils.java127 char ch = value.charAt(i); in escapeLikeValue() local
128 if (ch == '%' || ch == '_' || ch == escapeChar) { in escapeLikeValue()
131 sb.append(ch); in escapeLikeValue()
/packages/apps/UnifiedEmail/src/org/apache/commons/io/
DIOUtils.java1227 int ch = input1.read(); in contentEquals() local
1228 while (-1 != ch) { in contentEquals()
1230 if (ch != ch2) { in contentEquals()
1233 ch = input1.read(); in contentEquals()
1264 int ch = input1.read(); in contentEquals() local
1265 while (-1 != ch) { in contentEquals()
1267 if (ch != ch2) { in contentEquals()
1270 ch = input1.read(); in contentEquals()

123