Home
last modified time | relevance | path

Searched refs:charset (Results 1 – 25 of 34) sorted by relevance

12

/packages/apps/Email/src/com/beetstra/jutf7/
DCharsetProvider.java27 import java.nio.charset.Charset;
40 public class CharsetProvider extends java.nio.charset.spi.CharsetProvider {
72 Charset charset = iter.next(); in charsetForName() local
73 if (charset.name().equals(charsetName)) in charsetForName()
74 return charset; in charsetForName()
77 Charset charset = iter.next(); in charsetForName() local
78 if (charset.aliases().contains(charsetName)) in charsetForName()
79 return charset; in charsetForName()
DUTF7StyleCharset.java27 import java.nio.charset.Charset;
28 import java.nio.charset.CharsetDecoder;
29 import java.nio.charset.CharsetEncoder;
DUTF7StyleCharsetEncoder.java29 import java.nio.charset.CharsetEncoder;
30 import java.nio.charset.CoderResult;
DUTF7StyleCharsetDecoder.java29 import java.nio.charset.CharsetDecoder;
30 import java.nio.charset.CoderResult;
/packages/apps/Email/src/org/apache/james/mime4j/codec/
DEncoderUtil.java23 import java.nio.charset.Charset;
321 int usedCharacters, Charset charset, Encoding encoding) { in encodeEncodedWord() argument
327 if (charset == null) in encodeEncodedWord()
328 charset = determineCharset(text); in encodeEncodedWord()
330 String mimeCharset = CharsetUtil.toMimeCharset(charset.name()); in encodeEncodedWord()
336 byte[] bytes = encode(text, charset); in encodeEncodedWord()
343 return encodeB(prefix, text, usedCharacters, charset, bytes); in encodeEncodedWord()
346 return encodeQ(prefix, text, usage, usedCharacters, charset, bytes); in encodeEncodedWord()
513 int usedCharacters, Charset charset, byte[] bytes) { in encodeB() argument
524 byte[] bytes1 = encode(part1, charset); in encodeB()
[all …]
/packages/apps/Exchange/exchange2/src/com/android/exchange/utility/
DUriCodec.java22 import java.nio.charset.Charset;
23 import java.nio.charset.Charsets;
96 private void appendEncoded(StringBuilder builder, String s, Charset charset, in appendEncoded() argument
111 appendHex(builder, s.substring(escapeStart, i), charset); in appendEncoded()
128 appendHex(builder, s.substring(escapeStart, s.length()), charset); in appendEncoded()
132 public final String encode(String s, Charset charset) { in encode() argument
135 appendEncoded(builder, s, charset, false); in encode()
150 public static String decode(String s, boolean convertPlus, Charset charset) { in decode() argument
173 result.append(new String(out.toByteArray(), charset)); in decode()
206 private static void appendHex(StringBuilder builder, String s, Charset charset) { in appendHex() argument
[all …]
/packages/apps/Email/src/org/apache/james/mime4j/decoder/
DDecoderUtil.java110 public static String decodeB(String encodedWord, String charset) in decodeB() argument
113 return new String(decodeBase64(encodedWord), charset); in decodeB()
126 public static String decodeQ(String encodedWord, String charset) in decodeQ() argument
142 return new String(decodeBaseQuotedPrintable(sb.toString()), charset); in decodeQ()
226 String charset = CharsetUtil.toJavaCharset(mimeCharset); in decodeEncodedWord() local
227 if (charset == null) { in decodeEncodedWord()
234 } else if (!CharsetUtil.isDecodingSupported(charset)) { in decodeEncodedWord()
237 + charset + "' (MIME charset '" + mimeCharset in decodeEncodedWord()
254 return DecoderUtil.decodeQ(encodedText, charset); in decodeEncodedWord()
256 return DecoderUtil.decodeB(encodedText, charset); in decodeEncodedWord()
/packages/apps/Email/src/org/apache/james/mime4j/util/
DCharsetUtil.java23 import java.nio.charset.IllegalCharsetNameException;
24 import java.nio.charset.UnsupportedCharsetException;
1079 public static final java.nio.charset.Charset US_ASCII = java.nio.charset.Charset
1082 public static final java.nio.charset.Charset ISO_8859_1 = java.nio.charset.Charset
1085 public static final java.nio.charset.Charset UTF_8 = java.nio.charset.Charset
1191 public static java.nio.charset.Charset getCharset(String charsetName) { in getCharset()
1198 return java.nio.charset.Charset.forName(charsetName); in getCharset()
1202 return java.nio.charset.Charset.forName(defaultCharset); in getCharset()
1206 return java.nio.charset.Charset.forName(defaultCharset); in getCharset()
/packages/apps/Mms/src/com/android/mms/model/
DTextModel.java42 int charset, byte[] data, RegionModel region) { in TextModel() argument
46 if (charset == CharacterSets.ANY_CHARSET) { in TextModel()
49 charset = CharacterSets.ISO_8859_1; in TextModel()
51 mCharset = charset; in TextModel()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/
DMimeUtility.java278 String charset = getHeaderParameter(part.getContentType(), "charset"); in getTextFromPart() local
279 if (charset != null) { in getTextFromPart()
283 charset = CharsetUtil.toJavaCharset(charset); in getTextFromPart()
288 if (charset == null) { in getTextFromPart()
289 charset = "ASCII"; in getTextFromPart()
294 String result = out.toString(charset); in getTextFromPart()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/exif/
DCountedDataInputStream.java25 import java.nio.charset.Charset;
131 public String readString(int n, Charset charset) throws IOException { in readString() argument
134 return new String(buf, charset); in readString()
DExifParser.java24 import java.nio.charset.Charset;
670 public String readString(int n, Charset charset) throws IOException { in readString() argument
673 return new String(buf, 0, n - 1, charset); in readString()
/packages/apps/Mms/src/com/android/mms/util/
DAddressUtils.java59 int charset = cursor.getInt(1); in getFrom() local
60 return new EncodedStringValue(charset, bytes) in getFrom()
/packages/apps/Email/src/org/apache/james/mime4j/
DBodyDescriptor.java37 private String charset = "us-ascii"; field in BodyDescriptor
137 charset = c.toLowerCase(); in addField()
357 return charset; in getCharset()
/packages/apps/Email/src/org/apache/commons/io/output/
DFileWriterWithEncoding.java25 import java.nio.charset.Charset;
26 import java.nio.charset.CharsetEncoder;
/packages/apps/Tag/canon/src/com/android/apps/tagcanon/
DTagCanon.java39 import java.nio.charset.Charset;
40 import java.nio.charset.Charsets;
/packages/apps/Tag/src/com/android/apps/tag/record/
DMimeRecord.java31 import java.nio.charset.Charset;
DTextRecord.java33 import java.nio.charset.Charset;
DUriRecord.java46 import java.nio.charset.Charset;
/packages/apps/Mms/src/com/android/mms/transaction/
DRetrieveTransaction.java245 int charset = cursor.getInt(charsetIdx); in isDuplicateMessageExtra() local
247 encodedSubjectStored = new EncodedStringValue(charset, PduPersister in isDuplicateMessageExtra()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DUtility.java74 import java.nio.charset.Charset;
381 private static byte[] encode(Charset charset, String s) { in encode() argument
385 final ByteBuffer buffer = charset.encode(CharBuffer.wrap(s)); in encode()
391 private static String decode(Charset charset, byte[] b) { in decode() argument
395 final CharBuffer cb = charset.decode(ByteBuffer.wrap(b)); in decode()
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/engine/
Dndbdic.c1676 if ((condition->charset != NULL) && aimai_flg) { in search_node2()
1678 for (l = 0; l < condition->charset->charset_count; l++) { in search_node2()
1680 if (nj_charncmp(key, condition->charset->from[l], 1) == 0) { in search_node2()
1682 nj_strcpy(char_tmp, condition->charset->to[l]); in search_node2()
1811 if ((condition->charset != NULL) && aimai_flg) { in search_node2()
1813 for (l = 0; l < condition->charset->charset_count; l++) { in search_node2()
1815 if (nj_charncmp(key, condition->charset->from[l], 1) == 0) { in search_node2()
1817 nj_strcpy(char_tmp, condition->charset->to[l]); in search_node2()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DImportProcessor.java215 private boolean readOneVCard(InputStream is, int vcardType, String charset, in readOneVCard() argument
/packages/inputmethods/OpenWnn/libs/libwnnDictionary/include/
Dnj_lib.h207 NJ_CHARSET *charset; member
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java819 int charset = cursor.getInt(columnCharset); in extractEncStrFromCursor() local
823 } else if (charset == CharacterSets.ANY_CHARSET) { in extractEncStrFromCursor()
826 return new EncodedStringValue(charset, PduPersister.getBytes(rawBytes)).getString(); in extractEncStrFromCursor()

12