Home
last modified time | relevance | path

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

1234567

/frameworks/base/packages/Osu/src/com/android/anqp/
DConstants.java6 import java.nio.charset.Charset;
189 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) in getPrefixedString() argument
191 return getPrefixedString(payload, lengthLength, charset, false); in getPrefixedString()
194 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, in getPrefixedString() argument
200 lengthLength), charset, useNull); in getPrefixedString()
203 public static String getTrimmedString(ByteBuffer payload, int length, Charset charset) in getTrimmedString() argument
205 String s = getString(payload, length, charset, false); in getTrimmedString()
216 public static String getString(ByteBuffer payload, int length, Charset charset) in getString() argument
218 return getString(payload, length, charset, false); in getString()
221 public static String getString(ByteBuffer payload, int length, Charset charset, boolean useNull) in getString() argument
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
DConstants.java6 import java.nio.charset.Charset;
189 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) in getPrefixedString() argument
191 return getPrefixedString(payload, lengthLength, charset, false); in getPrefixedString()
194 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, in getPrefixedString() argument
200 lengthLength), charset, useNull); in getPrefixedString()
203 public static String getTrimmedString(ByteBuffer payload, int length, Charset charset) in getTrimmedString() argument
205 String s = getString(payload, length, charset, false); in getTrimmedString()
216 public static String getString(ByteBuffer payload, int length, Charset charset) in getString() argument
218 return getString(payload, length, charset, false); in getString()
221 public static String getString(ByteBuffer payload, int length, Charset charset, boolean useNull) in getString() argument
[all …]
DGenericStringElement.java5 import java.nio.charset.StandardCharsets;
DEmergencyNumberElement.java5 import java.nio.charset.StandardCharsets;
/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/base/packages/Osu/src/com/android/hotspot2/asn1/
DAsn1String.java4 import java.nio.charset.Charset;
5 import java.nio.charset.StandardCharsets;
16 Charset charset = tag == Asn1Decoder.TAG_UTF8String in Asn1String() local
18 mString = new String(octets, charset); in Asn1String()
/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()
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
DHTTPResponse.java13 import java.nio.charset.Charset;
14 import java.nio.charset.StandardCharsets;
157 Charset charset; in toString() local
159 charset = Charset.forName(getCharset()); in toString()
161 charset = StandardCharsets.ISO_8859_1; in toString()
164 mBody.limit() - mBody.position(), charset)); in toString()
DHTTPRequest.java11 import java.nio.charset.Charset;
12 import java.nio.charset.StandardCharsets;
35 public HTTPRequest(String payload, Charset charset, Method method, URL url, String contentType, in HTTPRequest() argument
37 mBody = payload != null ? payload.getBytes(charset) : null; in HTTPRequest()
53 charset.displayName().toLowerCase()); in HTTPRequest()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DHTTPHandler.java20 import java.nio.charset.Charset;
21 import java.nio.charset.StandardCharsets;
44 public HTTPHandler(Charset charset, OSUSocketFactory socketFactory) throws IOException { in HTTPHandler() argument
45 this(charset, socketFactory, null, null); in HTTPHandler()
48 public HTTPHandler(Charset charset, OSUSocketFactory socketFactory, in HTTPHandler() argument
50 mCharset = charset; in HTTPHandler()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
DBluetoothMasRequestGetMessage.java29 import java.nio.charset.StandardCharsets;
43 public BluetoothMasRequestGetMessage(String handle, CharsetType charset, boolean attachment) { in BluetoothMasRequestGetMessage() argument
51 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()
DBluetoothMapBmessage.java131 public BluetoothMapBmessage setCharset(String charset) { in setCharset() argument
132 mBbodyCharset = charset; in setCharset()
/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/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.CodingErrorAction;
32 import java.nio.charset.IllegalCharsetNameException;
33 import java.nio.charset.UnsupportedCharsetException;
DFastPrintWriter.java13 import java.nio.charset.Charset;
14 import java.nio.charset.CharsetEncoder;
15 import java.nio.charset.CoderResult;
16 import java.nio.charset.CodingErrorAction;
/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/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/base/core/java/android/util/jar/
DStrictJarManifest.java25 import java.nio.charset.CharsetEncoder;
26 import java.nio.charset.CoderResult;
27 import java.nio.charset.StandardCharsets;
/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()

1234567