/external/fonttools/Tests/misc/ |
D | encodingTools_test.py | 2 from fontTools.misc.encodingTools import getEncoding 8 self.assertEqual(getEncoding(3, 0, None), "utf_16_be") # MS Symbol is Unicode as well 9 self.assertEqual(getEncoding(3, 1, None), "utf_16_be") 10 self.assertEqual(getEncoding(3, 10, None), "utf_16_be") 11 self.assertEqual(getEncoding(0, 3, None), "utf_16_be") 14 self.assertEqual(getEncoding(1, 0, 17), "mac_turkish") 15 self.assertEqual(getEncoding(1, 0, 37), "mac_romanian") 16 self.assertEqual(getEncoding(1, 0, 45), "mac_roman") 19 encoding = getEncoding(1, 1, 0) # Mac Japanese 24 self.assertEqual(getEncoding(10, 11, 12), None) [all …]
|
/external/llvm/lib/Bitcode/Reader/ |
D | BitstreamReader.cpp | 59 switch (Op.getEncoding()) { in readAbbreviatedField() 80 switch (Op.getEncoding()) { in skipAbbreviatedField() 119 if (Op.getEncoding() != BitCodeAbbrevOp::Array && in skipRecord() 120 Op.getEncoding() != BitCodeAbbrevOp::Blob) { in skipRecord() 125 if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in skipRecord() 135 switch (EltEnc.getEncoding()) { in skipRecord() 156 assert(Op.getEncoding() == BitCodeAbbrevOp::Blob); in skipRecord() 196 if (CodeOp.getEncoding() == BitCodeAbbrevOp::Array || in readRecord() 197 CodeOp.getEncoding() == BitCodeAbbrevOp::Blob) in readRecord() 209 if (Op.getEncoding() != BitCodeAbbrevOp::Array && in readRecord() [all …]
|
/external/llvm-project/llvm/lib/Bitstream/Reader/ |
D | BitstreamReader.cpp | 72 switch (Op.getEncoding()) { in readAbbreviatedField() 117 if (CodeOp.getEncoding() == BitCodeAbbrevOp::Array || in skipRecord() 118 CodeOp.getEncoding() == BitCodeAbbrevOp::Blob) in skipRecord() 133 if (Op.getEncoding() != BitCodeAbbrevOp::Array && in skipRecord() 134 Op.getEncoding() != BitCodeAbbrevOp::Blob) { in skipRecord() 141 if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in skipRecord() 154 switch (EltEnc.getEncoding()) { in skipRecord() 181 assert(Op.getEncoding() == BitCodeAbbrevOp::Blob); in skipRecord() 237 if (CodeOp.getEncoding() == BitCodeAbbrevOp::Array || in readRecord() 238 CodeOp.getEncoding() == BitCodeAbbrevOp::Blob) in readRecord() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Bitstream/Reader/ |
D | BitstreamReader.cpp | 72 switch (Op.getEncoding()) { in readAbbreviatedField() 117 if (CodeOp.getEncoding() == BitCodeAbbrevOp::Array || in skipRecord() 118 CodeOp.getEncoding() == BitCodeAbbrevOp::Blob) in skipRecord() 133 if (Op.getEncoding() != BitCodeAbbrevOp::Array && in skipRecord() 134 Op.getEncoding() != BitCodeAbbrevOp::Blob) { in skipRecord() 141 if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in skipRecord() 154 switch (EltEnc.getEncoding()) { in skipRecord() 180 assert(Op.getEncoding() == BitCodeAbbrevOp::Blob); in skipRecord() 235 if (CodeOp.getEncoding() == BitCodeAbbrevOp::Array || in readRecord() 236 CodeOp.getEncoding() == BitCodeAbbrevOp::Blob) in readRecord() [all …]
|
/external/fonttools/Tests/ttLib/tables/ |
D | _c_m_a_p_test.py | 28 self.assertEqual("utf_16_be", subtable.getEncoding()) 33 self.assertEqual("mac_roman", subtable.getEncoding()) 38 self.assertNotEqual(None, subtable.getEncoding()) 43 self.assertNotEqual(None, subtable.getEncoding()) 48 self.assertEqual(subtable.getEncoding(), None) 49 self.assertEqual(subtable.getEncoding("ascii"), "ascii") 50 self.assertEqual(subtable.getEncoding(default="xyz"), "xyz")
|
D | _n_a_m_e_test.py | 330 self.assertEqual("utf_16_be", name.getEncoding()) 335 self.assertEqual("mac_roman", name.getEncoding()) 340 self.assertEqual("mac_romanian", name.getEncoding()) 345 self.assertEqual("utf_16_be", name.getEncoding()) 425 self.assertEqual(name.getEncoding(), "mac_turkish") 427 self.assertEqual(name.getEncoding(), "mac_romanian") 429 self.assertEqual(name.getEncoding(), "mac_roman") 449 self.assertEqual(name.getEncoding(), "ascii") 450 self.assertEqual(name.getEncoding(None), None) 451 self.assertEqual(name.getEncoding(default=None), None)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 30 …private byte[] algorithmIdentifierEnc = getEncoding(BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIF… 49 this.algorithmIdentifierEnc = getEncoding(algID); in BCRSAPrivateKey() 75 this.algorithmIdentifierEnc = getEncoding(algID); in BCRSAPrivateKey() 165 algorithmIdentifierEnc = getEncoding(BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIFIER); in readObject() 193 private static byte[] getEncoding(AlgorithmIdentifier algorithmIdentifier) in getEncoding() method in BCRSAPrivateKey
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 34 …private byte[] algorithmIdentifierEnc = getEncoding(BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIF… 53 this.algorithmIdentifierEnc = getEncoding(algID); in BCRSAPrivateKey() 79 this.algorithmIdentifierEnc = getEncoding(algID); in BCRSAPrivateKey() 169 algorithmIdentifierEnc = getEncoding(BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIFIER); in readObject() 197 private static byte[] getEncoding(AlgorithmIdentifier algorithmIdentifier) in getEncoding() method in BCRSAPrivateKey
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | BCRSAPrivateKey.java | 34 …private byte[] algorithmIdentifierEnc = getEncoding(BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIF… 53 this.algorithmIdentifierEnc = getEncoding(algID); in BCRSAPrivateKey() 79 this.algorithmIdentifierEnc = getEncoding(algID); in BCRSAPrivateKey() 169 algorithmIdentifierEnc = getEncoding(BCRSAPublicKey.DEFAULT_ALGORITHM_IDENTIFIER); in readObject() 197 private static byte[] getEncoding(AlgorithmIdentifier algorithmIdentifier) in getEncoding() method in BCRSAPrivateKey
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/ |
D | ReaderBomTest.java | 51 assertEquals(Charset.forName("UTF-8"), reader.getEncoding()); in testNoBom() 77 assertEquals(Charset.forName("UTF-8"), reader.getEncoding()); in testUtf8Bom() 95 assertEquals(Charset.forName("UTF-16LE"), reader.getEncoding()); in testUnicodeLeBom() 113 assertEquals(Charset.forName("UTF-16BE"), reader.getEncoding()); in testUnicodeBeBom()
|
/external/apache-http/src/org/apache/commons/codec/net/ |
D | RFC1522Codec.java | 80 buffer.append(getEncoding()); in encodeText() 125 if (!getEncoding().equalsIgnoreCase(encoding)) { in decodeText() 141 protected abstract String getEncoding(); in getEncoding() method in RFC1522Codec
|
/external/swiftshader/third_party/subzero/pnacl-llvm/ |
D | NaClBitstreamReader.cpp | 89 switch (Op.getEncoding()) { in skipAbbreviatedField() 126 switch (Op.getEncoding()) { in skipRecord() 151 switch (Op.getEncoding()) { in readRecordAbbrevField() 175 switch (Op.getEncoding()) { in readArrayAbbreviatedField() 242 NaClBitCodeAbbrevOp::Encoding NaClBitstreamCursor::getEncoding(uint64_t Value) { in getEncoding() function in NaClBitstreamCursor 270 NaClBitCodeAbbrevOp::Encoding E = getEncoding(Read(3)); in ReadAbbrevRecord() 327 NaClBitCodeAbbrevOp::Encoding E = getEncoding(Read(3)); in SkipAbbrevRecord()
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _n_a_m_e.py | 5 from fontTools.misc.encodingTools import getEncoding 372 encoding = getEncoding(1, macScript, macLang, default="ascii") 401 def getEncoding(self, default='ascii'): member in NameRecord 407 return getEncoding(self.platformID, self.platEncID, self.langID, default) 410 return self.getEncoding(None) in ['utf_16_be', 'ucs2be', 'ascii', 'latin1'] 440 encoding = self.getEncoding() 481 return tobytes(self.string, encoding=self.getEncoding(), errors=errors) 516 encoding = self.getEncoding()
|
/external/apache-harmony/logging/src/test/java/org/apache/harmony/logging/tests/java/util/logging/ |
D | StreamHandlerTest.java | 106 assertNull(h.getEncoding()); in testConstructor_NoParameter_NoProperties() 132 assertEquals("iso-8859-1", h.getEncoding()); in testConstructor_NoParameter_ValidProperties() 157 assertNull(h.getEncoding()); in testConstructor_NoParameter_InvalidProperties() 160 assertNull(h.getEncoding()); in testConstructor_NoParameter_InvalidProperties() 182 assertNull(h.getEncoding()); in testConstructor_HasParameters_NoProperties() 210 assertEquals("iso-8859-1", h.getEncoding()); in testConstructor_HasParameters_ValidProperties() 236 assertNull(h.getEncoding()); in testConstructor_HasParameters_InvalidProperties() 619 assertEquals("iso-8859-1", h.getEncoding()); in testSetEncoding_Normal() 638 assertEquals("iso-8859-1", h.getEncoding()); in testSetEncoding_AfterPublish() 647 assertEquals("iso8859-1", h.getEncoding()); in testSetEncoding_AfterPublish() [all …]
|
D | HandlerTest.java | 77 assertNull(h.getEncoding()); in testConstructor() 104 assertNull(h.getEncoding()); in testConstructor_Properties() 139 assertEquals("iso-8859-1", h.getEncoding()); in testGetSetEncoding_Normal() 148 assertNull(h.getEncoding()); in testGetSetEncoding_Null() 161 assertNull(h.getEncoding()); in testGetSetEncoding_Unsupported()
|
D | SocketHandlerTest.java | 178 assertNull(h.getEncoding()); in testConstructor_NoProperties() 212 assertNull(h.getEncoding()); in testConstructor_NoBasicProperties() 249 assertEquals(h.getEncoding(), "iso-8859-1"); in testConstructor_ValidProperties() 263 assertEquals(h.getEncoding(), "iso-8859-1"); in testConstructor_ValidProperties() 293 assertNull(h.getEncoding()); in testConstructor_InvalidBasicProperties() 295 assertNull(h.getEncoding()); in testConstructor_InvalidBasicProperties() 309 assertNull(h.getEncoding()); in testConstructor_InvalidBasicProperties() 311 assertNull(h.getEncoding()); in testConstructor_InvalidBasicProperties()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Bitstream/ |
D | BitstreamWriter.h | 273 switch (Op.getEncoding()) { in EmitAbbreviatedField() 314 assert(Op.getEncoding() != BitCodeAbbrevOp::Array && in EmitRecordWithAbbrevImpl() 315 Op.getEncoding() != BitCodeAbbrevOp::Blob && in EmitRecordWithAbbrevImpl() 328 } else if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in EmitRecordWithAbbrevImpl() 355 } else if (Op.getEncoding() == BitCodeAbbrevOp::Blob) { in EmitRecordWithAbbrevImpl() 481 Emit(Op.getEncoding(), 3); in EncodeAbbrev()
|
/external/llvm/include/llvm/Bitcode/ |
D | BitstreamWriter.h | 278 switch (Op.getEncoding()) { in EmitAbbreviatedField() 319 assert(Op.getEncoding() != BitCodeAbbrevOp::Array && in EmitRecordWithAbbrevImpl() 320 Op.getEncoding() != BitCodeAbbrevOp::Blob && in EmitRecordWithAbbrevImpl() 333 } else if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in EmitRecordWithAbbrevImpl() 360 } else if (Op.getEncoding() == BitCodeAbbrevOp::Blob) { in EmitRecordWithAbbrevImpl() 486 Emit(Op.getEncoding(), 3); in EncodeAbbrev()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | BERApplicationSpecific.java | 47 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in BERApplicationSpecific() 50 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in BERApplicationSpecific
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/asn1/ |
D | DERApplicationSpecific.java | 63 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in DERApplicationSpecific() 66 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in DERApplicationSpecific
|
D | DLApplicationSpecific.java | 63 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in DLApplicationSpecific() 66 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in DLApplicationSpecific
|
/external/oauth/core/src/main/java/net/oauth/http/ |
D | HttpMessageDecoder.java | 40 String encoding = getEncoding(message); in decode() 52 private static String getEncoding(HttpMessage message) { in getEncoding() method in HttpMessageDecoder
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/ |
D | DLApplicationSpecific.java | 63 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in DLApplicationSpecific() 66 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in DLApplicationSpecific
|
D | DERApplicationSpecific.java | 63 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in DERApplicationSpecific() 66 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in DERApplicationSpecific
|
D | BERApplicationSpecific.java | 49 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in BERApplicationSpecific() 52 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in BERApplicationSpecific
|