/external/fonttools/Tests/misc/ |
D | encodingTools_test.py | 4 from fontTools.misc.encodingTools import getEncoding 10 self.assertEqual(getEncoding(3, 0, None), "utf_16_be") # MS Symbol is Unicode as well 11 self.assertEqual(getEncoding(3, 1, None), "utf_16_be") 12 self.assertEqual(getEncoding(3, 10, None), "utf_16_be") 13 self.assertEqual(getEncoding(0, 3, None), "utf_16_be") 16 self.assertEqual(getEncoding(1, 0, 17), "mac_turkish") 17 self.assertEqual(getEncoding(1, 0, 37), "mac_romanian") 18 self.assertEqual(getEncoding(1, 0, 45), "mac_roman") 21 encoding = getEncoding(1, 1, 0) # Mac Japanese 26 self.assertEqual(getEncoding(10, 11, 12), None) [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/ |
D | BitstreamReader.cpp | 56 switch (Op.getEncoding()) { in readAbbreviatedField() 77 switch (Op.getEncoding()) { in skipAbbreviatedField() 112 if (CodeOp.getEncoding() == BitCodeAbbrevOp::Array || in skipRecord() 113 CodeOp.getEncoding() == BitCodeAbbrevOp::Blob) in skipRecord() 123 if (Op.getEncoding() != BitCodeAbbrevOp::Array && in skipRecord() 124 Op.getEncoding() != BitCodeAbbrevOp::Blob) { in skipRecord() 129 if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in skipRecord() 139 switch (EltEnc.getEncoding()) { in skipRecord() 158 assert(Op.getEncoding() == BitCodeAbbrevOp::Blob); in skipRecord() 199 if (CodeOp.getEncoding() == BitCodeAbbrevOp::Array || in readRecord() [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/fonttools/Tests/ttLib/tables/ |
D | _n_a_m_e_test.py | 195 self.assertEqual("utf_16_be", name.getEncoding()) 200 self.assertEqual("mac_roman", name.getEncoding()) 205 self.assertEqual("mac_romanian", name.getEncoding()) 210 self.assertEqual("utf_16_be", name.getEncoding()) 285 self.assertEqual(name.getEncoding(), "mac_turkish") 287 self.assertEqual(name.getEncoding(), "mac_romanian") 289 self.assertEqual(name.getEncoding(), "mac_roman") 297 self.assertEqual(name.getEncoding(), "ascii") 298 self.assertEqual(name.getEncoding(None), None) 299 self.assertEqual(name.getEncoding(default=None), None)
|
D | _c_m_a_p_test.py | 30 self.assertEqual("utf_16_be", subtable.getEncoding()) 35 self.assertEqual("mac_roman", subtable.getEncoding()) 40 self.assertNotEqual(None, subtable.getEncoding()) 45 self.assertNotEqual(None, subtable.getEncoding()) 50 self.assertEqual(subtable.getEncoding(), None) 51 self.assertEqual(subtable.getEncoding("ascii"), "ascii") 52 self.assertEqual(subtable.getEncoding(default="xyz"), "xyz")
|
/external/fonttools/Lib/fontTools/ttLib/tables/ |
D | _n_a_m_e.py | 7 from fontTools.misc.encodingTools import getEncoding 284 encoding = getEncoding(1, macScript, macLang, default="ascii") 313 def getEncoding(self, default='ascii'): member in NameRecord 319 return getEncoding(self.platformID, self.platEncID, self.langID, default) 322 return self.getEncoding(None) in ['utf_16_be', 'ucs2be', 'ascii', 'latin1'] 352 encoding = self.getEncoding() 393 return tobytes(self.string, encoding=self.getEncoding(), errors=errors) 434 encoding = self.getEncoding()
|
/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/swiftshader/third_party/subzero/pnacl-llvm/ |
D | NaClBitstreamReader.cpp | 91 switch (Op.getEncoding()) { in skipAbbreviatedField() 128 switch (Op.getEncoding()) { in skipRecord() 153 switch (Op.getEncoding()) { in readRecordAbbrevField() 177 switch (Op.getEncoding()) { in readArrayAbbreviatedField() 246 getEncoding(uint64_t Value) { in getEncoding() function in NaClBitstreamCursor 271 NaClBitCodeAbbrevOp::Encoding E = getEncoding(Read(3)); in ReadAbbrevRecord() 325 NaClBitCodeAbbrevOp::Encoding E = getEncoding(Read(3)); in SkipAbbrevRecord()
|
/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/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()
|
D | MemoryHandlerTest.java | 109 assertNull(handler.getEncoding()); in testClose() 124 assertNull(handler.getEncoding()); in testFlush() 161 assertNull(handler.getEncoding()); in testMemoryHandler() 245 assertNull(handler.getEncoding()); in testMemoryHandlerDefaultValue() 258 assertNull(handler.getEncoding()); in testMemoryHandlerHandlerintLevel()
|
/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()
|
D | BitCodes.h | 111 Encoding getEncoding() const { assert(isEncoding()); return (Encoding)Enc; } in getEncoding() function 117 bool hasEncodingData() const { return hasEncodingData(getEncoding()); } in hasEncodingData()
|
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Bitcode/ |
D | BitstreamWriter.h | 274 switch (Op.getEncoding()) { in EmitAbbreviatedField() 315 assert(Op.getEncoding() != BitCodeAbbrevOp::Array && in EmitRecordWithAbbrevImpl() 316 Op.getEncoding() != BitCodeAbbrevOp::Blob && in EmitRecordWithAbbrevImpl() 329 } else if (Op.getEncoding() == BitCodeAbbrevOp::Array) { in EmitRecordWithAbbrevImpl() 356 } else if (Op.getEncoding() == BitCodeAbbrevOp::Blob) { in EmitRecordWithAbbrevImpl() 482 Emit(Op.getEncoding(), 3); in EncodeAbbrev()
|
D | BitCodes.h | 118 Encoding getEncoding() const { assert(isEncoding()); return (Encoding)Enc; } in getEncoding() function 124 bool hasEncodingData() const { return hasEncodingData(getEncoding()); } in hasEncodingData()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/ |
D | DERApplicationSpecific.java | 61 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in DERApplicationSpecific() 64 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in DERApplicationSpecific
|
D | DLApplicationSpecific.java | 61 …super(constructed || object.toASN1Primitive().isConstructed(), tag, getEncoding(constructed, objec… in DLApplicationSpecific() 64 private static byte[] getEncoding(boolean explicit, ASN1Encodable object) in getEncoding() method in DLApplicationSpecific
|
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/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
|
/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/snakeyaml/src/main/java/org/yaml/snakeyaml/reader/ |
D | UnicodeReader.java | 75 public String getEncoding() { in getEncoding() method in UnicodeReader 76 return internalIn2.getEncoding(); in getEncoding()
|