/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/libcore/javax/net/ssl/ |
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...] |
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);
|
/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/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 | LineNumberReaderTest.java | 149 private StringReader delegate = new StringReader("hello\nworld"); 161 return delegate.read(buf, offset, len);
|
/libcore/luni/src/main/java/libcore/util/ |
H A D | CollectionUtils.java | 41 private final Iterator<? extends Reference<T>> delegate = iterable.iterator(); 47 while (next == null && delegate.hasNext()) { 48 next = delegate.next().get(); 50 delegate.remove(); 74 delegate.remove();
|
/libcore/support/src/test/java/tests/io/ |
H A D | MockOs.java | 44 private Os delegate; field in class:MockOs 48 return method.invoke(delegate, args); 70 if (delegate != null) { 73 delegate = Libcore.os; 78 if (delegate == null) { 81 Libcore.os = delegate; 86 * {@code methodName}. If empty, calls will be handled by the delegate.
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | URLConnectionTest.java | 3185 protected final SSLSocketFactory delegate; field in class:URLConnectionTest.DelegatingSSLSocketFactory 3187 public DelegatingSSLSocketFactory(SSLSocketFactory delegate) { argument 3188 this.delegate = delegate; 3193 return delegate.getDefaultCipherSuites(); 3198 return delegate.getSupportedCipherSuites(); 3204 return (SSLSocket) delegate.createSocket(s, host, port, autoClose); 3209 return (SSLSocket) delegate.createSocket(); 3215 return (SSLSocket) delegate.createSocket(host, port); 3221 return (SSLSocket) delegate 3245 LimitedProtocolsSocketFactory(SSLSocketFactory delegate, String... protocols) argument 3303 private final Socket delegate; field in class:URLConnectionTest.DelegatingSocket 3305 DelegatingSocket(Socket delegate) argument 3360 protected final SSLSocket delegate; field in class:URLConnectionTest.DelegatingSSLSocket 3362 DelegatingSSLSocket(SSLSocket delegate) argument 3629 FallbackTestClientSocketFactory(SSLSocketFactory delegate, boolean disableTlsFallbackScsv) argument [all...] |
/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/ojluni/src/main/java/java/security/ |
H A D | MessageDigest.java | 268 MessageDigest delegate = 270 delegate.provider = (Provider)objs[1]; 271 return delegate; 316 MessageDigest delegate = 318 delegate.provider = (Provider)objs[1]; 319 return delegate; 578 // The provider implementation (delegate) 588 * Returns a clone if the delegate is cloneable. 590 * @return a clone if the delegate is cloneable. 593 * delegate tha [all...] |
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
H A D | PSKKeyManagerProxy.java | 33 static KeyManager getConscryptPSKKeyManager(PSKKeyManagerProxy delegate) { argument 43 delegate);
|
H A D | SSLSocketTest.java | 1033 private Signature delegate; field in class:SSLSocketTest.OpaqueSignatureSpi 1060 delegate = Signature.getInstance(algorithm); 1064 delegate.initSign(opaqueKey.getDelegate()); 1069 delegate.update(b); 1074 delegate.update(b, off, len); 1079 return delegate.sign(); 1084 return delegate.verify(sigBytes); 1091 delegate.setParameter(param, value); 1097 return delegate.getParameter(param); 1102 private Cipher delegate; field in class:SSLSocketTest.OpaqueCipherSpi 1200 private final ECPrivateKey delegate; field in class:SSLSocketTest.OpaqueDelegatingECPrivateKey 1202 OpaqueDelegatingECPrivateKey(ECPrivateKey delegate) argument 1235 private final RSAPrivateKey delegate; field in class:SSLSocketTest.OpaqueDelegatingRSAPrivateKey 1237 OpaqueDelegatingRSAPrivateKey(RSAPrivateKey delegate) argument [all...] |
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
H A D | MethodHandleCombinersTest.java | 59 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, 64 delegate, 0, int.class, Object.class); 77 transform = MethodHandles.dropArguments(delegate, 1, int.class, Object.class); 82 transform = MethodHandles.dropArguments(delegate, 2, int.class, Object.class); 98 transform = MethodHandles.dropArguments(delegate, 0, int.class, Object.class); 105 MethodHandles.dropArguments(delegate, -1, int.class, Object.class); 112 MethodHandles.dropArguments(delegate, 3, int.class, Object.class); 118 MethodHandles.dropArguments(delegate, 1, void.class); 125 MethodHandle delegate = MethodHandles.lookup().findStatic(MethodHandleCombinersTest.class, 130 delegate, [all...] |
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | CollectionsTest.java | 157 * Tests that when targetSdk {@code <= 25}, Collections.sort() does not delegate 399 NavigableMap<String, Integer> delegate = new TreeMap<>(); 400 delegate.put("present", 1); 401 delegate.put("another key", 2); 403 checkedNavigableMap(delegate, String.class, Integer.class), 477 Map<Integer, Double> delegate = new HashMap<>(); 478 delegate.put(2, 12.0); 479 delegate.put(3, null); 480 Map<Integer, Double> m = Collections.unmodifiableMap(delegate); 487 Map<Integer, Double> delegate [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | AsynchronousChannelGroupImpl.java | 322 final Runnable delegate = task; 329 delegate.run();
|
/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/ojluni/src/main/java/java/text/ |
H A D | SimpleDateFormat.java | 979 FieldDelegate delegate) { 1004 subFormat(tag, count, delegate, toAppendTo, useDateFormatSymbols); 1031 CharacterIteratorFieldDelegate delegate = new 1035 format((Date)obj, sb, delegate); 1038 format(new Date(((Number)obj).longValue()), sb, delegate); 1048 return delegate.getIterator(sb.toString()); 1152 FieldDelegate delegate, StringBuffer buffer, 1383 delegate.formatted(fieldID, f, f, beginOffset, buffer.length(), buffer); 978 format(Date date, StringBuffer toAppendTo, FieldDelegate delegate) argument 1151 subFormat(int patternCharIndex, int count, FieldDelegate delegate, StringBuffer buffer, boolean useDateFormatSymbols) argument
|
/libcore/ojluni/src/main/java/java/nio/file/ |
H A D | Files.java | 84 * <p> In most cases, the methods defined here will delegate to the associated 94 * Returns the {@code FileSystemProvider} to delegate to. 3453 final Iterator<Path> delegate = ds.iterator(); 3460 return delegate.hasNext(); 3468 return delegate.next();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | CollectionsTest.java | 755 private final List delegate = Arrays.asList(new MyInt(1), new MyInt(2)); 756 @Override public Object get(int index) { return delegate.get(index); } 757 @Override public int size() { return delegate.size(); }
|