Home
last modified time | relevance | path

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

123

/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.java192 String encoding = xpp.getAttributeValue(null, "encoding"); in parse() local
195 addNativeFormat(BipImageFormat.parseNative(encoding, pixel, size)); in parse()
197 String encoding = xpp.getAttributeValue(null, "encoding"); in parse() local
202 BipImageFormat.parseVariant(encoding, pixel, maxSize, trans)); in parse()
284 BipEncoding encoding = format.getEncoding(); in isThumbnailFormat()
285 if (encoding == null || encoding.getType() != BipEncoding.JPEG) return false; in isThumbnailFormat()
321 BipEncoding encoding = format.getEncoding(); in toString() local
324 if (encoding == null || pixel == null) { in toString()
329 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString()
338 BipEncoding encoding = format.getEncoding(); in toString() local
[all …]
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.java514 public final int encoding; field in SmsCbHeader.DataCodingScheme
519 int encoding = 0; in DataCodingScheme() local
527 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
534 encoding = SmsMessage.ENCODING_16BIT; in DataCodingScheme()
536 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
541 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
546 encoding = SmsMessage.ENCODING_7BIT; in DataCodingScheme()
553 encoding = SmsMessage.ENCODING_8BIT; in DataCodingScheme()
557 encoding = SmsMessage.ENCODING_16BIT; in DataCodingScheme()
562 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.
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…
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.
/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/modules/StatsD/lib/libkll/encoding/
Dencoder_test.cpp26 namespace encoding { namespace
35 const char* encoding; member
46 std::string_view expected(params.encoding, params.encoding_length); in TEST_P()
53 std::string_view suffix(params.encoding, params.encoding_length); in TEST_P()
88 const char* encoding; member
99 std::string_view expected(params.encoding, params.encoding_length); in TEST_P()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcp/
DCoverArtTest.java105 private BipImageDescriptor getDescriptor(int encoding, int width, int height) { in getDescriptor() argument
107 .setEncoding(encoding) in getDescriptor()
116 BipEncoding encoding = format.getEncoding(); in containsThumbnailFormat() local
118 if (encoding == null || pixel == null) continue; in containsThumbnailFormat()
119 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in containsThumbnailFormat()
125 BipEncoding encoding = format.getEncoding(); in containsThumbnailFormat() local
127 if (encoding == null || pixel == null) continue; in containsThumbnailFormat()
128 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in containsThumbnailFormat()
/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/modules/StatsD/lib/libkll/
Dkll.cpp82 encoding::Encoder::AppendToString(min_, quantile_state->mutable_min()); in SerializeToProto()
83 encoding::Encoder::AppendToString(max_, quantile_state->mutable_max()); in SerializeToProto()
95 encoding::Encoder::SerializeToPackedStringAll( in SerializeToProto()
106 encoding::Encoder::AppendToString( in SerializeToProto()
/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()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/helpers/
DCoverArt.java151 BipEncoding encoding = descriptor.getEncoding(); in isDescriptorValid()
154 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in isDescriptorValid()
187 BipEncoding encoding = new BipEncoding(BipEncoding.JPEG); in getImageProperties() local
189 BipImageFormat format = BipImageFormat.createNative(encoding, pixel, -1); in getImageProperties()
/packages/modules/StatsD/lib/libkll/proto/
Dkll-quantiles.proto45 // 'difference' encoding (also called 'delta' or 'incremental' encoding):
46 // The values are sorted by their natural order before encoding, and
Daggregator.proto46 // SerializeToString uses varint encoding of the 2s complement.
61 // field is set to indicate that the format of the aggregator encoding has
/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/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DServiceProviderVerifierTest.java218 private List<Object> makeAltNames(GeneralName name, String encoding) throws Exception { in makeAltNames() argument
221 nameEntry.add(name.getEncoded(encoding)); in makeAltNames()

123