/frameworks/support/core/ktx/src/main/java/androidx/core/util/ |
D | AtomicFile.kt | 24 import java.nio.charset.Charset 61 fun AtomicFile.writeText(text: String, charset: Charset = Charsets.UTF_8) { in writeText() 62 writeBytes(text.toByteArray(charset)) in writeText() 79 fun AtomicFile.readText(charset: Charset = Charsets.UTF_8): String { in readBytes() 80 return readFully().toString(charset) in readBytes()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | ByteBufferReader.java | 24 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/ |
D | VCardComposer.java | 174 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/wifi/java/android/net/wifi/ |
D | WifiSsid.java | 25 import java.nio.charset.Charset; 26 import java.nio.charset.CharsetDecoder; 27 import java.nio.charset.CoderResult; 28 import java.nio.charset.CodingErrorAction; 179 Charset charset = Charset.forName("UTF-8"); in toString() 180 CharsetDecoder decoder = charset.newDecoder() in toString()
|
/frameworks/opt/telephony/src/java/com/google/android/mms/pdu/ |
D | PduPart.java | 231 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()
|
D | EncodedStringValue.java | 52 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()
|
D | PduComposer.java | 327 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()
|
D | PduParser.java | 869 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/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/resource/ |
D | XmlResourcesTransformer.kt | 26 import java.nio.charset.Charset 27 import java.nio.charset.StandardCharsets 71 val charset = getCharset(file.data) in canTransform() constant 72 val sb = StringBuilder(file.data.toString(charset)) in canTransform() 76 file.setNewData(sb.toString().toByteArray(charset)) in canTransform()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | CountedDataInputStream.java | 25 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/opt/net/wifi/service/java/com/android/server/wifi/util/ |
D | NativeUtil.java | 29 import java.nio.charset.CharacterCodingException; 30 import java.nio.charset.CharsetDecoder; 31 import java.nio.charset.CharsetEncoder; 32 import java.nio.charset.StandardCharsets;
|
/frameworks/base/core/java/com/android/internal/util/ |
D | FastXmlSerializer.java | 28 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;
|
D | FastPrintWriter.java | 29 import java.nio.charset.Charset; 30 import java.nio.charset.CharsetEncoder; 31 import java.nio.charset.CoderResult; 32 import java.nio.charset.CodingErrorAction;
|
/frameworks/base/core/java/com/android/internal/os/ |
D | LoggingPrintStream.java | 24 import java.nio.charset.Charset; 25 import java.nio.charset.CharsetDecoder; 26 import java.nio.charset.CoderResult; 27 import java.nio.charset.CodingErrorAction;
|
/frameworks/base/wifi/tests/assets/hsr1/ |
D | HSR1ProfileWithCACert.conf | 2 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/ |
D | VCardJapanizationTests.java | 111 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/support/core/ktx/src/androidTest/java/androidx/core/util/ |
D | AtomicFileTest.kt | 80 file.writeText("Hey", charset = Charsets.UTF_16LE) in writeTextCharset() 107 assertEquals("Hey", file.readText(charset = Charsets.UTF_16LE)) in readTextCharset()
|
/frameworks/base/core/java/android/util/jar/ |
D | StrictJarManifest.java | 25 import java.nio.charset.CharsetEncoder; 26 import java.nio.charset.CoderResult; 27 import java.nio.charset.StandardCharsets;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | VisualVoicemailSmsFilter.java | 37 import java.nio.charset.CharacterCodingException; 38 import java.nio.charset.CharsetDecoder; 39 import java.nio.charset.StandardCharsets;
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | VCardVerifier.java | 121 public void initForExportTest(int vcardType, String charset) { in initForExportTest() argument 129 if (TextUtils.isEmpty(charset)) { in initForExportTest() 132 mCharset = charset; in initForExportTest()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiSsidTest.java | 24 import java.nio.charset.StandardCharsets;
|
/frameworks/support/lifecycle/compiler/src/tests/kotlin/androidx/lifecycle/utils/ |
D | TestUtils.kt | 24 import java.nio.charset.Charset
|
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | UnsafeByteSequence.java | 19 import java.nio.charset.Charset;
|
/frameworks/support/jetifier/jetifier/processor/src/main/kotlin/com/android/tools/build/jetifier/processor/transform/metainf/ |
D | MetaInfTransformer.kt | 22 import java.nio.charset.StandardCharsets
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | IconInfoTestUtil.java | 21 import java.nio.charset.StandardCharsets;
|