/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | DelegatingSSLSocket.java | 34 protected final SSLSocket delegate; field in DelegatingSSLSocket 36 public DelegatingSSLSocket(SSLSocket delegate) { in DelegatingSSLSocket() argument 37 this.delegate = delegate; in DelegatingSSLSocket() 41 delegate.shutdownInput(); in shutdownInput() 45 delegate.shutdownOutput(); in shutdownOutput() 49 return delegate.getSupportedCipherSuites(); in getSupportedCipherSuites() 53 return delegate.getEnabledCipherSuites(); in getEnabledCipherSuites() 57 delegate.setEnabledCipherSuites(suites); in setEnabledCipherSuites() 61 return delegate.getSupportedProtocols(); in getSupportedProtocols() 65 return delegate.getEnabledProtocols(); in getEnabledProtocols() [all …]
|
/external/conscrypt/src/compat/java/org/conscrypt/ |
D | PreKitKatPlatformOpenSSLSocketImplAdapter.java | 50 private final org.conscrypt.OpenSSLSocketImpl delegate; field in PreKitKatPlatformOpenSSLSocketImplAdapter 52 public PreKitKatPlatformOpenSSLSocketImplAdapter(org.conscrypt.OpenSSLSocketImpl delegate) in PreKitKatPlatformOpenSSLSocketImplAdapter() argument 55 this.delegate = delegate; in PreKitKatPlatformOpenSSLSocketImplAdapter() 62 delegate.close(); in close() 67 return delegate.getInputStream(); in getInputStream() 72 return delegate.getLocalPort(); in getLocalPort() 77 return delegate.getOutputStream(); in getOutputStream() 82 return delegate.getPort(); in getPort() 87 delegate.connect(sockaddr, timeout); in connect() 92 delegate.connect(sockaddr); in connect() [all …]
|
D | KitKatPlatformOpenSSLSocketImplAdapter.java | 50 private final org.conscrypt.OpenSSLSocketImpl delegate; field in KitKatPlatformOpenSSLSocketImplAdapter 52 public KitKatPlatformOpenSSLSocketImplAdapter(org.conscrypt.OpenSSLSocketImpl delegate) in KitKatPlatformOpenSSLSocketImplAdapter() argument 55 this.delegate = delegate; in KitKatPlatformOpenSSLSocketImplAdapter() 62 delegate.close(); in close() 67 return delegate.getInputStream(); in getInputStream() 72 return delegate.getLocalPort(); in getLocalPort() 77 return delegate.getOutputStream(); in getOutputStream() 82 return delegate.getPort(); in getPort() 87 delegate.connect(sockaddr, timeout); in connect() 92 delegate.connect(sockaddr); in connect() [all …]
|
/external/okhttp/okhttp-urlconnection/src/main/java/com/squareup/okhttp/internal/huc/ |
D | DelegatingHttpsURLConnection.java | 41 private final HttpURLConnection delegate; field in DelegatingHttpsURLConnection 43 public DelegatingHttpsURLConnection(HttpURLConnection delegate) { in DelegatingHttpsURLConnection() argument 44 super(delegate.getURL()); in DelegatingHttpsURLConnection() 45 this.delegate = delegate; in DelegatingHttpsURLConnection() 89 delegate.connect(); in connect() 93 delegate.disconnect(); in disconnect() 97 return delegate.getErrorStream(); in getErrorStream() 101 return delegate.getRequestMethod(); in getRequestMethod() 105 return delegate.getResponseCode(); in getResponseCode() 109 return delegate.getResponseMessage(); in getResponseMessage() [all …]
|
D | HttpsURLConnectionImpl.java | 26 private final HttpURLConnectionImpl delegate; field in HttpsURLConnectionImpl 32 public HttpsURLConnectionImpl(HttpURLConnectionImpl delegate) { in HttpsURLConnectionImpl() argument 33 super(delegate); in HttpsURLConnectionImpl() 34 this.delegate = delegate; in HttpsURLConnectionImpl() 38 if (delegate.httpEngine == null) { in handshake() 45 return delegate.httpEngine.hasResponse() in handshake() 46 ? delegate.httpEngine.getResponse().handshake() in handshake() 47 : delegate.handshake; in handshake() 51 delegate.client.setHostnameVerifier(hostnameVerifier); in setHostnameVerifier() 55 return delegate.client.getHostnameVerifier(); in getHostnameVerifier() [all …]
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
D | Synchronized.java | 58 final Object delegate; field in Synchronized.SynchronizedObject 61 SynchronizedObject(Object delegate, @Nullable Object mutex) { in SynchronizedObject() argument 62 this.delegate = checkNotNull(delegate); in SynchronizedObject() 66 Object delegate() { in delegate() method in Synchronized.SynchronizedObject 67 return delegate; in delegate() 74 return delegate.toString(); in toString() 92 Collection<E> delegate, @Nullable Object mutex) { in SynchronizedCollection() argument 93 super(delegate, mutex); in SynchronizedCollection() 97 @Override Collection<E> delegate() { in delegate() method in Synchronized.SynchronizedCollection 98 return (Collection<E>) super.delegate(); in delegate() [all …]
|
D | ForwardingImmutableMap.java | 34 final transient Map<K, V> delegate; field in ForwardingImmutableMap 36 ForwardingImmutableMap(Map<? extends K, ? extends V> delegate) { in ForwardingImmutableMap() argument 37 this.delegate = Collections.unmodifiableMap(delegate); in ForwardingImmutableMap() 42 Map<K, V> delegate = Maps.newLinkedHashMap(); in ForwardingImmutableMap() local 45 V previous = delegate.put(key, checkNotNull(entry.getValue())); in ForwardingImmutableMap() 50 this.delegate = Collections.unmodifiableMap(delegate); in ForwardingImmutableMap() 58 return delegate.isEmpty(); in isEmpty() 62 return Maps.safeContainsKey(delegate, key); in containsKey() 66 return delegate.containsValue(value); in containsValue() 70 return (key == null) ? null : Maps.safeGet(delegate, key); in get() [all …]
|
D | ForwardingImmutableSet.java | 32 private final transient Set<E> delegate; field in ForwardingImmutableSet 34 ForwardingImmutableSet(Set<E> delegate) { in ForwardingImmutableSet() argument 36 this.delegate = Collections.unmodifiableSet(delegate); in ForwardingImmutableSet() 40 return Iterators.unmodifiableIterator(delegate.iterator()); in iterator() 44 return object != null && delegate.contains(object); in contains() 48 return delegate.containsAll(targets); in containsAll() 52 return delegate.size(); in size() 56 return delegate.isEmpty(); in isEmpty() 60 return delegate.toArray(); in toArray() 64 return delegate.toArray(other); in toArray() [all …]
|
/external/guava/guava/src/com/google/common/collect/ |
D | Synchronized.java | 61 final Object delegate; field in Synchronized.SynchronizedObject 64 SynchronizedObject(Object delegate, @Nullable Object mutex) { in SynchronizedObject() argument 65 this.delegate = checkNotNull(delegate); in SynchronizedObject() 69 Object delegate() { in delegate() method in Synchronized.SynchronizedObject 70 return delegate; in delegate() 77 return delegate.toString(); in toString() 105 Collection<E> delegate, @Nullable Object mutex) { in SynchronizedCollection() argument 106 super(delegate, mutex); in SynchronizedCollection() 110 @Override Collection<E> delegate() { in delegate() method in Synchronized.SynchronizedCollection 111 return (Collection<E>) super.delegate(); in delegate() [all …]
|
D | Constraints.java | 95 private final Collection<E> delegate; field in Constraints.ConstrainedCollection 99 Collection<E> delegate, Constraint<? super E> constraint) { in ConstrainedCollection() argument 100 this.delegate = checkNotNull(delegate); in ConstrainedCollection() 103 @Override protected Collection<E> delegate() { in delegate() method in Constraints.ConstrainedCollection 104 return delegate; in delegate() 108 return delegate.add(element); in add() 111 return delegate.addAll(checkElements(elements, constraint)); in addAll() 134 private final Set<E> delegate; field in Constraints.ConstrainedSet 137 public ConstrainedSet(Set<E> delegate, Constraint<? super E> constraint) { in ConstrainedSet() argument 138 this.delegate = checkNotNull(delegate); in ConstrainedSet() [all …]
|
D | ForwardingTable.java | 40 @Override protected abstract Table<R, C, V> delegate(); in delegate() method in ForwardingTable 44 return delegate().cellSet(); in cellSet() 49 delegate().clear(); in clear() 54 return delegate().column(columnKey); in column() 59 return delegate().columnKeySet(); in columnKeySet() 64 return delegate().columnMap(); in columnMap() 69 return delegate().contains(rowKey, columnKey); in contains() 74 return delegate().containsColumn(columnKey); in containsColumn() 79 return delegate().containsRow(rowKey); in containsRow() 84 return delegate().containsValue(value); in containsValue() [all …]
|
D | ImmutableEnumSet.java | 53 private final transient EnumSet<E> delegate; field in ImmutableEnumSet 55 private ImmutableEnumSet(EnumSet<E> delegate) { in ImmutableEnumSet() argument 56 this.delegate = delegate; in ImmutableEnumSet() 64 return Iterators.unmodifiableIterator(delegate.iterator()); in iterator() 69 return delegate.size(); in size() 73 return delegate.contains(object); in contains() 77 return delegate.containsAll(collection); in containsAll() 81 return delegate.isEmpty(); in isEmpty() 85 return object == this || delegate.equals(object); in equals() 92 return (result == 0) ? hashCode = delegate.hashCode() : result; in hashCode() [all …]
|
D | ForwardingMultimap.java | 44 @Override protected abstract Multimap<K, V> delegate(); in delegate() method in ForwardingMultimap 48 return delegate().asMap(); in asMap() 53 delegate().clear(); in clear() 58 return delegate().containsEntry(key, value); in containsEntry() 63 return delegate().containsKey(key); in containsKey() 68 return delegate().containsValue(value); in containsValue() 73 return delegate().entries(); in entries() 78 return delegate().get(key); in get() 83 return delegate().isEmpty(); in isEmpty() 88 return delegate().keys(); in keys() [all …]
|
/external/slf4j/slf4j-api/src/main/java/org/slf4j/helpers/ |
D | SubstituteLogger.java | 54 return delegate().isTraceEnabled(); in isTraceEnabled() 58 delegate().trace(msg); in trace() 62 delegate().trace(format, arg); in trace() 66 delegate().trace(format, arg1, arg2); in trace() 70 delegate().trace(format, arguments); in trace() 74 delegate().trace(msg, t); in trace() 78 return delegate().isTraceEnabled(marker); in isTraceEnabled() 82 delegate().trace(marker, msg); in trace() 86 delegate().trace(marker, format, arg); in trace() 90 delegate().trace(marker, format, arg1, arg2); in trace() [all …]
|
/external/okhttp/okio/okio/src/main/java/okio/ |
D | ForwardingTimeout.java | 23 private Timeout delegate; field in ForwardingTimeout 25 public ForwardingTimeout(Timeout delegate) { in ForwardingTimeout() argument 26 if (delegate == null) throw new IllegalArgumentException("delegate == null"); in ForwardingTimeout() 27 this.delegate = delegate; in ForwardingTimeout() 31 public final Timeout delegate() { in delegate() method in ForwardingTimeout 32 return delegate; in delegate() 35 public final ForwardingTimeout setDelegate(Timeout delegate) { in setDelegate() argument 36 if (delegate == null) throw new IllegalArgumentException("delegate == null"); in setDelegate() 37 this.delegate = delegate; in setDelegate() 42 return delegate.timeout(timeout, unit); in timeout() [all …]
|
D | ForwardingSink.java | 22 private final Sink delegate; field in ForwardingSink 24 public ForwardingSink(Sink delegate) { in ForwardingSink() argument 25 if (delegate == null) throw new IllegalArgumentException("delegate == null"); in ForwardingSink() 26 this.delegate = delegate; in ForwardingSink() 30 public final Sink delegate() { in delegate() method in ForwardingSink 31 return delegate; in delegate() 35 delegate.write(source, byteCount); in write() 39 delegate.flush(); in flush() 43 return delegate.timeout(); in timeout() 47 delegate.close(); in close() [all …]
|
/external/slf4j/osgi-over-slf4j/src/main/java/org/slf4j/osgi/logservice/impl/ |
D | LogServiceImpl.java | 53 private final Logger delegate; field in LogServiceImpl 67 delegate = LoggerFactory.getLogger(name + '.' + version); in LogServiceImpl() 79 delegate.debug(message); in log() 82 delegate.error(message); in log() 85 delegate.info(message); in log() 88 delegate.warn(message); in log() 104 delegate.debug(message, exception); in log() 107 delegate.error(message, exception); in log() 110 delegate.info(message, exception); in log() 113 delegate.warn(message, exception); in log() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | SafeTreeMap.java | 43 private final SortedMap<K, V> delegate; field in SafeTreeMap 57 private SafeTreeMap(SortedMap<K, V> delegate) { in SafeTreeMap() argument 58 this.delegate = delegate; in SafeTreeMap() 59 if (delegate == null) { in SafeTreeMap() 68 delegate.clear(); in clear() 73 Comparator<? super K> comparator = delegate.comparator(); in comparator() 82 return delegate.containsKey(checkValid(key)); in containsKey() 91 return delegate.containsValue(value); in containsValue() 96 private Set<Entry<K, V>> delegate() { in entrySet() 97 return delegate.entrySet(); in entrySet() [all …]
|
D | SafeTreeSet.java | 40 private final SortedSet<E> delegate; field in SafeTreeSet 54 private SafeTreeSet(SortedSet<E> delegate) { in SafeTreeSet() argument 55 this.delegate = delegate; in SafeTreeSet() 62 return delegate.add(checkValid(element)); in add() 69 return delegate.addAll(collection); in addAll() 73 delegate.clear(); in clear() 78 Comparator<? super E> comparator = delegate.comparator(); in comparator() 86 return delegate.contains(checkValid(object)); in contains() 90 return delegate.containsAll(c); in containsAll() 94 return delegate.first(); in first() [all …]
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
D | AbstractInvocationHandlerTest.java | 84 private static List<String> newDelegatingList(List<String> delegate) { in newDelegatingList() argument 85 return Reflection.newProxy(List.class, new DelegatingInvocationHandler(delegate)); in newDelegatingList() 89 private static List<String> newDelegatingListWithEquals(List<String> delegate) { in newDelegatingListWithEquals() argument 90 return Reflection.newProxy(List.class, new DelegatingInvocationHandlerWithEquals(delegate)); in newDelegatingListWithEquals() 94 private static Iterable<String> newDelegatingIterableWithEquals(Iterable<String> delegate) { in newDelegatingIterableWithEquals() argument 95 return Reflection.newProxy(Iterable.class, new DelegatingInvocationHandlerWithEquals(delegate)); in newDelegatingIterableWithEquals() 99 private static List<String> newProxyWithSubHandler1(List<String> delegate) { in newProxyWithSubHandler1() argument 100 return Reflection.newProxy(List.class, new SubHandler1(delegate)); in newProxyWithSubHandler1() 104 private static List<String> newProxyWithSubHandler2(List<String> delegate) { in newProxyWithSubHandler2() argument 105 return Reflection.newProxy(List.class, new SubHandler2(delegate)); in newProxyWithSubHandler2() [all …]
|
D | InvokableTest.java | 81 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_parameters() local 82 ImmutableList<Parameter> parameters = delegate.getParameters(); in testConstructor_parameters() 95 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_call() local 96 Prepender prepender = delegate.invoke(null, "a", 1); in testConstructor_call() 102 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class) in testConstructor_returning() local 104 Prepender prepender = delegate.invoke(null, "a", 1); in testConstructor_returning() 110 Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); in testConstructor_invalidReturning() local 112 delegate.returning(SubPrepender.class); in testConstructor_invalidReturning() 118 Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class); in testStaticMethod_returnType() local 119 assertEquals(new TypeToken<Iterable<String>>() {}, delegate.getReturnType()); in testStaticMethod_returnType() [all …]
|
/external/guava/guava/src/com/google/common/cache/ |
D | ForwardingCache.java | 46 protected abstract Cache<K, V> delegate(); in delegate() method in ForwardingCache 54 return delegate().getIfPresent(key); in getIfPresent() 62 return delegate().get(key, valueLoader); in get() 70 return delegate().getAllPresent(keys); in getAllPresent() 78 delegate().put(key, value); in put() 86 delegate().putAll(m); in putAll() 91 delegate().invalidate(key); in invalidate() 99 delegate().invalidateAll(keys); in invalidateAll() 104 delegate().invalidateAll(); in invalidateAll() 109 return delegate().size(); in size() [all …]
|
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/ |
D | WrapperTester.java | 39 public abstract OutputStream create(OutputStream delegate) throws Exception; in create() argument 82 private ClosableByteArrayOutputStream delegate; field in WrapperTester.WrapperSinkTester 86 delegate = new ClosableByteArrayOutputStream(); in create() 87 return WrapperTester.this.create(delegate); in create() 92 return WrapperTester.this.decode(delegate.bytesOut.toByteArray()); in getBytes() 113 FailOnFlushOutputStream delegate = new FailOnFlushOutputStream(); in wrapperTestFlushThrowsViaFlushSuppressed() local 114 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed() 118 assertTrue(delegate.flushed); in wrapperTestFlushThrowsViaFlushSuppressed() 122 FailOnFlushOutputStream delegate = new FailOnFlushOutputStream(); in wrapperTestFlushThrowsViaCloseSuppressed() local 123 OutputStream o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed() [all …]
|
D | CharWrapperTester.java | 38 public abstract Writer create(Writer delegate) throws Exception; in create() argument 81 private ClosableStringWriter delegate; field in CharWrapperTester.WrapperSinkTester 85 delegate = new ClosableStringWriter(); in create() 86 return CharWrapperTester.this.create(delegate); in create() 91 return decode(delegate.buffer.toString().toCharArray()); in getChars() 112 FailOnFlushWriter delegate = new FailOnFlushWriter(); in wrapperTestFlushThrowsViaFlushSuppressed() local 113 Writer o = create(delegate); in wrapperTestFlushThrowsViaFlushSuppressed() 117 assertTrue(delegate.flushed); in wrapperTestFlushThrowsViaFlushSuppressed() 121 FailOnFlushWriter delegate = new FailOnFlushWriter(); in wrapperTestFlushThrowsViaCloseSuppressed() local 122 Writer o = create(delegate); in wrapperTestFlushThrowsViaCloseSuppressed() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Suppliers.java | 102 public static <T> Supplier<T> memoize(Supplier<T> delegate) { in memoize() argument 103 return (delegate instanceof MemoizingSupplier) in memoize() 104 ? delegate in memoize() 105 : new MemoizingSupplier<T>(Preconditions.checkNotNull(delegate)); in memoize() 110 final Supplier<T> delegate; field in Suppliers.MemoizingSupplier 116 MemoizingSupplier(Supplier<T> delegate) { in MemoizingSupplier() argument 117 this.delegate = delegate; in MemoizingSupplier() 125 T t = delegate.get(); in get() 136 return "Suppliers.memoize(" + delegate + ")"; in toString() 161 Supplier<T> delegate, long duration, TimeUnit unit) { in memoizeWithExpiration() argument [all …]
|