Home
last modified time | relevance | path

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

123

/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.hh89 Supplier<GlyphID> &glyphs, in serialize()
166 Supplier<GlyphID> &glyphs, in serialize()
167 Supplier<GlyphID> &substitutes, in serialize()
198 Supplier<GlyphID> &glyphs, in serialize()
199 Supplier<GlyphID> &substitutes, in serialize()
299 Supplier<GlyphID> &glyphs, in serialize()
364 Supplier<GlyphID> &glyphs, in serialize()
365 Supplier<unsigned int> &substitute_len_list, in serialize()
367 Supplier<GlyphID> &substitute_glyphs_list) in serialize()
402 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) {
DCacheBuilder.java29 import com.google.common.base.Supplier;
158 static final Supplier<? extends StatsCounter> NULL_STATS_COUNTER = Suppliers.ofInstance(
182 static final Supplier<StatsCounter> CACHE_STATS_COUNTER =
183 new Supplier<StatsCounter>() {
238 Supplier<? extends StatsCounter> statsCounterSupplier = NULL_STATS_COUNTER;
770 Supplier<? extends StatsCounter> getStatsCounterSupplier() { in getStatsCounterSupplier()
/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/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);
DMultimaps.java29 import com.google.common.base.Supplier;
112 final Supplier<? extends Collection<V>> factory) { in newMultimap()
117 transient Supplier<? extends Collection<V>> factory;
120 Supplier<? extends Collection<V>> factory) { in CustomMultimap()
145 factory = (Supplier<? extends Collection<V>>) stream.readObject(); in readObject()
193 Map<K, Collection<V>> map, final Supplier<? extends List<V>> factory) { in newListMultimap()
199 transient Supplier<? extends List<V>> factory;
202 Supplier<? extends List<V>> factory) { in CustomListMultimap()
224 factory = (Supplier<? extends List<V>>) stream.readObject(); in readObject()
271 Map<K, Collection<V>> map, final Supplier<? extends Set<V>> factory) { in newSetMultimap()
[all …]
/external/droiddriver/src/io/appium/droiddriver/util/
DActivityUtils.java28 public interface Supplier<T> { interface in ActivityUtils
38 private static Supplier<Activity> runningActivitySupplier;
46 public static synchronized void setRunningActivitySupplier(Supplier<Activity> activitySupplier) { in setRunningActivitySupplier()
/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-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/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/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/
DClassProto.java35 import com.google.common.base.Supplier;
91 …@Nonnull private final Supplier<ClassDef> classDefSupplier = Suppliers.memoize(new Supplier<ClassD…
129 private final Supplier<LinkedHashMap<String, ClassDef>> interfacesSupplier =
130 Suppliers.memoize(new Supplier<LinkedHashMap<String, ClassDef>>() {
383 @Nonnull private final Supplier<SparseArray<FieldReference>> dalvikInstanceFieldsSupplier =
384 Suppliers.memoize(new Supplier<SparseArray<FieldReference>>() {
584 @Nonnull private final Supplier<SparseArray<FieldReference>> artInstanceFieldsSupplier =
585 Suppliers.memoize(new Supplier<SparseArray<FieldReference>>() {
766 …@Nonnull private final Supplier<List<Method>> vtableSupplier = Suppliers.memoize(new Supplier<List…
/external/vogar/test/vogar/android/
DAbstractModeTest.java20 import com.google.common.base.Supplier;
59 protected Supplier<String> deviceUserNameSupplier = new Supplier<String>() {
/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/guava/guava-tests/benchmark/com/google/common/util/concurrent/
DStripedBenchmark.java27 import com.google.common.base.Supplier;
43 private static final Supplier<Lock> LOCK_SUPPLIER = new Supplier<Lock>() {
/external/vogar/src/vogar/android/
DDeviceRuntime.java19 import com.google.common.base.Supplier;
43 private final Supplier<String> deviceUserNameSupplier;
46 Supplier<String> deviceUserNameSupplier) { in DeviceRuntime()

123