/libcore/support/src/test/java/libcore/javax/net/ssl/ |
H A D | RandomPrivateKeyX509ExtendedKeyManager.java | 33 * {@link X509ExtendedKeyManager} which forwards all calls to a delegate while substituting 40 public RandomPrivateKeyX509ExtendedKeyManager(X509ExtendedKeyManager delegate) { argument 41 super(delegate);
|
H A D | ForwardingX509ExtendedKeyManager.java | 31 private final X509ExtendedKeyManager delegate; field in class:ForwardingX509ExtendedKeyManager 33 public ForwardingX509ExtendedKeyManager(X509ExtendedKeyManager delegate) { argument 34 this.delegate = delegate; 39 return delegate.chooseClientAlias(keyType, issuers, socket); 44 return delegate.chooseServerAlias(keyType, issuers, socket); 49 return delegate.getCertificateChain(alias); 54 return delegate.getClientAliases(keyType, issuers); 59 return delegate.getServerAliases(keyType, issuers); 64 return delegate [all...] |
H A D | TestSSLContext.java | 121 private final PutField delegate; field in class:TestSSLContext.HostnameRewritingObjectOutputStream.PutFieldProxy 124 public PutFieldProxy(ObjectOutputStream.PutField delegate, String hostname) { argument 125 this.delegate = delegate; 131 delegate.put(name, val); 136 delegate.put(name, val); 141 delegate.put(name, val); 146 delegate.put(name, val); 151 delegate.put(name, val); 156 delegate [all...] |
/libcore/luni/src/test/java/libcore/java/nio/charset/ |
H A D | SettableCharsetProvider.java | 26 * charset-providers, this class allows tests to plug in a delegate that lives for the 30 private static CharsetProvider delegate; field in class:SettableCharsetProvider 33 delegate = cp; 37 delegate = null; 42 if (delegate != null) { 43 return delegate.charsets(); 51 if (delegate != null) { 52 return delegate.charsetForName(charsetName);
|
/libcore/support/src/test/java/tests/net/ |
H A D | DelegatingSocketFactory.java | 26 * {@link SocketFactory} which delegates all invocations to the provided delegate 33 public DelegatingSocketFactory(SocketFactory delegate) { argument 34 this.mDelegate = delegate; 38 * Invoked after obtaining a socket from the delegate and before returning it to the caller.
|
H A D | DelegatingSSLSocketFactory.java | 28 * {@link SSLSocketFactory} which delegates all invocations to the provided delegate 35 public DelegatingSSLSocketFactory(SSLSocketFactory delegate) { argument 36 this.mDelegate = delegate; 40 * Invoked after obtaining a socket from the delegate and before returning it to the caller.
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | OutputStreamTesterTest.java | 148 public OutputStream create(OutputStream delegate) throws Exception { argument 149 return new FilterOutputStream(delegate); 164 public OutputStream create(OutputStream delegate) throws Exception { argument 165 return new BufferedOutputStream(delegate, bufferSize); 175 public OutputStream create(OutputStream delegate) throws Exception { argument 176 return new DataOutputStream(delegate); 186 public OutputStream create(OutputStream delegate) throws Exception { argument 187 return new ObjectOutputStream(delegate); 198 public OutputStream create(OutputStream delegate) throws Exception { argument 199 return new PrintStream(delegate); [all...] |
H A D | WriterTesterTest.java | 163 public Writer create(Writer delegate) throws Exception { argument 164 return new BufferedWriter(delegate, bufferSize); 175 public Writer create(Writer delegate) throws Exception { argument 176 return new FilterWriter(delegate) { 188 public Writer create(Writer delegate) throws Exception { argument 189 return new PrintWriter(delegate) {
|
H A D | PrintStreamTest.java | 777 public CountFlushOutputStream(OutputStream delegate) { argument 778 super(delegate);
|
/libcore/support/src/test/java/org/apache/harmony/testframework/ |
H A D | CharWrapperTester.java | 36 * transforms it, and emits another stream of chars to {@code delegate}. 38 public abstract Writer create(Writer delegate) throws Exception; argument 41 * Decodes the chars received by the delegate into their original form: the 81 private ClosableStringWriter delegate; field in class:CharWrapperTester.WrapperSinkTester 85 delegate = new ClosableStringWriter(); 86 return CharWrapperTester.this.create(delegate); 91 return decode(delegate.buffer.toString().toCharArray()); 112 FailOnFlushWriter delegate = new FailOnFlushWriter(); 113 Writer o = create(delegate); 117 assertTrue(delegate [all...] |
H A D | WrapperTester.java | 37 * transforms it, and emits another stream of bytes to {@code delegate}. 39 public abstract OutputStream create(OutputStream delegate) throws Exception; argument 42 * Decodes the bytes received by the delegate into their original form: the 82 private ClosableByteArrayOutputStream delegate; field in class:WrapperTester.WrapperSinkTester 86 delegate = new ClosableByteArrayOutputStream(); 87 return WrapperTester.this.create(delegate); 92 return WrapperTester.this.decode(delegate.bytesOut.toByteArray()); 113 FailOnFlushOutputStream delegate = new FailOnFlushOutputStream(); 114 OutputStream o = create(delegate); 118 assertTrue(delegate [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | SimpleDateFormat.java | 982 FieldDelegate delegate) { 1007 subFormat(tag, count, delegate, toAppendTo, useDateFormatSymbols); 1034 CharacterIteratorFieldDelegate delegate = new 1038 format((Date)obj, sb, delegate); 1041 format(new Date(((Number)obj).longValue()), sb, delegate); 1051 return delegate.getIterator(sb.toString()); 1157 FieldDelegate delegate, StringBuffer buffer, 1402 delegate.formatted(fieldID, f, f, beginOffset, buffer.length(), buffer); 981 format(Date date, StringBuffer toAppendTo, FieldDelegate delegate) argument 1156 subFormat(int patternCharIndex, int count, FieldDelegate delegate, StringBuffer buffer, boolean useDateFormatSymbols) argument
|
/libcore/ojluni/src/main/java/java/lang/invoke/ |
H A D | Transformers.java | 98 private final MethodHandle delegate; field in class:Transformers.DropArguments 108 public DropArguments(MethodType type, MethodHandle delegate, argument 112 this.delegate = delegate; 114 // We pre-calculate the ranges of values we have to copy through to the delegate 127 EmulatedStackFrame calleeFrame = EmulatedStackFrame.create(delegate.type()); 140 delegate.invoke(calleeFrame); 447 private final MethodHandle delegate; field in class:Transformers.BindTo 452 public BindTo(MethodHandle delegate, Object receiver) { argument 453 super(delegate 1330 Collector(MethodHandle delegate, Class<?> arrayType, int length) argument [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 3193 protected final SSLSocketFactory delegate; field in class:URLConnectionTest.DelegatingSSLSocketFactory 3195 public DelegatingSSLSocketFactory(SSLSocketFactory delegate) { argument 3196 this.delegate = delegate; 3201 return delegate.getDefaultCipherSuites(); 3206 return delegate.getSupportedCipherSuites(); 3212 return (SSLSocket) delegate.createSocket(s, host, port, autoClose); 3217 return (SSLSocket) delegate.createSocket(); 3223 return (SSLSocket) delegate.createSocket(host, port); 3229 return (SSLSocket) delegate 3253 LimitedProtocolsSocketFactory(SSLSocketFactory delegate, String... protocols) argument 3311 private final Socket delegate; field in class:URLConnectionTest.DelegatingSocket 3313 DelegatingSocket(Socket delegate) argument 3368 protected final SSLSocket delegate; field in class:URLConnectionTest.DelegatingSSLSocket 3370 DelegatingSSLSocket(SSLSocket delegate) argument 3637 FallbackTestClientSocketFactory(SSLSocketFactory delegate, boolean disableTlsFallbackScsv) argument [all...] |