Home
last modified time | relevance | path

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

12345

/frameworks/opt/vcard/java/com/android/vcard/
DVCardComposer.java174 public VCardComposer(Context context, int vcardType, String charset) { in VCardComposer() argument
175 this(context, vcardType, charset, true); in VCardComposer()
194 public VCardComposer(final Context context, final int vcardType, String charset, in VCardComposer() argument
196 this(context, context.getContentResolver(), vcardType, charset, careHandlerErrors); in VCardComposer()
205 final int vcardType, String charset, final boolean careHandlerErrors) { in VCardComposer() argument
213 charset = (TextUtils.isEmpty(charset) ? VCardConfig.DEFAULT_EXPORT_CHARSET : charset); in VCardComposer()
215 VCardConfig.isVersion30(vcardType) && UTF_8.equalsIgnoreCase(charset)); in VCardComposer()
218 if (SHIFT_JIS.equalsIgnoreCase(charset)) { in VCardComposer()
219 mCharset = charset; in VCardComposer()
224 if (TextUtils.isEmpty(charset)) { in VCardComposer()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DConstants.java6 import java.nio.charset.Charset;
165 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) in getPrefixedString() argument
167 return getPrefixedString(payload, lengthLength, charset, false); in getPrefixedString()
170 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, in getPrefixedString() argument
176 lengthLength), charset, useNull); in getPrefixedString()
179 public static String getString(ByteBuffer payload, int length, Charset charset) in getString() argument
181 return getString(payload, length, charset, false); in getString()
184 public static String getString(ByteBuffer payload, int length, Charset charset, boolean useNull) in getString() argument
194 return new String(octets, charset); in getString()
DGenericStringElement.java5 import java.nio.charset.StandardCharsets;
DEmergencyNumberElement.java5 import java.nio.charset.StandardCharsets;
DDomainNameElement.java5 import java.nio.charset.StandardCharsets;
DHSOsuProvidersElement.java5 import java.nio.charset.StandardCharsets;
DI18Name.java5 import java.nio.charset.StandardCharsets;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/
DMIMEContainer.java9 import java.nio.charset.Charset;
10 import java.nio.charset.StandardCharsets;
54 Charset charset = StandardCharsets.ISO_8859_1; in MIMEContainer() local
74 charset = Charset.forName(attribute.substring(CharsetTag.length())); in MIMEContainer()
80 mCharset = charset; in MIMEContainer()
130 mText = recode(getBody(in, boundary, quoted, eof), charset); in MIMEContainer()
288 private static String recode(String s, Charset charset) { in recode() argument
289 … if (charset.equals(StandardCharsets.ISO_8859_1) || charset.equals(StandardCharsets.US_ASCII)) { in recode()
294 return new String(octets, charset); in recode()
/frameworks/base/wifi/java/android/net/wifi/
DWifiSsid.java25 import java.nio.charset.Charset;
26 import java.nio.charset.CharsetDecoder;
27 import java.nio.charset.CoderResult;
28 import java.nio.charset.CodingErrorAction;
170 Charset charset = Charset.forName("UTF-8"); in toString()
171 CharsetDecoder decoder = charset.newDecoder() in toString()
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/
DPduPart.java231 public void setCharset(int charset) { in setCharset() argument
232 mPartHeader.put(P_CHARSET, charset); in setCharset()
241 Integer charset = (Integer) mPartHeader.get(P_CHARSET); in getCharset() local
242 if(charset == null) { in getCharset()
245 return charset.intValue(); in getCharset()
DEncodedStringValue.java52 public EncodedStringValue(int charset, byte[] data) { in EncodedStringValue() argument
58 mCharacterSet = charset; in EncodedStringValue()
96 public void setCharacterSet(int charset) { in setCharacterSet() argument
98 mCharacterSet = charset; in setCharacterSet()
DPduComposer.java327 int charset = enStr.getCharacterSet(); in appendEncodedString() local
341 appendShortInteger(charset); in appendEncodedString()
948 int charset = part.getCharset(); in makeMessageBody() local
949 if (charset != 0) { in makeMessageBody()
951 appendShortInteger(charset); in makeMessageBody()
DPduParser.java869 Integer charset = (Integer) map.get(PduPart.P_CHARSET); in parseParts() local
870 if (null != charset) { in parseParts()
871 part.setCharset(charset); in parseParts()
1032 int charset = 0; in parseEncodedStringValue() local
1044 charset = parseShortInteger(pduDataStream); //get the "Charset" in parseEncodedStringValue()
1050 if (0 != charset) { in parseEncodedStringValue()
1051 returnValue = new EncodedStringValue(charset, textString); in parseEncodedStringValue()
1470 int charset = (int) parseIntegerValue(pduDataStream); in parseContentTypeParams() local
1472 map.put(PduPart.P_CHARSET, charset); in parseContentTypeParams()
DPduPersister.java311 int charset = c.getInt(charsetColumnIndex); in setEncodedStringValueToHeaders() local
313 charset, getBytes(s)); in setEncodedStringValueToHeaders()
379 Integer charset = getIntegerFromPartColumn( in loadParts() local
381 if (charset != null) { in loadParts()
382 part.setCharset(charset); in loadParts()
708 int charset = part.getCharset(); in persistPart() local
709 if (charset != 0 ) { in persistPart()
710 values.put(Part.CHARSET, charset); in persistPart()
1095 int charset = part.getCharset(); in updatePart() local
1096 if (charset != 0 ) { in updatePart()
[all …]
/frameworks/base/packages/WallpaperCropper/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()
/frameworks/base/core/java/com/android/internal/os/
DLoggingPrintStream.java24 import java.nio.charset.Charset;
25 import java.nio.charset.CharsetDecoder;
26 import java.nio.charset.CoderResult;
27 import java.nio.charset.CodingErrorAction;
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasRequestGetMessage.java41 public BluetoothMasRequestGetMessage(String handle, CharsetType charset, boolean attachment) { in BluetoothMasRequestGetMessage() argument
49 oap.add(OAP_TAGID_CHARSET, CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8 in BluetoothMasRequestGetMessage()
DBluetoothMasRequestPushMessage.java43 public BluetoothMasRequestPushMessage(String folder, String msg, CharsetType charset, in BluetoothMasRequestPushMessage() argument
50 oap.add(OAP_TAGID_CHARSET, charset == CharsetType.NATIVE ? CHARSET_NATIVE : CHARSET_UTF8); in BluetoothMasRequestPushMessage()
DBluetoothMasClient.java965 public boolean getMessage(String handle, CharsetType charset, boolean attachment) { in getMessage() argument
977 BluetoothMasRequest request = new BluetoothMasRequestGetMessage(handle, charset, in getMessage()
1052 public boolean pushMessage(String folder, BluetoothMapBmessage bmsg, CharsetType charset) { in pushMessage() argument
1053 return pushMessage(folder, bmsg, charset, false, false); in pushMessage()
1075 public boolean pushMessage(String folder, BluetoothMapBmessage bmsg, CharsetType charset, in pushMessage() argument
1084 new BluetoothMasRequestPushMessage(folder, bmsgString, charset, transparent, retry); in pushMessage()
DBluetoothMapBmessage.java131 public BluetoothMapBmessage setCharset(String charset) { in setCharset() argument
132 mBbodyCharset = charset; in setCharset()
/frameworks/base/core/java/com/android/internal/util/
DFastXmlSerializer.java28 import java.nio.charset.Charset;
29 import java.nio.charset.CharsetEncoder;
30 import java.nio.charset.CoderResult;
31 import java.nio.charset.IllegalCharsetNameException;
32 import java.nio.charset.UnsupportedCharsetException;
DFastPrintWriter.java12 import java.nio.charset.Charset;
13 import java.nio.charset.CharsetEncoder;
14 import java.nio.charset.CoderResult;
15 import java.nio.charset.CodingErrorAction;
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/
DVCardJapanizationTests.java111 private void testPhoneticNameCommon(int vcardType, String charset) { in testPhoneticNameCommon() argument
112 mVerifier.initForExportTest(vcardType, charset); in testPhoneticNameCommon()
120 ("SHIFT_JIS".equalsIgnoreCase(charset) ? in testPhoneticNameCommon()
204 private void testPostalAddressWithJapaneseCommon(int vcardType, String charset) { in testPostalAddressWithJapaneseCommon() argument
205 mVerifier.initForExportTest(vcardType, charset); in testPostalAddressWithJapaneseCommon()
220 ContentValues contentValues = ("UTF-8".equalsIgnoreCase(charset) ? in testPostalAddressWithJapaneseCommon()
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/
DVCardVerifier.java121 public void initForExportTest(int vcardType, String charset) { in initForExportTest() argument
129 if (TextUtils.isEmpty(charset)) { in initForExportTest()
132 mCharset = charset; in initForExportTest()
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
DUnsafeByteSequence.java19 import java.nio.charset.Charset;

12345