/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipEncoding.java | 89 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 …]
|
D | BipImageFormat.java | 47 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 …]
|
D | BipImageProperties.java | 191 String encoding = xpp.getAttributeValue(null, "encoding"); in parse() local 194 addNativeFormat(BipImageFormat.parseNative(encoding, pixel, size)); in parse() 196 String encoding = xpp.getAttributeValue(null, "encoding"); in parse() local 201 BipImageFormat.parseVariant(encoding, pixel, maxSize, trans)); in parse() 283 BipEncoding encoding = format.getEncoding(); in isThumbnailFormat() 284 if (encoding == null || encoding.getType() != BipEncoding.JPEG) return false; in isThumbnailFormat() 320 BipEncoding encoding = format.getEncoding(); in toString() local 323 if (encoding == null || pixel == null) { in toString() 328 xmlMsgElement.attribute(null, "encoding", encoding.toString()); in toString() 337 BipEncoding encoding = format.getEncoding(); in toString() local [all …]
|
D | BipImageDescriptor.java | 67 public Builder setEncoding(BipEncoding encoding) { in setEncoding() argument 68 mImageDescriptor.mEncoding = encoding; in setEncoding() 78 public Builder setEncoding(int encoding) { in setEncoding() argument 79 mImageDescriptor.mEncoding = new BipEncoding(encoding, null); in setEncoding() 90 public Builder setPropietaryEncoding(String encoding) { in setPropietaryEncoding() argument 91 mImageDescriptor.mEncoding = new BipEncoding(BipEncoding.USR_XXX, encoding); in setPropietaryEncoding()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/ |
D | BipEncodingTest.java | 33 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 …]
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | SmsCbHeader.java | 514 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/ |
D | encoding.md | 9 > (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 …]
|
D | dom.md | 34 …encoding 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. 226 …encoding 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…
|
D | sax.md | 124 …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.
|
D | stream.md | 124 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…
|
D | faq.md | 205 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/StatsD/lib/libkll/encoding/ |
D | encoder_test.cpp | 26 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/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CdmaSmsMessageTest.java | 335 int language, int encoding, String body, int cmasCategory, int responseType, in createCmasSmsMessage() argument 342 encodeBody(encoding, body, true, cmasBos); in createCmasSmsMessage() 384 int priority, int language, int encoding, String body) throws Exception { in createBroadcastSmsMessage() argument 389 encodeBody(encoding, body, false, bos); in createBroadcastSmsMessage() 405 private static void encodeBody(int encoding, String body, boolean isCmasRecord, in encodeBody() argument 407 if (encoding == ENCODING_7BIT_ASCII || encoding == ENCODING_IA5) { in encodeBody() 418 bos.write(5, (encoding & 0x1f)); in encodeBody() 429 } else if (encoding == ENCODING_GSM_7BIT_ALPHABET in encodeBody() 430 || encoding == ENCODING_GSM_DCS) { in encodeBody() 441 if (encoding == ENCODING_GSM_DCS) { in encodeBody() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/avrcp/ |
D | CoverArtTest.java | 99 private BipImageDescriptor getDescriptor(int encoding, int width, int height) { in getDescriptor() argument 101 .setEncoding(encoding) in getDescriptor() 110 BipEncoding encoding = format.getEncoding(); in containsThumbnailFormat() local 112 if (encoding == null || pixel == null) continue; in containsThumbnailFormat() 113 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in containsThumbnailFormat() 119 BipEncoding encoding = format.getEncoding(); in containsThumbnailFormat() local 121 if (encoding == null || pixel == null) continue; in containsThumbnailFormat() 122 if (encoding.getType() == BipEncoding.JPEG && PIXEL_THUMBNAIL.equals(pixel)) { in containsThumbnailFormat()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/map/ |
D | BluetoothMapSmsPdu.java | 103 SmsPdu(byte[] data, int encoding, int type, int languageTable) { in SmsPdu() argument 105 this.mEncoding = encoding; in SmsPdu() 118 public void setEncoding(int encoding) { in setEncoding() argument 119 this.mEncoding = encoding; in setEncoding() 529 int encoding; in getSubmitPdus() local 540 encoding = ted[3]; in getSubmitPdus() 552 newPdu = new SmsPdu(data, encoding, phoneType, languageTable); in getSubmitPdus() 559 destinationAddress, smsFragments.get(i), encoding, languageTable, in getSubmitPdus() 561 newPdu = new SmsPdu(data, encoding, phoneType, languageTable); in getSubmitPdus()
|
D | BluetoothMapUtils.java | 460 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()
|
D | BluetoothMapbMessageMime.java | 729 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/ |
D | kll.cpp | 82 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/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/helpers/ |
D | CoverArt.java | 151 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/apps/Dialer/java/com/android/voicemail/impl/transcribe/ |
D | TranscriptionTask.java | 67 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/modules/DnsResolver/doh/network/ |
D | driver.rs | 23 use crate::encoding; 144 let probe = encoding::probe_query()?; in force_probe() 145 let dns_request = encoding::dns_request(&probe, &self.info.url)?; in force_probe() 190 let request = encoding::dns_request(&query.query, &self.info.url)?; in send_query()
|
/packages/modules/common/build/ |
D | mainline_modules_sdks_test.py | 196 with open(abs_path, "r", encoding="utf8") as file: 277 with open(build_number_file, "w", encoding="utf8") as f: 374 with open(path_to_test_data(relative_path), "r", encoding="utf8") as f: 389 with open(path, "w", encoding="utf8") as f: 394 with open(path, "r", encoding="utf8") as f:
|
/packages/modules/StatsD/lib/libkll/proto/ |
D | kll-quantiles.proto | 45 // 'difference' encoding (also called 'delta' or 'incremental' encoding): 46 // The values are sorted by their natural order before encoding, and
|
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/hci/ |
D | le_advanced_scanning_test.py | 54 address=common.BluetoothAddress(address=bytes(random_address, encoding='utf8')), 78 gap_name.data = list(bytes(DEVICE_NAME, encoding='utf8')) 136 gap_name.data = list(bytes(DEVICE_NAME, encoding='utf8')) 310 gap_name.data = list(bytes(DEVICE_NAME, encoding='utf8')) 365 gap_name.data = list(bytes(DEVICE_NAME, encoding='utf8')) 419 gap_name.data = list(bytes(DEVICE_NAME, encoding='utf8')) 642 gap_name.data = list(bytes(DEVICE_NAME, encoding='utf8'))
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | Bmessage.java | 114 public Bmessage setEncoding(String encoding) { in setEncoding() argument 115 mBbodyEncoding = encoding; in setEncoding()
|