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

123

/frameworks/base/core/java/com/android/internal/http/multipart/
H A DFilePart.java67 /** Default charset of file attachments. */
93 * @param charset the charset encoding for this part, if <code>null</code> the
96 public FilePart(String name, PartSource partSource, String contentType, String charset) { argument
101 charset == null ? "ISO-8859-1" : charset,
142 * @param charset the charset encoding for this part, if <code>null</code> the
148 public FilePart(String name, File file, String contentType, String charset) argument
150 this(name, new FilePartSource(file), contentType, charset);
182 FilePart(String name, String fileName, File file, String contentType, String charset) argument
[all...]
H A DStringPart.java64 /** Default charset of string parameters*/
81 * @param charset the charset to be used to encode the string, if <code>null</code>
84 public StringPart(String name, String value, String charset) { argument
89 charset == null ? DEFAULT_CHARSET : charset,
113 * Gets the content in bytes. Bytes are lazily created to allow the charset to be changed
/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/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...]
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMasRequestGetMessage.java41 public BluetoothMasRequestGetMessage(String handle, CharsetType charset, boolean attachment) { argument
49 oap.add(OAP_TAGID_CHARSET, CharsetType.UTF_8.equals(charset) ? CHARSET_UTF8
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;
H A DBluetoothMasClient.java955 * @param charset {@link CharsetType} object corresponding to
963 public boolean getMessage(String handle, CharsetType charset, boolean attachment) { argument
975 BluetoothMasRequest request = new BluetoothMasRequestGetMessage(handle, charset,
1044 * @param charset {@link CharsetType} object corresponding to
1050 public boolean pushMessage(String folder, BluetoothMapBmessage bmsg, CharsetType charset) { argument
1051 return pushMessage(folder, bmsg, charset, false, false);
1063 * @param charset {@link CharsetType} object corresponding to
1073 public boolean pushMessage(String folder, BluetoothMapBmessage bmsg, CharsetType charset, argument
1082 new BluetoothMasRequestPushMessage(folder, bmsgString, charset, transparent, retry);
/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/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();
H A DPduComposer.java327 int charset = enStr.getCharacterSet();
334 * In the implementation of EncodedStringValue, the charset field will
341 appendShortInteger(charset);
947 // content-type parameter : charset
948 int charset = part.getCharset();
949 if (charset != 0) {
951 appendShortInteger(charset);
H A DPduParser.java807 /* get charset parameter */
868 /* get charset parameter */
869 Integer charset = (Integer) map.get(PduPart.P_CHARSET);
870 if (null != charset) {
871 part.setCharset(charset);
1032 int charset = 0;
1044 charset = parseShortInteger(pduDataStream); //get the "Charset"
1050 if (0 != charset) {
1051 returnValue = new EncodedStringValue(charset, textString);
1334 * four parameters used in mms: "type", "start", "name", "charset"
[all...]
/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/tools/layoutlib/create/src/com/android/tools/layoutlib/java/
H A DUnsafeByteSequence.java19 import java.nio.charset.Charset;
H A DCharsets.java20 import java.nio.charset.Charset;
23 * Defines the same class as the java.nio.charset.Charsets which was added in
30 * platform/libcore/luni/src/main/java/java/nio/charset/Charsets
/frameworks/base/core/java/android/hardware/camera2/marshal/impl/
H A DMarshalQueryableString.java24 import java.nio.charset.Charset;
/frameworks/base/core/java/com/android/internal/util/
H A 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;
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.IllegalCharsetNameException;
32 import java.nio.charset.UnsupportedCharsetException;
H A DProcFileReader.java23 import java.nio.charset.StandardCharsets;
/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/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/tools/preload/
H A DWritePreloadedClassFile.java22 import java.nio.charset.Charset;
/frameworks/multidex/library/test/src/android/support/multidex/
H A DZipEntryReader.java25 import java.nio.charset.Charset;
/frameworks/base/core/tests/coretests/src/android/os/
H A DFileBridgeTest.java30 import java.nio.charset.StandardCharsets;

Completed in 631 milliseconds

123