Searched refs:charset (Results 1 - 25 of 167) sorted by relevance

1234567

/frameworks/base/packages/Osu/src/com/android/hotspot2/asn1/
H A DAsn1String.java4 import java.nio.charset.Charset;
5 import java.nio.charset.StandardCharsets;
16 Charset charset = tag == Asn1Decoder.TAG_UTF8String
18 mString = new String(octets, charset);
/frameworks/base/packages/Osu/src/com/android/anqp/
H A DConstants.java6 import java.nio.charset.Charset;
189 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) argument
191 return getPrefixedString(payload, lengthLength, charset, false);
194 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, argument
200 lengthLength), charset, useNull);
203 public static String getTrimmedString(ByteBuffer payload, int length, Charset charset) argument
205 String s = getString(payload, length, charset, false);
216 public static String getString(ByteBuffer payload, int length, Charset charset) argument
218 return getString(payload, length, charset, false);
221 public static String getString(ByteBuffer payload, int length, Charset charset, boolea argument
[all...]
H A DHSOsuProvidersElement.java5 import java.nio.charset.StandardCharsets;
H A DHSIconFileElement.java5 import java.nio.charset.StandardCharsets;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/anqp/
H A DConstants.java6 import java.nio.charset.Charset;
189 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset) argument
191 return getPrefixedString(payload, lengthLength, charset, false);
194 public static String getPrefixedString(ByteBuffer payload, int lengthLength, Charset charset, argument
200 lengthLength), charset, useNull);
203 public static String getTrimmedString(ByteBuffer payload, int length, Charset charset) argument
205 String s = getString(payload, length, charset, false);
216 public static String getString(ByteBuffer payload, int length, Charset charset) argument
218 return getString(payload, length, charset, false);
221 public static String getString(ByteBuffer payload, int length, Charset charset, boolea argument
[all...]
H A DEmergencyNumberElement.java5 import java.nio.charset.StandardCharsets;
H A DGenericStringElement.java5 import java.nio.charset.StandardCharsets;
H A DDomainNameElement.java5 import java.nio.charset.StandardCharsets;
H A DHSOsuProvidersElement.java5 import java.nio.charset.StandardCharsets;
H A DNetworkAuthenticationTypeElement.java5 import java.nio.charset.StandardCharsets;
/frameworks/base/wifi/java/android/net/wifi/
H A 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");
171 CharsetDecoder decoder = charset.newDecoder()
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMasRequestGetMessage.java29 import java.nio.charset.StandardCharsets;
43 public BluetoothMasRequestGetMessage(String handle, CharsetType charset, boolean attachment) { argument
51 oap.add(OAP_TAGID_CHARSET, CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8
76 // charset/encoding defined for body-content.
H A DBluetoothMasRequestPushMessage.java43 public BluetoothMasRequestPushMessage(String folder, String msg, CharsetType charset, argument
50 oap.add(OAP_TAGID_CHARSET, charset == CharsetType.NATIVE ? CHARSET_NATIVE : CHARSET_UTF8);
H A DBluetoothMapBmessage.java131 public BluetoothMapBmessage setCharset(String charset) { argument
132 mBbodyCharset = charset;
162 json.put("charset", mBbodyCharset);
/frameworks/opt/vcard/java/com/android/vcard/
H A DVCardComposer.java168 * The variant which sets charset to null and sets careHandlerErrors to true.
174 public VCardComposer(Context context, int vcardType, String charset) { argument
175 this(context, vcardType, charset, true);
179 * The variant which sets charset to null.
191 * @param charset The charset to be used. Use null when you don't need the charset.
194 public VCardComposer(final Context context, final int vcardType, String charset, argument
196 this(context, context.getContentResolver(), vcardType, charset, careHandlerErrors);
205 final int vcardType, String charset, fina
204 VCardComposer(final Context context, ContentResolver resolver, final int vcardType, String charset, final boolean careHandlerErrors) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/
H A DMIMEContainer.java9 import java.nio.charset.Charset;
10 import java.nio.charset.StandardCharsets;
23 private static final String CharsetTag = "charset=";
36 * @param in A reader to read MIME data from; Note that the charset should be ISO-8859-1 to
38 * be re-encoded using the correct charset once it is discovered.
54 Charset charset = StandardCharsets.ISO_8859_1;
74 charset = Charset.forName(attribute.substring(CharsetTag.length()));
80 mCharset = charset;
130 mText = recode(getBody(in, boundary, quoted, eof), charset);
288 private static String recode(String s, Charset charset) { argument
[all...]
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DCountedDataInputStream.java25 import java.nio.charset.Charset;
131 public String readString(int n, Charset charset) throws IOException { argument
134 return new String(buf, charset);
/frameworks/opt/net/wifi/tests/wifitests/src/android/net/wifi/
H A DFakeKeys.java5 import java.nio.charset.StandardCharsets;
/frameworks/opt/telephony/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.java229 * @param charset the value
231 public void setCharset(int charset) { argument
232 mPartHeader.put(P_CHARSET, charset);
238 * @return the charset value. Return 0 if charset was not set.
241 Integer charset = (Integer) mPartHeader.get(P_CHARSET);
242 if(charset == null) {
245 return charset.intValue();
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DHTTPHandler.java20 import java.nio.charset.Charset;
21 import java.nio.charset.StandardCharsets;
44 public HTTPHandler(Charset charset, OSUSocketFactory socketFactory) throws IOException { argument
45 this(charset, socketFactory, null, null);
48 public HTTPHandler(Charset charset, OSUSocketFactory socketFactory, argument
50 mCharset = charset;
/frameworks/base/packages/Osu/src/com/android/hotspot2/utils/
H A DHTTPResponse.java13 import java.nio.charset.Charset;
14 import java.nio.charset.StandardCharsets;
26 private static final String csIndicator = "charset=";
157 Charset charset;
159 charset = Charset.forName(getCharset());
161 charset = StandardCharsets.ISO_8859_1;
164 mBody.limit() - mBody.position(), charset));
/frameworks/base/core/java/com/android/internal/util/
H A 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;
/frameworks/base/core/java/com/android/internal/os/
H A 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;
56 * Decodes bytes to characters using the system default charset. Initialized
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/commands/
H A DGetCertData.java8 import java.nio.charset.StandardCharsets;

Completed in 8357 milliseconds

1234567