Searched defs:charset (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/core/java/com/android/internal/http/multipart/
H A DStringPart.java58 /** Default charset of string parameters*/
75 * @param charset the charset to be used to encode the string, if <code>null</code>
78 public StringPart(String name, String value, String charset) { argument
83 charset == null ? DEFAULT_CHARSET : charset,
107 * Gets the content in bytes. Bytes are lazily created to allow the charset to be changed
H A DFilePart.java62 /** Default charset of file attachments. */
88 * @param charset the charset encoding for this part, if <code>null</code> the
91 public FilePart(String name, PartSource partSource, String contentType, String charset) { argument
96 charset == null ? "ISO-8859-1" : charset,
137 * @param charset the charset encoding for this part, if <code>null</code> the
143 public FilePart(String name, File file, String contentType, String charset) argument
145 this(name, new FilePartSource(file), contentType, charset);
177 FilePart(String name, String fileName, File file, String contentType, String charset) argument
[all...]
/frameworks/opt/mms/src/java/com/google/android/mms/pdu/
H A DEncodedStringValue.java48 * @param charset the Char-set value
52 public EncodedStringValue(int charset, byte[] data) { argument
58 mCharacterSet = charset;
94 * @param charset the Char-set value
96 public void setCharacterSet(int charset) { argument
98 mCharacterSet = charset;
H A DPduPart.java217 * @param charset the value
219 public void setCharset(int charset) { argument
220 mPartHeader.put(P_CHARSET, charset);
226 * @return the charset value. Return 0 if charset was not set.
229 Integer charset = (Integer) mPartHeader.get(P_CHARSET);
230 if(charset == null) {
233 return charset.intValue();
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
H A DVCardJapanizationTests.java111 private void testPhoneticNameCommon(int vcardType, String charset) { argument
112 mVerifier.initForExportTest(vcardType, charset);
120 ("SHIFT_JIS".equalsIgnoreCase(charset) ?
204 private void testPostalAddressWithJapaneseCommon(int vcardType, String charset) { argument
205 mVerifier.initForExportTest(vcardType, charset);
220 ContentValues contentValues = ("UTF-8".equalsIgnoreCase(charset) ?
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardComposer.java166 * The variant which sets charset to null and sets careHandlerErrors to true.
172 public VCardComposer(Context context, int vcardType, String charset) { argument
173 this(context, vcardType, charset, true);
177 * The variant which sets charset to null.
189 * @param charset The charset to be used. Use null when you don't need the charset.
192 public VCardComposer(final Context context, final int vcardType, String charset, argument
194 this(context, context.getContentResolver(), vcardType, charset, careHandlerErrors);
203 final int vcardType, String charset, fina
202 VCardComposer(final Context context, ContentResolver resolver, final int vcardType, String charset, final boolean careHandlerErrors) argument
[all...]
H A DVCardBuilder.java125 // Default charset should be used
131 * @param charset If null, we use default charset for export.
134 public VCardBuilder(final int vcardType, String charset) { argument
153 // vCard 2.1 requires charset.
155 // the exact charset.
156 // We currently append it only when charset other than UTF_8 is used.
158 !(VCardConfig.isVersion30(vcardType) && "UTF-8".equalsIgnoreCase(charset));
161 if (!SHIFT_JIS.equalsIgnoreCase(charset)) {
163 "The charset \""
[all...]
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
H A DVCardVerifier.java121 public void initForExportTest(int vcardType, String charset) { argument
129 if (TextUtils.isEmpty(charset)) {
132 mCharset = charset;
240 // Note: we must not specify charset toward vCard parsers. This code checks whether
242 // charset.
/frameworks/base/media/libdrm/mobile1/src/objmng/
H A Ddrm_i18n.c85 int32_t DRM_i18n_mbsToWcs(DRM_Charset_t charset, argument
90 switch (charset)
123 return iso8859xToWcs(charset, mbs, mbsLen, wcsBuf, bufSizeInWideChar, bytesConsumed);
141 int32_t DRM_i18n_wcsToMbs(DRM_Charset_t charset, argument
149 switch (charset)
182 return wcsToIso8859x(charset, wcs, wcsLen, mbsBuf, bufSizeInByte);
/frameworks/base/media/libdrm/mobile1/include/xml/
H A Dxml_tinyParser.h110 uint32_t charset; member in struct:_WBXML
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java1008 String charset) throws CodingException
1015 throw new CodingException(charset + " decode failed: offset out of range");
1017 Log.e(LOG_TAG, charset + " decode error: offset = " + offset + " numFields = "
1023 return new String(data, offset, numFields * width, charset);
1025 throw new CodingException(charset + " decode failed: " + ex);
1007 decodeCharset(byte[] data, int offset, int numFields, int width, String charset) argument

Completed in 1760 milliseconds