/external/guava/guava/src/com/google/common/base/ |
D | Suppliers.java | 50 Function<? super F, T> function, Supplier<F> supplier) { in compose() argument 52 Preconditions.checkNotNull(supplier); in compose() 53 return new SupplierComposition<F, T>(function, supplier); in compose() 59 final Supplier<F> supplier; field in Suppliers.SupplierComposition 61 SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) { in SupplierComposition() argument 63 this.supplier = supplier; in SupplierComposition() 67 return function.apply(supplier.get()); in get() 73 return function.equals(that.function) && supplier.equals(that.supplier); in equals() 79 return Objects.hashCode(function, supplier); in hashCode() 83 return "Suppliers.compose(" + function + ", " + supplier + ")"; in toString()
|
D | Functions.java | 328 public static <T> Function<Object, T> forSupplier(Supplier<T> supplier) { in forSupplier() argument 329 return new SupplierFunction<T>(supplier); in forSupplier() 335 private final Supplier<T> supplier; field in Functions.SupplierFunction 337 private SupplierFunction(Supplier<T> supplier) { in SupplierFunction() argument 338 this.supplier = checkNotNull(supplier); in SupplierFunction() 342 return supplier.get(); in apply() 348 return this.supplier.equals(that.supplier); in equals() 354 return supplier.hashCode(); in hashCode() 358 return "forSupplier(" + supplier + ")"; in toString()
|
D | Present.java | 57 @Override public T or(Supplier<? extends T> supplier) { in or() argument 58 checkNotNull(supplier); in or()
|
D | Absent.java | 59 @Override public T or(Supplier<? extends T> supplier) { in or() argument 60 return checkNotNull(supplier.get(), in or()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | Striped.java | 221 private static <L> Striped<L> lazy(int stripes, Supplier<L> supplier) { 223 ? new SmallLazyStriped<L>(stripes, supplier) 224 : new LargeLazyStriped<L>(stripes, supplier); 316 private CompactStriped(int stripes, Supplier<L> supplier) { 322 array[i] = supplier.get(); 343 final Supplier<L> supplier; 347 SmallLazyStriped(int stripes, Supplier<L> supplier) { 351 this.supplier = supplier; 363 L created = supplier.get(); 412 final Supplier<L> supplier; [all …]
|
/external/r8/src/main/java/com/android/tools/r8/utils/ |
D | ClassMap.java | 65 Supplier<T> supplier; in get() local 68 supplier = classes.get(type); in get() 72 if (supplier == null) { in get() 78 supplier = new ConcurrentClassLoader<>(this, this.classProvider, type); in get() 79 classes.put(type, supplier); in get() 83 return supplier.get(); in get() 93 for (Supplier<T> supplier : classes.values()) { in getAllClasses() 96 T clazz = supplier.get(); in getAllClasses()
|
/external/guava/guava/src/com/google/common/cache/ |
D | LongAddables.java | 35 Supplier<LongAddable> supplier; 38 supplier = new Supplier<LongAddable>() { 45 supplier = new Supplier<LongAddable>() { 52 SUPPLIER = supplier;
|
D | CacheLoader.java | 167 public static <V> CacheLoader<Object, V> from(Supplier<V> supplier) { in from() argument 168 return new SupplierToCacheLoader<V>(supplier); in from()
|
/external/guava/guava-tests/test/com/google/common/hash/ |
D | ChecksumHashFunctionTest.java | 67 private static void assertChecksum(Supplier<Checksum> supplier, String input) { in assertChecksum() argument 70 Checksum checksum = supplier.get(); in assertChecksum() 75 HashFunction func = new ChecksumHashFunction(supplier, 32, toString); in assertChecksum() 80 private static void assertHash32(int expected, Supplier<Checksum> supplier, String input) { in assertHash32() argument 83 HashFunction func = new ChecksumHashFunction(supplier, 32, toString); in assertHash32()
|
/external/google-breakpad/src/processor/ |
D | stackwalker_address_list_unittest.cc | 87 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()
|
D | minidump_processor_unittest.cc | 325 TestSymbolSupplier supplier; in TEST_F() local 327 MinidumpProcessor processor(&supplier, &resolver); in TEST_F() 357 MockSymbolSupplier supplier; in TEST_F() local 359 MinidumpProcessor processor(&supplier, &resolver); in TEST_F() 364 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F() 368 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F() 374 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in TEST_F() 378 ASSERT_TRUE(Mock::VerifyAndClearExpectations(&supplier)); in TEST_F() 382 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F() 386 EXPECT_CALL(supplier, GetCStringSymbolData( in TEST_F() [all …]
|
D | stackwalker_mips_unittest.cc | 95 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 182 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 205 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 261 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 336 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 407 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() [all …]
|
D | stackwalker_amd64_unittest.cc | 93 EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _, _)) in StackwalkerAMD64Fixture() 98 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in StackwalkerAMD64Fixture() 108 char *buffer = supplier.CopySymbolDataAndOwnTheCopy(info, &buffer_size); in SetModuleSymbols() 109 EXPECT_CALL(supplier, GetCStringSymbolData(module, &system_info, _, _, _)) in SetModuleSymbols() 137 MockSymbolSupplier supplier; member in StackwalkerAMD64Fixture 182 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 206 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 267 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 342 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 414 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() [all …]
|
D | stackwalker_arm_unittest.cc | 95 EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _, _)) in StackwalkerARMFixture() 100 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in StackwalkerARMFixture() 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 StackwalkerARMFixture 175 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 195 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 248 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 319 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 385 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() [all …]
|
D | stackwalker_arm64_unittest.cc | 94 EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _, _)) in StackwalkerARM64Fixture() 99 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in StackwalkerARM64Fixture() 109 char *buffer = supplier.CopySymbolDataAndOwnTheCopy(info, &buffer_size); in SetModuleSymbols() 110 EXPECT_CALL(supplier, GetCStringSymbolData(module, &system_info, _, _, _)) in SetModuleSymbols() 138 MockSymbolSupplier supplier; member in StackwalkerARM64Fixture 172 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 225 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 297 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 364 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 427 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() [all …]
|
D | stackwalker_x86_unittest.cc | 102 EXPECT_CALL(supplier, GetCStringSymbolData(_, _, _, _, _)) in StackwalkerX86Fixture() 107 EXPECT_CALL(supplier, FreeSymbolData(_)).Times(AnyNumber()); in StackwalkerX86Fixture() 117 char *buffer = supplier.CopySymbolDataAndOwnTheCopy(info, &buffer_size); in SetModuleSymbols() 118 EXPECT_CALL(supplier, GetCStringSymbolData(module, &system_info, _, _, _)) in SetModuleSymbols() 150 MockSymbolSupplier supplier; member in StackwalkerX86Fixture 192 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 215 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 257 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 321 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() 387 StackFrameSymbolizer frame_symbolizer(&supplier, &resolver); in TEST_F() [all …]
|
D | exploitability_unittest.cc | 59 SimpleSymbolSupplier supplier(TestDataDir() + "/symbols"); in ExploitabilityFor() local 61 MinidumpProcessor processor(&supplier, &resolver, true); in ExploitabilityFor()
|
D | stack_frame_symbolizer.cc | 52 SymbolSupplier* supplier, in StackFrameSymbolizer() argument 53 SourceLineResolverInterface* resolver) : supplier_(supplier), in StackFrameSymbolizer()
|
/external/caliper/caliper/src/main/java/com/google/caliper/config/ |
D | CaliperConfigLoader.java | 67 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/guava/guava-tests/test/com/google/common/base/ |
D | SuppliersTest.java | 241 @Override public Supplier<Boolean> apply(Supplier<Boolean> supplier) { in testExpiringMemoizedSupplierThreadSafe() 243 supplier, Long.MAX_VALUE, TimeUnit.NANOSECONDS); in testExpiringMemoizedSupplierThreadSafe() 254 @Override public Supplier<Boolean> apply(Supplier<Boolean> supplier) { in testMemoizedSupplierThreadSafe() 255 return Suppliers.memoize(supplier); in testMemoizedSupplierThreadSafe() 272 final Supplier<Boolean> supplier = new Supplier<Boolean>() { in testSupplierThreadSafe() local 313 final Supplier<Boolean> memoizedSupplier = memoizer.apply(supplier); in testSupplierThreadSafe() 373 Supplier<Integer> supplier = Suppliers.ofInstance(14); in testSupplierFunction() local 377 assertEquals(14, (int) supplierFunction.apply(supplier)); in testSupplierFunction()
|
/external/junit-params/src/main/java/junitparams/internal/ |
D | NonParameterisedFrameworkMethod.java | 38 public void run(MethodBlockSupplier supplier, RunNotifier notifier) { in run() argument 39 runMethodInvoker(notifier, supplier.getMethodBlock(this), getDescription()); in run()
|
D | InstanceFrameworkMethod.java | 54 public void run(MethodBlockSupplier supplier, RunNotifier notifier) { in run() argument 55 runMethodInvoker(notifier, supplier.getMethodBlock(this), getInstanceDescription()); in run()
|
/external/google-breakpad/src/google_breakpad/processor/ |
D | stack_frame_symbolizer.h | 71 StackFrameSymbolizer(SymbolSupplier* supplier, 96 SymbolSupplier* supplier() { return supplier_; } in supplier() function
|
D | minidump_processor.h | 53 MinidumpProcessor(SymbolSupplier* supplier, 59 MinidumpProcessor(SymbolSupplier* supplier,
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheLoader.java | 133 public static <V> CacheLoader<Object, V> from(Supplier<V> supplier) { in from() argument 134 return new SupplierToCacheLoader<V>(supplier); in from()
|