Home
last modified time | relevance | path

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

123

/packages/apps/Dialer/src/com/android/dialer/dialpad/
DLatinSmartDialMap.java17 public boolean isValidDialpadAlphabeticChar(char ch) { in isValidDialpadAlphabeticChar() argument
18 return (ch >= 'a' && ch <= 'z'); in isValidDialpadAlphabeticChar()
22 public boolean isValidDialpadNumericChar(char ch) { in isValidDialpadNumericChar() argument
23 return (ch >= '0' && ch <= '9'); in isValidDialpadNumericChar()
27 public boolean isValidDialpadCharacter(char ch) { in isValidDialpadCharacter() argument
28 return (isValidDialpadAlphabeticChar(ch) || isValidDialpadNumericChar(ch)); in isValidDialpadCharacter()
49 public char normalizeCharacter(char ch) { in normalizeCharacter() argument
50 switch (ch) { in normalizeCharacter()
390 return ch; in normalizeCharacter()
395 public byte getDialpadIndex(char ch) { in getDialpadIndex() argument
[all …]
DSmartDialNameMatcher.java108 char ch = number.charAt(i); in normalizeNumber() local
109 if (map.isValidDialpadNumericChar(ch)) { in normalizeNumber()
110 s.append(ch); in normalizeNumber()
202 char ch = phoneNumber.charAt(i); in matchesNumberWithOffset() local
203 if (mMap.isValidDialpadNumericChar(ch)) { in matchesNumberWithOffset()
204 if (ch != query.charAt(queryAt)) { in matchesNumberWithOffset()
292 char ch = displayName.charAt(nameStart); in matchesCombination() local
294 ch = mMap.normalizeCharacter(ch); in matchesCombination()
295 if (mMap.isValidDialpadCharacter(ch)) { in matchesCombination()
296 if (mMap.isValidDialpadAlphabeticChar(ch)) { in matchesCombination()
[all …]
DSmartDialMap.java16 public boolean isValidDialpadCharacter(char ch); in isValidDialpadCharacter() argument
21 public boolean isValidDialpadAlphabeticChar(char ch); in isValidDialpadAlphabeticChar() argument
26 public boolean isValidDialpadNumericChar(char ch); in isValidDialpadNumericChar() argument
31 public byte getDialpadIndex(char ch); in getDialpadIndex() argument
36 public char getDialpadNumericCharacter(char ch); in getDialpadNumericCharacter() argument
42 public char normalizeCharacter(char ch); in normalizeCharacter() argument
/packages/inputmethods/LatinIME/dictionaries/
Dcs_wordlist.combined.gz
/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/UnifiedEmail/src/com/android/mail/lib/base/
DStringUtil.java282 char ch = s.charAt(trimCount); in trimStart() local
283 if (Character.isWhitespace(ch) in trimStart()
284 || (extraChars != null && extraChars.indexOf(ch) >= 0)) { in trimStart()
323 char ch = s.charAt(s.length() - trimCount - 1); in trimEnd() local
324 if (Character.isWhitespace(ch) in trimEnd()
325 || (extraChars != null && extraChars.indexOf(ch) >= 0)) { in trimEnd()
1339 char ch = chars[j]; in unescapeHTML() local
1340 boolean isDigit = Character.isDigit(ch); in unescapeHTML()
1347 if (isHexEntity && !isDigit && !HEX_LETTERS.contains(ch)) { in unescapeHTML()
1352 if (!isDigit && !Character.isLetter(ch)) { in unescapeHTML()
[all …]
/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/apps/UnifiedEmail/src/com/android/mail/lib/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/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/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/Exchange/src/com/android/exchange/utility/
DUriCodec.java64 char ch = uri.charAt(i); in validate() local
65 if ((ch >= 'a' && ch <= 'z') in validate()
66 || (ch >= 'A' && ch <= 'Z') in validate()
67 || (ch >= '0' && ch <= '9') in validate()
68 || isRetained(ch)) { in validate()
70 } else if (ch == '%') { in validate()
95 char ch = s.charAt(i); in validateSimple() local
96 if (!((ch >= 'a' && ch <= 'z') in validateSimple()
97 || (ch >= 'A' && ch <= 'Z') in validateSimple()
98 || (ch >= '0' && ch <= '9') in validateSimple()
[all …]
DSimpleIcsWriter.java141 char ch = s.charAt(i); in escapeTextValue() local
142 if (ch == '\n') { in escapeTextValue()
144 } else if (ch == '\r') { in escapeTextValue()
146 } else if (ch == ',' || ch == ';' || ch == '\\') { in escapeTextValue()
148 sb.append(ch); in escapeTextValue()
150 sb.append(ch); in escapeTextValue()
/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/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/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java690 char ch; in replaceInvalidVfatCharacters() local
693 ch = filename.charAt(i); in replaceInvalidVfatCharacters()
694 if ((START_CTRLCODE <= ch && in replaceInvalidVfatCharacters()
695 ch <= END_CTRLCODE) || in replaceInvalidVfatCharacters()
696 ch == QUOTEDBL || in replaceInvalidVfatCharacters()
697 ch == ASTERISK || in replaceInvalidVfatCharacters()
698 ch == SLASH || in replaceInvalidVfatCharacters()
699 ch == COLON || in replaceInvalidVfatCharacters()
700 ch == LESS || in replaceInvalidVfatCharacters()
701 ch == GREATER || in replaceInvalidVfatCharacters()
[all …]
/packages/apps/VoiceDialer/src/com/android/voicedialer/
DCommandRecognizerEngine.java407 char ch = name.charAt(i); in scrubName() local
408 if (ch < ' ' || '~' < ch) { in scrubName()
410 nm[i] = mLatin1Base <= ch && ch < mLatin1Base + mLatin1Letters.length ? in scrubName()
411 mLatin1Letters[ch - mLatin1Base] : ' '; in scrubName()
433 char ch = name.charAt(i); in scrubName() local
434 if (('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || ('0' <= ch && ch <= '9')) { in scrubName()
/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()
/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/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/inputmethods/LatinIME/tools/make-keyboard-text/src/com/android/inputmethod/keyboard/tools/
DStringResourceMap.java120 public void comment(char[] ch, int start, int length) { in comment() argument
121 mComment.append(ch, start, length); in comment()
122 if (ch[start + length - 1] != '\n') { in comment()
138 public void characters(char[] ch, int start, int length) { in characters() argument
139 mValue.append(ch, start, length); in characters()

123