Home
last modified time | relevance | path

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

12

/packages/apps/Email/src/com/beetstra/jutf7/
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()
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 …]
DModifiedUTF7Charset.java44 boolean canEncodeDirectly(char ch) { in canEncodeDirectly() argument
45 if (ch == shift()) in canEncodeDirectly()
47 return ch >= 0x20 && ch <= 0x7E; in canEncodeDirectly()
DUTF7Charset.java56 boolean canEncodeDirectly(char ch) { in canEncodeDirectly() argument
57 return directlyEncoded.indexOf(ch) >= 0; in canEncodeDirectly()
/packages/inputmethods/PinyinIME/jni/share/
Dspellingtrie.cpp121 char ch = kHalfId2Sc_[*splid]; in if_valid_id_update() local
122 if (ch > 'Z') { in if_valid_id_update()
125 if (szm_is_enabled(ch)) { in if_valid_id_update()
127 } else if (is_yunmu_char(ch)) { in if_valid_id_update()
170 char ch = kHalfId2Sc_[splid]; in is_half_id_yunmu() local
172 if (ch >= 'a') { in is_half_id_yunmu()
176 return char_flags_[ch - 'A'] & kHalfIdYunmuMask; in is_half_id_yunmu()
179 bool SpellingTrie::is_shengmu_char(char ch) const { in is_shengmu_char()
180 return char_flags_[ch - 'A'] & kHalfIdShengmuMask; in is_shengmu_char()
183 bool SpellingTrie::is_yunmu_char(char ch) const { in is_yunmu_char()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DUriCodec.java47 char ch = uri.charAt(i); in validate() local
48 if ((ch >= 'a' && ch <= 'z') in validate()
49 || (ch >= 'A' && ch <= 'Z') in validate()
50 || (ch >= '0' && ch <= '9') in validate()
51 || isRetained(ch)) { in validate()
53 } else if (ch == '%') { in validate()
78 char ch = s.charAt(i); in validateSimple() local
79 if (!((ch >= 'a' && ch <= 'z') in validateSimple()
80 || (ch >= 'A' && ch <= 'Z') in validateSimple()
81 || (ch >= '0' && ch <= '9') in validateSimple()
[all …]
DSimpleIcsWriter.java142 char ch = s.charAt(i); in escapeTextValue() local
143 if (ch == '\n') { in escapeTextValue()
145 } else if (ch == '\r') { in escapeTextValue()
147 } else if (ch == ',' || ch == ';' || ch == '\\') { in escapeTextValue()
149 sb.append(ch); in escapeTextValue()
151 sb.append(ch); in escapeTextValue()
/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/inputmethods/PinyinIME/jni/include/
Dspellingtrie.h135 bool is_shengmu_char(char ch) const;
138 bool is_yunmu_char(char ch) const;
157 inline static bool is_valid_spl_char(char ch) { in is_valid_spl_char() argument
158 return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z'); in is_valid_spl_char()
193 bool is_szm_char(char ch) const;
197 bool szm_is_enabled(char ch) const;
208 bool is_szm_enabled(char ch) const;
/packages/apps/Email/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/Gallery2/src/com/android/gallery3d/ui/
DPhotoFallbackEffect.java108 float ch = s.height() * scale; in drawEntry() local
113 mTarget.set(cx - ch / 2, cy - ch / 2, cx + ch / 2, cy + ch / 2); in drawEntry()
121 mTarget.set(cx - cw / 2, cy - ch / 2, cx - ch / 2, cy + ch / 2); in drawEntry()
126 mTarget.set(cx + ch / 2, cy - ch / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
141 mTarget.set(cx - cw / 2, cy - ch / 2, cx + cw / 2, cy - cw / 2); in drawEntry()
146 mTarget.set(cx - cw / 2, cy + cw / 2, cx + cw / 2, cy + ch / 2); in drawEntry()
/packages/apps/Email/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/Email/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/Email/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/Email/src/org/apache/commons/io/input/
DTeeInputStream.java106 int ch = super.read(); in read() local
107 if (ch != -1) { in read()
108 branch.write(ch); in read()
110 return ch; in read()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DHelpers.java667 char ch; in replaceInvalidVfatCharacters() local
670 ch = filename.charAt(i); in replaceInvalidVfatCharacters()
671 if ((START_CTRLCODE <= ch && in replaceInvalidVfatCharacters()
672 ch <= END_CTRLCODE) || in replaceInvalidVfatCharacters()
673 ch == QUOTEDBL || in replaceInvalidVfatCharacters()
674 ch == ASTERISK || in replaceInvalidVfatCharacters()
675 ch == SLASH || in replaceInvalidVfatCharacters()
676 ch == COLON || in replaceInvalidVfatCharacters()
677 ch == LESS || in replaceInvalidVfatCharacters()
678 ch == GREATER || in replaceInvalidVfatCharacters()
[all …]
/packages/inputmethods/LatinIME/tools/maketext/src/com/android/inputmethod/latin/maketext/
DStringResourceMap.java93 public void comment(char[] ch, int start, int length) { in comment() argument
94 mComment.append(ch, start, length); in comment()
95 if (ch[start + length - 1] != '\n') { in comment()
111 public void characters(char[] ch, int start, int length) { in characters() argument
112 mValue.append(ch, start, length); in characters()
/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/Browser/src/com/android/browser/
DUrlUtils.java142 char ch = inUrl.charAt(index); in fixUrl() local
143 if (!Character.isLetter(ch)) { in fixUrl()
146 allLower &= Character.isLowerCase(ch); in fixUrl()
/packages/apps/Email/src/org/apache/commons/io/output/
DDemuxOutputStream.java86 public void write( int ch ) in write() argument
92 output.write( ch ); in write()
/packages/apps/Email/src/org/apache/commons/io/
DIOUtils.java1224 int ch = input1.read(); in contentEquals() local
1225 while (-1 != ch) { in contentEquals()
1227 if (ch != ch2) { in contentEquals()
1230 ch = input1.read(); in contentEquals()
1261 int ch = input1.read(); in contentEquals() local
1262 while (-1 != ch) { in contentEquals()
1264 if (ch != ch2) { in contentEquals()
1267 ch = input1.read(); in contentEquals()
/packages/apps/Mms/src/com/android/mms/util/
DImageCacheService.java149 for (char ch : in.toCharArray()) { in getBytes()
150 result[output++] = (byte) (ch & 0xFF); in getBytes()
151 result[output++] = (byte) (ch >> 8); in getBytes()

12