Home
last modified time | relevance | path

Searched refs:Supplier (Results 1 – 25 of 76) sorted by relevance

1234

/external/guava/guava-tests/test/com/google/common/base/
DSuppliersTest.java46 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/
DSuppliers.java49 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/
DSuppliersTest.java38 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/harfbuzz_ng/src/
Dhb-ot-layout-gsub-table.hh95 Supplier<GlyphID> &glyphs, in serialize()
180 Supplier<GlyphID> &glyphs, in serialize()
181 Supplier<GlyphID> &substitutes, in serialize()
212 Supplier<GlyphID> &glyphs, in serialize()
213 Supplier<GlyphID> &substitutes, in serialize()
310 Supplier<GlyphID> &glyphs, in serialize()
379 Supplier<GlyphID> &glyphs, in serialize()
380 Supplier<unsigned int> &substitute_len_list, in serialize()
382 Supplier<GlyphID> &substitute_glyphs_list) in serialize()
417 Supplier<GlyphID> &glyphs, in serialize()
[all …]
Dhb-ot-shape-complex-arabic-fallback.hh82 OT::Supplier<OT::GlyphID> glyphs_supplier (glyphs, num_glyphs); in arabic_fallback_synthesize_lookup_single()
83 OT::Supplier<OT::GlyphID> substitutes_supplier (substitutes, num_glyphs); in arabic_fallback_synthesize_lookup_single()
158 …OT::Supplier<OT::GlyphID> first_glyphs_supplier (first_glyphs, num_first_gl… in arabic_fallback_synthesize_lookup_ligature()
159 …OT::Supplier<unsigned int > ligature_per_first_glyph_count_supplier (ligature_per_first_glyph_c… in arabic_fallback_synthesize_lookup_ligature()
160 …OT::Supplier<OT::GlyphID> ligatures_supplier (ligature_list, num_ligatur… in arabic_fallback_synthesize_lookup_ligature()
161 …OT::Supplier<unsigned int > component_count_supplier (component_count_list, num_… in arabic_fallback_synthesize_lookup_ligature()
162 …OT::Supplier<OT::GlyphID> component_supplier (component_list, num_ligatu… in arabic_fallback_synthesize_lookup_ligature()
/external/guava/guava/src/com/google/common/cache/
DLongAddables.java20 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>() {
DCacheLoader.java25 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/guava/guava/src/com/google/common/util/concurrent/
DStriped.java23 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 …]
DCallables.java21 import com.google.common.base.Supplier;
58 final Supplier<String> nameSupplier) {
86 static Runnable threadRenaming(final Runnable task, final Supplier<String> nameSupplier) {
DAbstractIdleService.java20 import com.google.common.base.Supplier;
41 private final Supplier<String> threadNameSupplier = new Supplier<String>() {
/external/r8/src/main/java/com/android/tools/r8/utils/
DClassMap.java19 import java.util.function.Supplier;
30 private final Map<DexType, Supplier<T>> classes;
40 ClassMap(Map<DexType, Supplier<T>> classes, ClassProvider<T> classProvider) { in ClassMap()
50 abstract Supplier<T> getTransparentSupplier(T clazz); in getTransparentSupplier()
65 Supplier<T> supplier; in get()
93 for (Supplier<T> supplier : classes.values()) { in getAllClasses()
149 Iterator<Map.Entry<DexType, Supplier<T>>> iterator = classes.entrySet().iterator(); in forceLoad()
151 Map.Entry<DexType, Supplier<T>> e = iterator.next(); in forceLoad()
177 private static class ConcurrentClassLoader<T extends DexClass> implements Supplier<T> {
DProgramClassCollection.java14 import java.util.function.Supplier;
20 IdentityHashMap<DexType, Supplier<DexProgramClass>> map = new IdentityHashMap<>(); in create()
27 private ProgramClassCollection(IdentityHashMap<DexType, Supplier<DexProgramClass>> classes) { in ProgramClassCollection()
42 Supplier<DexProgramClass> getTransparentSupplier(DexProgramClass clazz) { in getTransparentSupplier()
DClasspathClassCollection.java9 import java.util.function.Supplier;
23 Supplier<DexClasspathClass> getTransparentSupplier(DexClasspathClass clazz) { in getTransparentSupplier()
/external/mockito/src/main/java/org/mockito/internal/runners/
DRunnerFactory.java14 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/guava/guava/src/com/google/common/collect/
DMultimapBuilder.java24 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/droiddriver/src/io/appium/droiddriver/util/
DActivityUtils.java40 private static Supplier<Activity> runningActivitySupplier =
41 new Supplier<Activity>() {
63 public static synchronized void setRunningActivitySupplier(Supplier<Activity> activitySupplier) { in setRunningActivitySupplier()
97 public interface Supplier<T> { interface in ActivityUtils
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheLoader.java24 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()
DCacheBuilder.java27 import com.google.common.base.Supplier;
152 static final Supplier<? extends StatsCounter> NULL_STATS_COUNTER = Suppliers.ofInstance(
176 static final Supplier<StatsCounter> CACHE_STATS_COUNTER =
177 new Supplier<StatsCounter>() {
232 Supplier<? extends StatsCounter> statsCounterSupplier = NULL_STATS_COUNTER;
525 Supplier<? extends StatsCounter> getStatsCounterSupplier() { in getStatsCounterSupplier()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DStripedTest.java22 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>() {
DCallablesTest.java19 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/guava/guava-tests/test/com/google/common/collect/
DNewCustomTableTest.java22 import com.google.common.base.Supplier;
37 Supplier<TreeMap<Integer, Character>> factory in create()
38 = new Supplier<TreeMap<Integer, Character>>() { in create()
/external/guava/guava/src/com/google/common/hash/
DChecksumHashFunction.java20 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/guava/guava-tests/test/com/google/common/hash/
DChecksumHashFunctionTest.java20 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()
/external/vogar/test/vogar/android/
DAbstractModeTest.java20 import com.google.common.base.Supplier;
60 protected Supplier<String> deviceUserNameSupplier = new Supplier<String>() {
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassProto.java36 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 …]

1234