/external/guava/guava/src/com/google/common/io/ |
D | CharStreams.java | 227 InputSupplier<R> supplier) throws IOException { in toString() argument 228 return asCharSource(supplier).read(); in toString() 258 InputSupplier<R> supplier) throws IOException { in readFirstLine() argument 259 return asCharSource(supplier).readFirstLine(); in readFirstLine() 276 InputSupplier<R> supplier) throws IOException { in readLines() argument 279 R r = closer.register(supplier.getInput()); in readLines() 350 InputSupplier<R> supplier, LineProcessor<T> callback) throws IOException { in readLines() argument 351 checkNotNull(supplier); in readLines() 356 R r = closer.register(supplier.getInput()); in readLines() 563 final InputSupplier<? extends Readable> supplier) { [all …]
|
D | ByteStreams.java | 306 InputSupplier<? extends InputStream> supplier) throws IOException { in toByteArray() argument 307 return asByteSource(supplier).read(); in toByteArray() 756 InputSupplier<? extends InputStream> supplier) throws IOException { in length() argument 757 return asByteSource(supplier).size(); in length() 853 InputSupplier<? extends InputStream> supplier, in readBytes() argument 855 checkNotNull(supplier); in readBytes() 860 InputStream in = closer.register(supplier.getInput()); in readBytes() 906 InputSupplier<? extends InputStream> supplier, final Checksum checksum) in getChecksum() argument 909 return readBytes(supplier, new ByteProcessor<Long>() { in getChecksum() 938 InputSupplier<? extends InputStream> supplier, HashFunction hashFunction) [all …]
|
/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 | 222 private static <L> Striped<L> lazy(int stripes, Supplier<L> supplier) { 224 ? new SmallLazyStriped<L>(stripes, supplier) 225 : new LargeLazyStriped<L>(stripes, supplier); 317 private CompactStriped(int stripes, Supplier<L> supplier) { 323 array[i] = supplier.get(); 344 final Supplier<L> supplier; 348 SmallLazyStriped(int stripes, Supplier<L> supplier) { 352 this.supplier = supplier; 364 L created = supplier.get(); 413 final Supplier<L> supplier; [all …]
|
/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/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/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/junit/src/org/junit/experimental/theories/internal/ |
D | Assignments.java | 86 ParameterSupplier supplier= getAnnotatedSupplier(unassigned); in getSupplier() local 87 if (supplier != null) in getSupplier() 88 return supplier; in getSupplier()
|
/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()
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | SuppliersTest.java | 159 Supplier<Integer> supplier = Suppliers.ofInstance(14); in testSupplierFunction() local 163 assertEquals(14, (int) supplierFunction.apply(supplier)); in testSupplierFunction()
|