Home
last modified time | relevance | path

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

1234567891011

/frameworks/base/core/java/android/net/
DUriCodec.java21 import java.nio.charset.CharacterCodingException;
22 import java.nio.charset.Charset;
23 import java.nio.charset.CharsetDecoder;
24 import java.nio.charset.CodingErrorAction;
77 String s, boolean convertPlus, Charset charset, boolean throwOnFailure) { in decode() argument
79 appendDecoded(builder, s, convertPlus, charset, throwOnFailure); in decode()
92 Charset charset, in appendDecoded() argument
94 CharsetDecoder decoder = charset.newDecoder() in appendDecoded()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DByteBufferReader.java24 import java.nio.charset.Charset;
79 public static String readString(ByteBuffer payload, int length, Charset charset) { in readString() argument
82 return new String(octets, charset); in readString()
94 public static String readStringWithByteLength(ByteBuffer payload, Charset charset) { in readStringWithByteLength() argument
96 return readString(payload, length, charset); in readStringWithByteLength()
/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/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.java328 int charset = enStr.getCharacterSet(); in appendEncodedString() local
342 appendShortInteger(charset); in appendEncodedString()
964 int charset = part.getCharset(); in makeMessageBody() local
965 if (charset != 0) { in makeMessageBody()
967 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/wifi/java/android/net/wifi/
DWifiSsid.java26 import java.nio.charset.Charset;
27 import java.nio.charset.CharsetDecoder;
28 import java.nio.charset.CoderResult;
29 import java.nio.charset.CodingErrorAction;
185 Charset charset = Charset.forName("UTF-8"); in toString()
186 CharsetDecoder decoder = charset.newDecoder() in toString()
/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.java29 import java.nio.charset.Charset;
30 import java.nio.charset.CharsetEncoder;
31 import java.nio.charset.CoderResult;
32 import java.nio.charset.CodingErrorAction;
33 import java.nio.charset.IllegalCharsetNameException;
34 import java.nio.charset.UnsupportedCharsetException;
DFastPrintWriter.java30 import java.nio.charset.Charset;
31 import java.nio.charset.CharsetEncoder;
32 import java.nio.charset.CoderResult;
33 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/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java29 import java.nio.charset.CharacterCodingException;
30 import java.nio.charset.CharsetDecoder;
31 import java.nio.charset.CharsetEncoder;
32 import java.nio.charset.StandardCharsets;
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/java/core/src/main/java/com/google/protobuf/
DByteString.java43 import java.nio.charset.Charset;
44 import java.nio.charset.UnsupportedCharsetException;
378 public static ByteString copyFrom(String text, Charset charset) { in copyFrom() argument
379 return new LiteralByteString(text.getBytes(charset)); in copyFrom()
730 public final String toString(Charset charset) { in toString() argument
731 return size() == 0 ? "" : toStringInternal(charset); in toString()
741 protected abstract String toStringInternal(Charset charset); in toStringInternal() argument
1327 protected final String toStringInternal(Charset charset) { in toStringInternal() argument
1328 return new String(bytes, getOffsetIntoBytes(), size(), charset); in toStringInternal()
DNioByteString.java41 import java.nio.charset.Charset;
158 protected String toStringInternal(Charset charset) { in toStringInternal() argument
172 return new String(bytes, offset, length, charset); in toStringInternal()
/frameworks/base/wifi/tests/assets/hsr1/
DHSR1ProfileWithCACert.conf2 Content-Type: multipart/mixed; boundary={boundary}; charset=UTF-8
6 Content-Type: application/x-passpoint-profile; charset=UTF-8
/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/tools/powermodel/src/com/android/powermodel/
DCsvParser.java21 import java.nio.charset.Charset;
22 import java.nio.charset.StandardCharsets;
/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/gamesdk/third_party/protobuf-3.0.0/java/core/src/test/java/com/google/protobuf/
DIsValidUtf8TestUtil.java42 import java.nio.charset.CharsetDecoder;
43 import java.nio.charset.CharsetEncoder;
44 import java.nio.charset.CoderResult;
45 import java.nio.charset.CodingErrorAction;
/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/opt/telephony/src/java/com/android/internal/telephony/
DVisualVoicemailSmsFilter.java37 import java.nio.charset.CharacterCodingException;
38 import java.nio.charset.CharsetDecoder;
39 import java.nio.charset.StandardCharsets;
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiSsidTest.java26 import java.nio.charset.StandardCharsets;
/frameworks/base/core/tests/coretests/src/android/net/
DUriCodecTest.java21 import java.nio.charset.StandardCharsets;
/frameworks/base/services/backup/java/com/android/server/backup/encryption/chunking/cdc/
DFingerprintMixer.java22 import java.nio.charset.StandardCharsets;

1234567891011