Home
last modified time | relevance | path

Searched refs:supplier (Results 1 – 25 of 69) sorted by relevance

123

/external/apache-commons-bcel/docs/
Dclassfile.mdl60 supplier "Logical View::AccessFlags"
80 supplier "Logical View::FieldOrMethod"
87 supplier "Logical View::FieldOrMethod"
97 supplier "Logical View::Attribute"
121 supplier "Logical View::Attribute"
129 supplier "Logical View::Attribute"
137 supplier "Logical View::Attribute"
145 supplier "Logical View::Attribute"
163 supplier "Logical View::Constant"
171 supplier "Logical View::Attribute"
[all …]
Dgeneric.mdl60 supplier "Logical View::AccessFlags"
114 supplier "Logical View::AccessFlags"
135 supplier "Logical View::AccessFlags"
157 supplier "Logical View::Instruction"
162 supplier "Logical View::InstructionTargeter"
170 supplier "Logical View::BranchInstruction"
183 supplier "Logical View::Select"
191 supplier "Logical View::Select"
209 supplier "Logical View::InstructionTargeter"
217 supplier "Logical View::BranchInstruction"
[all …]
/external/guava/guava/src/com/google/common/util/concurrent/
DStriped.java194 static <L> Striped<L> custom(int stripes, Supplier<L> supplier) { in custom() argument
195 return new CompactStriped<>(stripes, supplier); in custom()
234 private static <L> Striped<L> lazy(int stripes, Supplier<L> supplier) {
236 ? new SmallLazyStriped<L>(stripes, supplier)
237 : new LargeLazyStriped<L>(stripes, supplier);
409 private CompactStriped(int stripes, Supplier<L> supplier) {
415 array[i] = supplier.get();
439 final Supplier<L> supplier;
443 SmallLazyStriped(int stripes, Supplier<L> supplier) {
447 this.supplier = supplier;
[all …]
/external/guava/android/guava/src/com/google/common/util/concurrent/
DStriped.java194 static <L> Striped<L> custom(int stripes, Supplier<L> supplier) { in custom() argument
195 return new CompactStriped<>(stripes, supplier); in custom()
234 private static <L> Striped<L> lazy(int stripes, Supplier<L> supplier) {
236 ? new SmallLazyStriped<L>(stripes, supplier)
237 : new LargeLazyStriped<L>(stripes, supplier);
409 private CompactStriped(int stripes, Supplier<L> supplier) {
415 array[i] = supplier.get();
439 final Supplier<L> supplier;
443 SmallLazyStriped(int stripes, Supplier<L> supplier) {
447 this.supplier = supplier;
[all …]
/external/guava/android/guava/src/com/google/common/base/
DSuppliers.java45 public static <F, T> Supplier<T> compose(Function<? super F, T> function, Supplier<F> supplier) { in compose() argument
46 return new SupplierComposition<>(function, supplier); in compose()
51 final Supplier<F> supplier; field in Suppliers.SupplierComposition
53 SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) { in SupplierComposition() argument
55 this.supplier = checkNotNull(supplier); in SupplierComposition()
60 return function.apply(supplier.get()); in get()
67 return function.equals(that.function) && supplier.equals(that.supplier); in equals()
74 return Objects.hashCode(function, supplier); in hashCode()
79 return "Suppliers.compose(" + function + ", " + supplier + ")"; in toString()
DFunctions.java364 public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) { in forSupplier() argument
365 return new SupplierFunction<T>(supplier); in forSupplier()
371 private final Supplier<T> supplier; field in Functions.SupplierFunction
373 private SupplierFunction(Supplier<T> supplier) { in SupplierFunction() argument
374 this.supplier = checkNotNull(supplier); in SupplierFunction()
379 return supplier.get(); in apply()
386 return this.supplier.equals(that.supplier); in equals()
393 return supplier.hashCode(); in hashCode()
398 return "Functions.forSupplier(" + supplier + ")"; in toString()
/external/guava/guava/src/com/google/common/base/
DSuppliers.java45 public static <F, T> Supplier<T> compose(Function<? super F, T> function, Supplier<F> supplier) { in compose() argument
46 return new SupplierComposition<>(function, supplier); in compose()
51 final Supplier<F> supplier; field in Suppliers.SupplierComposition
53 SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) { in SupplierComposition() argument
55 this.supplier = checkNotNull(supplier); in SupplierComposition()
60 return function.apply(supplier.get()); in get()
67 return function.equals(that.function) && supplier.equals(that.supplier); in equals()
74 return Objects.hashCode(function, supplier); in hashCode()
79 return "Suppliers.compose(" + function + ", " + supplier + ")"; in toString()
DFunctions.java362 public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) { in forSupplier() argument
363 return new SupplierFunction<T>(supplier); in forSupplier()
369 private final Supplier<T> supplier; field in Functions.SupplierFunction
371 private SupplierFunction(Supplier<T> supplier) { in SupplierFunction() argument
372 this.supplier = checkNotNull(supplier); in SupplierFunction()
377 return supplier.get(); in apply()
384 return this.supplier.equals(that.supplier); in equals()
391 return supplier.hashCode(); in hashCode()
396 return "Functions.forSupplier(" + supplier + ")"; in toString()
/external/guava/guava/src/com/google/common/hash/
DLongAddables.java29 Supplier<LongAddable> supplier;
32 supplier =
40 supplier =
48 SUPPLIER = supplier;
/external/guava/android/guava/src/com/google/common/hash/
DLongAddables.java29 Supplier<LongAddable> supplier;
32 supplier =
40 supplier =
48 SUPPLIER = supplier;
/external/guava/android/guava/src/com/google/common/cache/
DLongAddables.java31 Supplier<LongAddable> supplier;
34 supplier =
42 supplier =
50 SUPPLIER = supplier;
/external/guava/guava/src/com/google/common/cache/
DLongAddables.java31 Supplier<LongAddable> supplier;
34 supplier =
42 supplier =
50 SUPPLIER = supplier;
/external/guava/android/guava-tests/test/com/google/common/hash/
DChecksumHashFunctionTest.java64 private static void assertChecksum(ImmutableSupplier<Checksum> supplier, String input) { in assertChecksum() argument
67 Checksum checksum = supplier.get(); in assertChecksum()
72 HashFunction func = new ChecksumHashFunction(supplier, 32, toString); in assertChecksum()
78 int expected, ImmutableSupplier<Checksum> supplier, String input) { in assertHash32() argument
81 HashFunction func = new ChecksumHashFunction(supplier, 32, toString); in assertHash32()
/external/guava/guava-tests/test/com/google/common/hash/
DChecksumHashFunctionTest.java64 private static void assertChecksum(ImmutableSupplier<Checksum> supplier, String input) { in assertChecksum() argument
67 Checksum checksum = supplier.get(); in assertChecksum()
72 HashFunction func = new ChecksumHashFunction(supplier, 32, toString); in assertChecksum()
78 int expected, ImmutableSupplier<Checksum> supplier, String input) { in assertHash32() argument
81 HashFunction func = new ChecksumHashFunction(supplier, 32, toString); in assertHash32()
/external/guava/guava-tests/benchmark/com/google/common/collect/
DStreamsBenchmark.java43 final Supplier<Collection<Object>> supplier; field in StreamsBenchmark.CollectionType
45 private CollectionType(Supplier<Collection<Object>> supplier) { in CollectionType() argument
46 this.supplier = supplier; in CollectionType()
97 collection = source.supplier.get(); in setUp()
/external/google-breakpad/src/processor/
Dstackwalker_address_list_unittest.cc87 EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _, _)) in StackwalkerAddressListTest()
92 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in StackwalkerAddressListTest()
99 char *buffer = supplier.CopySymbolDataAndOwnTheCopy(info, &buffer_size); in SetModuleSymbols()
100 EXPECT_CALL(supplier, GetCStringSymbolData(module, NULL, _, _, _)) in SetModuleSymbols()
123 MockSymbolSupplier supplier; member in StackwalkerAddressListTest
128 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
162 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
Dminidump_processor_unittest.cc431 TestSymbolSupplier supplier; in TEST_F() local
433 MinidumpProcessor processor(&supplier, &resolver); in TEST_F()
463 MockSymbolSupplier supplier; in TEST_F() local
465 MinidumpProcessor processor(&supplier, &resolver); in TEST_F()
469 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F()
473 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F()
479 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in TEST_F()
483 ASSERT_TRUE(Mock::VerifyAndClearExpectations(&supplier)); in TEST_F()
487 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F()
491 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F()
[all …]
Dstackwalker_mips_unittest.cc95 EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _, _)) in StackwalkerMIPSFixture()
100 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in StackwalkerMIPSFixture()
110 char* buffer = supplier.CopySymbolDataAndOwnTheCopy(info, &buffer_size); in SetModuleSymbols()
111 EXPECT_CALL(supplier, GetCStringSymbolData(module, &system_info, _, _, _)) in SetModuleSymbols()
139 MockSymbolSupplier supplier; member in StackwalkerMIPSFixture
184 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
208 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
265 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
341 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
413 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
[all …]
Dstackwalker_mips64_unittest.cc96 EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _, _)) in StackwalkerMIPSFixture()
101 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in StackwalkerMIPSFixture()
111 char* buffer = supplier.CopySymbolDataAndOwnTheCopy(info, &buffer_size); in SetModuleSymbols()
112 EXPECT_CALL(supplier, GetCStringSymbolData(module, &system_info, _, _, _)) in SetModuleSymbols()
140 MockSymbolSupplier supplier; member in StackwalkerMIPSFixture
187 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
212 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
270 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
347 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
420 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F()
[all …]
/external/caliper/caliper/src/main/java/com/google/caliper/config/
DCaliperConfigLoader.java67 ByteSource supplier = Util.resourceSupplier(CaliperConfig.class, "default-config.properties"); in loadOrCreate() local
68 tryCopyIfNeeded(supplier, configFile); in loadOrCreate()
72 user = Util.loadProperties(supplier); in loadOrCreate()
89 private static void tryCopyIfNeeded(ByteSource supplier, File rcFile) { in tryCopyIfNeeded() argument
92 supplier.copyTo(Files.asByteSink(rcFile)); in tryCopyIfNeeded()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/snappy/
DSnappyCompressorInputStream.java180 offset = (int) ByteUtils.fromLittleEndian(supplier, 2); in fill()
198 offset = (int) ByteUtils.fromLittleEndian(supplier, 4) & 0x7fffffff; in fill()
229 length = (int) ByteUtils.fromLittleEndian(supplier, 2); in readLiteralLength()
232 length = (int) ByteUtils.fromLittleEndian(supplier, 3); in readLiteralLength()
235 length = (int) ByteUtils.fromLittleEndian(supplier, 4); in readLiteralLength()
/external/desugar/test/java/com/google/devtools/build/android/desugar/
DDesugarMainClassTest.java45 Supplier<Path> supplier = in testLambdaDumpDirSpecifiedInProgramFail() local
52 Desugar.verifyLambdaDumpDirectoryRegistered(supplier.get()); in testLambdaDumpDirSpecifiedInProgramFail()
66 Supplier<Path> supplier = in testLambdaDumpDirPassSpecifiedInCmdPass() local
74 Path dumpDirectory = supplier.get(); in testLambdaDumpDirPassSpecifiedInCmdPass()
/external/mockito/src/test/java/org/mockito/internal/runners/
DDefaultInternalRunnerTest.java26 private final Supplier<MockitoTestListener> supplier = new Supplier<MockitoTestListener>() { field in DefaultInternalRunnerTest
34 new DefaultInternalRunner(SuccessTest.class, supplier) in does_not_fail_when_tests_succeeds()
44 new DefaultInternalRunner(TestFailOnInitialization.class, supplier) in does_not_fail_second_test_when_first_test_fail()
53 new DefaultInternalRunner(SuccessTest.class, supplier) in does_not_fail_second_test_when_first_test_fail()
/external/guava/guava-testlib/src/com/google/common/testing/
DCollectorTester.java87 A accum = collector.supplier().get(); in result()
98 A accum = collector.supplier().get(); in result()
100 A newAccum = collector.supplier().get(); in result()
113 A newAccum = collector.supplier().get(); in result()
117 push(stack, collector.supplier().get()); in result()
/external/guava/guava-tests/test/com/google/common/base/
DSuppliersTest.java287 public Supplier<Boolean> apply(Supplier<Boolean> supplier) { in testExpiringMemoizedSupplierThreadSafe()
288 return Suppliers.memoizeWithExpiration(supplier, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testExpiringMemoizedSupplierThreadSafe()
300 public Supplier<Boolean> apply(Supplier<Boolean> supplier) { in testMemoizedSupplierThreadSafe()
301 return Suppliers.memoize(supplier); in testMemoizedSupplierThreadSafe()
316 final Supplier<Boolean> supplier = in testSupplierThreadSafe() local
359 final Supplier<Boolean> memoizedSupplier = memoizer.apply(supplier); in testSupplierThreadSafe()
424 Supplier<Integer> supplier = Suppliers.ofInstance(14); in testSupplierFunction() local
427 assertEquals(14, (int) supplierFunction.apply(supplier)); in testSupplierFunction()

123