/libcore/luni/src/main/java/java/util/logging/ |
D | XMLFormatter.java | 56 StringBuilder sb = new StringBuilder(); in format() local 57 sb.append("<record>").append(nl); in format() 58 append(sb, 1, "date", date); in format() 59 append(sb, 1, "millis", time); in format() 60 append(sb, 1, "sequence", r.getSequenceNumber()); in format() 62 append(sb, 1, "logger", r.getLoggerName()); in format() 64 append(sb, 1, "level", r.getLevel().getName()); in format() 66 append(sb, 1, "class", r.getSourceClassName()); in format() 69 append(sb, 1, "method", r.getSourceMethodName()); in format() 71 append(sb, 1, "thread", r.getThreadID()); in format() [all …]
|
D | SimpleFormatter.java | 47 StringBuilder sb = new StringBuilder(); in format() local 48 sb.append(MessageFormat.format("{0, date} {0, time} ", in format() 50 sb.append(r.getSourceClassName()).append(" "); in format() 51 sb.append(r.getSourceMethodName()).append(System.lineSeparator()); in format() 52 sb.append(r.getLevel().getName()).append(": "); in format() 53 sb.append(formatMessage(r)).append(System.lineSeparator()); in format() 55 sb.append("Throwable occurred: "); in format() 62 sb.append(sw.toString()); in format() 67 return sb.toString(); in format()
|
/libcore/luni/src/main/java/org/apache/harmony/security/utils/ |
D | Array.java | 63 StringBuilder sb = new StringBuilder(); in toString() local 68 sb.append(prefix); in toString() 71 sb.append(offsetPrefix[offset.length()]); in toString() 72 sb.append(offset); in toString() 77 sb.append(' '); in toString() 79 sb.append(Byte.toHexString(array[i], false)); in toString() 88 sb.append(' '); in toString() 92 sb.append(' '); in toString() 93 sb.append(charForm.toString()); in toString() 94 sb.append('\n'); in toString() [all …]
|
/libcore/luni/src/main/java/java/util/regex/ |
D | PatternSyntaxException.java | 91 StringBuilder sb = new StringBuilder(); in getMessage() local 93 sb.append(desc); in getMessage() 98 sb.append(' '); in getMessage() 100 sb.append("near index "); in getMessage() 101 sb.append(index); in getMessage() 102 sb.append(':'); in getMessage() 106 sb.append('\n'); in getMessage() 107 sb.append(pattern); in getMessage() 112 sb.append('\n'); in getMessage() 113 sb.append(spaces); in getMessage() [all …]
|
/libcore/luni/src/main/java/libcore/util/ |
D | Objects.java | 44 StringBuilder sb = new StringBuilder(); in toString() local 45 sb.append(c.getSimpleName()).append('['); in toString() 56 sb.append(','); in toString() 59 sb.append(f.getName()); in toString() 60 sb.append('='); in toString() 64 sb.append(Arrays.toString((boolean[]) value)); in toString() 66 sb.append(Arrays.toString((byte[]) value)); in toString() 68 sb.append(Arrays.toString((char[]) value)); in toString() 70 sb.append(Arrays.toString((double[]) value)); in toString() 72 sb.append(Arrays.toString((float[]) value)); in toString() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StringBuilderBenchmark.java | 32 StringBuilder sb = new StringBuilder(); in timeAppendBoolean() local 34 sb.append(true); in timeAppendBoolean() 41 StringBuilder sb = new StringBuilder(); in timeAppendChar() local 43 sb.append('c'); in timeAppendChar() 51 StringBuilder sb = new StringBuilder(); in timeAppendCharArray() local 53 sb.append(chars); in timeAppendCharArray() 61 StringBuilder sb = new StringBuilder(); in timeAppendCharSequence() local 63 sb.append(cs); in timeAppendCharSequence() 71 StringBuilder sb = new StringBuilder(); in timeAppendDouble() local 73 sb.append(d); in timeAppendDouble() [all …]
|
D | FormatterBenchmark.java | 37 StringBuilder sb = new StringBuilder(); in timeStringBuilder_NoFormatting() local 38 … sb.append("this is a reasonably short string that doesn't actually need any formatting"); in timeStringBuilder_NoFormatting() 61 StringBuilder sb = new StringBuilder(); in timeStringBuilder_OneInt() local 62 sb.append("this is a reasonably short string that has an int "); in timeStringBuilder_OneInt() 63 sb.append(1024); in timeStringBuilder_OneInt() 64 sb.append(" in it"); in timeStringBuilder_OneInt() 78 StringBuilder sb = new StringBuilder(); in timeStringBuilder_OneHexInt() local 79 sb.append("this is a reasonably short string that has an int "); in timeStringBuilder_OneHexInt() 80 sb.append(Integer.toHexString(1024)); in timeStringBuilder_OneHexInt() 81 sb.append(" in it"); in timeStringBuilder_OneHexInt() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
D | ReasonCode.java | 74 @Override public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument 75 sb.append(prefix).append("Reason Code: [ "); in dumpValue() 78 sb.append("unspecified"); in dumpValue() 81 sb.append("keyCompromise"); in dumpValue() 84 sb.append("cACompromise"); in dumpValue() 87 sb.append("affiliationChanged"); in dumpValue() 90 sb.append("superseded"); in dumpValue() 93 sb.append("cessationOfOperation"); in dumpValue() 96 sb.append("certificateHold"); in dumpValue() 99 sb.append("removeFromCRL"); in dumpValue() [all …]
|
D | DistributionPoint.java | 82 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument 83 sb.append(prefix); in dumpValue() 84 sb.append("Distribution Point: [\n"); in dumpValue() 86 distributionPoint.dumpValue(sb, prefix + " "); in dumpValue() 89 reasons.dumpValue(sb, prefix + " "); in dumpValue() 92 sb.append(prefix); in dumpValue() 93 sb.append(" CRL Issuer: [\n"); in dumpValue() 94 cRLIssuer.dumpValue(sb, prefix + " "); in dumpValue() 95 sb.append(prefix); in dumpValue() 96 sb.append(" ]\n"); in dumpValue() [all …]
|
D | ExtensionValue.java | 43 public void dumpValue(StringBuilder sb, String prefix) { in dumpValue() argument 44 sb.append(prefix).append("Unparseable extension value:\n"); in dumpValue() 49 sb.append("NULL\n"); in dumpValue() 51 sb.append(Array.toString(encoding, prefix)); in dumpValue() 55 public void dumpValue(StringBuilder sb) { in dumpValue() argument 56 dumpValue(sb, ""); in dumpValue()
|
D | TBSCertificate.java | 197 public void dumpValue(StringBuilder sb) { in dumpValue() argument 198 sb.append('['); in dumpValue() 199 sb.append("\n Version: V").append(version+1); in dumpValue() 200 sb.append("\n Subject: ").append(subject.getName(X500Principal.RFC2253)); in dumpValue() 201 sb.append("\n Signature Algorithm: "); in dumpValue() 202 signature.dumpValue(sb); in dumpValue() 203 sb.append("\n Key: ").append(subjectPublicKeyInfo.getPublicKey().toString()); in dumpValue() 204 sb.append("\n Validity: [From: ").append(validity.getNotBefore()); in dumpValue() 205 sb.append("\n To: ").append(validity.getNotAfter()).append(']'); in dumpValue() 206 sb.append("\n Issuer: ").append(issuer.getName(X500Principal.RFC2253)); in dumpValue() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
D | PinFailureLogger.java | 47 StringBuilder sb = new StringBuilder(); in writeToLog() local 48 sb.append(cn); in writeToLog() 49 sb.append("|"); in writeToLog() 50 sb.append(chainContainsUserCert); in writeToLog() 51 sb.append("|"); in writeToLog() 52 sb.append(pinIsEnforcing); in writeToLog() 53 sb.append("|"); in writeToLog() 56 sb.append(Base64.encode(cert.getEncoded())); in writeToLog() 58 sb.append("Error: could not encode certificate"); in writeToLog() 60 sb.append("|"); in writeToLog() [all …]
|
D | OpenSSLRSAPrivateCrtKey.java | 247 final StringBuilder sb = new StringBuilder("OpenSSLRSAPrivateCrtKey{"); in toString() local 251 sb.append("key="); in toString() 252 sb.append(getOpenSSLKey()); in toString() 253 sb.append('}'); in toString() 257 sb.append("modulus="); in toString() 258 sb.append(getModulus().toString(16)); in toString() 259 sb.append(','); in toString() 262 sb.append("publicExponent="); in toString() 263 sb.append(publicExponent.toString(16)); in toString() 264 sb.append(','); in toString() [all …]
|
/libcore/luni/src/main/java/java/lang/ |
D | RealToString.java | 50 private static String resultOrSideEffect(AbstractStringBuilder sb, String s) { in resultOrSideEffect() argument 51 if (sb != null) { in resultOrSideEffect() 52 sb.append0(s); in resultOrSideEffect() 62 public void appendDouble(AbstractStringBuilder sb, double d) { in appendDouble() argument 63 convertDouble(sb, d); in appendDouble() 66 private String convertDouble(AbstractStringBuilder sb, double inputNumber) { in convertDouble() argument 89 return resultOrSideEffect(sb, quickResult); in convertDouble() 115 AbstractStringBuilder dst = (sb != null) ? sb : new StringBuilder(26); in convertDouble() 122 return (sb != null) ? null : dst.toString(); in convertDouble() 129 public void appendFloat(AbstractStringBuilder sb, float f) { in appendFloat() argument [all …]
|
/libcore/luni/src/main/java/java/lang/reflect/ |
D | AccessibleObject.java | 257 void appendArrayGenericType(StringBuilder sb, Type[] types) { in appendArrayGenericType() argument 259 appendGenericType(sb, types[0]); in appendArrayGenericType() 261 sb.append(','); in appendArrayGenericType() 262 appendGenericType(sb, types[i]); in appendArrayGenericType() 275 void appendGenericType(StringBuilder sb, Type obj) { in appendGenericType() argument 277 sb.append(((TypeVariable)obj).getName()); in appendGenericType() 279 sb.append(obj.toString()); in appendGenericType() 282 appendGenericType(sb, simplified); in appendGenericType() 283 sb.append("[]"); in appendGenericType() 290 sb.append(as[len].substring(1, as[len].length()-1)); in appendGenericType() [all …]
|
/libcore/luni/src/main/java/java/security/cert/ |
D | PKIXCertPathValidatorResult.java | 111 StringBuilder sb = new StringBuilder(super.toString()); in toString() local 112 sb.append(": [\n Trust Anchor: "); in toString() 113 sb.append(trustAnchor.toString()); in toString() 114 sb.append("\n Policy Tree: "); in toString() 115 sb.append(policyTree == null ? "no valid policy tree\n" in toString() 117 sb.append("\n Subject Public Key: "); in toString() 118 sb.append(subjectPublicKey.toString()); in toString() 119 sb.append("\n]"); in toString() 120 return sb.toString(); in toString()
|
D | TrustAnchor.java | 238 StringBuilder sb = new StringBuilder("TrustAnchor: [\n"); in toString() local 240 sb.append("Trusted CA certificate: "); in toString() 241 sb.append(trustedCert); in toString() 242 sb.append("\n"); in toString() 245 sb.append("Trusted CA Name: "); in toString() 246 sb.append(caPrincipal); in toString() 247 sb.append("\n"); in toString() 250 sb.append("Trusted CA Public Key: "); in toString() 251 sb.append(caPublicKey); in toString() 252 sb.append("\n"); in toString() [all …]
|
D | PKIXParameters.java | 547 StringBuilder sb = in toString() local 549 sb.append(trustAnchors); in toString() 550 sb.append("\n Revocation Enabled: "); in toString() 551 sb.append(revocationEnabled); in toString() 552 sb.append("\n Explicit Policy Required: "); in toString() 553 sb.append(explicitPolicyRequired); in toString() 554 sb.append("\n Policy Mapping Inhibited: "); in toString() 555 sb.append(policyMappingInhibited); in toString() 556 sb.append("\n Any Policy Inhibited: "); in toString() 557 sb.append(anyPolicyInhibited); in toString() [all …]
|
D | CertPath.java | 114 StringBuilder sb = new StringBuilder(getType()); in toString() local 115 sb.append(" Cert Path, len="); in toString() 116 sb.append(getCertificates().size()); in toString() 117 sb.append(": [\n"); in toString() 120 sb.append("---------------certificate "); in toString() 121 sb.append(n); in toString() 122 sb.append("---------------\n"); in toString() 123 sb.append(((Certificate)i.next()).toString()); in toString() 125 sb.append("\n]"); in toString() 126 return sb.toString(); in toString()
|
D | LDAPCertStoreParameters.java | 120 StringBuilder sb = in toString() local 122 sb.append(getServerName()); in toString() 123 sb.append("\n port: "); in toString() 124 sb.append(getPort()); in toString() 125 sb.append("\n]"); in toString() 126 return sb.toString(); in toString()
|
D | PKIXBuilderParameters.java | 123 StringBuilder sb = new StringBuilder("[\n"); in toString() local 124 sb.append(super.toString()); in toString() 125 sb.append(" Max Path Length: "); in toString() 126 sb.append(maxPathLength); in toString() 127 sb.append("\n]"); in toString() 128 return sb.toString(); in toString()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | OldAndroidNIOTest.java | 53 ShortBuffer sb = ShortBuffer.wrap(shortArray); in testNIO_short_array() local 54 shortBufferTest(sb); in testNIO_short_array() 349 ShortBuffer sb = bb.asShortBuffer(); in byteBufferTest() local 351 checkBuffer(sb); in byteBufferTest() 352 assertEquals(2, sb.capacity()); in byteBufferTest() 353 assertEquals((short) 0xA2A1, sb.get()); in byteBufferTest() 354 assertEquals((short) 0xA4A3, sb.get()); in byteBufferTest() 357 sb = bb.asShortBuffer(); in byteBufferTest() 359 checkBuffer(sb); in byteBufferTest() 360 assertEquals(2, sb.capacity()); in byteBufferTest() [all …]
|
/libcore/luni/src/main/java/java/sql/ |
D | Timestamp.java | 354 StringBuilder sb = new StringBuilder(29); in toString() local 356 format((getYear() + 1900), 4, sb); in toString() local 357 sb.append('-'); in toString() 358 format((getMonth() + 1), 2, sb); in toString() local 359 sb.append('-'); in toString() 360 format(getDate(), 2, sb); in toString() local 361 sb.append(' '); in toString() 362 format(getHours(), 2, sb); in toString() local 363 sb.append(':'); in toString() 364 format(getMinutes(), 2, sb); in toString() local [all …]
|
D | Date.java | 178 StringBuilder sb = new StringBuilder(10); in toString() local 180 format((getYear() + 1900), 4, sb); in toString() local 181 sb.append('-'); in toString() 182 format((getMonth() + 1), 2, sb); in toString() local 183 sb.append('-'); in toString() 184 format(getDate(), 2, sb); in toString() local 186 return sb.toString(); in toString() 194 private void format(int date, int digits, StringBuilder sb) { in format() argument 197 sb.append(PADDING.substring(0, digits - str.length())); in format() 199 sb.append(str); in format()
|
D | Time.java | 186 StringBuilder sb = new StringBuilder(8); in toString() local 188 format(getHours(), 2, sb); in toString() local 189 sb.append(':'); in toString() 190 format(getMinutes(), 2, sb); in toString() local 191 sb.append(':'); in toString() 192 format(getSeconds(), 2, sb); in toString() local 194 return sb.toString(); in toString() 202 private void format(int date, int digits, StringBuilder sb) { in format() argument 205 sb.append(PADDING.substring(0, digits - str.length())); in format() 207 sb.append(str); in format()
|