Home
last modified time | relevance | path

Searched refs:encoding (Results 1 – 25 of 41) sorted by relevance

12

/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/bip/
DBipEncoding.java89 public BipEncoding(String encoding) { in BipEncoding() argument
90 if (encoding == null) { in BipEncoding()
93 encoding = encoding.trim(); in BipEncoding()
94 mType = determineEncoding(encoding.toUpperCase()); in BipEncoding()
98 proprietaryEncodingId = encoding.substring(4).toUpperCase(); in BipEncoding()
104 throw new ParseException("Failed to determine type of '" + encoding + "'"); in BipEncoding()
115 public BipEncoding(int encoding, String proprietaryId) { in BipEncoding() argument
116 if (encoding < 0 || encoding > USR_XXX) { in BipEncoding()
117 throw new IllegalArgumentException("Received invalid encoding type '" + encoding + "'"); in BipEncoding()
119 mType = encoding; in BipEncoding()
[all …]
DBipImageFormat.java47 public static BipImageFormat parseNative(String encoding, String pixel, String size) { in parseNative() argument
48 return new BipImageFormat(BipImageFormat.FORMAT_NATIVE, encoding, pixel, size, null, null); in parseNative()
54 public static BipImageFormat parseVariant(String encoding, String pixel, String maxSize, in parseVariant() argument
56 return new BipImageFormat(BipImageFormat.FORMAT_VARIANT, encoding, pixel, null, maxSize, in parseVariant()
63 public static BipImageFormat createNative(BipEncoding encoding, BipPixel pixel, int size) { in createNative() argument
64 return new BipImageFormat(BipImageFormat.FORMAT_NATIVE, encoding, pixel, size, -1, null); in createNative()
70 public static BipImageFormat createVariant(BipEncoding encoding, BipPixel pixel, int maxSize, in createVariant() argument
72 return new BipImageFormat(BipImageFormat.FORMAT_VARIANT, encoding, pixel, -1, maxSize, in createVariant()
116 private BipImageFormat(int type, BipEncoding encoding, BipPixel pixel, int size, int maxSize, in BipImageFormat() argument
119 mEncoding = Objects.requireNonNull(encoding, "Encoding cannot be null"); in BipImageFormat()
[all …]
DBipImageProperties.java180 String encoding = xpp.getAttributeValue(null, "encoding"); in parse() local
183 addNativeFormat(BipImageFormat.parseNative(encoding, pixel, size)); in parse()
185 String encoding = xpp.getAttributeValue(null, "encoding"); in parse() local
190 BipImageFormat.parseVariant(encoding, pixel, maxSize, trans)); in parse()
275 BipEncoding encoding = format.getEncoding(); in toString() local
278 if (encoding == null || pixel == null) { in toString()
283 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
292 BipEncoding encoding = format.getEncoding(); in toString() local
296 if (encoding == null || pixel == null) { in toString()
301 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
DBipImageDescriptor.java68 public Builder setEncoding(BipEncoding encoding) { in setEncoding() argument
69 mImageDescriptor.mEncoding = encoding; in setEncoding()
79 public Builder setEncoding(int encoding) { in setEncoding() argument
80 mImageDescriptor.mEncoding = new BipEncoding(encoding, null); in setEncoding()
91 public Builder setPropietaryEncoding(String encoding) { in setPropietaryEncoding() argument
92 mImageDescriptor.mEncoding = new BipEncoding(BipEncoding.USR_XXX, encoding); in setPropietaryEncoding()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipEncodingTest.java33 BipEncoding encoding = new BipEncoding(input); in testParse() local
34 Assert.assertEquals(encodingType, encoding.getType()); in testParse()
35 Assert.assertEquals(encodingStr, encoding.toString()); in testParse()
36 Assert.assertEquals(propId, encoding.getProprietaryEncodingId()); in testParse()
37 Assert.assertEquals(isAndroidSupported, encoding.isAndroidSupported()); in testParse()
98 BipEncoding encoding = new BipEncoding(encodingType, null); in testCreateBasicEncoding() local
99 Assert.assertEquals(encodingType, encoding.getType()); in testCreateBasicEncoding()
100 Assert.assertEquals(null, encoding.getProprietaryEncodingId()); in testCreateBasicEncoding()
106 BipEncoding encoding = new BipEncoding(BipEncoding.USR_XXX, "test-encoding"); in testCreateProprietaryEncoding() local
107 Assert.assertEquals(BipEncoding.USR_XXX, encoding.getType()); in testCreateProprietaryEncoding()
[all …]
DBipImageDescriptorTest.java55 BipEncoding encoding = new BipEncoding(BipEncoding.JPEG, null); in testBuildImageDescriptor_encodingObject() local
57 builder.setEncoding(encoding); in testBuildImageDescriptor_encodingObject()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DSmsCbHeader.java505 public final int encoding; field in SmsCbHeader.DataCodingScheme
510 int encoding = 0; in DataCodingScheme() local
518 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
525 encoding = SmsMessage.ENCODING_16BIT; in DataCodingScheme()
527 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
532 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
537 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
544 encoding = SmsMessage.ENCODING_8BIT; in DataCodingScheme()
548 encoding = SmsMessage.ENCODING_16BIT; in DataCodingScheme()
553 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dencoding.md9 > (in §3) JSON text SHALL be encoded in Unicode. The default encoding is UTF-8.
11 …ible. When JSON is written in UTF-16 or UTF-32, the binary content-transfer-encoding must be used.
30 * UTF-8: 8-bit variable-width encoding. It maps a code point to 1–4 bytes.
31 * UTF-16: 16-bit variable-width encoding. It maps a code point to 1–2 16-bit code units (i.e., 2–4 …
32 * UTF-32: 32-bit fixed-width encoding. It directly maps a code point to a single 32-bit code unit (…
67 … `GenericValue<Encoding>` and `GenericDocument<Encoding>` indicates the encoding to be used to rep…
80 As shown in the declaration, each encoding has a `CharType` template parameter. Actually, it may be…
88 …, sometimes we may need to read/write files of different encodings. The encoding needed to be deci…
90 `AutoUTF` is an encoding designed for this purpose. It chooses which encoding to be used according …
110 ASCII *cannot* be used in memory (encoding of `Document` or target encoding of `Reader`), as it can…
[all …]
Ddom.md34encoding of JSON String value in memory. Possible options are `UTF8`, `UTF16`, `UTF32`. Note that,…
36 …de-enabled functions in Windows use UTF-16 (wide character) encoding. No matter what encoding was …
114 `kParseValidateEncodingFlag` | Validate encoding of JSON strings.
121 The `SourceEncoding` parameter defines what encoding is in the stream. This can be differed to the …
143 `kParseErrorStringInvalidEncoding` | Invalid encoding in string.
218 2. The source encoding in stream and target encoding in document must be the same.
226encoding of the stream can be different from the encoding of the DOM. For example, the source stre…
232 When the source encoding of stream is the same as encoding of DOM, by default, the parser will *not…
Dsax.md124 …opy = false`. And beware that, the character type depends on the target encoding, which will be ex…
151 …both source and target encoding. The source encoding means the encoding in the JSON stream. The ta…
258 The `SourceEncoding` template parameter specifies the encoding to be used in `String(const Ch*, ...…
260 The `TargetEncoding` template parameter specifies the encoding in the output stream.
Dfaq.md205 2. Can it validate the encoding?
207 …Yes, just pass `kParseValidateEncodingFlag` to `Parse()`. If there is invalid encoding in the stre…
211 …JSON uses UTF-16 encoding when escaping unicode character, e.g. `\u5927` representing Chinese char…
221 …Yes, use `ASCII<>` as output encoding template parameter in `Writer` can enforce escaping those ch…
233 3. I don't know what encoding will the JSON be. How to handle them?
235 …You may use `AutoUTFInputStream` which detects the encoding of input stream automatically. However…
239 …er_mark) sometimes reside at the beginning of file/stream to indiciate the UTF encoding type of it.
Dstream.md124 Encoded streams do not contain JSON itself, but they wrap byte streams to provide basic encoding/de…
130 If the encoding of stream is known in compile-time, you may use `EncodedInputStream` and `EncodedOu…
187 …pplication may want to handle all supported JSON encoding. `AutoUTFInputStream` will detection enc…
212 When specifying the encoding of stream, uses `AutoUTF<CharType>` as in `ParseStream()` above.
218 Similarly, to choose encoding for output during runtime, we can use `AutoUTFOutputStream`. This cla…
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCdmaSmsMessageTest.java233 int language, int encoding, String body, int cmasCategory, int responseType, in createCmasSmsMessage() argument
240 encodeBody(encoding, body, true, cmasBos); in createCmasSmsMessage()
282 int priority, int language, int encoding, String body) throws Exception { in createBroadcastSmsMessage() argument
287 encodeBody(encoding, body, false, bos); in createBroadcastSmsMessage()
303 private static void encodeBody(int encoding, String body, boolean isCmasRecord, in encodeBody() argument
305 if (encoding == ENCODING_7BIT_ASCII || encoding == ENCODING_IA5) { in encodeBody()
316 bos.write(5, (encoding & 0x1f)); in encodeBody()
327 } else if (encoding == ENCODING_GSM_7BIT_ALPHABET in encodeBody()
328 || encoding == ENCODING_GSM_DCS) { in encodeBody()
339 if (encoding == ENCODING_GSM_DCS) { in encodeBody()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapSmsPdu.java104 SmsPdu(byte[] data, int encoding, int type, int languageTable) { in SmsPdu() argument
106 this.mEncoding = encoding; in SmsPdu()
119 public void setEncoding(int encoding) { in setEncoding() argument
120 this.mEncoding = encoding; in setEncoding()
530 int encoding; in getSubmitPdus() local
541 encoding = ted[3]; in getSubmitPdus()
553 newPdu = new SmsPdu(data, encoding, phoneType, languageTable); in getSubmitPdus()
560 destinationAddress, smsFragments.get(i), encoding, languageTable, in getSubmitPdus()
562 newPdu = new SmsPdu(data, encoding, phoneType, languageTable); in getSubmitPdus()
DBluetoothMapUtils.java460 String encoding; in stripEncoding() local
468 encoding = m.group(2); in stripEncoding()
471 "Matching:" + match + "\nCharset: " + charset + "\nEncoding : " + encoding in stripEncoding()
473 if (encoding.equalsIgnoreCase("Q")) { in stripEncoding()
478 } else if (encoding.equalsIgnoreCase("B")) { in stripEncoding()
494 Log.e(TAG, "stripEncoding: Hit unknown encoding: " + encoding); in stripEncoding()
DBluetoothMapbMessageMime.java729 private byte[] decodeBody(String body, String encoding, String charset) { in decodeBody() argument
730 if (encoding != null && encoding.toUpperCase().contains("BASE64")) { in decodeBody()
732 } else if (encoding != null && encoding.toUpperCase().contains("QUOTED-PRINTABLE")) { in decodeBody()
/packages/apps/Dialer/java/com/android/voicemail/impl/transcribe/
DTranscriptionTask.java67 protected AudioFormat encoding; field in TranscriptionTask
105 if (AudioFormat.AUDIO_FORMAT_UNSPECIFIED.equals(encoding)) { in run()
247 encoding = TranscriptionUtils.getAudioFormat(audioData); in readAndValidateAudioFile()
248 if (encoding == AudioFormat.AUDIO_FORMAT_UNSPECIFIED) { in readAndValidateAudioFile()
259 encoding = TranscriptionUtils.getAudioFormat(audioData); in setAudioDataForTesting()
DTranscriptionTaskSync.java66 .setAudioFormat(encoding) in getSyncRequest()
DTranscriptionTaskAsync.java123 .setAudioFormat(encoding) in getUploadRequest()
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/
DBmessage.java114 public Bmessage setEncoding(String encoding) { in setEncoding() argument
115 mBbodyEncoding = encoding; in setEncoding()
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
DImapFolder.java537 final ImapString encoding = bs.getStringOrEmpty(5); in parseBodyStructure() local
637 if (!encoding.isEmpty()) { in parseBodyStructure()
638 part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding.getString()); in parseBodyStructure()
/packages/apps/Calendar/
Dmkprojectfile6 <?xml version="1.0" encoding="UTF-8"?>
/packages/apps/Car/libs/car-ui-lib/tests/apitest/
Dauto-generate-resources.py71 data.write(f, pretty_print=True, xml_declaration=True, encoding='utf-8')
/packages/apps/Messaging/src/android/support/v7/mms/pdu/
DPduParser.java909 String encoding = new String(partDataEncoding); in parseParts() local
910 if (encoding.equalsIgnoreCase(PduPart.P_BASE64)) { in parseParts()
913 } else if (encoding.equalsIgnoreCase(PduPart.P_QUOTED_PRINTABLE)) { in parseParts()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduParser.java943 String encoding = new String(partDataEncoding); in parseParts() local
944 if (encoding.equalsIgnoreCase(PduPart.P_BASE64)) { in parseParts()
947 } else if (encoding.equalsIgnoreCase(PduPart.P_QUOTED_PRINTABLE)) { in parseParts()

12