/libcore/luni/src/test/java/tests/security/cert/ |
D | PolicyQualifierInfoTest.java | 77 byte[] encoding = getDerEncoding(); in testPolicyQualifierInfo02() 79 encoding[1] = (byte)0x27; in testPolicyQualifierInfo02() 83 new PolicyQualifierInfo(encoding); in testPolicyQualifierInfo02() 90 encoding = getDerEncoding(); in testPolicyQualifierInfo02() 93 encoding[2] = (byte)13; in testPolicyQualifierInfo02() 96 new PolicyQualifierInfo(encoding); in testPolicyQualifierInfo02() 111 byte[] encoding = getDerEncoding(); in testPolicyQualifierInfo03() 113 new PolicyQualifierInfo(encoding); in testPolicyQualifierInfo03() 124 byte[] encoding = getDerEncoding(); in testPolicyQualifierInfo04() 125 byte[] encodingCopy = encoding.clone(); in testPolicyQualifierInfo04() [all …]
|
/libcore/ojluni/src/main/java/sun/security/provider/ |
D | X509Factory.java | 157 byte[] encoding; in intern() 159 encoding = ((X509CertImpl)c).getEncodedInternal(); in intern() 161 encoding = c.getEncoded(); in intern() 163 X509CertImpl newC = getFromCache(certCache, encoding); in intern() 170 newC = new X509CertImpl(encoding); in intern() 171 encoding = newC.getEncodedInternal(); in intern() 173 addToCache(certCache, encoding, newC); in intern() 193 byte[] encoding; in intern() 195 encoding = ((X509CRLImpl)c).getEncodedInternal(); in intern() 197 encoding = c.getEncoded(); in intern() [all …]
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
D | MyCertPath.java | 52 private final byte[] encoding; field in MyCertPath 58 public MyCertPath(byte[] encoding) { in MyCertPath() argument 60 this.encoding = encoding; in MyCertPath() 62 certificates.add(new MyCertificate("MyEncoding", encoding)); in MyCertPath() 81 return encoding.clone(); in getEncoded() 91 public byte[] getEncoded(String encoding) in getEncoded() argument 93 if (getType().equals(encoding)) { in getEncoded() 94 return this.encoding.clone(); in getEncoded() 97 encoding); in getEncoded()
|
D | MyCertificate.java | 44 private final byte[] encoding; field in MyCertificate 54 public MyCertificate(String type, byte[] encoding) { in MyCertificate() argument 57 this.encoding = encoding; in MyCertificate() 65 return encoding.clone(); in getEncoded()
|
D | MyFailingCertPath.java | 7 public MyFailingCertPath(byte[] encoding) { in MyFailingCertPath() argument 8 super(encoding); in MyFailingCertPath()
|
D | MyFailingCertificate.java | 7 public MyFailingCertificate(String type, byte[] encoding) { in MyFailingCertificate() argument 8 super(type, encoding); in MyFailingCertificate()
|
D | MyCertificateFactorySpi.java | 111 public CertPath engineGenerateCertPath(InputStream inStream, String encoding) in engineGenerateCertPath() argument 116 if (encoding.length() == 0) { in engineGenerateCertPath()
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | ObjectIdentifier.java | 60 private byte[] encoding = null; field in ObjectIdentifier 113 if (encoding == null) { // from an old version in readObject() 200 encoding = new byte[pos]; in ObjectIdentifier() 201 System.arraycopy(tmp, 0, encoding, 0, pos); in ObjectIdentifier() 264 encoding = new byte[len]; in ObjectIdentifier() 265 in.getBytes(encoding); in ObjectIdentifier() 266 check(encoding); in ObjectIdentifier() 277 encoding = new byte[in.available()]; in ObjectIdentifier() 278 in.getBytes(encoding); in ObjectIdentifier() 279 check(encoding); in ObjectIdentifier() [all …]
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | DistributionPointName.java | 130 public DistributionPointName(DerValue encoding) throws IOException { in DistributionPointName() argument 132 if (encoding.isContextSpecific(TAG_FULL_NAME) && in DistributionPointName() 133 encoding.isConstructed()) { in DistributionPointName() 135 encoding.resetTag(DerValue.tag_Sequence); in DistributionPointName() 136 fullName = new GeneralNames(encoding); in DistributionPointName() 138 } else if (encoding.isContextSpecific(TAG_RELATIVE_NAME) && in DistributionPointName() 139 encoding.isConstructed()) { in DistributionPointName() 141 encoding.resetTag(DerValue.tag_Set); in DistributionPointName() 142 relativeName = new RDN(encoding); in DistributionPointName()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | Handler.java | 63 private volatile String encoding; field in Handler 149 public synchronized void setEncoding(String encoding) in setEncoding() argument 152 if (encoding != null) { in setEncoding() 154 if(!java.nio.charset.Charset.isSupported(encoding)) { in setEncoding() 155 throw new UnsupportedEncodingException(encoding); in setEncoding() 158 throw new UnsupportedEncodingException(encoding); in setEncoding() 161 this.encoding = encoding; in setEncoding() 171 return encoding; in getEncoding()
|
D | StreamHandler.java | 144 String encoding = getEncoding(); in setOutputStream() local 145 if (encoding == null) { in setOutputStream() 149 writer = new OutputStreamWriter(output, encoding); in setOutputStream() 172 public synchronized void setEncoding(String encoding) in setEncoding() argument 174 super.setEncoding(encoding); in setEncoding() 180 if (encoding == null) { in setEncoding() 183 writer = new OutputStreamWriter(output, encoding); in setEncoding()
|
D | XMLFormatter.java | 233 String encoding; in getHead() local 237 encoding = h.getEncoding(); in getHead() 239 encoding = null; in getHead() 242 if (encoding == null) { in getHead() 244 encoding = java.nio.charset.Charset.defaultCharset().name(); in getHead() 248 Charset cs = Charset.forName(encoding); in getHead() 249 encoding = cs.name(); in getHead() 256 sb.append(encoding); in getHead()
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Locator2Impl.java | 31 private String encoding; field in Locator2Impl 58 encoding = l2.getEncoding (); in Locator2Impl() 84 { return encoding; } in getEncoding() 106 public void setEncoding (String encoding) in setEncoding() argument 107 { this.encoding = encoding; } in setEncoding()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | NetworkClient.java | 65 protected static String encoding; field in NetworkClient 87 encoding = encs[0]; 89 if (!isASCIISuperset (encoding)) { 90 encoding = "ISO8859_1"; 93 encoding = "ISO8859_1"; 116 private static boolean isASCIISuperset (String encoding) throws Exception { in isASCIISuperset() argument 127 byte[] b = chkS.getBytes (encoding); in isASCIISuperset() 140 true, encoding); in openServer() 142 throw new InternalError(encoding +"encoding not found", e); in openServer()
|
/libcore/luni/src/main/java/org/xml/sax/ |
D | InputSource.java | 273 public void setEncoding (String encoding) in setEncoding() argument 275 this.encoding = encoding; in setEncoding() 291 return encoding; in getEncoding() 337 private String encoding; field in InputSource
|
/libcore/luni/src/main/java/org/apache/harmony/xml/ |
D | ExpatParser.java | 66 private final String encoding; field in ExpatParser 87 /*package*/ ExpatParser(String encoding, ExpatReader xmlReader, in ExpatParser() argument 101 this.encoding = encoding == null ? DEFAULT_ENCODING : encoding; in ExpatParser() 103 this.encoding, in ExpatParser() 111 private ExpatParser(String encoding, ExpatReader xmlReader, long pointer, in ExpatParser() argument 113 this.encoding = encoding; in ExpatParser() 125 private native long initialize(String encoding, boolean namespacesEnabled); in initialize() argument 312 String encoding = pickEncoding(inputSource); in handleExternalEntity() local 315 EntityParser entityParser = new EntityParser(encoding, xmlReader, in handleExternalEntity() 334 String encoding = inputSource.getEncoding(); in pickEncoding() local [all …]
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | KeyStoreTestSupport.java | 119 private final byte[] encoding; field in KeyStoreTestSupport.MCertificate 123 public MCertificate(String type, byte[] encoding) { in MCertificate() argument 125 this.encoding = encoding; in MCertificate() 130 return encoding.clone(); in getEncoded() 155 return encoding; in getPublicKey()
|
/libcore/xml/src/main/java/com/android/org/kxml2/io/ |
D | KXmlSerializer.java | 49 private String encoding; field in KXmlSerializer 358 public void setOutput(OutputStream os, String encoding) in setOutput() argument 363 encoding == null in setOutput() 365 : new OutputStreamWriter(os, encoding)); in setOutput() 366 this.encoding = encoding; in setOutput() 367 if (encoding != null && encoding.toLowerCase(Locale.US).startsWith("utf")) { in setOutput() 372 public void startDocument(String encoding, Boolean standalone) throws IOException { in startDocument() argument 375 if (encoding != null) { in startDocument() 376 this.encoding = encoding; in startDocument() 377 if (encoding.toLowerCase(Locale.US).startsWith("utf")) { in startDocument() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldAndroidLocaleTest.java | 162 for (String encoding : encodings) { in testICUConverters() 163 assertTrue("Charset " + encoding + " must be supported", Charset.isSupported(encoding)); in testICUConverters() 165 Charset cs = Charset.forName(encoding); in testICUConverters()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStoreSpiTest.java | 233 private final byte[] encoding; field in MyCertificate 235 public MyCertificate(String type, byte[] encoding) { in MyCertificate() argument 238 this.encoding = encoding; in MyCertificate() 243 return encoding.clone(); in getEncoded()
|
/libcore/ojluni/src/main/java/java/util/ |
D | XMLUtils.java | 132 String encoding) in save() argument 160 emitDocument(doc, os, encoding); in save() 163 static void emitDocument(Document doc, OutputStream os, String encoding) in emitDocument() argument 173 t.setOutputProperty(OutputKeys.ENCODING, encoding); in emitDocument()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | X509CertPath.java | 152 public X509CertPath(InputStream is, String encoding) in X509CertPath() argument 156 switch (encoding) { in X509CertPath() 347 public byte[] getEncoded(String encoding) in getEncoded() argument 349 switch (encoding) { in getEncoded()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/provider/ |
D | X509Factory.java | 51 sun.security.util.Cache<K, V> cache, byte[] encoding) { in getFromCache() argument 57 sun.security.util.Cache<java.lang.Object, V> cache, byte[] encoding, V value) { in addToCache() argument
|
/libcore/ojluni/annotations/hiddenapi/java/util/logging/ |
D | Handler.java | 52 public synchronized void setEncoding(java.lang.String encoding) in setEncoding() argument 99 private volatile java.lang.String encoding; field in Handler
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlSerializer.java | 94 void setOutput (OutputStream os, String encoding) in setOutput() argument 109 void startDocument (String encoding, Boolean standalone) in startDocument() argument
|