/external/guava/guava-tests/test/com/google/common/base/ |
D | SuppliersTest.java | 46 Supplier<Integer> fiveSupplier = new Supplier<Integer>() { in testCompose() 61 Supplier<Integer> squareSupplier = Suppliers.compose(intValueFunction, in testCompose() 68 Supplier<ArrayList<Integer>> listSupplier in testComposeWithLists() 69 = new Supplier<ArrayList<Integer>>() { in testComposeWithLists() 86 Supplier<List<Integer>> addSupplier = Suppliers.compose(addElementFunction, in testComposeWithLists() 94 static class CountingSupplier implements Supplier<Integer>, Serializable { 106 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoize() 112 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoize_redudantly() 119 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoizeSerialized() 124 Supplier<Integer> copy = reserialize(memoizedSupplier); in testMemoizeSerialized() [all …]
|
/external/guava/guava/src/com/google/common/base/ |
D | Suppliers.java | 49 public static <F, T> Supplier<T> compose( in compose() 50 Function<? super F, T> function, Supplier<F> supplier) { in compose() 57 implements Supplier<T>, Serializable { 59 final Supplier<F> supplier; 61 SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) { in SupplierComposition() 102 public static <T> Supplier<T> memoize(Supplier<T> delegate) { in memoize() 109 static class MemoizingSupplier<T> implements Supplier<T>, Serializable { 110 final Supplier<T> delegate; 116 MemoizingSupplier(Supplier<T> delegate) { in MemoizingSupplier() 160 public static <T> Supplier<T> memoizeWithExpiration( in memoizeWithExpiration() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | SuppliersTest.java | 38 Supplier<Integer> fiveSupplier = new Supplier<Integer>() { in testCompose() 53 Supplier<Integer> squareSupplier = Suppliers.compose(intValueFunction, in testCompose() 60 Supplier<ArrayList<Integer>> listSupplier in testComposeWithLists() 61 = new Supplier<ArrayList<Integer>>() { in testComposeWithLists() 78 Supplier<List<Integer>> addSupplier = Suppliers.compose(addElementFunction, in testComposeWithLists() 86 static class CountingSupplier implements Supplier<Integer>, Serializable { 98 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoize() 104 Supplier<Integer> memoizedSupplier = Suppliers.memoize(countingSupplier); in testMemoize_redudantly() 109 CountingSupplier countingSupplier, Supplier<Integer> memoizedSupplier) { in checkMemoize() 125 Supplier<Integer> exceptingSupplier = new Supplier<Integer>() { in testMemoizeExceptionThrown() [all …]
|
/external/turbine/java/com/google/turbine/binder/bytecode/ |
D | BytecodeBoundClass.java | 22 import com.google.common.base.Supplier; 75 private final Supplier<ClassFile> classFile; 80 Supplier<byte[]> bytes, in BytecodeBoundClass() 88 new Supplier<ClassFile>() { in BytecodeBoundClass() 102 private final Supplier<TurbineTyKind> kind = 104 new Supplier<TurbineTyKind>() { 126 private final Supplier<ClassSymbol> owner = 128 new Supplier<ClassSymbol>() { 146 private final Supplier<ImmutableMap<String, ClassSymbol>> children = 148 new Supplier<ImmutableMap<String, ClassSymbol>>() { [all …]
|
/external/turbine/java/com/google/turbine/binder/lookup/ |
D | MemberImportIndex.java | 21 import com.google.common.base.Supplier; 38 private final Map<String, Supplier<ClassSymbol>> cache = new LinkedHashMap<>(); 40 private final ImmutableList<Supplier<ClassSymbol>> classes; 47 ImmutableList.Builder<Supplier<ClassSymbol>> packageScopes = ImmutableList.builder(); in MemberImportIndex() 55 new Supplier<ClassSymbol>() { in MemberImportIndex() 73 new Supplier<ClassSymbol>() { in MemberImportIndex() 111 Supplier<ClassSymbol> cachedResult = cache.get(simpleName); in singleMemberImport() 124 private final Iterator<Supplier<ClassSymbol>> it; 126 public WildcardSymbols(Iterator<Supplier<ClassSymbol>> it) { in WildcardSymbols()
|
D | ImportIndex.java | 22 import com.google.common.base.Supplier; 50 private final Map<String, Supplier<ImportScope>> thunks; 52 public ImportIndex(TurbineLogWithSource log, ImmutableMap<String, Supplier<ImportScope>> thunks) { in ImportIndex() 62 Map<String, Supplier<ImportScope>> thunks = new HashMap<>(); in create() 70 new Supplier<ImportScope>() { in create() 87 new Supplier<ImportScope>() { in create() 167 Supplier<ImportScope> thunk = thunks.get(lookup.first().value());
|
D | WildImportIndex.java | 19 import com.google.common.base.Supplier; 37 private final ImmutableList<Supplier<ImportScope>> packages; 39 public WildImportIndex(ImmutableList<Supplier<ImportScope>> packages) { in WildImportIndex() 48 ImmutableList.Builder<Supplier<ImportScope>> packageScopes = ImmutableList.builder(); in create() 53 new Supplier<ImportScope>() { in create() 156 for (Supplier<ImportScope> packageScope : packages) {
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | Striped.java | 23 import com.google.common.base.Supplier; 199 return new CompactStriped<Lock>(stripes, new Supplier<Lock>() { in lock() 214 return lazy(stripes, new Supplier<Lock>() { 221 private static <L> Striped<L> lazy(int stripes, Supplier<L> supplier) { 236 return new CompactStriped<Semaphore>(stripes, new Supplier<Semaphore>() { 252 return lazy(stripes, new Supplier<Semaphore>() { 282 private static final Supplier<ReadWriteLock> READ_WRITE_LOCK_SUPPLIER = 283 new Supplier<ReadWriteLock>() { 316 private CompactStriped(int stripes, Supplier<L> supplier) { 343 final Supplier<L> supplier; [all …]
|
D | Callables.java | 21 import com.google.common.base.Supplier; 58 final Supplier<String> nameSupplier) { 86 static Runnable threadRenaming(final Runnable task, final Supplier<String> nameSupplier) {
|
/external/guava/guava/src/com/google/common/cache/ |
D | LongAddables.java | 20 import com.google.common.base.Supplier; 32 private static final Supplier<LongAddable> SUPPLIER; 35 Supplier<LongAddable> supplier; 38 supplier = new Supplier<LongAddable>() { 45 supplier = new Supplier<LongAddable>() {
|
D | CacheLoader.java | 25 import com.google.common.base.Supplier; 167 public static <V> CacheLoader<Object, V> from(Supplier<V> supplier) { in from() 213 private final Supplier<V> computingSupplier; 215 public SupplierToCacheLoader(Supplier<V> computingSupplier) {
|
/external/turbine/javatests/com/google/turbine/lower/testdata/ |
D | supplierfunction.test | 1 === test/Supplier.java === 4 public interface Supplier<T> { 19 public static <T> Function<Supplier<T>, T> supplierFunction() { 23 private interface SupplierFunction<T> extends Function<Supplier<T>, T> {} 29 @Override public Object apply(Supplier<Object> input) {
|
/external/guava/guava/src/com/google/common/collect/ |
D | MultimapBuilder.java | 24 import com.google.common.base.Supplier; 190 private static final class ArrayListSupplier<V> implements Supplier<List<V>>, Serializable { 203 private enum LinkedListSupplier implements Supplier<List<Object>> { 206 public static <V> Supplier<List<V>> instance() { 209 Supplier<List<V>> result = (Supplier) INSTANCE; 219 private static final class HashSetSupplier<V> implements Supplier<Set<V>>, Serializable { 232 private static final class LinkedHashSetSupplier<V> implements Supplier<Set<V>>, Serializable { 245 private static final class TreeSetSupplier<V> implements Supplier<SortedSet<V>>, Serializable { 259 implements Supplier<Set<V>>, Serializable { 413 Supplier<Set<V>> factory = (Supplier) new EnumSetSupplier<V0>(valueClass);
|
/external/mockito/src/main/java/org/mockito/internal/runners/ |
D | RunnerFactory.java | 14 import org.mockito.internal.util.Supplier; 29 return create(klass, new Supplier<MockitoTestListener>() { in create() 40 return create(klass, new Supplier<MockitoTestListener>() { 53 return create(klass, new Supplier<MockitoTestListener>() { 63 …public InternalRunner create(Class<?> klass, Supplier<MockitoTestListener> listenerSupplier) throw…
|
/external/droiddriver/src/io/appium/droiddriver/util/ |
D | ActivityUtils.java | 42 private static Supplier<Activity> runningActivitySupplier = 43 new Supplier<Activity>() { 65 public static synchronized void setRunningActivitySupplier(Supplier<Activity> activitySupplier) { in setRunningActivitySupplier() 99 public interface Supplier<T> { interface in ActivityUtils
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | StripedTest.java | 22 import com.google.common.base.Supplier; 59 private static final Supplier<ReadWriteLock> READ_WRITE_LOCK_SUPPLIER = 60 new Supplier<ReadWriteLock>() { 66 private static final Supplier<Lock> LOCK_SUPPLER = new Supplier<Lock>() { 72 private static final Supplier<Semaphore> SEMAPHORE_SUPPLER = new Supplier<Semaphore>() {
|
D | CallablesTest.java | 19 import com.google.common.base.Supplier; 46 final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName"); in testRenaming() 59 final Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName"); in testRenaming_exceptionalReturn() 85 Supplier<String> newName = Suppliers.ofInstance("MyCrazyThreadName"); in testRenaming_noPermissions()
|
/external/dexmaker/dexmaker-mockito-inline-extended/src/main/java/com/android/dx/mockito/inline/extended/ |
D | StaticMocking.java | 19 import java.util.function.Supplier; 28 final Supplier<T> markerSupplier; 30 StaticMocking(Class<T> clazz, Supplier<T> markerSupplier) { in StaticMocking()
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheLoader.java | 24 import com.google.common.base.Supplier; 133 public static <V> CacheLoader<Object, V> from(Supplier<V> supplier) { in from() 139 private final Supplier<V> computingSupplier; 141 public SupplierToCacheLoader(Supplier<V> computingSupplier) { in SupplierToCacheLoader()
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | NewCustomTableTest.java | 22 import com.google.common.base.Supplier; 37 Supplier<TreeMap<Integer, Character>> factory in create() 38 = new Supplier<TreeMap<Integer, Character>>() { in create()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | ProxyDetectorImpl.java | 22 import com.google.common.base.Supplier; 140 private static final Supplier<ProxySelector> DEFAULT_PROXY_SELECTOR = 141 new Supplier<ProxySelector>() { 156 private final Supplier<ProxySelector> proxySelector; 173 Supplier<ProxySelector> proxySelector, in ProxyDetectorImpl()
|
/external/guava/guava/src/com/google/common/hash/ |
D | ChecksumHashFunction.java | 20 import com.google.common.base.Supplier; 32 private final Supplier<? extends Checksum> checksumSupplier; 36 ChecksumHashFunction(Supplier<? extends Checksum> checksumSupplier, int bits, String toString) { in ChecksumHashFunction()
|
/external/desugar/test/java/com/google/devtools/build/android/desugar/ |
D | DesugarMainClassTest.java | 25 import java.util.function.Supplier; 45 Supplier<Path> supplier = in testLambdaDumpDirSpecifiedInProgramFail() 66 Supplier<Path> supplier = in testLambdaDumpDirPassSpecifiedInCmdPass()
|
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/ |
D | ClassProto.java | 36 import com.google.common.base.Supplier; 91 …@Nonnull private final Supplier<ClassDef> classDefSupplier = Suppliers.memoize(new Supplier<ClassD… 136 private final Supplier<LinkedHashMap<String, ClassDef>> preDefaultMethodInterfaceSupplier = 137 Suppliers.memoize(new Supplier<LinkedHashMap<String, ClassDef>>() { 212 private final Supplier<LinkedHashMap<String, ClassDef>> postDefaultMethodInterfaceSupplier = 213 Suppliers.memoize(new Supplier<LinkedHashMap<String, ClassDef>>() { 492 @Nonnull private final Supplier<SparseArray<FieldReference>> dalvikInstanceFieldsSupplier = 493 Suppliers.memoize(new Supplier<SparseArray<FieldReference>>() { 689 @Nonnull private final Supplier<SparseArray<FieldReference>> artInstanceFieldsSupplier = 690 Suppliers.memoize(new Supplier<SparseArray<FieldReference>>() { [all …]
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | ChecksumHashFunctionTest.java | 20 import com.google.common.base.Supplier; 67 private static void assertChecksum(Supplier<Checksum> supplier, String input) { in assertChecksum() 80 private static void assertHash32(int expected, Supplier<Checksum> supplier, String input) { in assertHash32()
|